FairRoot/PandaRoot
Functions
createFCalib.C File Reference

Go to the source code of this file.

Functions

int createFCalib ()
 

Function Documentation

int createFCalib ( )

Definition at line 1 of file createFCalib.C.

References c, f, and out.

2 {
3  cout<<"Create a fake calibration for BonnTS data"<<endl;
4 
5  Int_t nFee = 24;
6 
7  Int_t nChFe = 128;
8 
9  Float_t value = 10.;
10 
11  ofstream out("file.calib");
12 
13  for (Int_t f = 0 ; f < nFee ; f++)
14  {
15  for (Int_t c = 0 ; c < nChFe ; c++)
16  {
17 
18  out << "0 " << f << " " << c << " " << value << endl;
19 
20  } // end loop on channels
21  }// end loop on fees
22 
23  out.close();
24 
25  return 0;
26 
27 }
TFile * f
Definition: bump_analys.C:12
TFile * out
Definition: reco_muo.C:20