/[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.6 by pam-fi, Tue Mar 9 18:02:10 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    
34    /*! @enum TOFLAYERS Flags to identify layers. */
35    enum TOFLAYERS {
36      S11 = 1, ///< S11.
37      S12 = 2, ///< S12.
38      S21 = 4, ///< S21.
39      S22 = 8, ///< S22.
40      S31 = 16, ///< S31.
41      S32 = 32
42    ///< S32.
43    };
44    
45  /*! @var TOFNPADLAYER  /*! @var TOFNPADLAYER
46   * 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.
47   */   */
# Line 55  public: Line 67  public:
67     * @param nCols The number of columns     * @param nCols The number of columns
68     * @param elements The initialization value for the matrix elements.     * @param elements The initialization value for the matrix elements.
69     */     */
70    SimpleMatrix(unsigned int nRows, unsigned int nCols, T elements = T()) :    SimpleMatrix(unsigned int nRows = 0, unsigned int nCols = 0, T elements = T()) :
71      _matrix(nRows, std::vector<T>(nCols, elements)) {      _matrix(nRows, std::vector<T>(nCols, elements)) {
72    
73    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.23