thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
EventRecord
TmpTransform.h
1
// -*- C++ -*-
2
//
3
// TmpTransform.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2019 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 3 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
&) =
delete
;
72
77
TmpTransform
();
78
83
TmpTransform
(
const
TmpTransform
&);
84
85
};
86
87
}
88
89
#endif
/* THEPEG_TmpTransform_H */
ThePEG.h
This is the main config header file for ThePEG.
ThePEG::LorentzRotation
The LorentzRotation class combine a SpinOneLorentzRotation and a spin SpinHalfLorentzRotation to prov...
Definition:
LorentzRotation.h:27
ThePEG::LorentzRotation::invert
LorentzRotation & invert()
Inverts the LorentzRotation matrix.
Definition:
LorentzRotation.h:83
ThePEG::TmpTransform
This is a wrapper class to be used to temporarily make a Lorentz transform of an object.
Definition:
TmpTransform.h:29
ThePEG::TmpTransform::TmpTransform
TmpTransform(const TmpTransform &)
The copy constructor is private and must never be called.
ThePEG::TmpTransform::ptr
Ptr ptr
A pointer to the object being transformed.
Definition:
TmpTransform.h:58
ThePEG::TmpTransform::~TmpTransform
~TmpTransform()
The destructor performs the inverse of the transformation done in the constructor.
Definition:
TmpTransform.h:47
ThePEG::TmpTransform::operator=
TmpTransform & operator=(const TmpTransform &)=delete
The assignment operator is private and must never be called.
ThePEG::TmpTransform::rot
LorentzRotation rot
The rotation performed in the constructor.
Definition:
TmpTransform.h:63
ThePEG::TmpTransform::TmpTransform
TmpTransform()
The default constructor is private and must never be called.
ThePEG::TmpTransform::TmpTransform
TmpTransform(Ptr p, const LorentzRotation &r)
The contructor will call the transform(const LorentzRotation &) of an object pointed to by p with r a...
Definition:
TmpTransform.h:38
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::Pointer::Ptr
Ptr is a templated class to provide typedefs for pointers types ThePEG should use for a given type.
Definition:
Ptr.h:35
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6