RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Definition at line 40 of file CombinatoricJigsaw.hh.
Public Member Functions | |
CombinatoricJigsaw (const std::string &sname, const std::string &stitle, int Ncomb, int Nobject) | |
Standard constructor. More... | |
CombinatoricJigsaw () | |
Empty constructor. | |
virtual void | Clear () |
Clears CombinatoricJigsaw from all connections to other objects. | |
virtual void | SetGroup (Group &group=Group::Empty()) |
Sets group (Group) to current jigsaw. More... | |
virtual CombinatoricGroup & | GetGroup () const |
Returns group (Group) associated with this jigsaw. More... | |
virtual void | AddCombFrame (const RestFrame &frame, int i=0) |
Adds a frame (RestFrame) to this jigsaw. More... | |
void | AddCombFrames (const ConstRestFrameList &frames, int i=0) |
Adds a list of frames (RestFrame) to this jigsaw. More... | |
virtual void | AddObjectFrame (const RestFrame &frame, int i=0) |
Adds a frame to this jigsaw. More... | |
void | AddObjectFrames (const ConstRestFrameList &frames, int i=0) |
Adds a frame to this jigsaw. More... | |
void | SetCombCharge (const RFCharge &charge, int i) |
Sets charge of ith combinatoric frame. More... | |
void | SetCombCharge (int charge, int i) |
Sets charge of ith combinatoric frame. More... | |
void | SetCombCharge (int charge_num, int charge_den, int i) |
Sets charge of ith combinatoric frame. More... | |
void | UnsetCombCharge (int i) |
Unsets charge of the ith combinatoric frame. More... | |
void | SetObjectCharge (const RFCharge &charge, int i) |
Sets charge of ith object frame. More... | |
void | SetObjectCharge (int charge, int i) |
Sets charge of ith object frame. More... | |
void | SetObjectCharge (int charge_num, int charge_den, int i) |
Sets charge of ith object frame. More... | |
void | UnsetObjectCharge (int i) |
Unsets charge of the ith object frame. More... | |
void | SetTransverse (bool tran=true, const TVector3 &axis=RestFrame::GetAxis()) |
Sets transverse momentum. More... | |
Public Member Functions inherited from RestFrames::Jigsaw | |
Jigsaw (const std::string &sname, const std::string &stitle, int Nchild, int Ndependancy) | |
Standard constructor. More... | |
Jigsaw () | |
Empty constructor. | |
JigsawType | GetType () const |
Returns jigsaw (JigsawType) type. More... | |
virtual std::string | GetLabel () const |
Returns name of this Jigsaw. More... | |
virtual std::string | PrintString (LogType type) const |
Prints string of information associated with Jigsaw. More... | |
bool | IsInvisibleJigsaw () const |
Is invisible jigsaw? (true/false) | |
bool | IsCombinatoricJigsaw () const |
Is combinatoric jigsaw? (true/false) | |
virtual ConstRestFrameList | GetParentFrames () const |
Returns list of parent frames associated with this jigsaw. More... | |
virtual ConstRestFrameList const & | GetChildFrames (int i) const |
Returns list of child frames associated with this jigsaw. More... | |
virtual ConstRestFrameList const & | GetDependancyFrames (int i) const |
Returns list of frames in which this jigsaw depends on. More... | |
void | RemoveFrame (const RestFrame &frame) |
Removes a frame from this jigsaw. More... | |
void | RemoveFrames (const ConstRestFrameList &frames) |
Removes a list of frames from this jigsaw. 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. | |
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 CombinatoricJigsaw & | Empty () |
Returns empty CombinatoricJigsaw. More... | |
Static Public Member Functions inherited from RestFrames::Jigsaw | |
static Jigsaw & | Empty () |
Returns empty Jigsaw. More... | |
Static Public Member Functions inherited from RestFrames::RFBase | |
static RFBase & | Empty () |
Returns empty RFBase. More... | |
Protected Member Functions | |
virtual bool | IsSoundBody () const |
CombinatoricState & | GetNewChildState () |
virtual bool | InitializeAnalysis () |
virtual bool | InitializeCombinatoric () |
virtual bool | LoopCombinatoric () |
virtual bool | EvaluateMetric (double &metric) const =0 |
virtual bool | AnalyzeEvent () |
int | GetNInputStates () const |
VisibleState & | GetInputState (int i=0) const |
int | GetNinputForChild (int i=0) const |
bool | IsNinputExclForChild (int i=0) const |
bool | IsChargeSetForChild (int i=0) const |
RFCharge | GetChargeForChild (int i=0) const |
bool | IsChargeSetForObject (int i=0) const |
RFCharge | GetChargeForObject (int i=0) const |
void | SetParentState (State &state=State::Empty()) |
CombinatoricState const & | GetParentState () const |
CombinatoricState & | GetChildState (int i) const |
bool | InitializeJigsawExecutionList (JigsawList &exec_jigsaws, JigsawList &todo_jigsaws) |
bool | ExecuteDependancyJigsaws () |
bool | IsTransverse () const |
const TVector3 & | GetTransverseAxis () const |
Protected Member Functions inherited from RestFrames::Jigsaw | |
bool | CanResolve (const State &state) const |
bool | CanResolve (const ConstRestFrameList &frames) const |
bool | DependsOnJigsaw (const Jigsaw &jigsaw) const |
virtual bool | InitializeTree () |
virtual bool | InitializeDependancyJigsaws () |
void | AddChildFrame (const RestFrame &frame, int i=0) |
void | AddDependancyFrame (const RestFrame &frame, int i=0) |
virtual int | GetNChildren () const |
virtual StateList const & | GetChildStates () const |
int | GetNDependancyStates () const |
virtual StateList const & | GetDependancyStates (int i) const |
void | SetParentState () |
virtual void | FillJigsawDependancies (JigsawList &jigsaws) const |
virtual void | FillGroupJigsawDependancies (JigsawList &jigsaws) const |
virtual void | FillGroupJigsawDependants (JigsawList &jigsaws) 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 | 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 | |
JigsawList | m_ExecuteJigsaws |
Protected Attributes inherited from RestFrames::Jigsaw | |
JigsawType | m_Type |
Protected Attributes inherited from RestFrames::RFBase | |
RFLog | m_Log |
RFBase * | m_This |
Additional Inherited Members | |
Static Protected Attributes inherited from RestFrames::RFBase | |
static const TVector3 | m_Empty3Vector |
static const TLorentzVector | m_Empty4Vector |
RestFrames::CombinatoricJigsaw::CombinatoricJigsaw | ( | const std::string & | sname, |
const std::string & | stitle, | ||
int | Ncomb, | ||
int | Nobject | ||
) |
Standard constructor.
sname | Class instance name used for log statements |
stitle | Class instance title used in figures |
N_comb | Number of subgroups a group of frames will be broken into |
N_object | Number of objects that are going to be evaluated to decide which partition will be used |
Definition at line 35 of file CombinatoricJigsaw.cc.
|
virtual |
Adds a frame (RestFrame) to this jigsaw.
frame | Frame to be added |
i | Index where to add frames |
Method to add a frame to this jigsaw on a specific position. Default position is 0.
Definition at line 94 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::AddCombFrames | ( | const ConstRestFrameList & | frames, |
int | i = 0 |
||
) |
Adds a list of frames (RestFrame) to this jigsaw.
frames | Frames to be added |
i | Index where to add frames |
Method to add a list of frames to this jigsaw on a specific position. Default position is 0.
Definition at line 104 of file CombinatoricJigsaw.cc.
|
virtual |
Adds a frame to this jigsaw.
frame | Frame to be added |
i | Index where to add frames |
Method to add a frame to this jigsaw. Mass of frame will be used by this jigsaw to make combinatoric decisions
Definition at line 110 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::AddObjectFrames | ( | const ConstRestFrameList & | frames, |
int | i = 0 |
||
) |
Adds a frame to this jigsaw.
frame | Frame to be added |
i | Index where to add frames |
Method to add a frame to this jigsaw. Mass of frame will be used by this jigsaw to make combinatoric decisions
Definition at line 121 of file CombinatoricJigsaw.cc.
|
static |
Returns empty CombinatoricJigsaw.
Definition at line 57 of file CombinatoricJigsaw.cc.
|
virtual |
Returns group (Group) associated with this jigsaw.
Reimplemented from RestFrames::Jigsaw.
Definition at line 67 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetCombCharge | ( | const RFCharge & | charge, |
int | i | ||
) |
Sets charge of ith combinatoric frame.
charge | Charge to be set |
i | ith combinatoric frame |
Definition at line 127 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetCombCharge | ( | int | charge, |
int | i | ||
) |
Sets charge of ith combinatoric frame.
charge | Charge to be set |
i | ith combinatoric frame |
Definition at line 134 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetCombCharge | ( | int | charge_num, |
int | charge_den, | ||
int | i | ||
) |
Sets charge of ith combinatoric frame.
charge_num | Charge numerator |
charge_den | Charge denominator |
i | ith combinatoric frame |
Definition at line 138 of file CombinatoricJigsaw.cc.
|
virtual |
Sets group (Group) to current jigsaw.
Group | to be set |
Method for setting a group to this jigsaw. Calls Jigsaw::SetGroup()
Reimplemented from RestFrames::Jigsaw.
Definition at line 61 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetObjectCharge | ( | const RFCharge & | charge, |
int | i | ||
) |
Sets charge of ith object frame.
charge | Charge to be set |
i | ith object frame |
Definition at line 147 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetObjectCharge | ( | int | charge, |
int | i | ||
) |
Sets charge of ith object frame.
charge | Charge to be set |
i | ith object frame |
Definition at line 154 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetObjectCharge | ( | int | charge_num, |
int | charge_den, | ||
int | i | ||
) |
Sets charge of ith object frame.
charge_num | Charge numerator |
charge_den | Charge denominator |
i | ith object frame |
Definition at line 158 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::SetTransverse | ( | bool | tran = true , |
const TVector3 & | axis = RestFrame::GetAxis() |
||
) |
Sets transverse momentum.
tran | If true transverse momentum will be set |
axis | Longitudinal axis |
Definition at line 328 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::UnsetCombCharge | ( | int | i | ) |
Unsets charge of the ith combinatoric frame.
i | ith combinatoric frame |
Definition at line 142 of file CombinatoricJigsaw.cc.
void RestFrames::CombinatoricJigsaw::UnsetObjectCharge | ( | int | i | ) |
Unsets charge of the ith object frame.
i | ith object frame |
Definition at line 162 of file CombinatoricJigsaw.cc.