FairRoot/PandaRoot
createCalib.C
Go to the documentation of this file.
1 {
2 
3  // to reproduce the calib file of Juelich Feb 10 runs
4 
5  const Int_t nBoxes = 4;
6 
7  const Int_t nFEBox = 6;
8 
9  const Int_t nChFE = 128;
10 
11  Double_t val[nBoxes][nFEBox];
12 
13  val[0][0]=0.0468423;
14  val[0][1]=0.0486725;
15  val[0][2]=0.0468459;
16  val[0][3]=0.0522444;
17  val[0][4]=0.0482401;
18  val[0][5]=0.0499809;
19  val[1][0]=0.0461501;
20  val[1][1]=0.0466381;
21  val[1][2]=0.0462991;
22  val[1][3]=0.0447197;
23  val[1][4]=0.0456337;
24  val[1][5]=0.0443006;
25  val[2][0]=0.0438225;
26  val[2][1]=0.0442459;
27  val[2][2]=0.04436;
28  val[2][3]=0.0432845;
29  val[2][4]=0.0428239;
30  val[2][5]=0.0417876;
31  val[3][0]=0.0987825;
32  val[3][1]=0.0910402;
33  val[3][2]=0.101647;
34  val[3][3]=0.100106;
35  val[3][4]=0.0998894;
36  val[3][5]=0.0976565;
37 
38 
39 
40  ofstream out("ExampleBox.calib");
41 
42  for (Int_t b = 0 ; b < nBoxes ; b++)
43  {
44 
45  for (Int_t f = 0 ; f < nFEBox ; f++)
46  {
47 
48  for (Int_t c = 0 ; c < nChFE ; c++)
49  {
50 
51  out << b << " " << (nChFE*f)+c << " " << val[b][f] << endl;
52 
53  }
54  }
55 
56  }
57 
58  out.close();
59 
60 }
TTree * b
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
Double_t
TFile * f
Definition: bump_analys.C:12
const Int_t nChFE
Definition: createCalib.C:9
TFile * out
Definition: reco_muo.C:20
const Int_t nFEBox
Definition: createCalib.C:7