RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
abstract base class for all Jigsaw objects
The Jigsaw class is the base class for all Jigsaws. Jigsaws are a collection of algorithms.
Each Jigsaw resolves unknowns using different constraints and assumptions, with a customizable combination available for studying any process of interest.
Public Member Functions | |
Jigsaw (const std::string &sname, const std::string &stitle, int Nchild, int Ndependancy) | |
Standard constructor. More... | |
Jigsaw () | |
Empty constructor. | |
virtual void | Clear () |
Clears Jigsaw of all connections to other objects. | |
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 void | SetGroup (Group &group=Group::Empty()) |
Sets group (Group) to current jigsaw. More... | |
virtual Group & | GetGroup () const |
Returns group (Group) associated with this jigsaw. More... | |
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 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 |
virtual bool | AnalyzeEvent ()=0 |
bool | CanResolve (const State &state) const |
bool | CanResolve (const ConstRestFrameList &frames) const |
bool | DependsOnJigsaw (const Jigsaw &jigsaw) const |
virtual bool | InitializeTree () |
virtual bool | InitializeAnalysis () |
virtual bool | InitializeDependancyJigsaws () |
virtual bool | InitializeJigsawExecutionList (JigsawList &exec_jigsaws, JigsawList &todo_jigsaws)=0 |
void | AddChildFrame (const RestFrame &frame, int i=0) |
void | AddDependancyFrame (const RestFrame &frame, int i=0) |
virtual int | GetNChildren () const |
virtual State & | GetChildState (int i) const |
virtual StateList const & | GetChildStates () const |
int | GetNDependancyStates () const |
virtual StateList const & | GetDependancyStates (int i) const |
void | SetParentState () |
virtual void | SetParentState (State &state) |
virtual State const & | GetParentState () const |
virtual State & | GetNewChildState ()=0 |
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 | |
JigsawType | m_Type |
Protected Attributes inherited from RestFrames::RFBase | |
RFLog | m_Log |
RFBase * | m_This |
Friends | |
class | TreePlot |
class | Group |
class | LabRecoFrame |
class | InvisibleJigsaw |
class | CombinatoricJigsaw |
Additional Inherited Members | |
Static Protected Attributes inherited from RestFrames::RFBase | |
static const TVector3 | m_Empty3Vector |
static const TLorentzVector | m_Empty4Vector |
RestFrames::Jigsaw::Jigsaw | ( | const std::string & | sname, |
const std::string & | stitle, | ||
int | Nchild, | ||
int | Ndependancy | ||
) |
|
static |
|
virtual |
|
virtual |
|
virtual |
Returns group (Group) associated with this jigsaw.
Reimplemented in RestFrames::CombinatoricJigsaw, and RestFrames::InvisibleJigsaw.
|
inlinevirtual |
Returns name of this Jigsaw.
Reimplemented in RestFrames::MaxProbBreitWignerInvJigsaw, RestFrames::MinMassDiffInvJigsaw, RestFrames::MinMassesCombJigsaw, RestFrames::MinMassesSqInvJigsaw, RestFrames::SetMassInvJigsaw, RestFrames::CombinedCBInvJigsaw, RestFrames::ContraBoostInvJigsaw, RestFrames::MaxProbBreitWignerCombJigsaw, RestFrames::MinMassChi2CombJigsaw, RestFrames::MinMassDiffCombJigsaw, RestFrames::MinMassesSqCombJigsaw, and RestFrames::SetRapidityInvJigsaw.
|
virtual |
|
inline |
|
virtual |
Prints string of information associated with Jigsaw.
Reimplemented from RestFrames::RFBase.
void RestFrames::Jigsaw::RemoveFrame | ( | const RestFrame & | frame | ) |
void RestFrames::Jigsaw::RemoveFrames | ( | const ConstRestFrameList & | frames | ) |
|
virtual |
Sets group (Group) to current jigsaw.
Group | to be set |
Method for setting a group to this jigsaw. If group is set to another jigsaw it is removed from that jigsaw and added to this one.
Reimplemented in RestFrames::CombinatoricJigsaw, and RestFrames::InvisibleJigsaw.
#include "RestFrames/Jigsaw.hh"