RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Definition at line 43 of file CombinatoricState.hh.
Public Member Functions | |
CombinatoricState (const std::string &sname, const std::string &stitle) | |
Standard constructor. More... | |
CombinatoricState () | |
Empty constructor. | |
virtual void | Clear () |
Clears CombinatoricState of all connections to other objects. | |
virtual void | AddFrame (const RestFrame &frame) |
Adds a frame (RestFrame) to this state. More... | |
virtual void | SetParentJigsaw (Jigsaw &jigsaw) |
Sets the parent jigsaw (Jigsaw) to jigsaw More... | |
virtual void | SetChildJigsaw (Jigsaw &jigsaw) |
Sets the child jigsaw (Jigsaw) to jigsaw More... | |
virtual void | Boost (const TVector3 &B) |
Boosts to different frame (RestFrame) More... | |
virtual TLorentzVector | GetFourVector () const |
Returns four-vector of current frame. More... | |
virtual RFCharge | GetCharge () const |
Returns charge of current frame. More... | |
Methods that imply elements | |
Note that elements are just visible states. The notation "elements" is used since these visible states correspond to the elements of a set | |
void | ClearElements () |
Clears all elements associated with this state. | |
void | AddElement (VisibleState &state) |
Adds element to this state. More... | |
void | AddElements (const VisibleStateList &states) |
Adds elements to this state. More... | |
VisibleStateList const & | GetElements () const |
Returns elements of this state. More... | |
int | GetNElements () const |
Returns number of elements in this state. More... | |
bool | ContainsElement (const State &state) const |
Is state element contained in this state (true/false) | |
bool | ContainsElement (const RFKey &key) const |
Is element with key contained in this state (true/false) | |
VisibleState const & | GetElement (const RFKey &key) const |
Returns element with key in this state. More... | |
Public Member Functions inherited from RestFrames::State | |
State (const std::string &sname, const std::string &stitle) | |
Standard constructor. More... | |
State () | |
Empty constructor. | |
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 | 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 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 | SetFourVector (const TLorentzVector &V) |
Sets four-vector of this frame. 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 CombinatoricState & | Empty () |
Returns empty CombinatoricState. More... | |
Static Public Member Functions inherited from RestFrames::State | |
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 | |
VisibleStateList | m_Elements |
Protected Attributes inherited from RestFrames::State | |
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::CombinatoricState::CombinatoricState | ( | const std::string & | sname, |
const std::string & | stitle | ||
) |
Standard constructor.
sname | Class instance name used for log statements |
stitle | Class instance title used in figures |
Definition at line 41 of file CombinatoricState.cc.
void RestFrames::CombinatoricState::AddElement | ( | VisibleState & | state | ) |
Adds element to this state.
state | Element to be added |
Definition at line 87 of file CombinatoricState.cc.
void RestFrames::CombinatoricState::AddElements | ( | const VisibleStateList & | states | ) |
Adds elements to this state.
states | List of elements to be added |
Definition at line 92 of file CombinatoricState.cc.
|
virtual |
Adds a frame (RestFrame) to this state.
frame | Frame to be added |
Implements RestFrames::State.
Definition at line 61 of file CombinatoricState.cc.
|
virtual |
Boosts to different frame (RestFrame)
B | Boost factor (units: speed of light) |
Method for boosting to a different reference frame
Reimplemented from RestFrames::State.
Definition at line 117 of file CombinatoricState.cc.
|
static |
Returns empty CombinatoricState.
Definition at line 52 of file CombinatoricState.cc.
|
virtual |
Returns charge of current frame.
Reimplemented from RestFrames::State.
Definition at line 126 of file CombinatoricState.cc.
VisibleState const & RestFrames::CombinatoricState::GetElement | ( | const RFKey & | key | ) | const |
Returns element with key in this state.
key | Unique ID of element |
Definition at line 113 of file CombinatoricState.cc.
VisibleStateList const & RestFrames::CombinatoricState::GetElements | ( | ) | const |
Returns elements of this state.
Definition at line 97 of file CombinatoricState.cc.
|
virtual |
Returns four-vector of current frame.
Reimplemented from RestFrames::State.
Definition at line 122 of file CombinatoricState.cc.
int RestFrames::CombinatoricState::GetNElements | ( | ) | const |
Returns number of elements in this state.
Definition at line 101 of file CombinatoricState.cc.
|
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. Calls State::SetChildJigsaw()
Reimplemented from RestFrames::State.
Definition at line 77 of file CombinatoricState.cc.
|
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. Calls State::SetParentJigsaw()
Reimplemented from RestFrames::State.
Definition at line 71 of file CombinatoricState.cc.