#include <TH1F.h>
#include <TH2F.h>
#include <TH3F.h>
+#include <TProfile.h>
#include <THnSparse.h>
#include <TList.h>
#include <TLorentzVector.h>
fTriggerType(-1),
fNFastOR(16),
fhNEvents(0),
+ fhTriggerbit(0),
fHistRhovsCentFull(0),
fHistRhovsCentCharged(0),
fh3PtEtaPhiTracks(0),
fTriggerType(-1),
fNFastOR(16),
fhNEvents(0),
+ fhTriggerbit(0),
fHistRhovsCentFull(0),
fHistRhovsCentCharged(0),
fh3PtEtaPhiTracks(0),
AliAnalysisTaskEmcalJetTriggerQA::~AliAnalysisTaskEmcalJetTriggerQA()
{
// Destructor.
- if (fOutput) {
- delete fOutput; // delete output object list
- fOutput = 0;
- }
-
+
}
//________________________________________________________________________
TString trigType2 = "J2";
if(fTriggerClass.Contains("G")) {
trigType1 = "G1";
- trigType1 = "G2";
+ trigType2 = "G2";
}
TString firedTrigClass = InputEvent()->GetFiredTriggerClasses();
fhNEvents = new TH1F("fhNEvents","fhNEvents;selection;N_{evt}",5,0,5);
fOutput->Add(fhNEvents);
+ fhTriggerbit = new TProfile("fhTriggerbit","fhTriggerbit;;TriggerBit",1,0,1);
+ fOutput->Add(fhTriggerbit);
+
fHistRhovsCentFull = new TH2F("fHistRhovsCentFull", "fHistRhovsCentFull", 101, -1, 100, 300, 0., 300.);
fHistRhovsCentFull->GetXaxis()->SetTitle("Centrality (%)");
fHistRhovsCentFull->GetYaxis()->SetTitle("s#rho_{ch} (GeV/c * rad^{-1})");
}
}
- if(GetJetContainer(fContainerFull) && GetJetContainer(fContainerCharged)) {
+ if(GetJetContainer(fContainerFull) && GetJetContainer(fContainerCharged))
fh2PtLeadJet1VsLeadJet2->Fill(ptLeadJet1,ptLeadJet2);
- }
fh3PtLeadJet1VsPatchEnergy->Fill(ptLeadJet1,fMaxPatchEnergy,fTriggerType);
fh3PtLeadJet2VsPatchEnergy->Fill(ptLeadJet2,fMaxPatchEnergy,fTriggerType);
{
// Run analysis code here, if needed. It will be executed before FillHistograms().
+ fhTriggerbit->Fill(0.5,GetCollisionCandidates());
+
//Check if event is selected (vertex & pile-up)
if(!SelectEvent())
return kFALSE;
}
//________________________________________________________________________
-Double_t AliAnalysisTaskEmcalJetTriggerQA::GetZ(const Double_t trkPx, const Double_t trkPy, const Double_t trkPz, const Double_t jetPx, const Double_t jetPy, const Double_t jetPz) const
+Double_t AliAnalysisTaskEmcalJetTriggerQA::GetZ(Double_t trkPx, Double_t trkPy, Double_t trkPz, Double_t jetPx, Double_t jetPy, Double_t jetPz) const
{
//
// Get the z of a constituent inside of a jet
iCellAbsIdMax = absId;
}
}
-
return iCellAbsIdMax;
}