FairRoot/PandaRoot
Functions
createCalibJuelichFeb02.C File Reference

Go to the source code of this file.

Functions

int createCalibJuelichFeb02 ()
 

Function Documentation

int createCalibJuelichFeb02 ( )

Definition at line 1 of file createCalibJuelichFeb02.C.

References c, f, and out.

2 {
3  cout<<"Create a calibration file for BonnTS data from Feb02 Beamtime@COSY"<<endl;
4 
5  Int_t nFee = 24;
6  // Calibration Factors of 24 Frontends representing the ratio of
7  // charge to the detected amplitude in adc-counts
8  // these factors were obtained from the internal pulse generators
9  // of the APV25 Frontend chips
10  // values are in units of ke/adc (kilo-electrons per adc-channel)
11  // the calibration is valid for the Feb02 Trackingstation
12  // Beamtime @ COSY (Juelich)
13  // for questions and comments about these Measurements stick to
14  // zaunick(at)hiskp.uni-bonn.de
15  double calibFactors[] = { 0.0468423, 0.0486725, 0.0468459,
16  0.0522444, 0.0482401, 0.0499809,
17  0.0461501, 0.0466381, 0.0462991,
18  0.0447197, 0.0456337, 0.0443006,
19  0.0438225, 0.0442459, 0.0443600,
20  0.0432845, 0.0428239, 0.0417876,
21  0.0987825, 0.0910402, 0.1016470,
22  0.1001060, 0.0998894, 0.0976565
23  };
24 
25  Int_t nChFe = 128;
26 
27  ofstream out("file.calib");
28 
29  for (Int_t f = 0 ; f < nFee ; f++)
30  {
31  for (Int_t c = 0 ; c < nChFe ; c++)
32  {
33 
34  out << "0 " << f << " " << c << " " << calibFactors[f] << endl;
35 
36  } // end loop on channels
37  }// end loop on fees
38 
39  out.close();
40 
41  return 0;
42 
43 }
TFile * f
Definition: bump_analys.C:12
TFile * out
Definition: reco_muo.C:20