RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Go to the documentation of this file.
34 namespace RestFrames {
39 int State::m_class_key = 0;
43 const std::string& stitle)
47 m_Type = kVanillaState;
48 m_ParentJigsawPtr =
nullptr;
49 m_ChildJigsawPtr =
nullptr;
50 m_P.SetPxPyPzE(0.,0.,0.,0.);
55 m_Type = kVanillaState;
62 m_ParentJigsawPtr =
nullptr;
63 m_ChildJigsawPtr =
nullptr;
64 m_P.SetPxPyPzE(0.,0.,0.,0.);
83 return m_Type == kVisibleState;
88 return m_Type == kInvisibleState;
93 return m_Type == kCombinatoricState;
97 int N = frames.GetN();
98 for(
int i = 0; i < N; i++)
107 return m_Frames.GetN();
111 if(!frame)
return false;
112 if(m_Frames.GetN() != 1)
return false;
113 return m_Frames[0] == frame;
117 return m_Frames == frames;
124 m_ParentJigsawPtr =
nullptr;
126 m_ParentJigsawPtr = &jigsaw;
133 m_ChildJigsawPtr =
nullptr;
135 m_ChildJigsawPtr = &jigsaw;
139 if(m_ParentJigsawPtr)
140 return *m_ParentJigsawPtr;
147 return *m_ChildJigsawPtr;
162 m_P.SetVectM(V.Vect(), std::max(0., V.M()));
State()
Empty constructor.
int GetNFrames() const
Returns number of frames (RestFrame) contained in this state.
bool IsCombinatoricState() const
Is this a CombinatoricState? (true/false)
StateType GetType() const
Returns State (StateType) type.
static StateList const & EmptyList()
Returns empty StateList.
abstract base class for all Frame objects
bool IsEmpty() const
Checks whether this is default (empty) instance of class.
virtual void SetFourVector(const TLorentzVector &V)
Sets four-vector of this frame.
Base class for all RestFrame package objects.
virtual TLorentzVector GetFourVector() const
Returns four vector of this frame.
static VisibleState & Empty()
Returns empty VisibleState.
virtual void Clear()
Clears State of all connections to other objects.
std::string GetName() const
Returns object name.
virtual RFCharge GetCharge() const
Returns charge of this frames.
void SetSource(const std::string &source)
Sets name of instance that is associated with.
virtual void SetChildJigsaw(Jigsaw &jigsaw=Jigsaw::Empty())
Sets the child jigsaw (Jigsaw) to jigsaw
ConstRestFrameList const & GetListFrames() const
Returns list of frames (RestFrame) contained in this state.
virtual bool IsFrames(const ConstRestFrameList &frames) const
Checks if frames lists of state corresponds frames
static State & Empty()
Returns empty state.
virtual void AddFrames(const ConstRestFrameList &frames)
Adds a list of frames (RestFrame) to this state.
static Jigsaw & Empty()
Returns empty Jigsaw.
virtual void AddFrame(const RestFrame &frame)=0
Pure virtual function defined in derivatives of State class.
virtual void SetParentJigsaw(Jigsaw &jigsaw=Jigsaw::Empty())
Sets the parent jigsaw (Jigsaw) to jigsaw
bool IsVisibleState() const
Is this a VisibleState? (true/false)
virtual bool IsFrame(const RestFrame &frame) const
Checks if frame of state corresponds to frame
bool IsInvisibleState() const
Is this an InvisibleState? (true/false)
virtual void Boost(const TVector3 &B)
Boosts to different frame (RestFrame)
abstract base class for all Jigsaw objects
Abstract base class for all State objects.
virtual Jigsaw & GetChildJigsaw() const
Returns the child of this jigsaw (Jigsaw)
virtual Jigsaw & GetParentJigsaw() const
Returns the parent of this jigsaw (Jigsaw)