ThePEG
1.8.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
EventRecord
TmpTransform.h
1
// -*- C++ -*-
2
//
3
// TmpTransform.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2011 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef THEPEG_TmpTransform_H
10
#define THEPEG_TmpTransform_H
11
//
12
// This is the declaration of the TmpTransform class.
13
//
14
15
#include "ThePEG/Config/ThePEG.h"
16
17
namespace
ThePEG {
18
28
template
<
typename
Ptr>
29
class
TmpTransform
{
30
31
public
:
32
33
38
TmpTransform
(
Ptr
p,
const
LorentzRotation
& r) :
ptr
(p),
rot
(r)
39
{
40
ptr
->transform(
rot
);
41
}
42
47
~TmpTransform
()
48
{
49
rot
.
invert
();
50
ptr
->transform(
rot
);
51
}
52
53
private
:
54
58
Ptr
ptr
;
59
63
LorentzRotation
rot
;
64
65
private
:
66
71
TmpTransform
&
operator=
(
const
TmpTransform
&);
72
77
TmpTransform
();
78
83
TmpTransform
(
const
TmpTransform
&);
84
85
};
86
87
}
88
89
#endif
/* THEPEG_TmpTransform_H */
Generated on Mon Jul 2 2012 16:06:48 for ThePEG by
1.8.1.1