}
if(j==0)fh1PtJetConstLeadingRec->Fill(part->Pt());
}
- //set pT of leading constituent of jet
- aodOutJet->SetPtLeading(partLead->Pt());
AliAODTrack *aodT = 0;
- if(partLead){
+ if(partLead&&aodOutJet){
+ //set pT of leading constituent of jet
+ aodOutJet->SetPtLeading(partLead->Pt());
aodT = dynamic_cast<AliAODTrack*>(partLead);
if(aodT){
if(aodT->TestFilterBit(fFilterMaskBestPt)){
TFile *f = new TFile(fPathTrPtResolution.Data());
+ if(!f)return;
+
TProfile *fProfPtPtSigma1PtGlobSt = (TProfile*)f->Get("fProfPtPtSigma1PtGlobSt");
TProfile *fProfPtPtSigma1PtGlobCnoITS = (TProfile*)f->Get("fProfPtPtSigma1PtGlobCnoITS");
TProfile *fProfPtPtSigma1PtGlobCnoSPD = (TProfile*)f->Get("fProfPtPtSigma1PtGlobCnoSPD");
void AliAnalysisTaskJetCluster::LoadTrEfficiencyRootFileFromOADB() {
TFile *f = new TFile(fPathTrEfficiency.Data());
+ if(!f)return;
TH1D *hEffPosGlobSt = (TH1D*)f->Get("hEffPosGlobSt");
TH1D *hEffPosGlobCnoITS = (TH1D*)f->Get("hEffPosGlobCnoITS");
}
if(j==0)fh1PtJetConstLeadingRec->Fill(part->Pt());
}
- //set pT of leading constituent of jet
- aodOutJet->SetPtLeading(partLead->Pt());
AliAODTrack *aodT = 0;
- if(partLead){
+ if(partLead&&aodOutJet){
+ //set pT of leading constituent of jet
+ aodOutJet->SetPtLeading(partLead->Pt());
aodT = dynamic_cast<AliAODTrack*>(partLead);
if(aodT){
if(aodT->TestFilterBit(fFilterMaskBestPt)){
TFile *f = new TFile(fPathTrPtResolution.Data());
+ if(!f)return;
+
TProfile *fProfPtPtSigma1PtGlobSt = (TProfile*)f->Get("fProfPtPtSigma1PtGlobSt");
TProfile *fProfPtPtSigma1PtGlobCnoITS = (TProfile*)f->Get("fProfPtPtSigma1PtGlobCnoITS");
TProfile *fProfPtPtSigma1PtGlobCnoSPD = (TProfile*)f->Get("fProfPtPtSigma1PtGlobCnoSPD");
void AliAnalysisTaskJetCluster::LoadTrEfficiencyRootFileFromOADB() {
TFile *f = new TFile(fPathTrEfficiency.Data());
+ if(!f)return;
TH1D *hEffPosGlobSt = (TH1D*)f->Get("hEffPosGlobSt");
TH1D *hEffPosGlobCnoITS = (TH1D*)f->Get("hEffPosGlobCnoITS");
Int_t iCount = 0;
AliAODEvent *aod = 0;
+
+
+
+
if(!fESD)aod = fAODIn;
else aod = fAODOut;
+
+ if(!aod)return iCount;
+
Int_t index=-1;
Double_t ptmax=-10;
for(int it = 0;it < aod->GetNumberOfTracks();++it){
TClonesArray *fTCARandomConesOut; //! TCA of output jets in randomized event
TClonesArray *fTCARandomConesOutRan; //! TCA of output jets in randomized event
- AliAODJetEventBackground *fAODJetBackgroundOut; //! jet background to be written out
TRandom3* fRandom; //! random number generator
TProfile* fh1Xsec; //! pythia cross section and trials