39 int State::m_class_key = 0;
42 State::State(
const std::string& sname,
43 const std::string& stitle)
44 : RFBase(sname, stitle, State::m_class_key++)
46 m_Log.SetSource(
"State "+
GetName());
47 m_Type = kVanillaState;
48 m_ParentJigsawPtr =
nullptr;
49 m_ChildJigsawPtr =
nullptr;
50 m_P.SetPxPyPzE(0.,0.,0.,0.);
54 State::State() : RFBase() {
55 m_Type = kVanillaState;
56 m_Log.SetSource(
"State "+
GetName());
62 m_ParentJigsawPtr =
nullptr;
63 m_ChildJigsawPtr =
nullptr;
64 m_P.SetPxPyPzE(0.,0.,0.,0.);
68 State& State::Empty(){
69 return VisibleState::Empty();
72 StateList
const& State::EmptyList(){
83 return m_Type == kVisibleState;
88 return m_Type == kInvisibleState;
93 return m_Type == kCombinatoricState;
97 int N = frames.GetN();
98 for(
int i = 0; i < N; i++)
102 ConstRestFrameList
const& State::GetListFrames()
const {
106 int State::GetNFrames()
const {
107 return m_Frames.GetN();
110 bool State::IsFrame(
const RestFrame& frame)
const {
111 if(!frame)
return false;
112 if(m_Frames.GetN() != 1)
return false;
113 return m_Frames[0] == frame;
116 bool State::IsFrames(
const ConstRestFrameList& frames)
const {
117 return m_Frames == frames;
120 void State::SetParentJigsaw(Jigsaw& jigsaw){
124 m_ParentJigsawPtr =
nullptr;
126 m_ParentJigsawPtr = &jigsaw;
129 void State::SetChildJigsaw(Jigsaw& jigsaw){
133 m_ChildJigsawPtr =
nullptr;
135 m_ChildJigsawPtr = &jigsaw;
138 Jigsaw& State::GetParentJigsaw()
const {
139 if(m_ParentJigsawPtr)
140 return *m_ParentJigsawPtr;
142 return Jigsaw::Empty();
145 Jigsaw& State::GetChildJigsaw()
const {
147 return *m_ChildJigsawPtr;
149 return Jigsaw::Empty();
152 void State::Boost(
const TVector3& B){
156 void State::SetFourVector(
const TLorentzVector& V){
160 TLorentzVector State::GetFourVector()
const {
164 RFCharge State::GetCharge()
const {
168 const StateList State::m_EmptyList;
std::string GetName() const
Returns object name.
bool IsCombinatoricState() const
Is this a CombinatoricState? (true/false)
bool IsEmpty() const
Checks whether this is default (empty) instance of class.
virtual void Clear()
Clears RFBase of all connections to other objects.
StateType GetType() const
Returns State (StateType) type.
bool IsInvisibleState() const
Is this an InvisibleState? (true/false)
abstract base class for all State objects
bool IsVisibleState() const
Is this a VisibleState? (true/false)