fRecoUtils(0),
fLoadCalib(0),
fLoadPed(0),
- fAttachClusters(0)
+ fAttachClusters(0),
+ fRecalibOnly(0)
{
// Constructor
}
fRecoUtils(0),
fLoadCalib(0),
fLoadPed(0),
- fAttachClusters(0)
+ fAttachClusters(0),
+ fRecalibOnly(0)
{
// Constructor
FillDigitsArray(esdevent);
else
FillDigitsArray(aodevent);
- fClusterizer->Digits2Clusters("");
- if (esdevent && fRecoUtils)
- fRecoUtils->FindMatches(esdevent,fClusterArr);
+ if (fRecalibOnly==0) {
+ fClusterizer->Digits2Clusters("");
+ if (esdevent && fRecoUtils)
+ fRecoUtils->FindMatches(esdevent,fClusterArr);
+ }
if (fOutputAODBranch) {
RecPoints2AODClusters(fOutputAODBranch);
}
if (esdevent) {
UpdateCells(esdevent);
- UpdateClusters(esdevent);
+ if (fRecalibOnly==0)
+ UpdateClusters(esdevent);
} else {
UpdateCells(aodevent);
- UpdateClusters(aodevent);
+ if (fRecalibOnly==0)
+ UpdateClusters(aodevent);
}
}
}
digit->SetTimeR(cellTime);
digit->SetIndexInList(idigit);
digit->SetType(AliEMCALDigit::kHG);
+ if (fRecalibOnly) {
+ Double_t energy = fClusterizer->Calibrate(cellAmplitude,cellTime,cellNumber);
+ digit->SetCalibAmp(energy);
+ }
idigit++;
}
}
digit->SetTimeR(cellTime);
digit->SetIndexInList(idigit);
digit->SetType(AliEMCALDigit::kHG);
+ if (fRecalibOnly) {
+ Double_t energy = fClusterizer->Calibrate(cellAmplitude,cellTime,cellNumber);
+ digit->SetCalibAmp(energy);
+ }
idigit++;
}
}
virtual void UserExec(Option_t *option);
Bool_t GetAttachClusters() const { return fAttachClusters ; }
+ Bool_t GetRecalibrateOnly() const { return fRecalibOnly ; }
const TObjArray *GetClusters() const { return fClusterArr ; }
const TString &GeometryName() const { return fGeomName ; }
AliEMCALRecParam *GetRecParam() const { return fRecParam ; }
void SetLoadPed(Bool_t b) { fLoadPed = b ; }
void SetOCDBPath(const char *path) { fOCDBpath = path ; }
void SetPedestalData(AliCaloCalibPedestal *d) { fPedestalData = d ; }
+ void SetRecalibrateCellsOnly(Bool_t b) { fRecalibOnly = b ; }
private:
AliAnalysisTaskEMCALClusterizeFast(const AliAnalysisTaskEMCALClusterizeFast&); // not implemented
Bool_t fLoadCalib; // access calib object from OCDB (def=off)
Bool_t fLoadPed; // access ped object from OCDB (def=off)
Bool_t fAttachClusters; // attach clusters to input event (AOD or ESD)
+ Bool_t fRecalibOnly; // only recalibrate cells if true (def=off)
- ClassDef(AliAnalysisTaskEMCALClusterizeFast, 3);
+ ClassDef(AliAnalysisTaskEMCALClusterizeFast, 4);
};
#endif //ALIANALYSISTASKEMCALCLUSTERIZEFAST_H