--- calo/flight/CaloProfile/inc/CaloProfile.h 2009/08/13 15:56:38 1.9 +++ calo/flight/CaloProfile/inc/CaloProfile.h 2010/05/13 13:55:32 1.16 @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -57,6 +58,8 @@ UInt_t atime; // Float_t estrip[2][22][96]; + TString suf; + Bool_t usepl18x; // public: @@ -80,7 +83,13 @@ void Print(); void Print(Option_t *option){Print();}; // - ClassDef(CaloLat,1); + + void UsePlane18X(Bool_t use){usepl18x = use;}; + // + // + void SetSuffix(TString suffix){ suf = suffix;}; + // + ClassDef(CaloLat,3); }; /** @@ -107,6 +116,7 @@ Bool_t sel; Bool_t cont; Int_t mask18b; + Bool_t usepl18x; // Float_t chi2; Float_t ndf; @@ -134,18 +144,24 @@ // Bool_t xyaverage; // + Bool_t heavytail; + Float_t letmax; + Float_t lmipth; + // Float_t eplane[2][22]; // CaloLevel2 *clp; // - Float_t Evaluate(TString s, Float_t max); // expression must be of the form "5*t"."t+10","t-(4*t)"... + Float_t Evaluate(TString s, Float_t tmax, Float_t X0pl ); // expression must be of the form "tmax+2.*X0pl", "5*tmax"."tmax+10","tmax-(4*tmax)+3.*X0pl"... // + TString suf; public: // // void Fit(); void Fit(Bool_t draw); + TF1 *GetFit(); // // Double_t ccurve(Double_t *t, Double_t *par); // @@ -165,7 +181,10 @@ Float_t Get_asymm(){this->Fit(); return asymm;}; Float_t Get_exptmax(){this->Process(); return etmax;}; Float_t Get_X0pl(){this->Process(); return X0pl;}; - Int_t Get_fitresult(){this->Fit(); return fitresult;}; + // + Float_t Get_letmax(){ return letmax;}; + Float_t Get_lmipth(){ return lmipth;}; + Int_t Get_fitresult(){this->Fit(); return fitresult;}; // void ForceNextFit(){atime=0;fatime=0;}; void Draw(); @@ -176,7 +195,10 @@ ~CaloLong(){ Delete(); }; // void SetDebug(Bool_t d){ debug=d; }; - void UsePlane18X(){ no18x=false; }; + // void UsePlane18X(){ no18x=false; }; + + void UsePlane18X(Bool_t use="false"){usepl18x = use; no18x=!use;}; + // // void UseAverage(){ xyaverage = true;}; void UseAllMeas(){ xyaverage = false;}; @@ -198,9 +220,15 @@ void SetLowerLimit(TString sl){ slmax = sl; };// expression must be of the form "5*t"."t+10","t-(4*t)"... where t will be replaced by the fitted maximum (X0) void SetUpperLimit(TString su){ sumax = su; };// expression must be of the form "5*t"."t+10","t-(4*t)"... where t will be replaced by the fitted maximum (X0) // + void Setletmax(Float_t l){ letmax = l;}; + void Setlmipth(Float_t l){ lmipth = l;}; + void HeavyTail(Bool_t b){ heavytail=b;}; + // Float_t GetLowerLimit(){ return lmax;}; Float_t GetUpperLimit(){ return umax;}; // + void SetSuffix(TString suffix){ suf = suffix;}; + // void Clear(); void Clear(Option_t *option){Clear();}; void Delete(); @@ -210,7 +238,7 @@ void Print(); void Print(Option_t *option){Print();}; // - ClassDef(CaloLong,2); + ClassDef(CaloLong,4); }; /** @@ -232,7 +260,9 @@ Float_t estrip[23][96][96]; Int_t smax[23]; Int_t smay[23]; + Bool_t usepl18x; // + TString suf; public: // @@ -251,11 +281,16 @@ void Delete(); void Delete(Option_t *option){Delete();}; // + void SetSuffix(TString suffix){ suf = suffix;}; + + void UsePlane18X(Bool_t use){usepl18x = use;}; + // + // void Process(); ///< Process data void Print(); void Print(Option_t *option){Print();}; // - ClassDef(Calo2D,1); + ClassDef(Calo2D,3); }; #endif