#include "AliEmcalJet.h"
+#include "AliLog.h"
+#include "Riostream.h"
+
ClassImp(AliEmcalJet)
//__________________________________________________________________________________________________
fAreaPhi(0),
fAreaEmc(-1),
fAxisInEmcal(0),
+ fFlavourTagging(0),
fMaxCPt(0),
fMaxNPt(0),
fMCPt(0),
fTrackIDs(),
fMatched(2),
fMatchingType(0),
+ fTaggedJet(0x0),
+ fTagStatus(-1),
fPtSub(0),
- fPtVectSub(0)
+ fPtVectSub(0),
+ fTriggers(0)
{
// Constructor.
fAreaPhi(0),
fAreaEmc(-1),
fAxisInEmcal(0),
+ fFlavourTagging(0),
fMaxCPt(0),
fMaxNPt(0),
fMCPt(0),
fTrackIDs(),
fMatched(2),
fMatchingType(0),
+ fTaggedJet(0x0),
+ fTagStatus(-1),
fPtSub(0),
- fPtVectSub(0)
+ fPtVectSub(0),
+ fTriggers(0)
{
// Constructor.
fAreaPhi(0),
fAreaEmc(-1),
fAxisInEmcal(0),
+ fFlavourTagging(0),
fMaxCPt(0),
fMaxNPt(0),
fMCPt(0),
fTrackIDs(),
fMatched(2),
fMatchingType(0),
+ fTaggedJet(0x0),
+ fTagStatus(-1),
fPtSub(0),
- fPtVectSub(0)
+ fPtVectSub(0),
+ fTriggers(0)
{
// Constructor.
fAreaPhi(jet.fAreaPhi),
fAreaEmc(jet.fAreaEmc),
fAxisInEmcal(jet.fAxisInEmcal),
+ fFlavourTagging(jet.fFlavourTagging),
fMaxCPt(jet.fMaxCPt),
fMaxNPt(jet.fMaxNPt),
fMCPt(jet.fMCPt),
fTrackIDs(jet.fTrackIDs),
fMatched(jet.fMatched),
fMatchingType(jet.fMatchingType),
+ fTaggedJet(jet.fTaggedJet),
+ fTagStatus(jet.fTagStatus),
fPtSub(jet.fPtSub),
- fPtVectSub(jet.fPtVectSub)
+ fPtVectSub(jet.fPtVectSub),
+ fTriggers(jet.fTriggers)
{
// Copy constructor.
fAreaPhi = jet.fAreaPhi;
fAreaEmc = jet.fAreaEmc;
fAxisInEmcal = jet.fAxisInEmcal;
+ fFlavourTagging = jet.fFlavourTagging;
fMaxCPt = jet.fMaxCPt;
fMaxNPt = jet.fMaxNPt;
fMCPt = jet.fMCPt;
fClosestJetsDist[0] = jet.fClosestJetsDist[0];
fClosestJetsDist[1] = jet.fClosestJetsDist[1];
fMatched = jet.fMatched;
+ fTaggedJet = jet.fTaggedJet;
+ fTagStatus = jet.fTagStatus;
fPtSub = jet.fPtSub;
fPtVectSub = jet.fPtVectSub;
+ fTriggers = jet.fTriggers;
}
return *this;
{
// Print jet information.
- printf("Jet pt=%.2f, eta=%.2f, phi=%.2f, area=%.2f, NEF=%.2f\n", fPt, fEta, fPhi, fArea, fNEF);
+ Printf("Jet pt=%.2f, eta=%.2f, phi=%.2f, area=%.2f, NEF=%.2f", fPt, fEta, fPhi, fArea, fNEF);
}
//__________________________________________________________________________________________________
AliVParticle* maxTrack = 0;
for (Int_t i = 0; i < GetNumberOfTracks(); i++) {
AliVParticle *track = TrackAt(i, tracks);
+ if (!track) {
+ AliError(Form("Unable to find jet track %d in collection %s (pos in collection %d, max %d)",
+ i,tracks->GetName(),TrackAt(i),tracks->GetEntriesFast()));
+ continue;
+ }
if (!maxTrack || track->Pt() > maxTrack->Pt())
maxTrack = track;
}
AliVCluster* maxCluster = 0;
for (Int_t i = 0; i < GetNumberOfClusters(); i++) {
AliVCluster *cluster = ClusterAt(i, clusters);
+ if (!cluster) {
+ AliError(Form("Unable to find jet cluster %d in collection %s (pos in collection %d, max %d)",
+ i,clusters->GetName(),ClusterAt(i),clusters->GetEntriesFast()));
+ continue;
+ }
if (!maxCluster || cluster->E() > maxCluster->E())
maxCluster = cluster;
}