86 UShort_t sector, UShort_t, UShort_t rate)
89 UInt_t nSec = (ring ==
'I' ? 10 : 20);
90 UInt_t board = sector / nSec;
91 fRates(det, ring, board, 0) = rate;
92 AliFMDDebug(15, (
"Setting sample rate for FMD%d%c[%2d,0] (board %d): %d",
93 det, ring, sector, board, rate));
100 UShort_t sec, UShort_t)
const 103 UInt_t nSec = (ring ==
'I' ? 10 : 20);
104 UInt_t board = sec / nSec;
105 UShort_t ret =
fRates(det, ring, board, 0);
106 AliFMDDebug(15, (
"Getting sample rate for FMD%d%c[%2d,0] (board %d): %d",
107 det, ring, sec, board, ret));
114 outFile.write(
"# SampleRate \n",14);
115 for(Int_t det=1;det<=3;det++) {
116 if (detectors && !detectors[det-1]) {
119 UShort_t FirstRing = (det == 1 ? 1 : 0);
120 for (UShort_t ir = FirstRing; ir < 2; ir++) {
121 Char_t ring = (ir == 0 ?
'O' :
'I');
122 UShort_t nsec = (ir == 0 ? 40 : 20) / 2;
124 for(UShort_t board = 0; board < 2; board++) {
125 UShort_t sector = board*nsec;
126 outFile << det <<
',' 129 <<
Rate(det,ring,sector) <<
"\n";
143 Bool_t readData=kFALSE;
145 while(line.ReadLine(inFile)) {
146 if(line.Contains(
"samplerate",TString::kIgnoreCase)) {
156 Int_t thisline = inFile.tellg();
160 thisline = inFile.tellg();
161 line.ReadLine(inFile);
162 if(line.Contains(
"# ",TString::kIgnoreCase)) {
167 inFile.seekg(thisline);
168 inFile >> det >> c[0]
173 UInt_t nSec = (ring ==
'I' ? 20 : 40)/2;
174 UShort_t sector = board*nSec;
175 Set(det,ring,sector,0,sampleRate);
void WriteToFile(std::ostream &outFile, Bool_t *detectors=0)
UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const
void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t rate)
void ReadFromFile(std::istream &inFile)
virtual void Reset(const UShort_t &val=UShort_t())
Base class for caches of per-strip information.This is used to index a strip. Data stored depends on ...
Per digitizer card pulser calibration.
#define AliFMDDebug(N, A)
AliFMDCalibSampleRate & operator=(const AliFMDCalibSampleRate &o)
Per digitizer card pulser calibration.