--- DarthVader/CalorimeterLevel2/inc/CaloLevel1.h 2007/04/20 11:17:46 1.8 +++ DarthVader/CalorimeterLevel2/inc/CaloLevel1.h 2007/11/26 08:01:10 1.13 @@ -28,8 +28,8 @@ // // Mechanical positions (used with option --use-standard-alig) // -#define MECHCTX 121. -#define MECHCTY 122. +#define MECHCTX 120.5 +#define MECHCTY 121.5 #define MECHCTZ -261.81 // // just for testing purpose @@ -78,10 +78,13 @@ // Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip. Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip); ///< returns saved MIP value for the entry number "entry" of the TArrayI. + Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip, Bool_t &saturated); ///< returns saved MIP value for the entry number "entry" of the TArrayI. Float_t qtotpl(Int_t nplane); ///< Returns energy released on plane nplane (where 0<= nplane <= 43, 0 = 1Y, 1 = 1X, 2 = 2Y, 3 = 2X, etc. etc.). Float_t qtotpl(Int_t view, Int_t plane); ///< Returns energy released on view "view" (0 = X, 1 = Y) and plane "plane" ( 0 <= plane <= 21 ). + Float_t qtotpl(Int_t nplane, Bool_t &saturation); ///< Returns energy released on plane nplane (where 0<= nplane <= 43, 0 = 1Y, 1 = 1X, 2 = 2Y, 3 = 2X, etc. etc.). + Float_t qtotpl(Int_t view, Int_t plane, Bool_t &saturation); ///< Returns energy released on view "view" (0 = X, 1 = Y) and plane "plane" ( 0 <= plane <= 21 ). // - void Clear(); + void Clear(Option_t *t=""); // Float_t GetXalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTX;}; ///< return X alignement paramenter Float_t GetYalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTY;}; ///< return Y alignement paramenter @@ -137,7 +140,7 @@ Float_t GetZalig(){ return UZal;}; ///< return Z alignement paramenter // Int_t GetView(){return (fView-1);}; ///< Get strip view [0-1] - Int_t GetPlane(){return (fPlane-1);}; ///< Get strip plane [0-22] + Int_t GetPlane(){return (fPlane-1);}; ///< Get strip plane [0-21] Int_t GetStrip(){return (fStrip-1);}; ///< Get strip 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] @@ -149,7 +152,7 @@ void SetAlig(Float_t XALIG, Float_t YALIG, Float_t ZALIG){ ismech = false; UXal = XALIG; UYal = YALIG; UZal = ZALIG;};///< User defined alignement parameters Bool_t IsMechanicalAlig(){return ismech;}; ///< True is using mechanical alignement parameters, false otherwise // - void Clear(); ///< clear variables + void Clear(Option_t *t=""); ///< clear variables // CaloStrip* GetCaloStrip(){return this;}; ///< returns pointer to this object //