RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Go to the documentation of this file.
37 #include <TLorentzVector.h>
43 namespace RestFrames {
45 static const double RF_tol = 1e-6;
64 RFBase(
const std::string& sname,
const std::string& stitle,
int key);
139 bool SetBody(
bool body)
const;
140 bool SetMind(
bool mind)
const;
141 bool SetSpirit(
bool spirit)
const;
143 virtual bool IsSoundBody()
const;
144 virtual bool IsSoundMind()
const;
145 virtual bool IsSoundSpirit()
const;
147 void UnSoundBody(
const std::string&
function)
const;
148 void UnSoundMind(
const std::string&
function)
const;
149 void UnSoundSpirit(
const std::string&
function)
const;
156 static const TVector3 m_Empty3Vector;
157 static const TLorentzVector m_Empty4Vector;
166 mutable bool m_Spirit;
168 std::vector<RFBase*> m_Owns;
172 static int m_BodyCount;
173 static int m_MindCount;
174 static int m_SpiritCount;
176 static int m_WarningTolerance;
179 double GetP(
double Mp,
double Mc1,
double Mc2);
182 #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
183 # define RF_FUNCTION __PRETTY_FUNCTION__
184 #elif defined(__DMC__) && (__DMC__ >= 0x810)
185 # define RF_FUNCTION __PRETTY_FUNCTION__
186 #elif defined(__FUNCSIG__)
187 # define RF_FUNCTION __FUNCSIG__
188 #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
189 # define RF_FUNCTION __FUNCTION__
190 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
191 # define RF_FUNCTION __FUNC__
192 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
193 # define RF_FUNCTION __func__
194 #elif defined(__cplusplus) && (__cplusplus >= 201103)
195 # define RF_FUNCTION __func__
197 # define RF_FUNCTION "(unknown)"
208 void SetWarningTolerance(
int NMAX = -1);
209 void TooManyBodies(
const RFBase& obj);
210 void TooManyMinds(
const RFBase& obj);
211 void TooManySpirits(
const RFBase& obj);
static RFBase & Empty()
Returns empty RFBase.
bool IsEmpty() const
Checks whether this is default (empty) instance of class.
bool IsSame(const RFKey &key) const
Tests whether key is the same as this.
Base class for all RestFrame package objects.
RFKey GetKey() const
gets object identification key
void Print(LogType type) const
Print information associated with object.
LogType
Type of Log Message.
std::string GetName() const
Returns object name.
std::string GetTitle() const
Returns object title.
virtual void Clear()
Clears RFBase of all connections to other objects.
bool operator!() const
Tests whether key is the same as this.
friend void SetWarningTolerance(int NMAX)
Sets the tolerance for the number of RestFrames warnings.
void AddDependent(RFBase *dep)
pointer to RFBase object owned by this one
bool operator!=(const RFKey &key) const
Tests whether key is the same as this.
bool operator==(const RFKey &key) const
Tests whether key is the same as this.
virtual std::string PrintString(LogType type) const
String of information associated with object.
RFBase()
Empty constructor.