/[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.4 by pam-fi, Wed Aug 5 14:06:44 2009 UTC revision 1.8 by pam-fi, Wed Mar 10 09:10:44 2010 UTC
# Line 22  enum DETECTORCODE { Line 22  enum DETECTORCODE {
22    TRK = 1, ///< Code for Tracker    TRK = 1, ///< Code for Tracker
23    CALO = 2, ///< Code for Calorimeter level2    CALO = 2, ///< Code for Calorimeter level2
24    TOF = 4, ///< Code for ToF    TOF = 4, ///< Code for ToF
25    AC = 8, ///< Code for AntiCoincidence    ANT = 8, ///< Code for AntiCoincidence
26    TRIG = 16, ///< Code for Trigger    TRG = 16, ///< Code for Trigger
27    ORB = 32, ///< Code for Orbital Info    ORB = 32, ///< Code for Orbital Info
28    ALL = 63, ///< Sum of all the above codes    DEFAULT = 63, ///< TRK, CALO, TOF, ANT, TRG, ORB
29    CALO_L1 = 64    ND = 64, ///< Code for Neutron Detector
30      CALO_L1 = 128
31  ///< Code for Calorimeter level1  ///< Code for Calorimeter level1
32  };  };
33    
# Line 46  enum TOFLAYERS { Line 47  enum TOFLAYERS {
47   */   */
48  const int TOFNPADLAYER[6] = { 8, 6, 2, 2, 3, 3 };  const int TOFNPADLAYER[6] = { 8, 6, 2, 2, 3, 3 };
49    
50    /*! @var H_MASS
51     * Proton mass
52     */
53    const float H_MASS = 0.93827203; // GeV (pdg.web.cern.ch)
54    
55    /*! @var HE4_MASS
56     * Helium 4 mass
57     */
58    const float HE4_MASS = 3.7274; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html)
59    
60    /*! @var HE3_MASS
61     * Helium 3 mass
62     */
63    const float HE3_MASS = 2.8084; // GeV (http://hyperphysics.phy-astr.gsu.edu/Hbase/pertab/He.html)
64    
65    /*! @var E_MASS
66     * Electron mass
67     */
68    const float E_MASS = 0.000510998; // GeV (from PDG)
69    
70  /*! @brief A simple matrix class.  /*! @brief A simple matrix class.
71   *   *
72   *  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 66  public: Line 87  public:
87     * @param nCols The number of columns     * @param nCols The number of columns
88     * @param elements The initialization value for the matrix elements.     * @param elements The initialization value for the matrix elements.
89     */     */
90    SimpleMatrix(unsigned int nRows, unsigned int nCols, T elements = T()) :    SimpleMatrix(unsigned int nRows = 0, unsigned int nCols = 0, T elements = T()) :
91      _matrix(nRows, std::vector<T>(nCols, elements)) {      _matrix(nRows, std::vector<T>(nCols, elements)) {
92    
93    }    }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.23