fAddToHistogramsName(abc.fAddToHistogramsName),
//fAODCaloClusters(new TClonesArray(*abc.fAODCaloClusters)),
fAODCaloCells(new AliAODCaloCells(*abc.fAODCaloCells)),
- fCaloPID(abc.fCaloPID), fFidCut(abc.fFidCut), fIC(abc.fIC),fMCUtils(abc.fMCUtils), fNMS(abc.fNMS),
+ fCaloPID(new AliCaloPID(*abc.fCaloPID)), fFidCut(new AliFiducialCut(*abc.fFidCut)), fIC(new AliIsolationCut(*abc.fIC)),
+ fMCUtils(new AliMCAnalysisUtils(*abc.fMCUtils)), fNMS(new AliNeutralMesonSelection(*abc.fNMS)),
//fAnaOutContainer(abc.fAnaOutContainer),
fHistoPtBins(abc.fHistoPtBins), fHistoPtMax(abc.fHistoPtMax), fHistoPtMin(abc.fHistoPtMin),
fHistoPhiBins(abc.fHistoPhiBins), fHistoPhiMax(abc.fHistoPhiMax), fHistoPhiMin(abc.fHistoPhiMin),
fHistoAsymBins(abc.fHistoAsymBins), fHistoAsymMax(abc.fHistoAsymMax), fHistoAsymMin(abc.fHistoAsymMin)
{
// cpy ctor
-
+
}
//_________________________________________________________________________
fCheckFidCut = abc.fCheckFidCut ;
fReader = abc.fReader ;
- //fAODCaloClusters = new TClonesArray(*abc.fAODCaloClusters) ;
- fAODCaloCells = new AliAODCaloCells(*abc.fAODCaloCells) ;
+ //delete fAODCaloClusters; fAODCaloClusters = new TClonesArray(*abc.fAODCaloClusters) ;
+ delete fAODCaloCells ; fAODCaloCells = new AliAODCaloCells(*abc.fAODCaloCells) ;
fMinPt = abc.fMinPt;
fMaxPt = abc.fMaxPt;
- fCaloPID = abc.fCaloPID;
- fFidCut = abc.fFidCut;
- fIC = abc.fIC;
- fMCUtils = abc.fMCUtils;
- fNMS = abc.fNMS;
+
+ delete fCaloPID; fCaloPID = new AliCaloPID (*abc.fCaloPID);
+ delete fFidCut; fFidCut = new AliFiducialCut (*abc.fFidCut);
+ delete fMCUtils; fMCUtils = new AliMCAnalysisUtils(*abc.fMCUtils);
+ delete fIC; fIC = new AliIsolationCut (*abc.fIC);
+ delete fNMS; fNMS = new AliNeutralMesonSelection(*abc.fNMS);
//fAnaOutContainer = abc.fAnaOutContainer;
- fInputAODBranch = new TClonesArray(*abc.fInputAODBranch) ;
+ delete fInputAODBranch; fInputAODBranch = new TClonesArray(*abc.fInputAODBranch) ;
fInputAODName = abc.fInputAODName;
- fOutputAODBranch = new TClonesArray(*abc.fOutputAODBranch) ;
+ delete fOutputAODBranch; fOutputAODBranch = new TClonesArray(*abc.fOutputAODBranch) ;
fNewAOD = abc.fNewAOD ;
fOutputAODName = abc.fOutputAODName;
fOutputAODClassName = abc.fOutputAODClassName;
TObject(),
fOutputContainer(g. fOutputContainer), fAnalysisContainer(g.fAnalysisContainer),
fMakeHisto(g.fMakeHisto), fMakeAOD(fMakeAOD), fAnaDebug(g. fAnaDebug),
-fReader(g.fReader), fAODBranchList(g.fAODBranchList)
+fReader(new AliCaloTrackReader(*g.fReader)), fAODBranchList(g.fAODBranchList)
{
// cpy ctor
if(this == &source)return *this;
((TObject *)this)->operator=(source);
- fOutputContainer = source.fOutputContainer ;
- fAnalysisContainer = source.fAnalysisContainer ;
+ delete fOutputContainer; fOutputContainer = source.fOutputContainer ;
+ delete fAnalysisContainer; fAnalysisContainer = source.fAnalysisContainer ;
fAnaDebug = source.fAnaDebug;
fMakeHisto = source.fMakeHisto;
fMakeAOD = source.fMakeAOD;
- fReader = source.fReader ;
- fAODBranchList = source.fAODBranchList;
+ delete fReader ; fReader = new AliCaloTrackReader(*source.fReader) ;
+ delete fAODBranchList; fAODBranchList = source.fAODBranchList;
return *this;
fPHOSChargeWeight(pid.fPHOSChargeWeight),
fPHOSNeutralWeight(pid.fPHOSNeutralWeight),
fPHOSWeightFormula(pid.fPHOSWeightFormula),
-fPHOSPhotonWeightFormula(pid.fPHOSPhotonWeightFormula),
-fPHOSPi0WeightFormula(pid.fPHOSPi0WeightFormula),
+fPHOSPhotonWeightFormula(new TFormula(*pid.fPHOSPhotonWeightFormula)),
+fPHOSPi0WeightFormula (new TFormula(*pid.fPHOSPi0WeightFormula)),
fDispCut(pid.fDispCut),fTOFCut(pid.fTOFCut),
fDebug(pid.fDebug), fRecalculateBayesian(pid.fRecalculateBayesian),
-fParticleFlux(pid.fParticleFlux), fEMCALPIDUtils(pid.fEMCALPIDUtils)
+fParticleFlux(pid.fParticleFlux),
+fEMCALPIDUtils(new AliEMCALPIDUtils(*pid.fEMCALPIDUtils))
{
// cpy ctor
if(&pid == this) return *this;
- fEMCALPhotonWeight = pid. fEMCALPhotonWeight ;
- fEMCALPi0Weight = pid.fEMCALPi0Weight ;
+ fEMCALPhotonWeight = pid. fEMCALPhotonWeight ;
+ fEMCALPi0Weight = pid.fEMCALPi0Weight ;
fEMCALElectronWeight = pid.fEMCALElectronWeight;
- fEMCALChargeWeight = pid.fEMCALChargeWeight;
- fEMCALNeutralWeight = pid.fEMCALNeutralWeight;
+ fEMCALChargeWeight = pid.fEMCALChargeWeight;
+ fEMCALNeutralWeight = pid.fEMCALNeutralWeight;
- fPHOSPhotonWeight = pid.fPHOSPhotonWeight ;
- fPHOSPi0Weight = pid.fPHOSPi0Weight ;
- fPHOSElectronWeight = pid.fPHOSElectronWeight;
- fPHOSChargeWeight = pid.fPHOSChargeWeight;
- fPHOSNeutralWeight = pid.fPHOSNeutralWeight;
+ fPHOSPhotonWeight = pid.fPHOSPhotonWeight ;
+ fPHOSPi0Weight = pid.fPHOSPi0Weight ;
+ fPHOSElectronWeight = pid.fPHOSElectronWeight;
+ fPHOSChargeWeight = pid.fPHOSChargeWeight;
+ fPHOSNeutralWeight = pid.fPHOSNeutralWeight;
- fPHOSWeightFormula = pid.fPHOSWeightFormula;
- fPHOSPhotonWeightFormula = pid.fPHOSPhotonWeightFormula;
- fPHOSPi0WeightFormula = pid.fPHOSPi0WeightFormula;
+ fPHOSWeightFormula = pid.fPHOSWeightFormula;
+ delete fPHOSPhotonWeightFormula; fPHOSPhotonWeightFormula = new TFormula(*pid.fPHOSPhotonWeightFormula);
+ delete fPHOSPi0WeightFormula; fPHOSPi0WeightFormula = new TFormula(*pid.fPHOSPi0WeightFormula);
fDispCut = pid.fDispCut;
fTOFCut = pid.fTOFCut;
fRecalculateBayesian = pid.fRecalculateBayesian;
fParticleFlux = pid.fParticleFlux;
- fEMCALPIDUtils = pid.fEMCALPIDUtils;
+
+ delete fEMCALPIDUtils; fEMCALPIDUtils = new AliEMCALPIDUtils(*pid.fEMCALPIDUtils);
return *this;
AliCaloPID::~AliCaloPID() {
//Dtor
- if(fPHOSPhotonWeightFormula) delete fPHOSPhotonWeightFormula ;
- if(fPHOSPi0WeightFormula) delete fPHOSPi0WeightFormula ;
- if(fEMCALPIDUtils) delete fEMCALPIDUtils ;
+ if(fPHOSPhotonWeightFormula) delete fPHOSPhotonWeightFormula ;
+ if(fPHOSPi0WeightFormula) delete fPHOSPi0WeightFormula ;
+ if(fEMCALPIDUtils) delete fEMCALPIDUtils ;
}