AliPhysics  7c9d977 (7c9d977)

#include <AliFMDMCEventInspector.h>

Inheritance diagram for AliFMDMCEventInspector:

Public Member Functions

 AliFMDMCEventInspector ()
 
 AliFMDMCEventInspector (const char *name)
 
 AliFMDMCEventInspector (const AliFMDMCEventInspector &o)
 
virtual ~AliFMDMCEventInspector ()
 
AliFMDMCEventInspectoroperator= (const AliFMDMCEventInspector &)
 
void SetupForData (const TAxis &vtxAxis)
 
UInt_t ProcessMC (AliMCEvent *event, UInt_t &triggers, UShort_t &ivz, TVector3 &ip, Double_t &b, Double_t &c, Int_t &npart, Int_t &nbin, Double_t &phiR)
 
virtual Bool_t CompareResults (Double_t vz, Double_t trueVz, Double_t cent, Double_t mcC, Double_t b, Int_t npart, Int_t nbin)
 
virtual void ReadProductionDetails (AliMCEvent *event)
 
- Public Member Functions inherited from AliFMDEventInspector
 AliFMDEventInspector ()
 
 AliFMDEventInspector (const char *name)
 
virtual ~AliFMDEventInspector ()
 
UInt_t Process (const AliESDEvent *event, UInt_t &triggers, Bool_t &lowFlux, UShort_t &ivz, TVector3 &ip, Double_t &cent, UShort_t &nClusters)
 
void CreateOutputObjects (TList *dir)
 
void SetLowFluxCut (Int_t c)
 
void SetMaxVzErr (Double_t c=0.1)
 
void SetVertexMethod (EVtxType t)
 
void SetUseFirstPhysicsVtx (Bool_t use)
 
void SetpA2012Vtx (Bool_t use)
 
void SetUseV0AndForNSD (Bool_t use=true)
 
void SetMinPileupContributors (UShort_t nContrib=3)
 
void SetMinPileupDistance (Double_t cm=0.8)
 
void SetUseDisplacedVertices (Bool_t use=true)
 
Bool_t IsUseDisplacedVertices () const
 
void SetMinCentrality (Double_t mincent=-1.0)
 
void SetMaxCentrality (Double_t maxcent=-1.0)
 
void SetCentralityMethod (const TString &m)
 
void SetCentralityMethod (ECentMethod m)
 
void SetPileupFlags (UShort_t flags=0x5)
 
void SetDebug (Int_t dbg=1)
 
void SetMC (Bool_t isMC=true)
 
Bool_t IsMC () const
 
Bool_t FetchHistograms (const TList *d, TH1I *&hEventsTr, TH1I *&hEventsTrVtx, TH1I *&hEventsAcc, TH1I *&hTriggers) const
 
Bool_t ReadRunDetails (const AliESDEvent *esd)
 
UShort_t GetCollisionSystem () const
 
UShort_t GetEnergy () const
 
Short_t GetField () const
 
ULong_t GetRunNumber () const
 
Short_t GetProductionYear () const
 
Char_t GetProductionPeriod () const
 
Short_t GetProductionRevision () const
 
Bool_t IsProductionMC () const
 
void Print (Option_t *option="") const
 
virtual void StoreInformation ()
 
virtual void StoreProduction ()
 

Protected Member Functions

virtual Bool_t ReadCentrality (const AliESDEvent &esd, Double_t &cent, UShort_t &qual) const
 
Bool_t IsSingleDiffractive (AliStack *stack, Double_t xiMin=0, Double_t xiMax=1./81) const
 
virtual Bool_t CheckFastPartition (bool) const
 
- Protected Member Functions inherited from AliFMDEventInspector
 AliFMDEventInspector (const AliFMDEventInspector &o)
 
AliFMDEventInspectoroperator= (const AliFMDEventInspector &)
 
Bool_t AllowDisplaced () const
 
void CacheConfiguredTriggerClasses (TList &cache, const TList *classes, AliOADBPhysicsSelection *o)
 
Bool_t ReadTriggers (const AliESDEvent &esd, UInt_t &triggers, UShort_t &nClusters)
 
Bool_t CheckpAExtraV0 (const AliESDEvent &esd) const
 
virtual Bool_t CheckINELGT0 (const AliESDEvent &esd, UShort_t &nClusters, UInt_t &triggers) const
 
virtual Bool_t CheckPileup (const AliESDEvent &esd, UInt_t &triggers) const
 
virtual Bool_t CheckMultiVertex (const AliESDEvent &esd, Bool_t checkOtherBC=false) const
 
virtual Bool_t CheckCosmics (const TString &trigStri) const
 
virtual Bool_t CheckEmpty (const TString &trigStr, UInt_t &triggers) const
 
virtual Bool_t CheckWords (const AliESDEvent &esd, UInt_t &triggers) const
 
Bool_t ReadVertex (const AliESDEvent &esd, TVector3 &ip)
 
virtual EVtxStatus CheckPWGUDVertex (const AliESDEvent &esd, TVector3 &ip) const
 
virtual EVtxStatus CheckpA2012Vertex (const AliESDEvent &esd, TVector3 &ip) const
 
virtual EVtxStatus CheckpA2013Vertex (const AliESDEvent &esd, TVector3 &ip) const
 
virtual EVtxStatus CheckVertex (const AliESDEvent &esd, TVector3 &ip) const
 

Protected Attributes

TH1F * fHVertex
 
TH2FfHVertexXY
 
TH1F * fHPhiR
 
TH1F * fHB
 
TH1F * fHMcC
 
TH2FfHBvsPart
 
TH2FfHBvsBin
 
TH2FfHBvsCent
 
TH2FfHVzComp
 
TH2FfHCentVsPart
 
TH2FfHCentVsBin
 
TH2FfHCentVsMcC
 
TString fProduction
 
- Protected Attributes inherited from AliFMDEventInspector
TH1IfHEventsTr
 
TH1IfHEventsTrVtx
 Histogram of events w/trigger. More...
 
TH1IfHEventsAccepted
 Events w/trigger and vertex. More...
 
TH2DfHEventsAcceptedXY
 Events w/trigger and vertex in range. More...
 
TH1IfHTriggers
 XY vtx with trigger and Z vertex in range. More...
 
TH1IfHType
 Triggers. More...
 
TH1IfHWords
 Type (low/high flux) of event. More...
 
TH1F * fHCent
 Trigger words. More...
 
TH2FfHCentVsQual
 Centrality. More...
 
TH1IfHStatus
 Centrality vs quality. More...
 
TH1IfHVtxStatus
 Event processing status. More...
 
TH1IfHTrgStatus
 Vertex processing status. More...
 
TH1IfHPileup
 Trigger processing status. More...
 
Int_t fLowFluxCut
 Pile-up status. More...
 
Double_t fMaxVzErr
 
TListfList
 
UShort_t fEnergy
 Histogram container. More...
 
Short_t fField
 
UShort_t fCollisionSystem
 
Int_t fDebug
 
TAxisfCentAxis
 
TAxis fVtxAxis
 
EVtxType fVtxMethod
 
Bool_t fUseV0AND
 
UShort_t fPileupFlags
 
UShort_t fMinPileupContrib
 
Double_t fMinPileupDistance
 
AliDisplacedVertexSelection fDisplacedVertex
 
TList fCollWords
 
TList fBgWords
 Configured collision words. More...
 
TString fCentMethod
 Configured background words. More...
 
Double_t fMinCent
 
Double_t fMaxCent
 
ULong_t fRunNumber
 
Bool_t fMC
 
Short_t fProdYear
 
Char_t fProdLetter
 
Short_t fProdPass
 
Int_t fProdSVN
 
Bool_t fProdMC
 

Additional Inherited Members

- Public Types inherited from AliFMDEventInspector
enum  ECodes {
  kOk = 0, kNoEvent = 0x1, kNoTriggers = 0x2, kNoSPD = 0x4,
  kNoFMD = 0x8, kNoVertex = 0x10, kBadVertex = 0x20
}
 
enum  ETrgBins {
  kInel, kInelGt0, kNSD, kV0AND,
  kEmpty, kA, kB, kC,
  kE, kPileUp, kMCNSD, kSatellite,
  kSpdOutlier, kOffline
}
 
enum  EVtxType {
  kNormal, kpA2012, kpA2013, kPWGUD,
  kDisplaced
}
 
enum  EPileupType { kSPD = 0x1, kTracks = 0x2, kOutOfBunch = 0x4, kSPDBins = 0x8 }
 
enum  ECentMethod {
  kV0Multiplicity, kV0Amplitude, kV0Charge, kFMDRough,
  kNTracks, kLTracks, kCL0, kCL1,
  kCND, kNParticles, kNeutrons, kV0vsFMD,
  kV0vsNTracks, kZEMvsZDC, kDefaultCent
}
 
enum  ECollisionSystem { kUnknown, kPP, kPbPb }
 
enum  EVtxStatus {
  kVtxOK = 1, kNoVtx, kNoSPDVtx, kFewContrib,
  kUncertain, kNotVtxZ
}
 
enum  ETrgStatus {
  kNoTrgWords =1, kPP2760Fast, kMUON, kTriggered,
  kMinBias, kMinBiasNoSPD, kV0AndTrg, kMinBiasAD,
  kHighMult, kCentral, kSemiCentral, kDiffractive,
  kADOr, kADAnd, kUser, kOther
}
 
- Static Public Member Functions inherited from AliFMDEventInspector
static const char * CodeString (UInt_t mask)
 
- Static Public Attributes inherited from AliFMDEventInspector
static const char * fgkFolderName = "fmdEventInspector"
 

Detailed Description

This class inspects the event

Input:
  • AliESDFMD object possibly corrected for sharing
Output:
  • A histogram of v_z of events with triggers.
  • A histogram of v_z of events with vertex and triggers
  • A histogram of trigger counters

Note, that these are added to the master output list

Corrections used:
  • None

Definition at line 42 of file AliFMDMCEventInspector.h.

Constructor & Destructor Documentation

AliFMDMCEventInspector::AliFMDMCEventInspector ( )

Constructor

Definition at line 43 of file AliFMDMCEventInspector.cxx.

AliFMDMCEventInspector::AliFMDMCEventInspector ( const char *  name)

Constructor

Parameters
nameName of object

Definition at line 65 of file AliFMDMCEventInspector.cxx.

AliFMDMCEventInspector::AliFMDMCEventInspector ( const AliFMDMCEventInspector o)

Copy constructor

Parameters
oObject to copy from

Definition at line 91 of file AliFMDMCEventInspector.cxx.

AliFMDMCEventInspector::~AliFMDMCEventInspector ( )
virtual

Destructor

Definition at line 116 of file AliFMDMCEventInspector.cxx.

Member Function Documentation

virtual Bool_t AliFMDMCEventInspector::CheckFastPartition ( bool  fastonly) const
inlineprotectedvirtual

Check, for the \(\sqrt{s}=2.76GeV\) pp run wether this event was in the fast partition, and if so, filter it out.

Parameters
fastonlyEvent was in fast-only partition
Returns
true if event was in the fast-only partition, for the run period.

Reimplemented from AliFMDEventInspector.

Definition at line 155 of file AliFMDMCEventInspector.h.

Bool_t AliFMDMCEventInspector::CompareResults ( Double_t  vz,
Double_t  trueVz,
Double_t  cent,
Double_t  mcC,
Double_t  b,
Int_t  npart,
Int_t  nbin 
)
virtual

Compare the result of analysing the ESD for the inclusive charged particle density to analysing MC truth

Parameters
vzFound \( v_z\)
trueVzTrue \( v_z\)
centCentrality
mcCCentrality from Impact par.
bImpact parameter (if available)
npartNumber of participants (if available)
nbinNumber of binary collisions (if available)
Returns
true

Definition at line 712 of file AliFMDMCEventInspector.cxx.

Referenced by AliBaseMCCorrectionsTask::Event(), and AliForwardMCMultiplicityTask::Event().

Bool_t AliFMDMCEventInspector::IsSingleDiffractive ( AliStack *  stack,
Double_t  xiMin = 0,
Double_t  xiMax = 1./81 
) const
protected

Check if the event is single diffractive

Parameters
stackStack of MC particles
xiMinLower cut off
xiMaxUpper cut off
Returns

Definition at line 625 of file AliFMDMCEventInspector.cxx.

Referenced by ProcessMC().

AliFMDMCEventInspector & AliFMDMCEventInspector::operator= ( const AliFMDMCEventInspector o)

Assignement operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 124 of file AliFMDMCEventInspector.cxx.

UInt_t AliFMDMCEventInspector::ProcessMC ( AliMCEvent *  event,
UInt_t triggers,
UShort_t ivz,
TVector3 &  ip,
Double_t b,
Double_t c,
Int_t npart,
Int_t nbin,
Double_t phiR 
)

Process MC truth event. Note, returned values are the MC truth values

Parameters
eventInput event
triggersOn return, the triggers fired
ivzOn return, the found vertex bin (1-based). A zero means outside of the defined vertex range
ipOn return, the z position of the interaction
bOn return, impact parameter [fm] (if available)
cOn return, centrality estimate [%] (if available)
npartOn return, number of participants (if available)
nbinOn return, number of binary collisions (if available)
phiROn return, reaction plane angle (if available)
Returns
0 (or kOk) on success, otherwise a bit mask of error codes

Definition at line 329 of file AliFMDMCEventInspector.cxx.

Referenced by AliBaseMCCorrectionsTask::Event(), and AliForwardMCMultiplicityTask::Event().

Bool_t AliFMDMCEventInspector::ReadCentrality ( const AliESDEvent esd,
Double_t cent,
UShort_t qual 
) const
protectedvirtual

Read centrality from event

Parameters
esdEvent
centOn return, the centrality or negative if not found
qualOn return, centrality quality flag
Returns
False on error, true otherwise

Reimplemented from AliFMDEventInspector.

Definition at line 586 of file AliFMDMCEventInspector.cxx.

void AliFMDMCEventInspector::ReadProductionDetails ( AliMCEvent *  event)
virtual

Read the production details

Parameters
eventMC event

Definition at line 295 of file AliFMDMCEventInspector.cxx.

Referenced by AliForwardMCMultiplicityTask::PreEvent().

void AliFMDMCEventInspector::SetupForData ( const TAxis vtxAxis)
virtual

Initialize the object

Parameters
vtxAxisVertex axis in use

Reimplemented from AliFMDEventInspector.

Definition at line 141 of file AliFMDMCEventInspector.cxx.

Member Data Documentation

TH1F* AliFMDMCEventInspector::fHB
protected

Definition at line 160 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHBvsBin
protected

Definition at line 163 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHBvsCent
protected

Definition at line 164 of file AliFMDMCEventInspector.h.

Referenced by CompareResults(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHBvsPart
protected

Definition at line 162 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHCentVsBin
protected

Definition at line 167 of file AliFMDMCEventInspector.h.

Referenced by CompareResults(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHCentVsMcC
protected

Definition at line 168 of file AliFMDMCEventInspector.h.

Referenced by CompareResults(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHCentVsPart
protected

Definition at line 166 of file AliFMDMCEventInspector.h.

Referenced by CompareResults(), and SetupForData().

TH1F* AliFMDMCEventInspector::fHMcC
protected

Definition at line 161 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH1F* AliFMDMCEventInspector::fHPhiR
protected

Definition at line 159 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH1F* AliFMDMCEventInspector::fHVertex
protected

Definition at line 157 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHVertexXY
protected

Definition at line 158 of file AliFMDMCEventInspector.h.

Referenced by ProcessMC(), and SetupForData().

TH2F* AliFMDMCEventInspector::fHVzComp
protected

Definition at line 165 of file AliFMDMCEventInspector.h.

Referenced by CompareResults(), and SetupForData().

TString AliFMDMCEventInspector::fProduction
protected

Definition at line 169 of file AliFMDMCEventInspector.h.

Referenced by ReadProductionDetails().


The documentation for this class was generated from the following files: