| 30 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
| 31 |
#include <TF1.h> |
#include <TF1.h> |
| 32 |
#include <TGraphErrors.h> |
#include <TGraphErrors.h> |
| 33 |
|
#include <TMinuit.h> |
| 34 |
|
|
| 35 |
#include <PamLevel2.h> |
#include <PamLevel2.h> |
| 36 |
|
|
| 59 |
// |
// |
| 60 |
Float_t estrip[2][22][96]; |
Float_t estrip[2][22][96]; |
| 61 |
TString suf; |
TString suf; |
| 62 |
|
Bool_t usepl18x; |
| 63 |
// |
// |
| 64 |
|
|
| 65 |
public: |
public: |
| 83 |
void Print(); |
void Print(); |
| 84 |
void Print(Option_t *option){Print();}; |
void Print(Option_t *option){Print();}; |
| 85 |
// |
// |
| 86 |
|
|
| 87 |
|
void UsePlane18X(Bool_t use){usepl18x = use;}; |
| 88 |
|
// |
| 89 |
|
// |
| 90 |
void SetSuffix(TString suffix){ suf = suffix;}; |
void SetSuffix(TString suffix){ suf = suffix;}; |
| 91 |
// |
// |
| 92 |
ClassDef(CaloLat,2); |
ClassDef(CaloLat,3); |
| 93 |
}; |
}; |
| 94 |
|
|
| 95 |
/** |
/** |
| 116 |
Bool_t sel; |
Bool_t sel; |
| 117 |
Bool_t cont; |
Bool_t cont; |
| 118 |
Int_t mask18b; |
Int_t mask18b; |
| 119 |
|
Bool_t usepl18x; |
| 120 |
// |
// |
| 121 |
Float_t chi2; |
Float_t chi2; |
| 122 |
Float_t ndf; |
Float_t ndf; |
| 144 |
// |
// |
| 145 |
Bool_t xyaverage; |
Bool_t xyaverage; |
| 146 |
// |
// |
| 147 |
|
Bool_t heavytail; |
| 148 |
|
Float_t letmax; |
| 149 |
|
Float_t lmipth; |
| 150 |
|
// |
| 151 |
Float_t eplane[2][22]; |
Float_t eplane[2][22]; |
| 152 |
// |
// |
| 153 |
CaloLevel2 *clp; |
CaloLevel2 *clp; |
| 161 |
// |
// |
| 162 |
void Fit(); |
void Fit(); |
| 163 |
void Fit(Bool_t draw); |
void Fit(Bool_t draw); |
| 164 |
|
TF1 *GetFit(); |
| 165 |
// |
// |
| 166 |
// Double_t ccurve(Double_t *t, Double_t *par); |
// Double_t ccurve(Double_t *t, Double_t *par); |
| 167 |
// |
// |
| 181 |
Float_t Get_asymm(){this->Fit(); return asymm;}; |
Float_t Get_asymm(){this->Fit(); return asymm;}; |
| 182 |
Float_t Get_exptmax(){this->Process(); return etmax;}; |
Float_t Get_exptmax(){this->Process(); return etmax;}; |
| 183 |
Float_t Get_X0pl(){this->Process(); return X0pl;}; |
Float_t Get_X0pl(){this->Process(); return X0pl;}; |
| 184 |
Int_t Get_fitresult(){this->Fit(); return fitresult;}; |
// |
| 185 |
|
Float_t Get_letmax(){ return letmax;}; |
| 186 |
|
Float_t Get_lmipth(){ return lmipth;}; |
| 187 |
|
Int_t Get_fitresult(){this->Fit(); return fitresult;}; |
| 188 |
// |
// |
| 189 |
void ForceNextFit(){atime=0;fatime=0;}; |
void ForceNextFit(){atime=0;fatime=0;}; |
| 190 |
void Draw(); |
void Draw(); |
| 195 |
~CaloLong(){ Delete(); }; |
~CaloLong(){ Delete(); }; |
| 196 |
// |
// |
| 197 |
void SetDebug(Bool_t d){ debug=d; }; |
void SetDebug(Bool_t d){ debug=d; }; |
| 198 |
void UsePlane18X(){ no18x=false; }; |
// void UsePlane18X(){ no18x=false; }; |
| 199 |
|
|
| 200 |
|
void UsePlane18X(Bool_t use="false"){usepl18x = use; no18x=!use;}; |
| 201 |
|
// |
| 202 |
// |
// |
| 203 |
void UseAverage(){ xyaverage = true;}; |
void UseAverage(){ xyaverage = true;}; |
| 204 |
void UseAllMeas(){ xyaverage = false;}; |
void UseAllMeas(){ xyaverage = false;}; |
| 220 |
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 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) |
| 221 |
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 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) |
| 222 |
// |
// |
| 223 |
|
void Setletmax(Float_t l){ letmax = l;}; |
| 224 |
|
void Setlmipth(Float_t l){ lmipth = l;}; |
| 225 |
|
void HeavyTail(Bool_t b){ heavytail=b;}; |
| 226 |
|
// |
| 227 |
Float_t GetLowerLimit(){ return lmax;}; |
Float_t GetLowerLimit(){ return lmax;}; |
| 228 |
Float_t GetUpperLimit(){ return umax;}; |
Float_t GetUpperLimit(){ return umax;}; |
| 229 |
// |
// |
| 238 |
void Print(); |
void Print(); |
| 239 |
void Print(Option_t *option){Print();}; |
void Print(Option_t *option){Print();}; |
| 240 |
// |
// |
| 241 |
ClassDef(CaloLong,3); |
ClassDef(CaloLong,4); |
| 242 |
}; |
}; |
| 243 |
|
|
| 244 |
/** |
/** |
| 260 |
Float_t estrip[23][96][96]; |
Float_t estrip[23][96][96]; |
| 261 |
Int_t smax[23]; |
Int_t smax[23]; |
| 262 |
Int_t smay[23]; |
Int_t smay[23]; |
| 263 |
|
Bool_t usepl18x; |
| 264 |
// |
// |
| 265 |
TString suf; |
TString suf; |
| 266 |
|
|
| 282 |
void Delete(Option_t *option){Delete();}; |
void Delete(Option_t *option){Delete();}; |
| 283 |
// |
// |
| 284 |
void SetSuffix(TString suffix){ suf = suffix;}; |
void SetSuffix(TString suffix){ suf = suffix;}; |
| 285 |
|
|
| 286 |
|
void UsePlane18X(Bool_t use){usepl18x = use;}; |
| 287 |
|
// |
| 288 |
// |
// |
| 289 |
void Process(); ///< Process data |
void Process(); ///< Process data |
| 290 |
void Print(); |
void Print(); |
| 291 |
void Print(Option_t *option){Print();}; |
void Print(Option_t *option){Print();}; |
| 292 |
// |
// |
| 293 |
ClassDef(Calo2D,2); |
ClassDef(Calo2D,3); |
| 294 |
}; |
}; |
| 295 |
|
|
| 296 |
#endif |
#endif |