#include "AliAODMCParticle.h"
-#include "AliMCAnalysisUtils.h"
-
#include "AliAODMCHeader.h"
// Gamma - jet correlation analysis task
fDeltaAODFileName(""),
fAODBranchName("GammaConv_gamma"),
fAODPWG4Particles(NULL),
- fAnaUtils(NULL),
- fDebugLevel(0)
+ fDebugLevel(0)
{
// Dummy Constructor
}
fAODPWG4Particles = NULL;
delete fAODPWG4Particles;
- if(fAnaUtils)
- delete fAnaUtils;
- fAnaUtils = NULL;
}
fDeltaAODFileName(""),
fAODBranchName("GammaConv_gamma"),
fAODPWG4Particles(NULL),
- fAnaUtils(NULL),
fDebugLevel(0)
{
// Constructor
// Output slot #1 writes into a TH1 container
DefineOutput(1, TList::Class());
- fAnaUtils = new AliMCAnalysisUtils();
}
AliAODMCParticle * photon = dynamic_cast<AliAODMCParticle*>(arrayMC->At(mcPart1->GetMother()));
Int_t motherIndex = photon->GetMother();
- tag= fAnaUtils->CheckOriginInAOD(&motherIndex, 1, arrayMC);
+ //tag= fAnaUtils->CheckOriginInAOD(&motherIndex, 1, arrayMC);
AliAODMCParticle * mother = dynamic_cast<AliAODMCParticle*>(arrayMC->At(motherIndex));
if (TMath::Abs(mother->GetPdgCode()) < 22 && TMath::Abs(mother->GetPdgCode()) != 11) {
- fAnaUtils->SetTagBit(tag, AliMCAnalysisUtils::kMCPhoton);
- fAnaUtils->SetTagBit(tag, AliMCAnalysisUtils::kMCPrompt);
+ //fAnaUtils->SetTagBit(tag, AliMCAnalysisUtils::kMCPhoton);
+ //fAnaUtils->SetTagBit(tag, AliMCAnalysisUtils::kMCPrompt);
cout <<"KKKKKKKKK "<< mother->GetPdgCode() << " " << mother->GetStatus() << " mi " << motherIndex << " daught: " << mother->GetNDaughters() << endl;
cout << photon->GetStatus() << " " << photon->Pt() << " headerpt:" << mcHeader->GetPtHard() << " " <<mcPart1->GetMother() << endl;