--- PamCut/CommonDefs.h 2010/03/09 18:02:10 1.6 +++ PamCut/CommonDefs.h 2010/03/11 19:17:44 1.9 @@ -14,6 +14,9 @@ /*! @brief The implementations of PamCut::Check() must return this value if the event satisfy the cut*/ const int CUTOK = -1; +const float POSITIVE = 1.0; ///< Positive sign alias +const float NEGATIVE = -1.0; ///< Negative sign alias + /*! @enum DETECTORCODE * The values for each detector correspond to a binary code associated to that detector. * These can be arithmetically added to create a binary code for a set of detectors. @@ -47,6 +50,26 @@ */ const int TOFNPADLAYER[6] = { 8, 6, 2, 2, 3, 3 }; +/*! @var H_MASS + * Proton mass + */ +const float H_MASS = 0.93827203; // GeV (pdg.web.cern.ch) + +/*! @var HE4_MASS + * Helium 4 mass + */ +const float HE4_MASS = 3.7274; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html) + +/*! @var HE3_MASS + * Helium 3 mass + */ +const float HE3_MASS = 2.8084; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html) + +/*! @var E_MASS + * Electron mass + */ +const float E_MASS = 0.000510998; // GeV (from PDG) + /*! @brief A simple matrix class. * * This class defines a matrix built by STL vectors. It is basically a variable-dimension