/[PAMELA software]/DarthVader/CalorimeterLevel2/inc/CaloLevel1.h
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/inc/CaloLevel1.h

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

revision 1.13 by mocchiut, Mon Nov 26 08:01:10 2007 UTC revision 1.18 by mocchiut, Fri Jun 6 14:18:12 2014 UTC
# Line 22  Line 22 
22  //  //
23  // new param using em showers (E. Taddei paramters)  // new param using em showers (E. Taddei paramters)
24  //  //
25    //#define CTX 120.6
26    //#define CTY 122.3
27    //#define CTZ -263.1
28    //
29    // new param using inclined protons and looking for Z alignment
30    //
31  #define CTX 120.6  #define CTX 120.6
32  #define CTY 122.3  #define CTY 122.3
33  #define CTZ -263.1  #define CTZ -261.596
34  //  //
35  // Mechanical positions (used with option --use-standard-alig)  // Mechanical positions (used with option --use-standard-alig)
36  //  //
# Line 73  class CaloLevel1 : public TObject { Line 79  class CaloLevel1 : public TObject {
79      //      //
80      TArrayI estrip; ///< MIP values for each strip with energy > emin coded with view plane and strip number. NOTICE: precision is limited to the 5 most significative ciphers      TArrayI estrip; ///< MIP values for each strip with energy > emin coded with view plane and strip number. NOTICE: precision is limited to the 5 most significative ciphers
81      //      //
82      CaloLevel1* GetCaloLevel1(){return this;}; ///< returns pointer to this object      CaloLevel1* GetCaloLevel1(){return this;} ///< returns pointer to this object
83      //      //
84      //      //
85      Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip.      Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip.
# Line 86  class CaloLevel1 : public TObject { Line 92  class CaloLevel1 : public TObject {
92      //      //
93      void Clear(Option_t *t="");      void Clear(Option_t *t="");
94      //      //
95      Float_t GetXalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTX;}; ///< return X alignement paramenter      Float_t GetXalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTX;} ///< return X alignement paramenter
96      Float_t GetYalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTY;}; ///< return Y alignement paramenter      Float_t GetYalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTY;} ///< return Y alignement paramenter
97      Float_t GetZalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTZ;}; ///< return Z alignement paramenter      Float_t GetZalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTZ;} ///< return Z alignement paramenter
98      //      //
99      CaloLevel1(); ///< Constructor.      CaloLevel1(); ///< Constructor.
100      //      //
# Line 115  private: Line 121  private:
121      static Float_t UYal; ///< used Y alignement parameter      static Float_t UYal; ///< used Y alignement parameter
122      static Float_t UZal; ///< used Z alignement parameter      static Float_t UZal; ///< used Z alignement parameter
123      static Bool_t paramload;      static Bool_t paramload;
124     //      Bool_t debug;
125        //
126        
127  public:  public:
128      //      //
129      // METHODS      // METHODS
# Line 129  public: Line 136  public:
136      //      //
137      CaloStrip(CaloLevel1 *c1, Bool_t usemechanicalalignement); ///< Constructor.      CaloStrip(CaloLevel1 *c1, Bool_t usemechanicalalignement); ///< Constructor.
138      //      //
139      Float_t GetE(){return fE;}; ///< Get energy in MIP for setted strip      Float_t GetE(){return fE;} ///< Get energy in MIP for setted strip
140      //      //
141      Float_t GetX(){return fX;}; ///< Get X strip position      Float_t GetX(){return fX;} ///< Get X strip position
142      Float_t GetY(){return fY;}; ///< Get Y strip position      Float_t GetY(){return fY;} ///< Get Y strip position
143      Float_t GetZ(){return fZ;}; /// Get Z strip position      Float_t GetZ(){return fZ;} /// Get Z strip position
144      //      //
145      Float_t GetXalig(){ return UXal;}; ///< return X alignement paramenter      Float_t GetXalig(){ return UXal;} ///< return X alignement paramenter
146      Float_t GetYalig(){ return UYal;}; ///< return Y alignement paramenter      Float_t GetYalig(){ return UYal;} ///< return Y alignement paramenter
147      Float_t GetZalig(){ return UZal;}; ///< return Z alignement paramenter      Float_t GetZalig(){ return UZal;} ///< return Z alignement paramenter
148      //      //
149      Int_t GetView(){return (fView-1);}; ///< Get strip view [0-1]      Int_t GetView(){return (fView-1);} ///< Get strip view [0-1]
150      Int_t GetPlane(){return (fPlane-1);}; ///< Get strip plane [0-21]      Int_t GetPlane(){return (fPlane-1);} ///< Get strip plane [0-21]
151      Int_t GetStrip(){return (fStrip-1);}; ///< Get strip number [0-95]      Int_t GetStrip(){return (fStrip-1);} ///< Get strip number [0-95]
152        //
153        Int_t GetSiSensor(); ///< Return the sensor number, -1 means dead area
154      //      //
155      void Set(Int_t view, Int_t plane, Int_t strip); ///< Set strip giving view [0-1], plane [0-22] and number [0-95]      void Set(Int_t view, Int_t plane, Int_t strip); ///< Set strip giving view [0-1], plane [0-22] and number [0-95]
156      //      //
157      void Set(Float_t X, Float_t Y, Float_t Z); ///< Set strip giving position in PAMELA ref sys [cm]      void Set(Float_t X, Float_t Y, Float_t Z); ///< Set strip giving position in PAMELA ref sys [cm]
158      //      //
159      void UseMechanicalAlig(){ ismech = true; UXal = MECHCTX; UYal = MECHCTY; UZal = MECHCTZ;}; ///< Tells CaloStrip to use mechanical alignement parameters      void UseMechanicalAlig(){ ismech = true; UXal = MECHCTX; UYal = MECHCTY; UZal = MECHCTZ;} ///< Tells CaloStrip to use mechanical alignement parameters
160      void UseStandardAlig(); ///< Tells CaloStrip to use default parameters it will find querying the DB. If connection fails uses parameters hard-coded in this file      void UseStandardAlig(); ///< Tells CaloStrip to use default parameters it will find querying the DB. If connection fails uses parameters hard-coded in this file
161      void SetAlig(Float_t XALIG, Float_t YALIG, Float_t ZALIG){ ismech = false; UXal = XALIG; UYal = YALIG; UZal = ZALIG;};///< User defined alignement parameters      void SetAlig(Float_t XALIG, Float_t YALIG, Float_t ZALIG){ ismech = false; UXal = XALIG; UYal = YALIG; UZal = ZALIG;}///< User defined alignement parameters
162      Bool_t IsMechanicalAlig(){return ismech;}; ///< True is using mechanical alignement parameters, false otherwise      Bool_t IsMechanicalAlig(){return ismech;} ///< True is using mechanical alignement parameters, false otherwise
163        //
164        void SetDebug(Bool_t dbg){debug=dbg;} ///< Turn on/off debug flag [default = false]
165      //      //
166      void Clear(Option_t *t=""); ///< clear variables      void Clear(Option_t *t=""); ///< clear variables
167      //      //
168      CaloStrip* GetCaloStrip(){return this;}; ///< returns pointer to this object      CaloStrip* GetCaloStrip(){return this;} ///< returns pointer to this object
169      //      //
170      ClassDef(CaloStrip,2);      ClassDef(CaloStrip,3);
171      //      //
172  };  };
173    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.23