/[PAMELA software]/PamCut/CommonDefs.h
ViewVC logotype

Diff of /PamCut/CommonDefs.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pam-fi, Wed Jun 10 12:45:46 2009 UTC revision 1.9 by pam-fi, Thu Mar 11 19:17:44 2010 UTC
# Line 14  Line 14 
14  /*! @brief The implementations of PamCut::Check() must return this value if the event satisfy the cut*/  /*! @brief The implementations of PamCut::Check() must return this value if the event satisfy the cut*/
15  const int CUTOK = -1;  const int CUTOK = -1;
16    
17    const float POSITIVE = 1.0; ///< Positive sign alias
18    const float NEGATIVE = -1.0; ///< Negative sign alias
19    
20  /*! @enum DETECTORCODE  /*! @enum DETECTORCODE
21   * The values for each detector correspond to a binary code associated to that detector.   * The values for each detector correspond to a binary code associated to that detector.
22   * These can be arithmetically added to create a binary code for a set of detectors.   * These can be arithmetically added to create a binary code for a set of detectors.
# Line 22  enum DETECTORCODE { Line 25  enum DETECTORCODE {
25    TRK = 1, ///< Code for Tracker    TRK = 1, ///< Code for Tracker
26    CALO = 2, ///< Code for Calorimeter level2    CALO = 2, ///< Code for Calorimeter level2
27    TOF = 4, ///< Code for ToF    TOF = 4, ///< Code for ToF
28    AC = 8, ///< Code for AntiCoincidence    ANT = 8, ///< Code for AntiCoincidence
29    TRIG = 16, ///< Code for Trigger    TRG = 16, ///< Code for Trigger
30    ORB = 32, ///< Code for Orbital Info    ORB = 32, ///< Code for Orbital Info
31    ALL = 63, ///< Sum of all the above codes    DEFAULT = 63, ///< TRK, CALO, TOF, ANT, TRG, ORB
32    CALO_L1 = 64    ND = 64, ///< Code for Neutron Detector
33      CALO_L1 = 128
34  ///< Code for Calorimeter level1  ///< Code for Calorimeter level1
35  };  };
36    
37    /*! @enum TOFLAYERS Flags to identify layers. */
38    enum TOFLAYERS {
39      S11 = 1, ///< S11.
40      S12 = 2, ///< S12.
41      S21 = 4, ///< S21.
42      S22 = 8, ///< S22.
43      S31 = 16, ///< S31.
44      S32 = 32
45    ///< S32.
46    };
47    
48  /*! @var TOFNPADLAYER  /*! @var TOFNPADLAYER
49   * The number of pads in each ToF layer. S11 corresponds to element 0, S12 to element 1 and so on.   * The number of pads in each ToF layer. S11 corresponds to element 0, S12 to element 1 and so on.
50   */   */
51  const int TOFNPADLAYER[6] = { 8, 6, 2, 2, 3, 3 };  const int TOFNPADLAYER[6] = { 8, 6, 2, 2, 3, 3 };
52    
53    /*! @var H_MASS
54     * Proton mass
55     */
56    const float H_MASS = 0.93827203; // GeV (pdg.web.cern.ch)
57    
58    /*! @var HE4_MASS
59     * Helium 4 mass
60     */
61    const float HE4_MASS = 3.7274; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html)
62    
63    /*! @var HE3_MASS
64     * Helium 3 mass
65     */
66    const float HE3_MASS = 2.8084; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html)
67    
68    /*! @var E_MASS
69     * Electron mass
70     */
71    const float E_MASS = 0.000510998; // GeV (from PDG)
72    
73  /*! @brief A simple matrix class.  /*! @brief A simple matrix class.
74   *   *
75   *  This class defines a matrix built by STL vectors. It is basically a variable-dimension   *  This class defines a matrix built by STL vectors. It is basically a variable-dimension
# Line 55  public: Line 90  public:
90     * @param nCols The number of columns     * @param nCols The number of columns
91     * @param elements The initialization value for the matrix elements.     * @param elements The initialization value for the matrix elements.
92     */     */
93    SimpleMatrix(unsigned int nRows, unsigned int nCols, T elements = T()) :    SimpleMatrix(unsigned int nRows = 0, unsigned int nCols = 0, T elements = T()) :
94      _matrix(nRows, std::vector<T>(nCols, elements)) {      _matrix(nRows, std::vector<T>(nCols, elements)) {
95    
96    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23