RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
abstract base class for all Group objects
The Group class is a very important class, its main function is to group separately the invisible objects and indistiguisable visible objects.
Public Member Functions | |
Group (const std::string &sname, const std::string &stitle) | |
Standard constructor. More... | |
Group () | |
Empty constructor. | |
virtual void | Clear () |
Clears Group of all connections to other objects. | |
bool | IsInvisibleGroup () const |
Is this an InvisibleGroup? (true/false) | |
bool | IsCombinatoricGroup () const |
Is this a CombinatoricGroup? (true/false) | |
GroupType | GetType () const |
Returns group (GroupType) type. More... | |
virtual void | AddFrame (RestFrame &frame) |
Adds a frame (RestFrame) to this group. More... | |
virtual void | AddFrames (const RestFrameList &frames) |
Adds a list of RestFrames to this group. More... | |
virtual void | AddJigsaw (Jigsaw &jigsaw) |
Adds a jigsaw (Jigsaw) to current group. More... | |
virtual void | RemoveFrame (RestFrame &frame) |
Removes a frame (RestFrame) from this group. More... | |
void | RemoveFrames () |
Removes all frames (RestFrame) from this group. More... | |
void | RemoveJigsaw (Jigsaw &jigsaw) |
Removes a jigsaw (Jigsaw) from this group. More... | |
void | RemoveJigsaws () |
Removes all jigsaws (Jigsaw) from current group. More... | |
bool | ContainsFrame (const RestFrame &frame) const |
Is frame (RestFrame) contained in this group? (true/false) More... | |
int | GetNFrames () const |
Returns the number of frames (RestFrame) contained in this group. More... | |
const RestFrameList & | GetListFrames () const |
Returns a list of frames (RestFrame) contained in this group. More... | |
const JigsawList & | GetListJigsaws () const |
Returns a list of jigsaws (Jigsaw) contained in this group. 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 Group & | Empty () |
Returns empty Group. More... | |
Static Public Member Functions inherited from RestFrames::RFBase | |
static RFBase & | Empty () |
Returns empty RFBase. More... | |
Protected Member Functions | |
virtual bool | InitializeAnalysis () |
virtual bool | ClearEvent ()=0 |
virtual bool | AnalyzeEvent ()=0 |
virtual State & | InitializeParentState ()=0 |
virtual State & | GetParentState () const |
int | GetNChildStates () const |
virtual State & | GetChildState (int i) const |
State & | GetChildState (const RestFrame &frame) const |
StateList | GetChildStates (const RestFrameList &frames) const |
RestFrame const & | GetLabFrame () const |
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 | |
Protected Attributes | |
GroupType | m_Type |
State * | m_GroupStatePtr |
Protected Attributes inherited from RestFrames::RFBase | |
RFLog | m_Log |
RFBase * | m_This |
Friends | |
class | TreePlot |
class | ReconstructionFrame |
class | LabRecoFrame |
class | Jigsaw |
Additional Inherited Members | |
Static Protected Attributes inherited from RestFrames::RFBase | |
static const TVector3 | m_Empty3Vector |
static const TLorentzVector | m_Empty4Vector |
RestFrames::Group::Group | ( | const std::string & | sname, |
const std::string & | stitle | ||
) |
|
virtual |
Adds a frame (RestFrame) to this group.
frame | RestFrame to be added |
Method for adding a RestFrame to this group. Links frame's group to this group
Reimplemented in RestFrames::InvisibleGroup, and RestFrames::CombinatoricGroup.
|
virtual |
Adds a list of RestFrames to this group.
frames | List of RestFrames to be added |
Method for adding a list of RestFrames to this group. Calls AddFrame() independently for each frame of the frames list.
|
virtual |
Adds a jigsaw (Jigsaw) to current group.
jigsaw | Jigsaw to be added |
Method for adding a jigsaw to a group. If jigsaw belongs to another group, it is removed from that group and added to this one.
Reimplemented in RestFrames::InvisibleGroup, and RestFrames::CombinatoricGroup.
bool RestFrames::Group::ContainsFrame | ( | const RestFrame & | frame | ) | const |
|
static |
const RestFrameList & RestFrames::Group::GetListFrames | ( | ) | const |
const JigsawList & RestFrames::Group::GetListJigsaws | ( | ) | const |
int RestFrames::Group::GetNFrames | ( | ) | const |
|
inline |
|
virtual |
Removes a frame (RestFrame) from this group.
frame | Frame to be removed |
Method for removing the RestFrame frame from this group.
Reimplemented in RestFrames::CombinatoricGroup.
void RestFrames::Group::RemoveFrames | ( | ) |
Removes all frames (RestFrame) from this group.
Method for removing all frames from this group. Calls RemoveFrame() independently for each frame contained in this group.
void RestFrames::Group::RemoveJigsaw | ( | Jigsaw & | jigsaw | ) |
void RestFrames::Group::RemoveJigsaws | ( | ) |
Removes all jigsaws (Jigsaw) from current group.
Method for removing all jigsaws from this group. Calls RemoveJigsaw() independently for each jigsaw contained in this group.
#include "RestFrames/Group.hh"