//---- AliRoot system ----
#include "AliAnaPartCorrBaseClass.h"
#include "AliAnaPartCorrMaker.h"
-#include "AliCaloTrackReader.h"
-
ClassImp(AliAnaPartCorrMaker)
TObject(),
fOutputContainer(new TList ), fAnalysisContainer(new TList ),
fMakeHisto(kFALSE), fMakeAOD(kFALSE), fMakeMixing(kFALSE), fAnaDebug(0),
-fReader(new AliCaloTrackReader()), fCaloUtils(new AliCalorimeterUtils()),
+fReader(0), fCaloUtils(0),
fAODBranchList(new TList ),fCuts(new TList), fhNEvents(0x0)
{
//Default Ctor
class TH1I;
// --- Analysis system ---
-class AliCaloTrackReader ;
-class AliCalorimeterUtils ;
+#include "AliCaloTrackReader.h"
+#include "AliCalorimeterUtils.h"
class AliAnaPartCorrMaker : public TObject {
abort();}
}
- AliCaloTrackReader * GetReader() const {return fReader ; }
+ AliCaloTrackReader * GetReader() {if(!fReader) fReader = new AliCaloTrackReader ();return fReader ; }
void SetReader(AliCaloTrackReader * reader) { fReader = reader ; }
- AliCalorimeterUtils * GetCaloUtils() const {return fCaloUtils ; }
+ AliCalorimeterUtils * GetCaloUtils() {if(!fCaloUtils) fCaloUtils = new AliCalorimeterUtils(); return fCaloUtils ; }
void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; }
//Others
fhAmplitude = new TH1F ("hAmplitude","Cell Energy", nptbins*2,ptmin,ptmax);
fhAmplitude->SetXTitle("Cell Energy (GeV)");
outputContainer->Add(fhAmplitude);
-
- fhAmpId = new TH2F ("hAmpId","Cell Energy", nptbins*2,ptmin,ptmax*2,rowmax*colmax*fNModules,0,rowmax*colmax*fNModules);
+ Int_t nb = 5000;
+ Float_t ptmax2 = 5.;
+ if(fCalorimeter == "EMCAL") ptmax2 = 20.;
+ fhAmpId = new TH2F ("hAmpId","Cell Energy", nb,0,ptmax2,rowmax*colmax*fNModules,0,rowmax*colmax*fNModules);
fhAmpId->SetXTitle("Cell Energy (GeV)");
outputContainer->Add(fhAmpId);
if(nModule < fNModules) nClustersInModule[nModule]++;
//MC labels
nLabel = clus->GetNLabels();
- if(clus->GetLabels()) labels = (clus->GetLabels())->GetArray();
+ labels = clus->GetLabels();
//Cells per cluster
nCaloCellsPerCluster = clus->GetNCells();
//if(mom.E() > 10 && nCaloCellsPerCluster == 1 ) printf("%s:************** E = %f ********** ncells = %d\n",fCalorimeter.Data(), mom.E(),nCaloCellsPerCluster);
//Shower shape parameters
showerShape[0] = clus->GetM20();
showerShape[1] = clus->GetM02();
- showerShape[2] = clus->GetClusterDisp();
+ showerShape[2] = clus->GetDispersion();
//======================
//Cells in cluster
if(nModule < fNModules) nClustersInModule[nModule]++;
//MC labels
nLabel = clus->GetNLabel();
- if(clus->GetLabels()) labels = clus->GetLabels();
+ labels = clus->GetLabels();
//Cells per cluster
nCaloCellsPerCluster = clus->GetNCells();
//matched cluster with tracks
anaisol->SetDebug(-1);
anaisol->SetMinPt(0);
anaisol->SetInputAODName(Form("Photons%s",calorimeter.Data()));
+ anaisol->SetAODObjArrayName("ICPhoton");
anaisol->SetCalorimeter(calorimeter);
if(kUseKinematics) anaisol->SwitchOnDataMC() ;//Access MC stack and fill more histograms
else anaisol->SwitchOffDataMC() ;
anaisolpi0->SetMinPt(0);
anaisolpi0->SetInputAODName(Form("Pi0s%s",calorimeter.Data()));
anaisolpi0->AddToHistogramsName("AnaIsolPi0_");
+ anaisolpi0->SetAODObjArrayName("ICPi0");
anaisolpi0->SetCalorimeter(calorimeter);
if(kUseKinematics) anaisolpi0->SwitchOnDataMC() ;//Access MC stack and fill more histograms
else anaisolpi0->SwitchOffDataMC() ;
AliAnaParticleHadronCorrelation *anacorrhadron = new AliAnaParticleHadronCorrelation();
anacorrhadron->SetInputAODName(Form("Photons%s",calorimeter.Data()));
anacorrhadron->AddToHistogramsName("AnaHadronCorrPhoton_");
+ anacorrhadron->SetAODObjArrayName("PhotonHadronCorr");
anacorrhadron->SetDebug(-1);
anacorrhadron->SwitchOffCaloPID();
anacorrhadron->SwitchOffFiducialCut();
AliAnaParticleHadronCorrelation *anacorrisohadron = new AliAnaParticleHadronCorrelation();
anacorrisohadron->SetInputAODName(Form("Photons%s",calorimeter.Data()));
anacorrisohadron->AddToHistogramsName("AnaHadronCorrIsoPhoton_");
+ anacorrisohadron->SetAODObjArrayName("IsoPhotonHadronCorr");
anacorrisohadron->SetDebug(-1);
anacorrisohadron->SwitchOffCaloPID();
anacorrisohadron->SwitchOffFiducialCut();
AliAnaParticleHadronCorrelation *anacorrhadronpi0 = new AliAnaParticleHadronCorrelation();
anacorrhadronpi0->SetInputAODName(Form("Pi0s%s",calorimeter.Data()));
anacorrhadronpi0->AddToHistogramsName("AnaHadronCorrPi0_");
+ anacorrhadronpi0->SetAODObjArrayName("Pi0HadronCorr");
anacorrhadronpi0->SetDebug(-1);
anacorrhadronpi0->SwitchOffCaloPID();
anacorrhadronpi0->SwitchOffFiducialCut();
AliAnaParticleHadronCorrelation *anacorrhadronisopi0 = new AliAnaParticleHadronCorrelation();
anacorrhadronisopi0->SetInputAODName(Form("Pi0s%s",calorimeter.Data()));
anacorrhadronisopi0->AddToHistogramsName("AnaHadronCorrIsoPi0_");
+ anacorrhadronisopi0->SetAODObjArrayName("IsoPi0HadronCorr");
anacorrhadronisopi0->SetDebug(-1);
anacorrhadronisopi0->SwitchOffCaloPID();
anacorrhadronisopi0->SwitchOffFiducialCut();