ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yangyong/Pi0Calibration/Common/variables.h
Revision: 1.2
Committed: Tue Aug 14 07:10:57 2012 UTC (12 years, 8 months ago) by yangyong
Content type: text/plain
Branch: MAIN
CVS Tags: V00-00-01g, V00-00-01f, V00-00-01e, V00-00-01d, V00-00-01c, V00-00-01b, V00-00-01a, HEAD
Changes since 1.1: +16 -3 lines
Log Message:
*** empty log message ***

File Contents

# Content
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 s9s25min; /// minimal s9/s25 of two photons
25
26 Float_t xClus1; /// X position of 3x3 cluster 1
27 Float_t yClus1;
28 Float_t zClus1;
29 Float_t xClus2; //X position of cluster 2
30 Float_t yClus2;
31 Float_t zClus2;
32 Int_t nxtClus1; ///Number of crystal in cluster 1 ( maximum 9 / 25 for eta )
33 Float_t eXtalClus1[25]; //[nxtClus1] // energy of each crystal
34 Float_t laserCorrXtalClus1[25]; //[nxtClus1] /// laserCorrection value
35 Int_t ietaXtalClus1[25]; //[nxtClus1] /// ieta
36 Int_t iphiXtalClus1[25]; //[nxtClus1] /// iphi
37 Float_t tXtalClus1[25]; //[nxtClus1] // recHit time
38 Int_t nxtClus2;
39 Float_t laserCorrXtalClus2[25]; //[nxtClus2]
40 Float_t eXtalClus2[25]; //[nxtClus2]
41 Int_t ietaXtalClus2[25]; //[nxtClus2]
42 Int_t iphiXtalClus2[25]; //[nxtClus2]
43 Float_t tXtalClus2[25]; //[nxtClus2]
44 Int_t izXtalClus1;
45 Int_t izXtalClus2;
46
47
48 float xEBAll[170][360]; ///eta -85, -1, 1, 86, [0,169]. phi, 1,360, [0,359];
49 float yEBAll[170][360];
50 float zEBAll[170][360];
51 float etaEBAll[170][360];
52 float phiEBAll[170][360];
53
54 float dxEBAll[170][360]; ///eta -85, -1, 1, 86, [0,169]. phi, 1,360, [0,359];
55 float dyEBAll[170][360];
56 float dzEBAll[170][360];
57
58 float xEEAll[2][101][101];
59 float yEEAll[2][101][101];
60 float zEEAll[2][101][101];
61 float etaEEAll[2][101][101];
62 float phiEEAll[2][101][101];
63
64
65 float dxEEAll[2][101][101];
66 float dyEEAll[2][101][101];
67 float dzEEAll[2][101][101];
68
69 int doPizEta;
70 ofstream txtout;
71
72
73 TTree *pizTree;
74 TTree *etaTree;
75
76 double corrfactorEtatb[170];
77 double corrfactorEtaco[170];
78 double corrfactorEta[170];
79 double corrfactorPhi[360];
80 double corrfactoriEtaiPhi[170][360];
81 int flagiEtaiPhi[170][360];
82 double corrfactorSM[36];
83 double corrfactorIetaSM[38][85];
84
85 int stepc;
86 int iter;
87 int evtRange;
88
89 const int kEndcEtaRings = 39;
90 float eta_ring_ee[kEndcEtaRings];
91 float etaBoundary_ee[kEndcEtaRings+1];
92 int nxtal_ring_ee[kEndcEtaRings];
93 double corrfactorEtaRings[2][kEndcEtaRings];
94 double corrfactoriZiXiY[2][101][101];
95 float etaBoundary_eezside[2][kEndcEtaRings+1];
96 float eta_ring_eezside[2][kEndcEtaRings];
97 float infoESX[2][8];
98 float infoESY[2][8];
99 double peakwidthEtaRings[2][kEndcEtaRings];
100 float sigma_sideRing[2][40];
101 float mean_side[2] = {0.1264,0.1244};
102 float sigma_side[2] = {0.02,0.02};
103 int validRecHitEndCap[2][101][101];
104
105
106 int flag_ietaiphi[170][360];
107 int ndead_ietaiphi[170][360];
108 int ndeadcorner_ietaiphi[170][360];
109 int ndeadside_ietaiphi[170][360];
110 int ndeadflag_ietaiphi[170][360];
111 double corrfactorDead[20] ;
112
113 /* ///some correction to crystals */
114 /* double preCorrectionIetaIphi[170][360]; */
115 /* double corrfactorIetaSM[38][85]; */
116 /* double corrfactorPhiSide[2][360]; */
117 /* bool is2010RunB; */
118 /* bool is2010RunA; */
119 /* bool is2011RunA; */
120
121 int nCounted[170][360][100];
122 int nCountedEE[2][101][101][100];
123
124 float sigmaMass;
125 float meanMass;
126
127 string workingDirectory;
128
129
130 ///for endcaps
131 int nMaxRingIC;