StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
T.h
1 // This class has been automatically generated on
3 // Mon Feb 6 14:07:01 2006 by ROOT version 5.09/01
4 // from TTree T/TTree with SVT + SSD hits and tracks
5 // found on file: /star/data07/calib/fisyak/SvtSsdAlignment/TpcSvtSsd.dev/EventAll1.root
7 
8 #ifndef T_h
9 #define T_h
10 
11 #include "TROOT.h"
12 #include "TChain.h"
13 #include "TFile.h"
14 #include "TRef.h"
15 #include "Riostream.h"
16 #include "TBase.h"
17 class HybridFit_t;
18 class TT : public TBase {
19  public :
20  TString fOutFileName;
21  Double_t uMin, uMax;
22  Double_t vMin, vMax;
23  Double_t DipCut;
24  Double_t VertexZCut;
25  Double_t rCut;
26  Bool_t AllWafers;
27  Bool_t LaddersInGlobal;
28  Int_t minNoFitPoints;
29  Bool_t UseSsd;
30  Bool_t UseSvt;
31  Int_t EastWest; // 1 => East, 2 => West; 0 => Both
32  Bool_t fGlobal;
33  Bool_t fLocal;
34  Double_t dEdxCut;
35  Double_t TpcLengthCut;
36  TT(TFile *f) {
37  fOutFileName = "Out.root";
38  if (f) {
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");
45  if (tree) Init(tree);
46  else cout << "no TTree found" << endl;
47  }
48  }
49  TT(TTree *tree=0) : TBase(tree) {
50  // if parameter tree is not specified (or zero), connect the file
51  // used to generate this class and read the Tree.
52  if (tree == 0) {
53  TCollection *files = gROOT->GetListOfFiles();
54  if (! files) {
55  cout << "no root files" << endl;
56  } else {
57  TFile *f = 0;
58  TIter next(files);
59  while ( (f = (TFile *) next()) ) {
60  tree = (TTree*) f->Get("T");
61  if (tree) {
62  cout << f->GetName() << " file hase been found" << endl;
63  fOutFileName = f->GetName();
64  fOutFileName.ReplaceAll("/","_");
65  fOutFileName.ReplaceAll(".root","");
66  fOutFileName += "Out.root";
67  break;
68  }
69  }
70  }
71  }
72  if (tree) Init(tree);
73  }
74 
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;
99  minNoFitPoints = 0;
100  AllWafers = kTRUE;
101  UseSsd = kFALSE;
102  UseSvt = kFALSE;
103  LaddersInGlobal = kFALSE;
104  EastWest = 0;
105  dEdxCut = 0;
106  TpcLengthCut = 0;
107  fGlobal = kTRUE;
108  fLocal = kTRUE;
109  TBase::Init(tree);
110  }
111  // ClassDef(TT,1)
112 };
113 void TBase::Loop(){}
114 void TBase::MakeNt(){}
115 #endif
Definition: T.h:18
Definition: TBase.h:17
Definition: T.C:31