RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Abstract base class for all State objects.
State is a very meaningful class and it is important to learn how it works in order to understand RestFrames, however users should not need to call its methods or use it directly.
States can be seen as four vector associated with a frame or group of frames evaluated in a specific reference frame. Each Jigsaw has their own state.
Public Member Functions | |
State (const std::string &sname, const std::string &stitle) | |
Standard constructor. More... | |
State () | |
Empty constructor. | |
virtual void | Clear () |
Clears State of all connections to other objects. | |
StateType | GetType () const |
Returns State (StateType) type. More... | |
bool | IsVisibleState () const |
Is this a VisibleState? (true/false) More... | |
bool | IsInvisibleState () const |
Is this an InvisibleState? (true/false) More... | |
bool | IsCombinatoricState () const |
Is this a CombinatoricState? (true/false) More... | |
virtual void | AddFrame (const RestFrame &frame)=0 |
Pure virtual function defined in derivatives of State class. | |
virtual void | AddFrames (const ConstRestFrameList &frames) |
Adds a list of frames (RestFrame) to this state. More... | |
ConstRestFrameList const & | GetListFrames () const |
Returns list of frames (RestFrame) contained in this state. More... | |
int | GetNFrames () const |
Returns number of frames (RestFrame) contained in this state. More... | |
virtual bool | IsFrame (const RestFrame &frame) const |
Checks if frame of state corresponds to frame More... | |
virtual bool | IsFrames (const ConstRestFrameList &frames) const |
Checks if frames lists of state corresponds frames More... | |
virtual void | SetParentJigsaw (Jigsaw &jigsaw=Jigsaw::Empty()) |
Sets the parent jigsaw (Jigsaw) to jigsaw More... | |
virtual void | SetChildJigsaw (Jigsaw &jigsaw=Jigsaw::Empty()) |
Sets the child jigsaw (Jigsaw) to jigsaw More... | |
virtual Jigsaw & | GetParentJigsaw () const |
Returns the parent of this jigsaw (Jigsaw) More... | |
virtual Jigsaw & | GetChildJigsaw () const |
Returns the child of this jigsaw (Jigsaw) More... | |
virtual void | Boost (const TVector3 &B) |
Boosts to different frame (RestFrame) More... | |
virtual void | SetFourVector (const TLorentzVector &V) |
Sets four-vector of this frame. More... | |
virtual TLorentzVector | GetFourVector () const |
Returns four vector of this frame. More... | |
virtual RFCharge | GetCharge () const |
Returns charge of this frames. More... | |
Public Member Functions inherited from RestFrames::RFBase | |
RFBase (const std::string &sname, const std::string &stitle, int key) | |
Standard constructor. More... | |
RFBase () | |
Empty constructor. | |
bool | IsEmpty () const |
Checks whether this is default (empty) instance of class. | |
bool | operator! () const |
Tests whether key is the same as this. | |
void | Print (LogType type) const |
Print information associated with object. | |
virtual std::string | PrintString (LogType type) const |
String of information associated with object. | |
RFKey | GetKey () const |
gets object identification key | |
std::string | GetName () const |
Returns object name. | |
std::string | GetTitle () const |
Returns object title. | |
bool | IsSame (const RFKey &key) const |
Tests whether key is the same as this. | |
bool | IsSame (const RFBase &obj) const |
Tests whether obj is the same as this. | |
bool | operator== (const RFKey &key) const |
Tests whether key is the same as this. | |
bool | operator== (const RFBase &obj) const |
Tests whether obj is the same as this. | |
bool | operator!= (const RFKey &key) const |
Tests whether key is the same as this. | |
bool | operator!= (const RFBase &obj) const |
Tests whether obj is the same as this. | |
Static Public Member Functions | |
static State & | Empty () |
Returns empty state. More... | |
static StateList const & | EmptyList () |
Returns empty StateList. More... | |
Static Public Member Functions inherited from RestFrames::RFBase | |
static RFBase & | Empty () |
Returns empty RFBase. More... | |
Protected Attributes | |
StateType | m_Type |
RFCharge | m_Charge |
ConstRestFrameList | m_Frames |
Protected Attributes inherited from RestFrames::RFBase | |
RFLog | m_Log |
RFBase * | m_This |
Additional Inherited Members | |
Protected Member Functions inherited from RestFrames::RFBase | |
bool | SetBody (bool body) const |
bool | SetMind (bool mind) const |
bool | SetSpirit (bool spirit) const |
virtual bool | IsSoundBody () const |
virtual bool | IsSoundMind () const |
virtual bool | IsSoundSpirit () const |
void | UnSoundBody (const std::string &function) const |
void | UnSoundMind (const std::string &function) const |
void | UnSoundSpirit (const std::string &function) const |
void | AddDependent (RFBase *dep) |
pointer to RFBase object owned by this one | |
Static Protected Attributes inherited from RestFrames::RFBase | |
static const TVector3 | m_Empty3Vector |
static const TLorentzVector | m_Empty4Vector |
RestFrames::State::State | ( | const std::string & | sname, |
const std::string & | stitle | ||
) |
|
virtual |
Adds a list of frames (RestFrame) to this state.
frames | List of frames to be added |
Method for adding a list of RestFrames to this state. Calls AddFrame() method from derivatives independently for each frame in the frames list.
|
virtual |
Boosts to different frame (RestFrame)
B | Boost factor (units: speed of light) |
Method for boosting to a different reference frame
Reimplemented in RestFrames::CombinatoricState.
|
static |
|
static |
|
virtual |
Returns charge of this frames.
Reimplemented in RestFrames::CombinatoricState.
|
virtual |
|
virtual |
Returns four vector of this frame.
Reimplemented in RestFrames::CombinatoricState.
ConstRestFrameList const & RestFrames::State::GetListFrames | ( | ) | const |
int RestFrames::State::GetNFrames | ( | ) | const |
|
virtual |
StateType RestFrames::State::GetType | ( | ) | const |
bool RestFrames::State::IsCombinatoricState | ( | ) | const |
Is this a CombinatoricState? (true/false)
Is this a CombinatoricState? (yes/no)
|
virtual |
Checks if frame of state corresponds to frame
frame | Frame to check |
Reimplemented in RestFrames::VisibleState.
|
virtual |
Checks if frames lists of state corresponds frames
frames | Frames to check |
Reimplemented in RestFrames::VisibleState.
bool RestFrames::State::IsInvisibleState | ( | ) | const |
Is this an InvisibleState? (true/false)
Is this an InvisibleState? (yes/no)
bool RestFrames::State::IsVisibleState | ( | ) | const |
Is this a VisibleState? (true/false)
Is this a VisibleState? (yes/no)
|
virtual |
Sets the child jigsaw (Jigsaw) to jigsaw
jisaw | Jigsaw to be set as child |
Method for connecting a parent jigsaw to its child jigsaw.
Reimplemented in RestFrames::CombinatoricState, and RestFrames::InvisibleState.
|
virtual |
|
virtual |
Sets the parent jigsaw (Jigsaw) to jigsaw
jisaw | Jigsaw to be set as parent |
Method for connecting a child jigsaw to its parent jigsaw.
Reimplemented in RestFrames::CombinatoricState, and RestFrames::InvisibleState.
#include "RestFrames/State.hh"