ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yangyong/Pi0Calibration/Common/variables.h
Revision: 1.1
Committed: Thu Jul 26 08:48:22 2012 UTC (12 years, 9 months ago) by yangyong
Content type: text/plain
Branch: MAIN
CVS Tags: pi0calibrator_v01a
Log Message:
first commit

File Contents

# User Rev Content
1 yangyong 1.1
2     TChain *fChain;
3     int dataflag;
4     int totalEntries;
5     int entry;
6     int doBarrel;
7     int doEndcap;
8     int pizEta;
9    
10    
11     // Declaration of leaf types
12     Int_t lumiBlock;
13     Int_t runNumber;
14     Int_t evtNumber;
15     Int_t evtTime;
16     vector<unsigned short> *l1bitFired; // List of L1 bit fired
17     Float_t mpair; /// invariant mass of the pi0 candidate
18     Float_t ptpair; // pt of the pi0 candidate
19     Float_t etapair; ///eta of the pi0 candidate
20     Float_t ptmin; // minimal pt of two photons
21     Float_t isolation; // isolation variable
22     Float_t vBeamSpot[3]; // beam spot x,y, z
23     Float_t s4s9min; /// minimal s4/s9 of two photons
24     Float_t xClus1; /// X position of 3x3 cluster 1
25     Float_t yClus1;
26     Float_t zClus1;
27     Float_t xClus2; //X position of cluster 2
28     Float_t yClus2;
29     Float_t zClus2;
30     Int_t nxtClus1; ///Number of crystal in cluster 1 ( maximum 9 / 25 for eta )
31     Float_t eXtalClus1[25]; //[nxtClus1] // energy of each crystal
32     Float_t laserCorrXtalClus1[25]; //[nxtClus1] /// laserCorrection value
33     Int_t ietaXtalClus1[25]; //[nxtClus1] /// ieta
34     Int_t iphiXtalClus1[25]; //[nxtClus1] /// iphi
35     Float_t tXtalClus1[25]; //[nxtClus1] // recHit time
36     Int_t nxtClus2;
37     Float_t laserCorrXtalClus2[25]; //[nxtClus2]
38     Float_t eXtalClus2[25]; //[nxtClus2]
39     Int_t ietaXtalClus2[25]; //[nxtClus2]
40     Int_t iphiXtalClus2[25]; //[nxtClus2]
41     Float_t tXtalClus2[25]; //[nxtClus2]
42     Int_t izXtalClus1;
43     Int_t izXtalClus2;
44    
45    
46     float xEBAll[170][360]; ///eta -85, -1, 1, 86, [0,169]. phi, 1,360, [0,359];
47     float yEBAll[170][360];
48     float zEBAll[170][360];
49     float etaEBAll[170][360];
50     float phiEBAll[170][360];
51    
52     float dxEBAll[170][360]; ///eta -85, -1, 1, 86, [0,169]. phi, 1,360, [0,359];
53     float dyEBAll[170][360];
54     float dzEBAll[170][360];
55    
56     float xEEAll[2][101][101];
57     float yEEAll[2][101][101];
58     float zEEAll[2][101][101];
59     float etaEEAll[2][101][101];
60     float phiEEAll[2][101][101];
61    
62    
63     float dxEEAll[2][101][101];
64     float dyEEAll[2][101][101];
65     float dzEEAll[2][101][101];
66    
67     int doPizEta;
68     ofstream txtout;
69    
70    
71     TTree *pizTree;
72     TTree *etaTree;
73    
74     double corrfactorEtatb[170];
75     double corrfactorEtaco[170];
76     double corrfactorEta[170];
77     double corrfactorPhi[360];
78     double corrfactoriEtaiPhi[170][360];
79     int flagiEtaiPhi[170][360];
80     double corrfactorSM[36];
81     double corrfactorIetaSM[38][85];
82    
83     int stepc;
84     int iter;
85     int evtRange;
86    
87     const int kEndcEtaRings = 39;
88     float eta_ring_ee[kEndcEtaRings];
89     float etaBoundary_ee[kEndcEtaRings+1];
90     int nxtal_ring_ee[kEndcEtaRings];
91    
92    
93     ///calibration constant fro endcap
94     double corrfactorEtaRings[2][kEndcEtaRings];
95     double corrfactoriZiXiY[2][101][101];
96    
97    
98     int flag_ietaiphi[170][360];
99     int ndead_ietaiphi[170][360];
100     int ndeadcorner_ietaiphi[170][360];
101     int ndeadside_ietaiphi[170][360];
102     int ndeadflag_ietaiphi[170][360];
103     double corrfactorDead[20] ;
104    
105     /* ///some correction to crystals */
106     /* double preCorrectionIetaIphi[170][360]; */
107     /* double corrfactorIetaSM[38][85]; */
108     /* double corrfactorPhiSide[2][360]; */
109     /* bool is2010RunB; */
110     /* bool is2010RunA; */
111     /* bool is2011RunA; */
112    
113     int nCounted[170][360][100];
114    
115     float sigmaMass;
116     float meanMass;
117    
118     string workingDirectory;