Bool_t accept = kTRUE;
if(fRejectExoticCells) {
//Remove exotic cells before making digits
+ Bool_t exRemoval = fRecoUtils->IsRejectExoticCell();
fRecoUtils->SwitchOnRejectExoticCell();//switch on and off
Int_t bunchCrossNo = InputEvent()->GetBunchCrossNumber();
Bool_t isEx = fRecoUtils->IsExoticCell(cellNumber, fCaloCells, bunchCrossNo);
if(isEx) accept = kFALSE;
- fRecoUtils->SwitchOffRejectExoticCell();//switch on and off
+ if(!exRemoval) fRecoUtils->SwitchOffRejectExoticCell();//switch on and off
}
return accept;
}
fEnergyTimeHistBefore(0),
fEnergyDistAfter(0),
fEtaPhiDistAfter(0),
- fEnergyTimeHistAfter(0)
+ fEnergyTimeHistAfter(0),
+ fEnergyExoticClusters(0)
{
// Default constructor.
}
fEnergyTimeHistBefore(0),
fEnergyDistAfter(0),
fEtaPhiDistAfter(0),
- fEnergyTimeHistAfter(0)
+ fEnergyTimeHistAfter(0),
+ fEnergyExoticClusters(0)
{
// Standard constructor.
fOutput->Add(fEtaPhiDistAfter);
fEnergyTimeHistAfter = new TH2F("hEnergyTimeDistAfter","hEnergyTimeDistAfter;E_{clus} (GeV);time",60,0,30,500,0,1e-6);
fOutput->Add(fEnergyTimeHistAfter);
+ fEnergyExoticClusters = new TH1F("fEnergyExoticClusters","fEnergyExoticClusters;E_{ex clus} (GeV)",60,0,30);
+ fOutput->Add(fEnergyExoticClusters);
PostData(1, fOutput);
}
}
if (fRecoUtils) {
if (fRecoUtils->IsRejectExoticCluster()) {
- if (fRecoUtils->IsExoticCluster(oc,fCaloCells))
- continue;
+ Bool_t exRemoval = fRecoUtils->IsRejectExoticCell();
+ fRecoUtils->SwitchOnRejectExoticCell(); //switch on temporarily
+ Bool_t exResult = fRecoUtils->IsExoticCluster(oc,fCaloCells);
+ if (!exRemoval) fRecoUtils->SwitchOffRejectExoticCell(); //switch back off
+ if(exResult) {
+ fEnergyExoticClusters->Fill(oc->E());
+ continue;
+ }
}
if (fRecoUtils->GetNonLinearityFunction()!=AliEMCALRecoUtils::kNoCorrection) {
Double_t energy = fRecoUtils->CorrectClusterEnergyLinearity(oc);
TH1F *fEnergyDistAfter; //!energy distribution after
TH2F *fEtaPhiDistAfter; //!eta/phi distribution after
TH2F *fEnergyTimeHistAfter; //!energy/time distribution after
+ TH1F *fEnergyExoticClusters; //!energy of exotic clusters
private:
AliEmcalClusterMaker(const AliEmcalClusterMaker&); // not implemented
AliEmcalClusterMaker &operator=(const AliEmcalClusterMaker&); // not implemented
- ClassDef(AliEmcalClusterMaker, 1) // Emcal cluster maker
+ ClassDef(AliEmcalClusterMaker, 2) // Emcal cluster maker
};
#endif