--- PamCut/CommonDefs.h 2010/03/10 08:54:44 1.7 +++ PamCut/CommonDefs.h 2010/05/28 14:41:16 1.9.2.1 @@ -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. @@ -31,7 +34,7 @@ ///< Code for Calorimeter level1 }; -/*! @enum TOFLAYERS Flags to identify layers. */ +/*! @enum TOFLAYERS Flags to identify TOF layers. */ enum TOFLAYERS { S11 = 1, ///< S11. S12 = 2, ///< S12. @@ -42,6 +45,24 @@ ///< S32. }; +/*! @enum TRKLAYERS Flags to identify Tracker layers. */ +enum TRKLAYERS { + T1X = 1, ///< T1X. + T2X = 2, ///< T2X. + T3X = 4, ///< T3X. + T4X = 8, ///< T4X. + T5X = 16, ///< T5X. + T6X = 32, ///< T6X. + TX = 63, ///< All the X layers + T1Y = 64, ///< T1Y. + T2Y = 128, ///< T2Y. + T3Y = 256, ///< T3Y. + T4Y = 512, ///< T4Y. + T5Y = 1024, ///< T5Y. + T6Y = 2048, ///< T6Y. + TY = 4032 +///< All the Y layers +}; /*! @var TOFNPADLAYER * The number of pads in each ToF layer. S11 corresponds to element 0, S12 to element 1 and so on. */ @@ -50,22 +71,22 @@ /*! @var H_MASS * Proton mass */ -const Float_t H_MASS = 0.93827203; // GeV (pdg.web.cern.ch) +const float H_MASS = 0.93827203; // GeV (pdg.web.cern.ch) /*! @var HE4_MASS * Helium 4 mass */ -const Float_t HE4_MASS = 3.7274; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html) +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_t HE3_MASS = 2.8084; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html) +const float HE3_MASS = 2.8084; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html) /*! @var E_MASS * Electron mass */ -const Float_t E_MASS = 0.000510998; // GeV (from PDG) +const float E_MASS = 0.000510998; // GeV (from PDG) /*! @brief A simple matrix class. *