--- calo/flight/CaloProfile/inc/CaloProfile.h 2008/09/22 20:08:10 1.3 +++ calo/flight/CaloProfile/inc/CaloProfile.h 2009/08/11 14:23:08 1.6 @@ -110,9 +110,15 @@ Int_t fitresult; // Bool_t no18x; + Bool_t maskXE; + Bool_t maskYE; + Bool_t maskXO; + Bool_t maskYO; // Float_t eplane[2][22]; // + CaloLevel2 *clp; + // public: // @@ -122,6 +128,8 @@ // // Double_t ccurve(Double_t *t, Double_t *par); // + void SetCaloLevel2Pointer(CaloLevel2 *cp){ clp = cp;}; + // Float_t Get_E0(){this->Fit(); return E0;}; Float_t Get_a(){this->Fit(); return a;}; Float_t Get_b(){this->Fit(); return b;}; @@ -137,6 +145,7 @@ Float_t Get_X0pl(){this->Process(); return X0pl;}; Int_t Get_fitresult(){this->Fit(); return fitresult;}; // + void ForceNextFit(){atime=0;fatime=0;}; void Draw(); void Draw(Int_t); // @@ -147,12 +156,17 @@ void SetDebug(Bool_t d){ debug=d; }; void UsePlane18X(){ no18x=false; }; // + void MaskSection(TString); + void UnMaskSection(TString); + void UnMaskSections(); void Selection(){sel = true; cont = false;}; ///< Set selection mode: planes from 1 to 22-N are used, plane 18 - N is masked if "emulate18" variable is true (DEFAULT); void Contamination(){sel = false; cont = true;}; ///< Set contamination mode: planes from N to 22 are used. void SetNoWpreSampler(Int_t n); void SetNoWcalo(Int_t n); + void SplitInto(Int_t NoWpreSampler, Int_t NoWcalo); Int_t GetNoWpreSampler(){return N;}; ///< Get the number of W planes used as presampler. Int_t GetNoWcalo(){return NC;}; ///< Get the number of W planes used as calorimeter. + void SetEnergies(Float_t myene[][22]); // void Clear(); void Clear(Option_t *option){Clear();};