15 #include "Riostream.h"
27 Bool_t LaddersInGlobal;
35 Double_t TpcLengthCut;
37 fOutFileName =
"Out.root";
39 cout << f->GetName() <<
" file hase been found" << endl;
40 fOutFileName = f->GetName();
41 fOutFileName.ReplaceAll(
"/",
"_");
42 fOutFileName.ReplaceAll(
".root",
"");
43 fOutFileName +=
"Out.root";
44 TTree *tree = (TTree*) f->Get(
"T");
46 else cout <<
"no TTree found" << endl;
49 TT(TTree *tree=0) :
TBase(tree) {
53 TCollection *files = gROOT->GetListOfFiles();
55 cout <<
"no root files" << endl;
59 while ( (f = (TFile *) next()) ) {
60 tree = (TTree*) f->Get(
"T");
62 cout << f->GetName() <<
" file hase been found" << endl;
63 fOutFileName = f->GetName();
64 fOutFileName.ReplaceAll(
"/",
"_");
65 fOutFileName.ReplaceAll(
".root",
"");
66 fOutFileName +=
"Out.root";
75 virtual void Loop() {Loop(0);}
76 virtual void Loop(Int_t Nevents);
77 virtual void Loop4BadAnodes() {Loop4BadAnodes(0);}
78 virtual void Loop4BadAnodes(Int_t Nevents);
79 virtual void MakeNt();
80 static Int_t IsNotValidHybrid(Int_t barrel, Int_t ladder, Int_t wafer, Int_t hybrid, Int_t run, Double_t anode);
81 virtual void SetOutFileName(
const Char_t *name=
"Out.root") {fOutFileName = name;}
82 virtual void SetuMinMax(Double_t min, Double_t max) {uMin = min; uMax = max;}
83 virtual void SetvMinMax(Double_t min, Double_t max) {vMin = min; vMax = max;}
84 virtual void SetDipCut(Double_t cut) {DipCut = cut;}
85 virtual void SetVertexZCut(Double_t cut) {VertexZCut = cut;}
86 virtual void SetNoWafers() {AllWafers = kFALSE;}
87 virtual void SetRCut(Double_t r=0.5) {rCut = r;}
88 virtual void SetLaddersInGlobal(Bool_t p=kTRUE) {LaddersInGlobal = p;}
89 virtual void SetMinNoFitPoints(Int_t k = 25) {minNoFitPoints = k;}
90 virtual void SetSsd(Bool_t k = kTRUE) {UseSsd = k;}
91 virtual void SetSvt(Bool_t k = kTRUE) {UseSvt = k;}
92 virtual void SetEastWest(Int_t k = 0) {EastWest = k;}
93 virtual void SetdEdxCut(Double_t dEdx=4e-6, Double_t length=40) {dEdxCut = dEdx; TpcLengthCut = length;}
94 virtual void UseGlobal() {fGlobal = kTRUE; fLocal = kFALSE;}
95 virtual void UseLocal() {fLocal = kTRUE; fGlobal = kFALSE;}
96 Double_t GetRCut() {
return rCut;}
97 virtual void Init(TTree *tree) {
98 uMin = uMax = vMin = vMax = DipCut = VertexZCut = 0; rCut = 0.5;
103 LaddersInGlobal = kFALSE;
114 void TBase::MakeNt(){}