// #include <AliLog.h>
#include "TString.h"
#include "AliFMDDebug.h" // Better debug macros
+#include "iostream"
//____________________________________________________________________
ClassImp(AliFMDCalibSampleRate)
UShort_t sector, UShort_t, UShort_t rate)
{
// Set values. Strip argument is ignored
- UInt_t nSec = (ring == 'I' ? 20 : 40);
+ UInt_t nSec = (ring == 'I' ? 10 : 20);
UInt_t board = sector / nSec;
fRates(det, ring, board, 0) = rate;
+
}
//____________________________________________________________________
UShort_t sec, UShort_t) const
{
// Get the sample rate
- UInt_t nSec = (ring == 'I' ? 20 : 40);
+ UInt_t nSec = (ring == 'I' ? 10 : 20);
UInt_t board = sec / nSec;
AliFMDDebug(10, ("Getting sample rate for FMD%d%c[%2d,0] (board %d)",
det, ring, sec, board));
Int_t thisline = inFile.tellg();
Char_t c[3];
- while(line.ReadLine(inFile) && readData ) {
+ while( readData ) {
thisline = inFile.tellg();
- thisline = thisline--;
+ line.ReadLine(inFile);
if(line.Contains("# ",TString::kIgnoreCase)) {
readData = kFALSE;
continue;
>> sec >> c[2]
>> sampleRate;
+
Set(det,ring,sec,0,sampleRate);
-
+
+
}
inFile.seekg(0);
// strips, and dead areas can be handled off-line.
// This information comes from DCS or the like.
//
+#include "iostream"
#include "AliFMDCalibStripRange.h" // ALIFMDCALIBGAIN_H
#include "TString.h"
// #include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
UShort_t max)
{
// Set the min and max for a half-ring
- UInt_t nSec = (ring == 'I' ? 20 : 40);
+ UInt_t nSec = (ring == 'I' ? 10 : 20);
UInt_t board = sector / nSec;
fRanges(det, ring, board, 0) = ((max & 0x7f) << 8) + (min & 0x7f);
}
UShort_t sec, UShort_t) const
{
// Get the min for a half-ring
- UInt_t nSec = (ring == 'I' ? 20 : 40);
+ UInt_t nSec = (ring == 'I' ? 10 : 20);
UInt_t board = sec / nSec;
+
return (fRanges(det, ring, board, 0) & 0x7f);
}
UShort_t sec, UShort_t) const
{
// Get the max for a half-ring
- UInt_t nSec = (ring == 'I' ? 20 : 40);
+ UInt_t nSec = (ring == 'I' ? 10 : 20);
UInt_t board = sec / nSec;
return ((fRanges(det, ring, board, 0) >> 8) & 0x7f);
}
Int_t thisline = inFile.tellg();
Char_t c[4];
- while(line.ReadLine(inFile) && readData ) {
+ while( readData ) {
thisline = inFile.tellg();
- thisline = thisline--;
- if(line.Contains("# ",TString::kIgnoreCase)) {
- readData = kFALSE;
- continue;
- }
+ line.ReadLine(inFile);
+
+ if(line.Contains("# ",TString::kIgnoreCase)) {
+ readData = kFALSE;
+ continue;
+ }
inFile.seekg(thisline);
inFile >> det >> c[0]
>> max;
Set(det,ring,sec,0,min,max);
-
+
}
inFile.seekg(0);