fThreshold(0)
{
// default constructor
- AliWarning("default ctor - not recommended");
+ AliError("default ctor - not recommended");
}
//______________________________________________________________________________
// load V0's digits --------------------------------------------------------
// get V0 run loader
- AliLoader* loader = fRunLoader->GetLoader( "VZEROLoader" );
+ AliLoader* loader = this->fRunLoader->GetLoader( "VZEROLoader" );
if (!loader) {
- AliError("Can not get VZERO loader");
+ AliError("Cannot get VZERO loader");
return -1;
}
loader->LoadDigits("READ");
TTree* vzeroDigitsTree = loader->TreeD();
if (!vzeroDigitsTree) {
- AliError("Can not get the VZERO digit tree");
+ AliError("Cannot get the VZERO digit tree");
return -1;
}
TBranch* digitBranch = vzeroDigitsTree->GetBranch("VZERODigit");
digitBranch->SetAddress(&vzeroDigits);
vzeroDigitsTree->GetEvent(0);
- //digitBranch->GetEvent(event);
-
- AliDebug(5, Form("Number of Events: %d",
- this->fRunLoader->GetNumberOfEvents()));
-
-
+
+
Int_t nDigits = vzeroDigits->GetEntriesFast(); // get digit count
AliDebug(5, Form("Found a whole of %d digits", nDigits));
AliVZEROdigit* digit = (AliVZEROdigit*)vzeroDigits->At(iDigit);
Int_t pmNumber = digit->PMNumber();
- // TODO check the assignment of the photomultipliers to the FEBs
- Int_t board = pmNumber / 8;\r
+ Int_t board = pmNumber / 8;
Int_t channel = pmNumber % 8;
Int_t position = pmNumber / 32 + 1;
// check whether the digits belongs to the current FEB, otherwise omit it
if ((position == this->fPosition) && (board == this->fID)) {
AliDebug(5, "Found an digit corresponding to the current FEB");
- //if in timing window? // TODO
Float_t value = digit->ADC();
AliDebug(5, Form("ADC value: %f\n", value));
Int_t channelBitMask = 0x01;
// load T0's digits --------------------------------------------------------
AliLoader * fT0Loader = this->fRunLoader->GetLoader("T0Loader");
// AliT0digit *fDigits;
+ if (!fT0Loader) {
+ AliError("Cannot get T0 loader");
+ return -1;
+ }
+
fT0Loader->LoadDigits("READ");
// Creating T0 data container
Int_t value = qtc1[i] - qtc0[i]; // calculate correct measurement value
if (value > (Int_t)this->fThreshold[i - nStart]) {
- // channelBitMask <<= 1; //(i - nStart); // 2^(i - nStart) ERROR? TODO
inputVector |= channelBitMask; // Add bit
AliDebug(5, Form("Threshold exceeded in channel %d,", i));
channelBitMask <<= 1; // go on to the next channel
}
- // TODO check whether it is correct to delete the digit
delete digits;
return inputVector;
}
// initialize threshold
this->fThreshold = new UInt_t[8];
for (Int_t i = 0; i < 8; i++) {
- this->fThreshold[i] = 10; // TODO choose a correct value
+ this->fThreshold[i] = 10;
}
// initialize LUTsoutputWidth=<value optimized out>
AliTRDptrgLUT* lut = new AliTRDptrgLUT();
// initialize threshold
this->fThreshold = new UInt_t[12];
for (Int_t i = 0; i < 12; i++) {
- this->fThreshold[i] = 10; // TODO choose a correct value
+ this->fThreshold[i] = 10;
}
// initialize LUTsoutputWidth=<value optimized out>