AliEMCALSuperModuleCalibTimeDepCorrection * t = (AliEMCALSuperModuleCalibTimeDepCorrection*) fSuperModuleData[i];
if (!inputFile) {
- printf("AliEMCALCalibTimeDepCorrection::ReadTextInfo - Error while reading input file; likely EOF..");
+ printf("AliEMCALCalibTimeDepCorrection::ReadTextInfo - Error while reading input file; likely EOF..\n");
return;
}
inputFile >> iSM;
for (Int_t j=0; j<nAPDPerSM; j++) {
inputFile >> iCol >> iRow >> nCorr;
+ // check that input values are not out bounds
+ if (iCol<0 || iCol>(AliEMCALGeoParams::fgkEMCALCols-1) ||
+ iRow<0 || iRow>(AliEMCALGeoParams::fgkEMCALRows-1) ||
+ nCorr<0 ) {
+ printf("AliEMCALCalibTimeDepCorrection::ReadTextInfo - Error while reading input file; j %d iCol %d iRow %d nCorr %d\n", j, iCol, iRow, nCorr);
+ return;
+ }
+
// assume that this info is already swapped and done for this basis?
if (swapSides) {
// C side, oriented differently than A side: swap is requested
TTree *treeCorr = new TTree("treeCorr","");
// global part only has one entry
- treeGlob->Branch("fStartTime", &fStartTime, "fStartTime/I"); // really unsigned int..
+ treeGlob->Branch("fStartTime", &fStartTime, "fStartTime/i"); // unsigned int..
treeGlob->Branch("fNTimeBins", &fNTimeBins, "fNTimeBins/I");
treeGlob->Branch("fTimeBinSize", &fTimeBinSize, "fTimeBinSize/I");
treeGlob->Fill();
//____________________________________________________________________________
AliEMCALSuperModuleCalibTimeDepCorrection * AliEMCALCalibTimeDepCorrection::GetSuperModuleCalibTimeDepCorrectionNum(Int_t supModIndex)const
-{
+{ // getter via index
for (int i=0; i<fNSuperModule; i++) {
AliEMCALSuperModuleCalibTimeDepCorrection * t = (AliEMCALSuperModuleCalibTimeDepCorrection*) fSuperModuleData[i];
if (t->GetSuperModuleNum() == supModIndex) {