thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
ScalarSpinInfo.h
1 // -*- C++ -*-
2 //
3 // ScalarSpinInfo.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 2003-2019 Peter Richardson, 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_ScalarSpinInfo_H
10 #define ThePEG_ScalarSpinInfo_H
11 // This is the declaration of the ScalarSpinInfo class.
12 
13 #include "ThePEG/EventRecord/SpinInfo.h"
14 #include "ScalarSpinInfo.fh"
15 
16 namespace ThePEG {
17 namespace Helicity {
18 
27 class ScalarSpinInfo: public SpinInfo {
28 
29 public:
30 
36  ScalarSpinInfo() : SpinInfo(PDT::Spin0) {}
37 
43  ScalarSpinInfo(const Lorentz5Momentum & p, bool time)
44  : SpinInfo(PDT::Spin0, p, time) {}
46 
47 public:
48 
52  static void Init();
53 
57  virtual EIPtr clone() const
58  {
59  tcSpinPtr temp = this;
60  return const_ptr_cast<SpinPtr>(temp);
61  }
62 
66  virtual void transform(const LorentzMomentum &,const LorentzRotation &);
67 
68 private:
69 
73  ScalarSpinInfo & operator=(const ScalarSpinInfo &) = delete;
74 
75 };
76 
77 }
78 }
79 
80 
81 namespace ThePEG {
82 
83 }
84 #endif /* ThePEG_ScalarSpinInfo_H */
ScalarSpinInfo()
Default constructor.
PDT is a helper class implementing enumerations for charge, colour and spin to be used by the Particl...
Definition: PDT.h:24
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:696
The LorentzRotation class combine a SpinOneLorentzRotation and a spin SpinHalfLorentzRotation to prov...
virtual void transform(const LorentzMomentum &, const LorentzRotation &)
Perform a lorentz rotation of the spin information.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
ScalarSpinInfo & operator=(const ScalarSpinInfo &)=delete
Private and non-existent assignment operator.
static void Init()
Standard Init function.
The SpinInfo is the base class for the spin information for the spin correlation algorithm.
Definition: SpinInfo.h:58
virtual EIPtr clone() const
Standard clone methods.
T1 const_ptr_cast(const T2 &t2)
Replacement for the standard const_cast.
Definition: PtrTraits.h:175
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
ScalarSpinInfo(const Lorentz5Momentum &p, bool time)
Standard Constructor.
The ScalarSpinInfo class is designed to be the implementation of the spin information for a scalar pa...