ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ZdcNtuple Class Reference

#include <ZdcNtuple.h>

Inheritance diagram for ZdcNtuple:
Collaboration diagram for ZdcNtuple:

Public Types

typedef ServiceHandle< StoreGateSvc > & MetaStorePtr_t
 Type of the metadata store pointer in standalone mode. More...
 
typedef const ServiceHandle< StoreGateSvc > & ConstMetaStorePtr_t
 
typedef ServiceHandle< StoreGateSvcMetaStore_t
 Type of the metadata store variable in Athena. More...
 

Public Member Functions

void setupTriggerHistos ()
 
 ZdcNtuple (const std::string &name, ISvcLocator *pSvcLocator)
 
void processEventInfo ()
 
void processVInjInfo ()
 
bool processTriggerDecision ()
 
uint32_t acceptEvent ()
 
void processZdcNtupleFromModules ()
 
void processMCEventCollection ()
 
void processFCal ()
 
void processMBTS ()
 
void processInDet ()
 
void writeTrack (const xAOD::TrackParticle *, const xAOD::Vertex *vertex, int)
 
int trackQuality (const xAOD::TrackParticle *tp, const xAOD::Vertex *vertex)
 
void processClusters ()
 
void reprocessZdcModule (const xAOD::ZdcModule *zdcMod, bool flipdelay=0)
 
void processTriggerTowers ()
 
void processGaps ()
 
void processProtons ()
 
double dR (const double eta1, const double phi1, const double eta2, const double phi2)
 
virtual StatusCode initialize () override
 
virtual StatusCode execute () override
 
virtual StatusCode finalize () override
 
::StatusCode requestFileExecute ()
 register this algorithm to have an implementation of fileexecute More...
 
::StatusCode requestBeginInputFile ()
 register this algorithm to have an implementation of beginInputFile More...
 
::StatusCode requestEndInputFile ()
 register this algorithm to have an implementation of endInputFile More...
 
void handle (const Incident &inc)
 receive the given incident More...
 
virtual StatusCode sysInitialize ()
 Initialization method invoked by the framework. More...
 
const ServiceHandle< ITHistSvc > & histSvc () const
 The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 
ConstMetaStorePtr_t inputMetaStore () const
 
MetaStorePtr_t inputMetaStore ()
 
ConstMetaStorePtr_t outputMetaStore () const
 
MetaStorePtr_t outputMetaStore ()
 

Public Attributes

bool slimmed
 
bool useGRL
 
std::string grlFilename
 
bool enableOutputTree
 
bool enableOutputSamples
 
bool enableTrigger
 
bool writeOnlyTriggers
 
bool enableClusters
 
bool enableTracks
 
bool enableMuons
 
bool enableElectrons
 
bool enablePhotons
 
bool enableTT
 
bool enableTruth
 
bool enableJets
 
bool enableTriggerJets
 
bool zdcCalib
 
bool zdcLaser
 
bool zdcInj
 
bool zdcOnly
 
unsigned int zdcLowGainMode
 
size_t trackLimit
 
bool trackLimitReject
 
bool flipDelay
 
bool reprocZdc
 
std::string auxSuffix
 
size_t nsamplesZdc
 
bool lhcf2022
 
bool lhcf2022zdc
 
bool lhcf2022afp
 
bool pbpb2023
 
bool enableZDC
 
bool enableRPD
 
bool enableRPDAmp
 
bool enableCentroid
 
bool doZdcCalib
 
std::string zdcConfig
 
std::string outputName
 
int outputTreeScaledown
 
PublicToolHandle< Trig::TrigDecisionToolm_trigDecisionTool { this, "TrigDecisionTool", "", "Handle to the TrigDecisionTool" }
 
asg::AnaToolHandle< IGoodRunsListSelectionToolm_grl
 
asg::AnaToolHandle< ZDC::IZdcAnalysisToolm_zdcAnalysisTool
 
ToolHandle< InDet::IInDetTrackSelectionToolm_selTool
 
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }
 
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }
 
SG::ReadHandleKey< McEventCollectionm_mcEventCollectionName {this, "MCEventCollectionName", "TruthEvent", ""}
 
const xAOD::EventInfom_eventInfo
 
const xAOD::TrigDecisionm_trigDecision
 
const xAOD::HIEventShapeContainerm_caloSums
 
const xAOD::HIEventShapeContainerm_eventShapes
 
const xAOD::ForwardEventInfoContainerm_mbtsInfo
 
const xAOD::MBTSModuleContainerm_mbtsModules
 
const xAOD::TrigT2MbtsBitsContainerm_trigT2MbtsBits
 
const xAOD::VertexContainerm_primaryVertices
 
const xAOD::CaloClusterContainerm_caloClusters
 
const xAOD::TrackParticleContainerm_trackParticles
 
const xAOD::EnergySumRoIm_lvl1EnergySumRoI
 
const xAOD::TruthParticleContainerm_truthParticleContainer
 
const xAOD::TriggerTowerContainerm_TTcontainer
 
const xAOD::AFPProtonContainerm_afpProtons
 
std::shared_ptr< ZdcInjPulserAmpMapm_zdcInjPulserAmpMap
 
int m_nTriggers
 
int m_eventCounter
 
bool m_isMC
 
bool m_setupTrigHist
 
int m_scaledownCounter
 
std::vector< const Trig::ChainGroup * > m_chainGroups
 
std::vector< const Trig::ChainGroup * > m_rerunChainGroups
 
float t_L1ET
 
float t_L1ET24
 
TH1 * h_zdcTriggers
 
TH1 * h_zdcTriggersTBP
 
TTree * m_outputTree
 
uint32_t t_runNumber
 
uint32_t t_eventNumber
 
uint32_t t_lumiBlock
 
uint32_t t_bcid
 
float t_vInj
 
uint8_t t_bunchGroup
 
uint32_t t_passBits
 
uint32_t t_extendedLevel1ID
 
uint32_t t_timeStamp
 
uint32_t t_timeStampNSOffset
 
float t_avgIntPerCrossing
 
float t_actIntPerCrossing
 
uint8_t t_zdcEventInfoError
 
uint32_t t_zdcEventInfoErrorWord
 
uint8_t t_zdcDecodingError
 
uint8_t t_rpdDecodingError
 
uint64_t t_trigger
 
uint32_t t_trigger_TBP
 
float t_prescales [200]
 
bool t_decisions [200]
 
bool t_rerunDecisions [200]
 
float t_mbts_in_e [2][8]
 
float t_mbts_out_e [2][4]
 
float t_mbts_in_t [2][8]
 
float t_mbts_out_t [2][4]
 
float t_T2mbts_in_e [2][8]
 
float t_T2mbts_out_e [2][4]
 
float t_T2mbts_in_t [2][8]
 
float t_T2mbts_out_t [2][4]
 
uint32_t t_tav [16]
 
uint32_t t_tbp [16]
 
float t_ZdcAmp [2]
 
float t_ZdcAmpErr [2]
 
float t_ZdcEnergy [2]
 
float t_ZdcEnergyErr [2]
 
float t_ZdcTime [2]
 
short t_ZdcStatus [2]
 
unsigned int t_ZdcModuleMask
 
float t_ZdcTrigEff [2]
 
unsigned short t_ZdcLucrodTriggerSideAmp [2]
 
unsigned short t_ZdcLucrodTriggerSideAmpLG [2]
 
float t_ZdcTruthTotal [2]
 
float t_ZdcTruthInvis [2]
 
float t_ZdcTruthEM [2]
 
float t_ZdcTruthNonEM [2]
 
float t_ZdcTruthEscaped [2]
 
std::vector< float > t_ZdcTruthParticlePosx
 
std::vector< float > t_ZdcTruthParticlePosy
 
std::vector< float > t_ZdcTruthParticlePosz
 
std::vector< float > t_ZdcTruthParticleTime
 
std::vector< float > t_ZdcTruthParticlePx
 
std::vector< float > t_ZdcTruthParticlePy
 
std::vector< float > t_ZdcTruthParticlePz
 
std::vector< float > t_ZdcTruthParticleEnergy
 
float t_ZdcModuleAmp [2][4]
 
float t_ZdcModuleTime [2][4]
 
float t_ZdcModuleFitAmp [2][4]
 
float t_ZdcModuleFitT0 [2][4]
 
float t_ZdcModuleChisq [2][4]
 
unsigned int t_ZdcModuleStatus [2][4]
 
float t_ZdcModuleCalibAmp [2][4]
 
float t_ZdcModuleCalibTime [2][4]
 
float t_ZdcModuleAmpError [2][4]
 
float t_ZdcModuleBkgdMaxFraction [2][4]
 
float t_ZdcModuleMinDeriv2nd [2][4]
 
float t_ZdcModulePresample [2][4]
 
float t_ZdcModulePreSampleAmp [2][4]
 
unsigned short t_ZdcLucrodTriggerAmp [2][4]
 
unsigned short t_ZdcLucrodTriggerAmpLG [2][4]
 
float t_ZdcModuleMaxADC [2][4]
 
float t_ZdcModuleMaxADCHG [2][4]
 
float t_ZdcModuleMaxADCLG [2][4]
 
float t_ZdcModulePeakADCHG [2][4]
 
float t_ZdcModulePeakADCLG [2][4]
 
float t_ZdcModuleAmpLGRefit [2][4]
 
float t_ZdcModuleAmpCorrLGRefit [2][4]
 
float t_ZdcModuleT0LGRefit [2][4]
 
float t_ZdcModuleT0SubLGRefit [2][4]
 
float t_ZdcModuleChisqLGRefit [2][4]
 
float t_ZdcModuleTruthTotal [2][7]
 
float t_ZdcModuleTruthInvis [2][7]
 
float t_ZdcModuleTruthEM [2][7]
 
float t_ZdcModuleTruthNonEM [2][7]
 
float t_ZdcModuleTruthEscaped [2][7]
 
unsigned int t_ZdcModuleTruthNphotons [2][7]
 
float t_RpdChannelBaseline [2][16]
 
float t_RpdChannelPileupExpFitParams [2][16][2]
 
float t_RpdChannelPileupStretchedExpFitParams [2][16][3]
 
float t_RpdChannelPileupExpFitParamErrs [2][16][2]
 
float t_RpdChannelPileupStretchedExpFitParamErrs [2][16][3]
 
float t_RpdChannelPileupExpFitMSE [2][16]
 
float t_RpdChannelPileupStretchedExpFitMSE [2][16]
 
float t_RpdChannelAmplitude [2][16]
 
float t_RpdChannelAmplitudeCalib [2][16]
 
float t_RpdChannelMaxADC [2][16]
 
float t_RpdChannelMaxADCCalib [2][16]
 
unsigned int t_RpdChannelMaxSample [2][16]
 
unsigned int t_RpdChannelStatus [2][16]
 
float t_RpdChannelPileupFrac [2][16]
 
unsigned int t_RpdSideStatus [2]
 
unsigned int t_RpdModuleTruthNphotons [2][16]
 
bool t_centroidDecorationsAvailable
 
char t_centroidEventValid
 
unsigned int t_centroidStatus [2]
 
float t_RPDChannelSubtrAmp [2][16]
 
float t_RPDSubtrAmpSum [2]
 
float t_xCentroidPreGeomCorPreAvgSubtr [2]
 
float t_yCentroidPreGeomCorPreAvgSubtr [2]
 
float t_xCentroidPreAvgSubtr [2]
 
float t_yCentroidPreAvgSubtr [2]
 
float t_xCentroid [2]
 
float t_yCentroid [2]
 
float t_xRowCentroid [2][4]
 
float t_yColCentroid [2][4]
 
float t_reactionPlaneAngle [2]
 
float t_cosDeltaReactionPlaneAngle
 
int t_nvx
 
float t_vx [3]
 
int t_vxntrk
 
std::vector< int > t_vx_trk_index
 
int t_vxtype
 
int t_pvindex
 
float t_vxcov [6]
 
float t_vxsumpt2
 
float t_puvxz
 
int t_puvxntrk
 
float t_puvxsumpt
 
int t_nstrong
 
int t_vxnlooseprimary
 
int t_vxnminbias
 
int t_vxngoodmuon
 
int t_nvtx
 
std::vector< int8_t > t_vtx_type
 
std::vector< float > t_vtx_x
 
std::vector< float > t_vtx_y
 
std::vector< float > t_vtx_z
 
std::vector< int16_t > t_vtx_ntrk_all
 
std::vector< float > t_vtx_sumpt2_all
 
std::vector< int16_t > t_vtx_ntrk
 
std::vector< float > t_vtx_sumpt2
 
std::vector< std::vector< int16_t > > t_vtx_trk_index
 
float t_fcalEt
 
float t_fcalEtA
 
float t_fcalEtC
 
float t_fcalEtA_TT
 
float t_fcalEtC_TT
 
float t_fcalEtA_TTsum
 
float t_fcalEtC_TTsum
 
float t_totalEt
 
float t_totalEt_TTsum
 
float t_totalEt24
 
float t_totalEt24_TTsum
 
float t_edgeGapA
 
float t_edgeGapC
 
float m_gapPtMin
 
float m_gapThresholds [98]
 
TH1 * h_TCSigCut
 
uint16_t t_mbts_countA
 
uint16_t t_mbts_countC
 
float t_mbts_timeA
 
float t_mbts_timeC
 
float t_mbts_timeDiff
 
uint16_t t_T2mbts_countAin
 
uint16_t t_T2mbts_countCin
 
uint16_t t_raw7 [2][4][2][2][7]
 
uint16_t t_raw15 [2][4][2][2][15]
 
uint16_t t_raw24 [2][4][2][2][24]
 
uint16_t t_rpdRaw [2][16][24]
 
uint32_t t_ntrk
 
std::vector< float > t_trk_pt
 
std::vector< float > t_trk_eta
 
std::vector< float > t_trk_phi
 
std::vector< float > t_trk_e
 
std::vector< float > t_trk_theta
 
std::vector< float > t_trk_d0
 
std::vector< float > t_trk_z0
 
std::vector< float > t_trk_vz
 
std::vector< float > t_trk_vtxz
 
std::vector< int8_t > t_trk_charge
 
std::vector< int16_t > t_trk_quality
 
std::vector< int > t_trk_index
 
std::vector< uint8_t > t_trk_nPixHits
 
std::vector< uint8_t > t_trk_nSctHits
 
std::vector< uint8_t > t_trk_nPixDead
 
std::vector< uint8_t > t_trk_nSctDead
 
std::vector< uint8_t > t_trk_nPixHoles
 
std::vector< uint8_t > t_trk_nSctHoles
 
std::vector< uint8_t > t_trk_nTrtHits
 
std::vector< uint8_t > t_trk_nTrtOutliers
 
std::vector< uint8_t > t_trk_inPixHits
 
std::vector< uint8_t > t_trk_exPixHits
 
std::vector< uint8_t > t_trk_ninPixHits
 
std::vector< uint8_t > t_trk_nexPixHits
 
std::vector< float > t_trk_pixeldEdx
 
uint32_t t_nclus
 
std::vector< float > t_cc_pt
 
std::vector< float > t_cc_eta
 
std::vector< float > t_cc_phi
 
std::vector< float > t_cc_e
 
std::vector< float > t_cc_sig
 
std::vector< int > t_cc_layer
 
std::vector< float > t_cc_raw_m
 
std::vector< float > t_cc_raw_eta
 
std::vector< float > t_cc_raw_phi
 
std::vector< float > t_cc_raw_e
 
std::vector< std::vector< float > > t_cc_raw_samp
 
float t_clusEt
 
float t_clusEtMax
 
float t_clusetaMax
 
float t_clusphiMax
 
int nProtons
 
std::vector< double > proton_pt
 
std::vector< double > proton_eta
 
std::vector< double > proton_phi
 
std::vector< double > proton_e
 
std::vector< int > proton_side
 
std::vector< double > proton_eLoss
 
std::vector< double > proton_t
 
std::vector< std::vector< int > > proton_track_stationID
 
std::vector< std::vector< float > > proton_track_xLocal
 
std::vector< std::vector< float > > proton_track_yLocal
 
std::vector< std::vector< float > > proton_track_zLocal
 
std::vector< std::vector< float > > proton_track_xSlope
 
std::vector< std::vector< float > > proton_track_ySlope
 
std::vector< std::vector< int > > proton_track_nClusters
 
TLorentzVector p_beam
 
TLorentzVector p_scat
 

Protected Member Functions

virtual void print () const
 print the state of the algorithm More...
 
virtual ::StatusCode fileExecute ()
 perform the action exactly once for each file in the dataset More...
 
virtual ::StatusCode beginInputFile ()
 perform the action for the beginning of an input file More...
 
virtual ::StatusCode endInputFile ()
 perform the action for the end of an input file More...
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 
StatusCode configAthHistogramming (const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
 To be called by the derived classes to fill the internal configuration. More...
 
TH1 * bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TH1 * bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TH1 * bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TTree * bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TTrees. More...
 
TGraph * bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs. More...
 
TEfficiency * bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TEfficiency * bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TEfficiency * bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (TH1 &histRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TTrees. More...
 
StatusCode book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs. More...
 
StatusCode book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TH1 * hist (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered histograms of any type. More...
 
TH2 * hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 2-d histograms. More...
 
TH3 * hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 3-d histograms. More...
 
TTree * tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TTrees. More...
 
TGraph * graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TGraphs. More...
 
TEfficiency * efficiency (const std::string &effName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TEfficiency. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 
typedef uint32_t hash_t
 typedef for the internal hash More...
 
typedef std::map< const hash_t, TH1 * > HistMap_t
 Typedef for convenience. More...
 
typedef std::map< const hash_t, TEfficiency * > EffMap_t
 Typedef for convenience. More...
 
typedef std::map< const hash_t, TTree * > TreeMap_t
 Typedef for convenience. More...
 
typedef std::map< const hash_t, TGraph * > GraphMap_t
 Typedef for convenience. More...
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 
void buildBookingString (std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
 Method to build individual booking string. More...
 
void myReplace (std::string &str, const std::string &oldStr, const std::string &newStr)
 Helper method to replace sub-string. More...
 
hash_t hash (const std::string &histName) const
 Method to calculate a 32-bit hash from a string. More...
 

Private Attributes

unsigned int m_lastRunNumber {0}
 
ZdcInjPulserAmpMap::Token m_injMapRunToken {}
 
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store. More...
 
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store. More...
 
bool m_hasFileExecute {false}
 the value of hasFileExecute More...
 
bool m_hasBeginInputFile {false}
 the value of hasBeginInputFile More...
 
bool m_hasEndInputFile {false}
 the value of hasEndInputFile More...
 
ServiceHandle< ITHistSvc > m_histSvc
 Default constructor: AthHistogramAlgorithm();. More...
 
std::string m_prefix
 Name of the ROOT output stream (file) More...
 
std::string m_rootDir
 Name of the ROOT directory. More...
 
std::string m_histNamePrefix
 The prefix for the histogram THx name. More...
 
std::string m_histNamePostfix
 The postfix for the histogram THx name. More...
 
std::string m_histTitlePrefix
 The prefix for the histogram THx title. More...
 
std::string m_histTitlePostfix
 The postfix for the histogram THx title. More...
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 
HistMap_t m_histMap
 The map of histogram names to their pointers. More...
 
EffMap_t m_effMap
 The map of histogram names to their pointers. More...
 
TreeMap_t m_treeMap
 The map of TTree names to their pointers. More...
 
GraphMap_t m_graphMap
 The map of TGraph names to their pointers. More...
 
std::string m_streamName
 Name of the ROOT output stream (file) More...
 
std::string m_name
 Instance name. More...
 
MsgStream m_msg
 Cached Message Stream. More...
 

Detailed Description

Definition at line 50 of file ZdcNtuple.h.

Member Typedef Documentation

◆ ConstMetaStorePtr_t

Definition at line 111 of file AnaAlgorithm.h.

◆ EffMap_t

typedef std::map< const hash_t, TEfficiency* > AthHistogramming::EffMap_t
privateinherited

Typedef for convenience.

Definition at line 205 of file AthHistogramming.h.

◆ GraphMap_t

typedef std::map< const hash_t, TGraph* > AthHistogramming::GraphMap_t
privateinherited

Typedef for convenience.

Definition at line 219 of file AthHistogramming.h.

◆ hash_t

typedef uint32_t AthHistogramming::hash_t
privateinherited

typedef for the internal hash

Definition at line 169 of file AthHistogramming.h.

◆ HistMap_t

typedef std::map< const hash_t, TH1* > AthHistogramming::HistMap_t
privateinherited

Typedef for convenience.

Definition at line 198 of file AthHistogramming.h.

◆ MetaStore_t

Type of the metadata store variable in Athena.

Definition at line 546 of file AnaAlgorithm.h.

◆ MetaStorePtr_t

Type of the metadata store pointer in standalone mode.

Definition at line 110 of file AnaAlgorithm.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ TreeMap_t

typedef std::map< const hash_t, TTree* > AthHistogramming::TreeMap_t
privateinherited

Typedef for convenience.

Definition at line 212 of file AthHistogramming.h.

Constructor & Destructor Documentation

◆ ZdcNtuple()

ZdcNtuple::ZdcNtuple ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 20 of file ZdcNtuple.cxx.

21  : EL::AnaAlgorithm(name, pSvcLocator),
22  m_grl ("GoodRunsListSelectionTool/grl", this),
23  //m_zdcAnalysisTool("ZDC::ZdcAnalysisTool/ZdcAnalysisTool", this),
24  m_selTool( "InDet::InDetTrackSelectionTool/TrackSelectionTool", this )
25 {
26  // Here you put any code for the base initialization of variables,
27  // e.g. initialize all pointers to 0. Note that you should only put
28  // the most basic initialization here, since this method will be
29  // called on both the submission and the worker node. Most of your
30  // initialization code will go into histInitialize() and
31  // initialize().
32  m_setupTrigHist = false;
33  m_eventCounter = 0;
34 
35  declareProperty("isMC", m_isMC = false, "MC mode");
36  declareProperty("enableOutputTree", enableOutputTree = false, "Enable output tree");
37  declareProperty("enableOutputSamples", enableOutputSamples = false, "Output ZDC and RPD raw data");
38  declareProperty("enableTrigger", enableTrigger = true, "comment");
39  declareProperty("enableTracks", enableTracks = false, "comment");
40  declareProperty("trackLimit", trackLimit = 500, "comment");
41  declareProperty("enableClusters", enableClusters = true, "comment");
42  declareProperty("writeOnlyTriggers", writeOnlyTriggers = false, "comment");
43  declareProperty("useGRL", useGRL = true, "comment");
44  declareProperty("grlFilename", grlFilename = "$ROOTCOREBIN/data/ZdcNtuple/data16_hip8TeV.periodAllYear_DetStatus-v86-pro20-19_DQDefects-00-02-04_PHYS_HeavyIonP_All_Good.xml", "comment");
45  declareProperty("slimmed", slimmed = false, "comment");
46  declareProperty("zdcCalib", zdcCalib = false, "zdc/ZDCCalib file");
47  declareProperty("zdcInj", zdcInj = false, "ZDC injected pulse");
48  declareProperty("zdcLaser", zdcLaser = false, "Run 2 ZDC Laser");
49  declareProperty("zdcOnly", zdcOnly = false, "comment");
50  declareProperty("zdcLowGainMode", zdcLowGainMode = 0, "comment");
51 
52  declareProperty("flipDelay", flipDelay = 0, "comment");
53  declareProperty("reprocZdc", reprocZdc = 0, "comment");
54  declareProperty("auxSuffix", auxSuffix = "", "comment");
55  declareProperty("nsamplesZdc", nsamplesZdc = 24, "number of samples, 7 = most of Run 2, 24 = Run 3");
56  declareProperty("lhcf2022", lhcf2022 = false,"LHCf2022 general config");
57  declareProperty("lhcf2022afp", lhcf2022afp = false,"LHCf2022 AFP-specific config");
58  declareProperty("lhcf2022zdc", lhcf2022zdc = false,"LHCf2022 ZDC-specific config");
59  declareProperty("pbpb2023", pbpb2023 = true, "PbPb2023 config");
60  declareProperty("zdcConfig", zdcConfig = "PbPb2018", "argument to configure ZdcAnalysisTool");
61  declareProperty("doZdcCalib", doZdcCalib = false, "perform ZDC energy calibration");
62  declareProperty("enableZDC", enableZDC = true);
63  declareProperty("enableRPD",enableRPD = false,"enable reading any RPD decorations");
64  declareProperty("enableRPDAmp",enableRPDAmp = false,"enable reading RPD amplitudes (also requires enableRPD)");
65  declareProperty("enableCentroid",enableCentroid = false,"enable reading centroid decorations (also requires enableRPD)");
66 
67  declareProperty( "TrackSelectionTool", m_selTool );
68 
69  m_zdcAnalysisTool.declarePropertyFor (this, "zdcAnalysisTool");
70 
71 }

Member Function Documentation

◆ acceptEvent()

uint32_t ZdcNtuple::acceptEvent ( )

Definition at line 1931 of file ZdcNtuple.cxx.

1932 {
1933  uint32_t passbits = 0;
1934 
1935  if (!m_isMC)
1936  {
1937  if (useGRL)
1938  {
1939  if (!m_grl->passRunLB(*m_eventInfo)) {
1940  passbits += 1; // UPC GRL
1941  }
1942  }
1943 
1944  /*
1945  if(!m_grl_mb->passRunLB(*m_eventInfo)){
1946  passbits += 4; // MB GRL
1947  }
1948  */
1949 
1954  {
1955  passbits += 2;
1956  } // end if event flags check
1957  } // end if the event is data
1958 
1959  return passbits;
1960 }

◆ beginInputFile()

StatusCode EL::AnaAlgorithm::beginInputFile ( )
protectedinherited

perform the action for the beginning of an input file

Ideally you don't use this, but instead rely on meta-data tools instead. However, there are enough people asking for it that I decided to implement it anyways.

\warn To use this you have to call requestBeginInputFile to use this.

\warn If a file is split across multiple jobs this will be called more than once. This only happens for specific batch drivers and/or if it is explicitly configured by the user. With PROOF it could even happen multiple times within the same job, and while PROOF is no longer supported that behavior may come back if support for a similar framework is added in the future. As such, this method should not be used for accounting that relies to be called exactly once per file, take a look at fileExecute if you want something that is guaranteed to be executed exactly once per input file.

\warn The execution order of beginInputFile and fileExecute is currently unspecified.

Definition at line 350 of file AnaAlgorithm.cxx.

352  {
353  return StatusCode::SUCCESS;
354  }

◆ book() [1/8]

StatusCode AthHistogramming::book ( const TEfficiency &  eff,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 335 of file AthHistogramming.h.

336 {
337  // We need to create a non-const clone
338  TEfficiency* effClone = dynamic_cast< TEfficiency* >( eff.Clone() );
339  if ( !effClone ) {
340  m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone" << endmsg;
341  return StatusCode::FAILURE;
342  }
343  return this->book( *effClone, tDir, stream );
344 }

◆ book() [2/8]

StatusCode AthHistogramming::book ( const TGraph &  graphRef,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TGraphs.

◆ book() [3/8]

StatusCode AthHistogramming::book ( const TH1 &  hist,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 303 of file AthHistogramming.h.

304 {
305  // We need to create a non-const clone
306  TH1* histClone = dynamic_cast< TH1* >( hist.Clone() );
307  if ( !histClone ) {
308  m_msg << MSG::ERROR << "Couldn't create a TH1 clone" << endmsg;
309  return StatusCode::FAILURE;
310  }
311  return this->book( *histClone, tDir, stream );
312 }

◆ book() [4/8]

StatusCode AthHistogramming::book ( const TTree &  treeRef,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TTrees.

Definition at line 403 of file AthHistogramming.h.

404 {
405  // Call the other Book method and see if it returns a valid pointer
406  TTree* treePointer = this->bookGetPointer( treeRef, tDir, stream );
407  if ( treePointer )
408  {
409  return StatusCode::SUCCESS;
410  }
411  else
412  {
413  return StatusCode::FAILURE;
414  }
415 }

◆ book() [5/8]

StatusCode AthHistogramming::book ( TEfficiency &  effRef,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 356 of file AthHistogramming.h.

357 {
358  // Call the other Book method and see if it returns a valid pointer
359  TEfficiency* effPointer = this->bookGetPointer( effRef, tDir, stream );
360  if ( !effPointer ) {
361  m_msg << MSG::ERROR << "Couldn't book a TEfficiency" << endmsg;
362  return StatusCode::FAILURE;
363  }
364  return StatusCode::SUCCESS;
365 }

◆ book() [6/8]

StatusCode AthHistogramming::book ( TEfficiency *  eff,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 346 of file AthHistogramming.h.

347 {
348  if ( !eff ) {
349  m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency" << endmsg;
350  return StatusCode::FAILURE;
351  }
352  return this->book( *eff, tDir, stream );
353 }

◆ book() [7/8]

StatusCode AthHistogramming::book ( TH1 &  histRef,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 324 of file AthHistogramming.h.

325 {
326  // Call the other Book method and see if it returns a valid pointer
327  TH1* histPointer = this->bookGetPointer( histRef, tDir, stream );
328  if ( !histPointer ) {
329  m_msg << MSG::ERROR << "Couldn't book a TH1" << endmsg;
330  return StatusCode::FAILURE;
331  }
332  return StatusCode::SUCCESS;
333 }

◆ book() [8/8]

StatusCode AthHistogramming::book ( TH1 *  hist,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 314 of file AthHistogramming.h.

315 {
316  if ( !hist ) {
317  m_msg << MSG::ERROR << "Got a zero pointer to a TH1" << endmsg;
318  return StatusCode::FAILURE;
319  }
320  return this->book( *hist, tDir, stream );
321 }

◆ bookGetPointer() [1/8]

TEfficiency * AthHistogramming::bookGetPointer ( const TEfficiency &  eff,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 281 of file AthHistogramming.h.

282 {
283  // We need to create a non-const clone
284  TEfficiency* histClone = dynamic_cast< TEfficiency* >( hist.Clone() );
285  if ( !histClone ) {
286  m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone in bookGetPointer" << endmsg;
287  return 0;
288  }
289  return this->bookGetPointer( *histClone, tDir, stream );
290 
291 }

◆ bookGetPointer() [2/8]

TGraph * AthHistogramming::bookGetPointer ( const TGraph &  graphRef,
std::string  tDir = "",
std::string  stream = "" 
)
protectedinherited

Simplify the booking and registering (into THistSvc) of TGraphs.

Definition at line 427 of file AthHistogramming.cxx.

428 {
429  // Get a pointer
430  const TGraph* graphPointer = &graphRef;
431 
432  // Check that we got a valid pointer
433  if ( !graphPointer )
434  {
435  m_msg << MSG::WARNING
436  << "We got an invalid TGraph pointer in the BookGetPointer(TGraph*) method of the class" << m_name
437  << "!" << endmsg;
438  return NULL;
439  }
440 
441  // Modify the name and title according to the prefixes of this classes instance
442  std::string graphName = graphPointer->GetName();
443  const std::string graphTitle = graphPointer->GetTitle();
444 
445  // Check if the hash for this graphName already exists, i.e., if we have a hash collision
446  const hash_t graphHash = this->hash(graphName);
447  GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
448  if ( it != m_graphMap.end() ) // It does exist!
449  {
450  m_msg << MSG::WARNING
451  << "Detected a hash collision. The hash for the TGraph with name=" << graphName
452  << " already exists and points to a TGraph with name=" << it->second->GetName()
453  << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
454  return NULL;
455  }
456 
457  // Create a clone that has the new name
458  TGraph* graphClone = dynamic_cast< TGraph* >( graphPointer->Clone((m_histNamePrefix+graphName+m_histNamePostfix).c_str()) );
459  if( !graphClone )
460  {
461  m_msg << MSG::WARNING
462  << "We couldn't clone the TGraph in the BookGetPointer(TGraph&) method of the class" << m_name
463  << "!" << endmsg;
464  return NULL;
465  }
466  graphClone->SetTitle ((m_histTitlePrefix+graphTitle+m_histTitlePostfix).c_str());
467 
468  // Massage the final string to book things
469  std::string bookingString("");
470  this->buildBookingString( bookingString, graphName, tDir, stream );
471 
472  // Register the TGraph into the THistSvc
473  if ( !((histSvc()->regGraph(bookingString, graphClone)).isSuccess()) )
474  {
475  m_msg << MSG::WARNING
476  << "Problem registering TGraph with name " << graphName
477  << ", title " << graphTitle
478  << " in " << m_name << "!" << endmsg;
479  return NULL;
480  }
481 
482  // Also register it in the local map of string to pointer
483  m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphClone ) );
484 
485  return graphClone;
486 }

◆ bookGetPointer() [3/8]

TH1 * AthHistogramming::bookGetPointer ( const TH1 &  hist,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 260 of file AthHistogramming.h.

261 {
262  // We need to create a non-const clone
263  TH1* histClone = dynamic_cast< TH1* >( hist.Clone() );
264  if ( !histClone ) {
265  m_msg << MSG::ERROR << "Couldn't create a TH1 clone in bookGetPointer" << endmsg;
266  return 0;
267  }
268  return this->bookGetPointer( *histClone, tDir, stream );
269 
270 }

◆ bookGetPointer() [4/8]

TTree * AthHistogramming::bookGetPointer ( const TTree &  treeRef,
std::string  tDir = "",
std::string  stream = "" 
)
protectedinherited

Simplify the booking and registering (into THistSvc) of TTrees.

Definition at line 312 of file AthHistogramming.cxx.

313 {
314  // Get a pointer
315  const TTree* treePointer = &treeRef;
316 
317  // Check that we got a valid pointer
318  if ( !treePointer )
319  {
320  m_msg << MSG::WARNING
321  << "We got an invalid TTree pointer in the BookGetPointer(TTree*) method of the class" << m_name
322  << "!" << endmsg;
323  return NULL;
324  }
325 
326  // Modify the name and title according to the prefixes of this classes instance
327  std::string treeName = treePointer->GetName();
328  const std::string treeTitle = treePointer->GetTitle();
329 
330  // Check if the hash for this treeName already exists, i.e., if we have a hash collision
331  const hash_t treeHash = this->hash(treeName);
332  TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
333  if ( it != m_treeMap.end() ) // It does exist!
334  {
335  m_msg << MSG::WARNING
336  << "Detected a hash collision. The hash for the TTree with name=" << treeName
337  << " already exists and points to a TTree with name=" << it->second->GetName()
338  << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
339  return NULL;
340  }
341 
342  // Create a clone that has the new name
343  TTree* treeClone = dynamic_cast< TTree* >( treePointer->Clone(treeName.c_str()) );
344  if( !treeClone )
345  {
346  m_msg << MSG::WARNING
347  << "We couldn't clone the TTree in the BookGetPointer(TTree&) method of the class" << m_name
348  << "!" << endmsg;
349  return NULL;
350  }
351  treeClone->SetTitle (treeTitle.c_str());
352 
353  // Massage the final string to book things
354  std::string bookingString("");
355  this->buildBookingString( bookingString, treeName, tDir, stream );
356 
357  // Register the TTree into the THistSvc
358  if ( !((histSvc()->regTree(bookingString, treeClone)).isSuccess()) )
359  {
360  m_msg << MSG::WARNING
361  << "Problem registering TTree with name " << treeName
362  << ", title " << treeTitle
363  << " in " << m_name << "!" << endmsg;
364  return NULL;
365  }
366 
367  // Also register it in the local map of string to pointer
368  m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treeClone ) );
369 
370  return treeClone;
371 }

◆ bookGetPointer() [5/8]

TEfficiency * AthHistogramming::bookGetPointer ( TEfficiency &  effRef,
std::string  tDir = "",
std::string  stream = "" 
)
protectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 146 of file AthHistogramming.cxx.

147 {
148  // Modify the name and title according to the prefixes of this classes instance
149  std::string effName(effRef.GetName());
150  const std::string effTitle(effRef.GetTitle());
151  std::string bookingString("");
152 
153  this->buildBookingString( bookingString, effName, tDir, stream );
154  effRef.SetTitle((m_histTitlePrefix+effTitle+m_histTitlePostfix).c_str() );
155  effRef.SetName(effName.c_str());
156 
157  // Check if the hash for this effName already exists, i.e., if we have a hash collision
158  const hash_t effHash = this->hash(effName);
159  EffMap_t::const_iterator it = m_effMap.find( effHash );
160  if ( it != m_effMap.end() ) // It does exist!
161  {
162  m_msg << MSG::WARNING
163  << "Detected a hash collision. The hash for the TEfficiency with name=" << effName
164  << " already exists and points to a TEfficiency with name=" << it->second->GetName()
165  << " NOT going to book the new TEfficiency and returning a NULL pointer!" << endmsg;
166  return NULL;
167  }
168 
169  // Set the new name and title for the TEfficiency, based on the prefixes that the user set for this class instance
170  // Create a clone that has the new name
171 
172  // Massage the final string to book things
173 
174  // Register the TEfficiency into the THistSvc
175  if ( !((histSvc()->regEfficiency(bookingString, &effRef)).isSuccess()) )
176  {
177  m_msg << MSG::WARNING
178  << "Problem registering TEfficiency with name " << effName
179  << ", name prefix " << m_histNamePrefix
180  << ", title " << effTitle
181  << ", tile prefix " << m_histTitlePrefix
182  << ", and tile postfix " << m_histTitlePostfix
183  << " in " << m_name << "!" << endmsg;
184  return NULL;
185  }
186 
187  // Also register it in the local map of string to pointer
188  m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, &effRef ) );
189 
190  return &effRef;
191 }

◆ bookGetPointer() [6/8]

TEfficiency * AthHistogramming::bookGetPointer ( TEfficiency *  eff,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 293 of file AthHistogramming.h.

294 {
295  if ( !hist ) {
296  m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency in bookGetPointer" << endmsg;
297  return 0;
298  }
299  return this->bookGetPointer( *hist, tDir, stream );
300 }

◆ bookGetPointer() [7/8]

TH1 * AthHistogramming::bookGetPointer ( TH1 &  histRef,
std::string  tDir = "",
std::string  stream = "" 
)
protectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 98 of file AthHistogramming.cxx.

99 {
100  // Modify the name and title according to the prefixes of this classes instance
101  std::string histName(histRef.GetName());
102  const std::string histTitle(histRef.GetTitle());
103  std::string bookingString("");
104 
105  this->buildBookingString( bookingString, histName, tDir, stream );
106  histRef.SetTitle((m_histTitlePrefix+histTitle+m_histTitlePostfix).c_str() );
107  histRef.SetName(histName.c_str());
108 
109  // Check if the hash for this histName already exists, i.e., if we have a hash collision
110  const hash_t histHash = this->hash(histName);
111  HistMap_t::const_iterator it = m_histMap.find( histHash );
112  if ( it != m_histMap.end() ) // It does exist!
113  {
114  m_msg << MSG::WARNING
115  << "Detected a hash collision. The hash for the histogram with name=" << histName
116  << " already exists and points to a histogram with name=" << it->second->GetName()
117  << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
118  return NULL;
119  }
120 
121  // Set the new name and title for the histogram, based on the prefixes that the user set for this class instance
122  // Create a clone that has the new name
123 
124  // Massage the final string to book things
125 
126  // Register the histogram into the THistSvc
127  if ( !((histSvc()->regHist(bookingString, &histRef)).isSuccess()) )
128  {
129  m_msg << MSG::WARNING
130  << "Problem registering histogram with name " << histName
131  << ", name prefix " << m_histNamePrefix
132  << ", title " << histTitle
133  << ", tile prefix " << m_histTitlePrefix
134  << ", and tile postfix " << m_histTitlePostfix
135  << " in " << m_name << "!" << endmsg;
136  return NULL;
137  }
138 
139  // Also register it in the local map of string to pointer
140  m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, &histRef ) );
141 
142  return &histRef;
143 }

◆ bookGetPointer() [8/8]

TH1 * AthHistogramming::bookGetPointer ( TH1 *  hist,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 272 of file AthHistogramming.h.

273 {
274  if ( !hist ) {
275  m_msg << MSG::ERROR << "Got a zero pointer to a TH1 in bookGetPointer" << endmsg;
276  return 0;
277  }
278  return this->bookGetPointer( *hist, tDir, stream );
279 }

◆ buildBookingString()

void AthHistogramming::buildBookingString ( std::string &  bookingString,
std::string &  histName,
std::string &  tDir,
std::string &  stream,
bool  usePrefixPostfix = false 
)
privateinherited

Method to build individual booking string.

Definition at line 560 of file AthHistogramming.cxx.

565 {
566  // Massage the final string to book things
567  if(tDir.empty()) tDir = m_rootDir;
568  size_t pos = histName.rfind('/');
569  if(pos != std::string::npos){
570  tDir+='/';
571  tDir.append(histName, 0,pos);
572  histName.erase(0,pos+1);
573  };
574  if(stream.empty()) stream = m_streamName;
575 
576  if(usePrefixPostfix){
577  bookingString = "/"+stream+"/"+tDir+"/"+m_histNamePrefix+histName+m_histNamePostfix;
578  } else {
579  bookingString = "/"+stream+"/"+tDir+"/"+histName;
580  }
581  while(bookingString.find("//") != std::string::npos){
582  this->myReplace(bookingString,"//","/");
583  }
584 
585  return;
586 }

◆ configAthHistogramming()

StatusCode AthHistogramming::configAthHistogramming ( const ServiceHandle< ITHistSvc > &  histSvc,
const std::string &  prefix,
const std::string &  rootDir,
const std::string &  histNamePrefix,
const std::string &  histNamePostfix,
const std::string &  histTitlePrefix,
const std::string &  histTitlePostfix 
)
protectedinherited

To be called by the derived classes to fill the internal configuration.

Definition at line 66 of file AthHistogramming.cxx.

70 {
73  m_rootDir = rootDir;
74  m_histNamePrefix = histNamePrefix;
75  m_histNamePostfix = histNamePostfix;
76  m_histTitlePrefix = histTitlePrefix;
77  m_histTitlePostfix = histTitlePostfix;
78 
79  return StatusCode::SUCCESS;
80 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ dR()

double ZdcNtuple::dR ( const double  eta1,
const double  phi1,
const double  eta2,
const double  phi2 
)

Definition at line 2084 of file ZdcNtuple.cxx.

2085 {
2086  double deta = std::abs(eta1 - eta2);
2087  double dphi = std::abs(phi1 - phi2) < TMath::Pi() ? std::abs(phi1 - phi2) : 2 * TMath::Pi() - std::abs(phi1 - phi2);
2088  return std::sqrt(deta * deta + dphi * dphi);
2089 }

◆ efficiency()

TEfficiency * AthHistogramming::efficiency ( const std::string &  effName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
protectedinherited

Simplify the retrieval of registered TEfficiency.

Definition at line 250 of file AthHistogramming.cxx.

251 {
252  // Build a 32 bit hash out of the name
253  const hash_t effHash = this->hash(effName);
254 
255  // See if this entry exists in the map
256  EffMap_t::const_iterator it = m_effMap.find( effHash );
257  if ( it == m_effMap.end() ) // It doesn't exist!
258  { // Let's see into the THistSvc if somebody else has registered the TEfficiency...
259 
260  // Need to copy the strings as we will massage them from here on
261  std::string effNameCopy = effName;
262  std::string tDirCopy = tDir;
263  std::string streamCopy = stream;
264 
265  // Massage the final string to book things
266  std::string bookingString("");
267  this->buildBookingString( bookingString, effNameCopy, tDirCopy, streamCopy ,false);
268 
269  TEfficiency* effPointer(NULL);
270  if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
271  {
272  // Massage the final string to book things
273  std::string bookingString("");
274  this->buildBookingString( bookingString, effNameCopy, tDirCopy, streamCopy, true );
275 
276  if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
277  {
278  m_msg << MSG::WARNING
279  << "Problem retrieving the TEfficiency with name (including pre- and post-fixes) "
280  << m_histNamePrefix + effNameCopy + m_histNamePostfix
281  << " or with name " << effNameCopy
282  << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
283  << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
284  return NULL;
285  }
286  // If we get to here, we actually found the TEfficiency in the THistSvc.
287  // So let's add it to the local cache map and return its pointer
288  m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
289  return effPointer;
290  }
291  // If we get to here, we actually found the TEfficiency in the THistSvc.
292  // So let's add it to the local cache map and return its pointer
293  m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
294  return effPointer;
295  }
296 
297  // Return the pointer to the TEfficiency that we got from the local cache map
298  return it->second;
299 }

◆ endInputFile()

StatusCode EL::AnaAlgorithm::endInputFile ( )
protectedinherited

perform the action for the end of an input file

Ideally you don't use this, but instead rely on meta-data tools instead. However, there are enough people asking for it that I decided to implement it anyways.

\warn To use this you have to call requestEndInputFile to use this.

\warn If a file is split across multiple jobs this will be called more than once. This only happens for specific batch drivers and/or if it is explicitly configured by the user. With PROOF it could even happen multiple times within the same job, and while PROOF is no longer supported that behavior may come back if support for a similar framework is added in the future. As such, this method should not be used for accounting that relies to be called exactly once per file, take a look at fileExecute if you want something that is guaranteed to be executed exactly once per input file.

\warn The execution order of endInputFile and fileExecute is currently unspecified.

Definition at line 358 of file AnaAlgorithm.cxx.

360  {
361  return StatusCode::SUCCESS;
362  }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode ZdcNtuple::execute ( )
overridevirtual

Definition at line 519 of file ZdcNtuple.cxx.

520 {
521  // Here you do everything that needs to be done on every single
522  // events, e.g. read input variables, apply cuts, and fill
523  // histograms and trees. This is where most of your actual analysis
524  // code will go.
525 
526 
527  // prefilter with a track limit
528 
529  if (!evtStore())
530  {
531  ANA_MSG_INFO("*** No event found! ***");
532  return StatusCode::SUCCESS;
533  }
534 
535  ANA_CHECK(evtStore()->retrieve( m_eventInfo, "EventInfo"));
537  if (zdcInj){
538  processVInjInfo();
539  }
540 
541  //tracks used to go here
542 
543  m_trackParticles = 0;
544 
545  if (!(zdcCalib || zdcLaser || zdcOnly || zdcInj))
546  {
547  ANA_MSG_DEBUG("Trying to extract InDetTrackParticles from evtStore()=" << evtStore());
548  ANA_CHECK(evtStore()->retrieve( m_trackParticles, "InDetTrackParticles") );
549  size_t n = m_trackParticles->size();
550  ANA_MSG_DEBUG("Done w/ extracting InDetTrackParticles with size = " << n);
551 
552  if (n > trackLimit && trackLimitReject) return StatusCode::SUCCESS;
553  }
554 
555  bool passTrigger = true;
556  m_trigDecision = 0;
557  if (enableTrigger)
558  {
559  ANA_CHECK(evtStore()->retrieve( m_trigDecision, "xTrigDecision"));
561  passTrigger = processTriggerDecision();
562  }
563 
564  if (reprocZdc){
565  ANA_MSG_INFO ("Reprocessing ZDC in ZdcNtuple");
567  }else{
568  ANA_MSG_DEBUG ("No ZDC reprocessing");
569  }
570 
571  processZdcNtupleFromModules(); // same model in both cases -- processZdcNtuple() goes straight to the anlaysis tool, which is good for debugging
572 
573  if(m_isMC){
575  }
576 
577  if (!(zdcCalib || zdcLaser || zdcOnly || zdcInj))
578  {
579 
580  // PLEASE NOTE: the commented sections here will be restored once we have a better sense of the Run 3 HI data
581 
582  // Global E_T quantities for centrality
583 
584  //ANA_CHECK(evtStore()->retrieve( m_caloSums, "CaloSums") );
585  //ANA_CHECK(evtStore()->retrieve( m_eventShapes, "HIEventShape") );
586 
587  m_lvl1EnergySumRoI = 0;
588  //ANA_CHECK(evtStore()->retrieve( m_lvl1EnergySumRoI, "LVL1EnergySumRoI") );
589 
590  //processFCal();
591 
592  // MBTS quantities, but may require a derivation to be accessible (required STDM6 in pp)
593  //ANA_CHECK(evtStore()->retrieve( m_mbtsInfo, "MBTSForwardEventInfo") );
594  //ANA_CHECK(evtStore()->retrieve( m_mbtsModules, "MBTSModules") );
595  //m_trigT2MbtsBits = 0;
596  //ANA_CHECK(evtStore()->retrieve( m_trigT2MbtsBits, "HLT_xAOD__TrigT2MbtsBitsContainer_T2Mbts") );
597  //processMBTS();
598 
599  ANA_CHECK(evtStore()->retrieve( m_primaryVertices, "PrimaryVertices") );
600  processInDet();
601 
602 
603  ANA_CHECK(evtStore()->retrieve( m_caloClusters, "CaloCalTopoClusters"));
604  processClusters();
605 
606  // Gaps will require some evaluation of Run 3 performance of the clusters
607  //processGaps();
608 
610  ANA_CHECK(evtStore()->retrieve( m_afpProtons, "AFPProtonContainer"));
611  processProtons();
612  }
613  }
614 
615  // if trigger enabled, only write out events which pass one of them, unless using MC
616 
617  if (enableTrigger && !passTrigger && !m_isMC && writeOnlyTriggers) return StatusCode::SUCCESS;
618 
619 
620  if (enableOutputTree)
621  {
622  tree( "zdcTree" )->Fill();
623  }
624 
625  return StatusCode::SUCCESS;
626 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ fileExecute()

StatusCode EL::AnaAlgorithm::fileExecute ( )
protectedinherited

perform the action exactly once for each file in the dataset

Ideally you don't use this, but instead rely on meta-data tools instead. However, there are enough people asking for it that I decided to implement it anyways.

\warn To use this you have to call requestFileExecute to use this.

\warn The user should not expect this to be called at any particular point in execution. If a file is split between multiple jobs this will be called in only one of these jobs, and not the others. It usually gets called before the first event in a file, but that is not guaranteed and relying on this is a bug.

\warn The execution order of beginInputFile and fileExecute is currently unspecified.

\warn fileExecute does not work with sub-file splitting in Athena, i.e. processing half the events of a file in one job the other half in another job. this should not normally happen, unless you do crazy things like run AthenaMP or explicitly select sub-file splitting in panda. in that case you are on your own.

Definition at line 342 of file AnaAlgorithm.cxx.

344  {
345  return StatusCode::SUCCESS;
346  }

◆ finalize()

StatusCode ZdcNtuple::finalize ( )
overridevirtual

Definition at line 2092 of file ZdcNtuple.cxx.

2093 {
2094  // This method is the mirror image of initialize(), meaning it gets
2095  // called after the last event has been processed on the worker node
2096  // and allows you to finish up any objects you created in
2097  // initialize() before they are written to disk. This is actually
2098  // fairly rare, since this happens separately for each worker node.
2099  // Most of the time you want to do your post-processing on the
2100  // submission node after all your histogram outputs have been
2101  // merged. This is different from histFinalize() in that it only
2102  // gets called on worker nodes that processed input events.
2103 
2104 
2105  return StatusCode::SUCCESS;
2106 }

◆ graph()

TGraph * AthHistogramming::graph ( const std::string &  graphName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
protectedinherited

Simplify the retrieval of registered TGraphs.

Definition at line 492 of file AthHistogramming.cxx.

493 {
494  // Build a 32 bit hash out of the name
495  const hash_t graphHash = this->hash(graphName);
496 
497  // See if this entry exists in the map
498  GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
499  if ( it == m_graphMap.end() ) // It doesn't exist!
500  { // Let's see into the THistSvc if somebody else has registered the TGraph...
501 
502  // Need to copy the strings as we will massage them from here on
503  std::string graphNameCopy = graphName;
504  std::string tDirCopy = tDir;
505  std::string streamCopy = stream;
506 
507  // Massage the final string to book things
508  std::string bookingString("");
509  this->buildBookingString( bookingString, graphNameCopy, tDirCopy, streamCopy, true);
510 
511  TGraph* graphPointer(NULL);
512  if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
513  {
514  // Massage the final string to book things
515  std::string bookingString("");
516  this->buildBookingString( bookingString, graphNameCopy, tDirCopy, streamCopy, false );
517 
518  if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
519  {
520  m_msg << MSG::WARNING
521  << "Problem retrieving the TGraph with name (including pre- and post-fixes) "
522  << m_histNamePrefix + graphNameCopy + m_histNamePostfix
523  << " or with name " << graphNameCopy
524  << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
525  << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
526  return NULL;
527  }
528  // If we get to here, we actually found the TGraph in the THistSvc.
529  // So let's add it to the local cache map and return its pointer
530  m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
531  return graphPointer;
532  }
533  // If we get to here, we actually found the TGraph in the THistSvc.
534  // So let's add it to the local cache map and return its pointer
535  m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
536  return graphPointer;
537  }
538 
539 
540  // Return the pointer to the TGraph that we got from the local cache map
541  return it->second;
542 }

◆ handle()

void EL::AnaAlgorithm::handle ( const Incident &  inc)
inherited

receive the given incident

Guarantee
basic
Failures
incident handling errors

Definition at line 520 of file AnaAlgorithm.cxx.

522  {
523  if (inc.type() == IncidentType::BeginInputFile)
524  {
527  if (m_hasFileExecute)
529  } else if (inc.type() == IncidentType::EndInputFile)
530  {
531  if (m_hasEndInputFile)
533  } else
534  {
535  ATH_MSG_WARNING( "Unknown incident type received: " << inc.type() );
536  }
537  }

◆ hash()

AthHistogramming::hash_t AthHistogramming::hash ( const std::string &  histName) const
inlineprivateinherited

Method to calculate a 32-bit hash from a string.

Definition at line 428 of file AthHistogramming.h.

429 {
431  return (hash_t)(hash64 & 0xFFFFFFFF);
432 }

◆ hist()

TH1 * AthHistogramming::hist ( const std::string &  histName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
protectedinherited

Simplify the retrieval of registered histograms of any type.

Definition at line 198 of file AthHistogramming.cxx.

199 {
200  // Build a 32 bit hash out of the name
201  const hash_t histHash = this->hash(histName);
202 
203  // See if this entry exists in the map
204  HistMap_t::const_iterator it = m_histMap.find( histHash );
205  if ( it == m_histMap.end() ) // It doesn't exist!
206  { // Let's see into the THistSvc if somebody else has registered the histogram...
207 
208  // Need to copy the strings as we will massage them from here on
209  std::string histNameCopy = histName;
210  std::string tDirCopy = tDir;
211  std::string streamCopy = stream;
212 
213  // Massage the final string to book things
214  std::string bookingString("");
215  this->buildBookingString( bookingString, histNameCopy, tDirCopy, streamCopy ,false);
216 
217  TH1* histPointer(NULL);
218  if ( !((histSvc()->getHist(bookingString, histPointer)).isSuccess()) )
219  {
220  // Massage the final string to book things
221  std::string bookingString("");
222  this->buildBookingString( bookingString, histNameCopy, tDirCopy, streamCopy, true );
223 
224  if ( !((histSvc()->getHist(bookingString, histPointer)).isSuccess()) )
225  {
226  m_msg << MSG::WARNING
227  << "Problem retrieving the histogram with name (including pre- and post-fixes) "
228  << m_histNamePrefix + histNameCopy + m_histNamePostfix
229  << " or with name " << histNameCopy
230  << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
231  << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
232  return NULL;
233  }
234  // If we get to here, we actually found the histogram in the THistSvc.
235  // So let's add it to the local cache map and return its pointer
236  m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
237  return histPointer;
238  }
239  // If we get to here, we actually found the histogram in the THistSvc.
240  // So let's add it to the local cache map and return its pointer
241  m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
242  return histPointer;
243  }
244 
245 
246  // Return the pointer to the histogram that we got from the local cache map
247  return it->second;
248 }

◆ hist2d()

TH2 * AthHistogramming::hist2d ( const std::string &  histName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the retrieval of registered 2-d histograms.

Definition at line 369 of file AthHistogramming.h.

370 {
371  // Get the TH1 pointer
372  TH1* th1Pointer = this->hist(histName, tDir, stream);
373  if ( !th1Pointer )
374  {
375  m_msg << MSG::ERROR
376  << "Cannot get a 2-d histogram with name " << histName
377  << "... will probably seg-fault!" << endmsg;
378  return NULL;
379  }
380  // If the TH1 pointer is valid, simply return the dynamic_cast
381  return dynamic_cast<TH2*>( th1Pointer );
382 }

◆ hist3d()

TH3 * AthHistogramming::hist3d ( const std::string &  histName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
inlineprotectedinherited

Simplify the retrieval of registered 3-d histograms.

Definition at line 386 of file AthHistogramming.h.

387 {
388  // Get the TH1 pointer
389  TH1* th1Pointer = this->hist(histName, tDir, stream);
390  if ( !th1Pointer )
391  {
392  m_msg << MSG::ERROR
393  << "Cannot get a 3-d histogram with name " << histName
394  << "... will probably seg-fault!" << endmsg;
395  return NULL;
396  }
397  // If the TH1 pointer is valid, simply return the dynamic_cast
398  return dynamic_cast<TH3*>( th1Pointer );
399 }

◆ histSvc()

const ServiceHandle< ITHistSvc > & AthHistogramAlgorithm::histSvc ( ) const
inlineinherited

The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc.

Definition at line 113 of file AthHistogramAlgorithm.h.

114 {
115  return m_histSvc;
116 }

◆ initialize()

StatusCode ZdcNtuple::initialize ( )
overridevirtual

Definition at line 92 of file ZdcNtuple.cxx.

93 {
94  // Here you do everything that needs to be done at the very
95  // beginning on each worker node, e.g. create histograms and output
96  // trees. This method gets called before any input files are
97  // connected.
98 
99  ANA_MSG_DEBUG("Howdy from Initialize!");
100 
101  ANA_CHECK(m_zdcModuleContainerName.initialize());
102  ANA_CHECK(m_zdcSumContainerName.initialize());
104 
105  if (enableOutputTree)
106  {
107 
108  ANA_CHECK( book(TTree("zdcTree", "ZDC Tree")));
109  m_outputTree = tree( "zdcTree" );
110 
111  m_outputTree->Branch("runNumber", &t_runNumber, "runNumber/i");
112  m_outputTree->Branch("eventNumber", &t_eventNumber, "eventNumber/i");
113  m_outputTree->Branch("lumiBlock", &t_lumiBlock, "lumiBlock/i");
114  m_outputTree->Branch("bunchGroup", &t_bunchGroup, "bunchGroup/b");
115  m_outputTree->Branch("bcid", &t_bcid, "bcid/i");
116  if (zdcInj) m_outputTree->Branch("vInj",&t_vInj,"vInj/F");
117  m_outputTree->Branch("avgIntPerCrossing", &t_avgIntPerCrossing, "avgIntPerCrossing/F");
118  m_outputTree->Branch("actIntPerCrossing", &t_actIntPerCrossing, "actIntPerCrossing/F");
119  m_outputTree->Branch("trigger", &t_trigger, "trigger/l");
120  m_outputTree->Branch("trigger_TBP", &t_trigger_TBP, "trigger_TBP/i");
121  m_outputTree->Branch("tbp", &t_tbp, "tbp[16]/i");
122  m_outputTree->Branch("tav", &t_tav, "tav[16]/i");
123  m_outputTree->Branch("passBits", &t_passBits, "passBits/i");
124  m_outputTree->Branch("extendedLevel1ID",&t_extendedLevel1ID,"extendedLevel1ID/i");
125  m_outputTree->Branch("timeStamp",&t_timeStamp,"timeStamp/i");
126  m_outputTree->Branch("timeStampNSOffset",&t_timeStampNSOffset,"timeStampNSOffset/i");
127  m_outputTree->Branch("zdcEventInfoError",&t_zdcEventInfoError,"zdcEventInfoError/b");
128  m_outputTree->Branch("zdcEventInfoErrorWord",&t_zdcEventInfoErrorWord,"zdcEventInfoErrorWord/i");
129  // ZDC and RPD decoding errors
130  m_outputTree->Branch("zdcDecodingError",&t_zdcDecodingError,"zdcDecodingError/b");
131  m_outputTree->Branch("rpdDecodingError",&t_rpdDecodingError,"rpdDecodingError/b");
132 
133  if (enableZDC)
134  {
136  {
137  if (nsamplesZdc == 7)
138  {
139  ANA_MSG_INFO("Setting up for 7 samples");
140  m_outputTree->Branch("zdc_raw", &t_raw7, "zdc_raw[2][4][2][2][7]/s"); // 7 samples
141  }
142 
143  if (nsamplesZdc == 15)
144  {
145  ANA_MSG_INFO("Setting up for 15 samples");
146  m_outputTree->Branch("zdc_raw", &t_raw15, "zdc_raw[2][4][2][2][15]/s"); // 15 samples
147  }
148 
149  if (nsamplesZdc == 24)
150  {
151  ANA_MSG_INFO("Setting up forr 24 samples");
152  m_outputTree->Branch("zdc_raw", &t_raw24, "zdc_raw[2][4][2][2][24]/s"); // 24 samples
153  m_outputTree->Branch("rpd_raw", &t_rpdRaw, "rpd_raw[2][16][24]/s"); // 24 samples
154  }
155  }
156 
157  m_outputTree->Branch("zdc_ZdcAmp", &t_ZdcAmp, "zdc_ZdcAmp[2]/F");
158  m_outputTree->Branch("zdc_ZdcAmpErr", &t_ZdcAmpErr, "zdc_ZdcAmpErr[2]/F");
159  m_outputTree->Branch("zdc_ZdcEnergy", &t_ZdcEnergy, "zdc_ZdcEnergy[2]/F");
160  m_outputTree->Branch("zdc_ZdcEnergyErr", &t_ZdcEnergyErr, "zdc_ZdcEnergyErr[2]/F");
161  m_outputTree->Branch("zdc_ZdcTime", &t_ZdcTime, "zdc_ZdcTime[2]/F");
162  m_outputTree->Branch("zdc_ZdcStatus", &t_ZdcStatus, "zdc_ZdcStatus[2]/S");
163  m_outputTree->Branch("zdc_ZdcTrigEff", &t_ZdcTrigEff, "zdc_ZdcTrigEff[2]/F");
164  m_outputTree->Branch("zdc_ZdcModuleMask", &t_ZdcModuleMask, "zdc_ZdcModuleMask/i");
165  m_outputTree->Branch("zdc_ZdcLucrodTriggerSideAmp",&t_ZdcLucrodTriggerSideAmp,"zdc_ZdcLucrodTriggerSideAmp[2]/S");
166  m_outputTree->Branch("zdc_ZdcLucrodTriggerSideAmpLG",&t_ZdcLucrodTriggerSideAmpLG,"zdc_ZdcLucrodTriggerSideAmpLG[2]/S");
167 
168  m_outputTree->Branch("zdc_ZdcModuleAmp", &t_ZdcModuleAmp, "zdc_ZdcModuleAmp[2][4]/F");
169  m_outputTree->Branch("zdc_ZdcModuleTime", &t_ZdcModuleTime, "zdc_ZdcModuleTime[2][4]/F");
170  m_outputTree->Branch("zdc_ZdcModuleFitAmp", &t_ZdcModuleFitAmp, "zdc_ZdcModuleFitAmp[2][4]/F");
171  m_outputTree->Branch("zdc_ZdcModuleFitT0", &t_ZdcModuleFitT0, "zdc_ZdcModuleFitT0[2][4]/F");
172  m_outputTree->Branch("zdc_ZdcModuleStatus", &t_ZdcModuleStatus, "zdc_ZdcModuleStatus[2][4]/i");
173  m_outputTree->Branch("zdc_ZdcModuleChisq", &t_ZdcModuleChisq, "zdc_ZdcModuleChisq[2][4]/F");
174  m_outputTree->Branch("zdc_ZdcModuleCalibAmp", &t_ZdcModuleCalibAmp, "zdc_ZdcModuleCalibAmp[2][4]/F");
175  m_outputTree->Branch("zdc_ZdcModuleCalibTime", &t_ZdcModuleCalibTime, "zdc_ZdcModuleCalibTime[2][4]/F");
176  m_outputTree->Branch("zdc_ZdcModuleBkgdMaxFraction", &t_ZdcModuleBkgdMaxFraction, "zdc_ZdcModuleBkgdMaxFraction[2][4]/F");
177  m_outputTree->Branch("zdc_ZdcModuleAmpError", &t_ZdcModuleAmpError, "zdc_ZdcModuleAmpError[2][4]/F");
178  m_outputTree->Branch("zdc_ZdcModuleMinDeriv2nd", &t_ZdcModuleMinDeriv2nd, "zdc_ZdcModuleMinDeriv2nd[2][4]/F");
179  m_outputTree->Branch("zdc_ZdcModulePresample", &t_ZdcModulePresample, "zdc_ZdcModulePresample[2][4]/F");
180  m_outputTree->Branch("zdc_ZdcModulePreSampleAmp", &t_ZdcModulePreSampleAmp, "zdc_ZdcModulePreSampleAmp[2][4]/F");
181  m_outputTree->Branch("zdc_ZdcLucrodTriggerAmp",&t_ZdcLucrodTriggerAmp,"zdc_ZdcLucrodTriggerAmp[2][4]/S");
182  m_outputTree->Branch("zdc_ZdcLucrodTriggerAmpLG",&t_ZdcLucrodTriggerAmpLG,"zdc_ZdcLucrodTriggerAmpLG[2][4]/S");
183  m_outputTree->Branch("zdc_ZdcModuleMaxADC",&t_ZdcModuleMaxADC,"zdc_ZdcModuleMaxADC[2][4]/F");
184  m_outputTree->Branch("zdc_ZdcModuleMaxADCHG",&t_ZdcModuleMaxADCHG,"zdc_ZdcModuleMaxADCHG[2][4]/F");
185  m_outputTree->Branch("zdc_ZdcModuleMaxADCLG",&t_ZdcModuleMaxADCLG,"zdc_ZdcModuleMaxADCLG[2][4]/F");
186  m_outputTree->Branch("zdc_ZdcModulePeakADCHG",&t_ZdcModulePeakADCHG,"zdc_ZdcModulePeakADCHG[2][4]/F");
187  m_outputTree->Branch("zdc_ZdcModulePeakADCLG",&t_ZdcModulePeakADCLG,"zdc_ZdcModulePeakADCLG[2][4]/F");
188  m_outputTree->Branch("zdc_ZdcModuleAmpLGRefit", &t_ZdcModuleAmpLGRefit, "zdc_ZdcModuleAmpLGRefit[2][4]/F");
189  m_outputTree->Branch("zdc_ZdcModuleAmpCorrLGRefit", &t_ZdcModuleAmpCorrLGRefit, "zdc_ZdcModuleAmpCorrLGRefit[2][4]/F");
190  m_outputTree->Branch("zdc_ZdcModuleT0LGRefit", &t_ZdcModuleT0LGRefit, "zdc_ZdcModuleT0LGRefit[2][4]/F");
191  m_outputTree->Branch("zdc_ZdcModuleT0SubLGRefit", &t_ZdcModuleT0SubLGRefit, "zdc_ZdcModuleT0SubLGRefit[2][4]/F");
192  m_outputTree->Branch("zdc_ZdcModuleChisqLGRefit", &t_ZdcModuleChisqLGRefit, "zdc_ZdcModuleChisqLGRefit[2][4]/F");
193 
194  if(m_isMC){
195  //Modules
196  m_outputTree->Branch("zdc_ZdcModuleTruthTotal",&t_ZdcModuleTruthTotal,"zdc_ZdcModuleTruthTotal[2][7]/F");
197  m_outputTree->Branch("zdc_ZdcModuleTruthInvisible",&t_ZdcModuleTruthInvis,"zdc_ZdcModuleTruthInvisible[2][7]/F");
198  m_outputTree->Branch("zdc_ZdcModuleTruthEM",&t_ZdcModuleTruthEM,"zdc_ZdcModuleTruthEM[2][7]/F");
199  m_outputTree->Branch("zdc_ZdcModuleTruthNonEM",&t_ZdcModuleTruthNonEM,"zdc_ZdcModuleTruthNonEM[2][7]/F");
200  m_outputTree->Branch("zdc_ZdcModuleTruthEscaped",&t_ZdcModuleTruthEscaped,"zdc_ZdcModuleTruthEscaped[2][7]/F");
201  m_outputTree->Branch("zdc_ZdcModuleTruthNphotons",&t_ZdcModuleTruthNphotons,"zdc_ZdcModuleTruthNphotons[2][7]/i");
202  m_outputTree->Branch("zdc_RpdModuleTruthNphotons",&t_RpdModuleTruthNphotons,"zdc_RpdModuleTruthNphotons[2][16]/i");
203 
204  //Sums
205  m_outputTree->Branch("zdc_ZdcTruthTotal",&t_ZdcTruthTotal,"zdc_ZdcTruthTotal[2]/F");
206  m_outputTree->Branch("zdc_ZdcTruthInvisible",&t_ZdcTruthInvis, "zdc_ZdcTruthInvisible[2]/F");
207  m_outputTree->Branch("zdc_ZdcTruthEM",&t_ZdcTruthEM,"zdc_ZdcTruthEM[2]/F");
208  m_outputTree->Branch("zdc_ZdcTruthNonEM",&t_ZdcTruthNonEM,"zdc_ZdcTruthNonEM[2]/F");
209  m_outputTree->Branch("zdc_ZdcTruthEscaped",&t_ZdcTruthEscaped,"zdc_ZdcTruthEscaped[2]/F");
210 
211  //Event gen particles
212  m_outputTree->Branch("zdc_ZdcTruthParticlePosx",&t_ZdcTruthParticlePosx);
213  m_outputTree->Branch("zdc_ZdcTruthParticlePosy",&t_ZdcTruthParticlePosy);
214  m_outputTree->Branch("zdc_ZdcTruthParticlePosz",&t_ZdcTruthParticlePosz);
215  m_outputTree->Branch("zdc_ZdcTruthParticleTime",&t_ZdcTruthParticleTime);
216  m_outputTree->Branch("zdc_ZdcTruthParticlePx",&t_ZdcTruthParticlePx);
217  m_outputTree->Branch("zdc_ZdcTruthParticlePy",&t_ZdcTruthParticlePy);
218  m_outputTree->Branch("zdc_ZdcTruthParticlePz",&t_ZdcTruthParticlePz);
219  m_outputTree->Branch("zdc_ZdcTruthParticleEnergy",&t_ZdcTruthParticleEnergy);
220  }
221  }
222  if (enableRPD)
223  {
224  if (enableRPDAmp) {
225  m_outputTree->Branch("zdc_RpdChannelBaseline",&t_RpdChannelBaseline,"zdc_RpdChannelBaseline[2][16]/F");
226  m_outputTree->Branch("zdc_RpdChannelPileupExpFitParams",&t_RpdChannelPileupExpFitParams,"zdc_RpdChannelPileupExpFitParams[2][16][2]/F");
227  m_outputTree->Branch("zdc_RpdChannelPileupStretchedExpFitParams",&t_RpdChannelPileupStretchedExpFitParams,"zdc_RpdChannelPileupStretchedExpFitParams[2][16][3]/F");
228  m_outputTree->Branch("zdc_RpdChannelPileupExpFitParamErrs",&t_RpdChannelPileupExpFitParamErrs,"zdc_RpdChannelPileupExpFitParamErrs[2][16][2]/F");
229  m_outputTree->Branch("zdc_RpdChannelPileupStretchedExpFitParamErrs",&t_RpdChannelPileupStretchedExpFitParamErrs,"zdc_RpdChannelPileupStretchedExpFitParamErrs[2][16][3]/F");
230  m_outputTree->Branch("zdc_RpdChannelPileupExpFitMSE",&t_RpdChannelPileupExpFitMSE,"zdc_RpdChannelPileupExpFitMSE[2][16]/F");
231  m_outputTree->Branch("zdc_RpdChannelPileupStretchedExpFitMSE",&t_RpdChannelPileupStretchedExpFitMSE,"zdc_RpdChannelPileupStretchedExpFitMSE[2][16]/F");
232  m_outputTree->Branch("zdc_RpdChannelAmplitude",&t_RpdChannelAmplitude,"zdc_RpdChannelAmplitude[2][16]/F");
233  m_outputTree->Branch("zdc_RpdChannelAmplitudeCalib",&t_RpdChannelAmplitudeCalib,"zdc_RpdChannelAmplitudeCalib[2][16]/F");
234  m_outputTree->Branch("zdc_RpdChannelMaxADC",&t_RpdChannelMaxADC,"zdc_RpdChannelMaxADC[2][16]/F");
235  m_outputTree->Branch("zdc_RpdChannelMaxADCCalib",&t_RpdChannelMaxADCCalib,"zdc_RpdChannelMaxADCCalib[2][16]/F");
236  m_outputTree->Branch("zdc_RpdChannelMaxSample",&t_RpdChannelMaxSample,"zdc_RpdChannelMaxSample[2][16]/i");
237  m_outputTree->Branch("zdc_RpdChannelStatus",&t_RpdChannelStatus,"zdc_RpdChannelStatus[2][16]/i");
238  m_outputTree->Branch("zdc_RpdChannelPileupFrac",&t_RpdChannelPileupFrac,"zdc_RpdChannelPileupFrac[2][16]/F");
239  m_outputTree->Branch("zdc_RpdSideStatus",&t_RpdSideStatus,"zdc_RpdSideStatus[2]/i");
240  }
241  if (enableCentroid)
242  {
243  m_outputTree->Branch("zdc_centroidAvailable", &t_centroidDecorationsAvailable);
244  m_outputTree->Branch("zdc_centroidEventValid", &t_centroidEventValid, "zdc_centroidEventValid/B");
245  m_outputTree->Branch("zdc_centroidStatus", &t_centroidStatus, "zdc_centroidStatus[2]/i");
246  m_outputTree->Branch("zdc_RPDChannelSubtrAmp", &t_RPDChannelSubtrAmp, "zdc_RPDChannelSubtrAmp[2][16]/F");
247  m_outputTree->Branch("zdc_RPDSubtrAmpSum", &t_RPDSubtrAmpSum, "zdc_RPDSubtrAmpSum[2]/F");
248  m_outputTree->Branch("zdc_xCentroidPreGeomCorPreAvgSubtr", &t_xCentroidPreGeomCorPreAvgSubtr, "zdc_xCentroidPreGeomCorPreAvgSubtr[2]/F");
249  m_outputTree->Branch("zdc_yCentroidPreGeomCorPreAvgSubtr", &t_yCentroidPreGeomCorPreAvgSubtr, "zdc_yCentroidPreGeomCorPreAvgSubtr[2]/F");
250  m_outputTree->Branch("zdc_xCentroidPreAvgSubtr", &t_xCentroidPreAvgSubtr, "zdc_xCentroidPreAvgSubtr[2]/F");
251  m_outputTree->Branch("zdc_yCentroidPreAvgSubtr", &t_yCentroidPreAvgSubtr, "zdc_yCentroidPreAvgSubtr[2]/F");
252  m_outputTree->Branch("zdc_xCentroid", &t_xCentroid, "zdc_xCentroid[2]/F");
253  m_outputTree->Branch("zdc_yCentroid", &t_yCentroid, "zdc_yCentroid[2]/F");
254  m_outputTree->Branch("zdc_xRowCentroid", &t_xRowCentroid, "zdc_xRowCentroid[2][4]/F");
255  m_outputTree->Branch("zdc_yColCentroid", &t_yColCentroid, "zdc_yColCentroid[2][4]/F");
256  m_outputTree->Branch("zdc_reactionPlaneAngle", &t_reactionPlaneAngle, "zdc_reactionPlaneAngle[2]/F");
257  m_outputTree->Branch("zdc_cosDeltaReactionPlaneAngle", &t_cosDeltaReactionPlaneAngle, "zdc_cosDeltaReactionPlaneAngle/F");
258  }
259  }
260 
261  if (!(zdcCalib || zdcLaser || zdcOnly || zdcInj))
262  {
263  m_outputTree->Branch("mbts_in_e", &t_mbts_in_e, "mbts_in_e[2][8]/F");
264  m_outputTree->Branch("mbts_in_t", &t_mbts_in_t, "mbts_in_t[2][8]/F");
265  m_outputTree->Branch("mbts_out_e", &t_mbts_out_e, "mbts_out_e[2][4]/F");
266  m_outputTree->Branch("mbts_out_t", &t_mbts_out_t, "mbts_out_t[2][4]/F");
267 
268  m_outputTree->Branch("T2mbts_in_e", &t_T2mbts_in_e, "T2mbts_in_e[2][8]/F");
269  m_outputTree->Branch("T2mbts_in_t", &t_T2mbts_in_t, "T2mbts_in_t[2][8]/F");
270  m_outputTree->Branch("T2mbts_out_e", &t_T2mbts_out_e, "T2mbts_out_e[2][4]/F");
271  m_outputTree->Branch("T2mbts_out_t", &t_T2mbts_out_t, "T2mbts_out_t[2][4]/F");
272 
273  m_outputTree->Branch("L1ET", &t_L1ET, "L1ET/F");
274  m_outputTree->Branch("L1ET24", &t_L1ET24, "L1ET24/F");
275 
276  m_outputTree->Branch("totalEt", &t_totalEt, "totalEt/F");
277  m_outputTree->Branch("totalEt_TTsum", &t_totalEt_TTsum, "totalEt_TTsum/F");
278 
279  m_outputTree->Branch("totalEt24", &t_totalEt24, "totalEt24/F");
280  m_outputTree->Branch("totalEt24_TTsum", &t_totalEt24_TTsum, "totalEt24_TTsum/F");
281 
282  m_outputTree->Branch("fcalEt", &t_fcalEt, "fcalEt/F");
283  m_outputTree->Branch("fcalEtA", &t_fcalEtA, "fcalEtA/F");
284  m_outputTree->Branch("fcalEtC", &t_fcalEtC, "fcalEtC/F");
285  m_outputTree->Branch("fcalEtA_TT", &t_fcalEtA_TT, "fcalEtA_TT/F");
286  m_outputTree->Branch("fcalEtC_TT", &t_fcalEtC_TT, "fcalEtC_TT/F");
287 
288  m_outputTree->Branch("nvx", &t_nvx, "nvx/I");
289  m_outputTree->Branch("vx", &t_vx, "vx[3]/F");
290  m_outputTree->Branch("pvindex", &t_pvindex, "pvindex/I");
291  m_outputTree->Branch("vxntrk", &t_vxntrk, "vxntrk/I");
292  m_outputTree->Branch("vx_trk_index", "vector<int>", &t_vx_trk_index);
293  m_outputTree->Branch("vxtype", &t_vxtype, "vxtype/I");
294  m_outputTree->Branch("vxcov", &t_vxcov, "vxcov[6]/F");
295  m_outputTree->Branch("vxsumpt2", &t_vxsumpt2, "vxsumpt2/F");
296  m_outputTree->Branch("nstrong", &t_nstrong, "nstrong/I");
297  m_outputTree->Branch("puvxntrk", &t_puvxntrk, "puvxntrk/I");
298  m_outputTree->Branch("puvxsumpt", &t_puvxsumpt, "puvxsumpt/F");
299  m_outputTree->Branch("puvxz", &t_puvxz, "puvxz/F");
300  m_outputTree->Branch("vxnlooseprimary", &t_vxnlooseprimary, "vxnlooseprimary/I");
301  m_outputTree->Branch("vxnminbias", &t_vxnminbias, "vxnminbias/I");
302  m_outputTree->Branch("vxngoodmuon", &t_vxngoodmuon, "vxngoodmuon/I");
303 
304  m_outputTree->Branch("t_nvtx", &t_nvtx, "nvtx/I");
305  m_outputTree->Branch("vtx_type", "vector<int8_t>", &t_vtx_type);
306  m_outputTree->Branch("vtx_x", "vector<float>", &t_vtx_x);
307  m_outputTree->Branch("vtx_y", "vector<float>", &t_vtx_y);
308  m_outputTree->Branch("vtx_z", "vector<float>", &t_vtx_z);
309  m_outputTree->Branch("vtx_ntrk_all", "vector<int16_t>", &t_vtx_ntrk_all);
310  m_outputTree->Branch("vtx_sumpt2_all", "vector<float>", &t_vtx_sumpt2_all);
311  m_outputTree->Branch("vtx_ntrk", "vector<int16_t>", &t_vtx_ntrk);
312  m_outputTree->Branch("vtx_sumpt2", "vector<float>", &t_vtx_sumpt2);
313  m_outputTree->Branch("vtx_trk_index", "vector< vector<int16_t> >", &t_vtx_trk_index);
314 
315  m_outputTree->Branch("mbts_countA", &t_mbts_countA, "mbts_countA/s");
316  m_outputTree->Branch("mbts_countC", &t_mbts_countC, "mbts_countC/s");
317  m_outputTree->Branch("T2mbts_countAin", &t_T2mbts_countAin, "T2mbts_countAin/s");
318  m_outputTree->Branch("T2mbts_countCin", &t_T2mbts_countCin, "T2mbts_countCin/s");
319  m_outputTree->Branch("mbts_timeA", &t_mbts_timeA, "mbts_timeA/F");
320  m_outputTree->Branch("mbts_timeC", &t_mbts_timeC, "mbts_timeC/F");
321  m_outputTree->Branch("mbts_timeDiff", &t_mbts_timeDiff, "mbts_timeDiff/F");
322 
323  t_nclus = 0;
324  m_outputTree->Branch("nclus", &t_nclus, "nclus/i");
325  m_outputTree->Branch("clusEt", &t_clusEt, "clusEt/F");
326  m_outputTree->Branch("clusEtMax", &t_clusEtMax, "clusEtMax/F");
327  m_outputTree->Branch("clusetaMax", &t_clusetaMax, "clusetaMax/F");
328  m_outputTree->Branch("clusphiMax", &t_clusphiMax, "clusphiMax/F");
329 
330  m_outputTree->Branch("cc_pt", "vector<float>", &t_cc_pt);
331  m_outputTree->Branch("cc_eta", "vector<float>", &t_cc_eta);
332  m_outputTree->Branch("cc_phi", "vector<float>", &t_cc_phi);
333  m_outputTree->Branch("cc_e", "vector<float>", &t_cc_e);
334  m_outputTree->Branch("cc_raw_m", "vector<float>", &t_cc_raw_m);
335  m_outputTree->Branch("cc_raw_eta", "vector<float>", &t_cc_raw_eta);
336  m_outputTree->Branch("cc_raw_phi", "vector<float>", &t_cc_raw_phi);
337  m_outputTree->Branch("cc_raw_e", "vector<float>", &t_cc_raw_e);
338  m_outputTree->Branch("cc_raw_samp", "vector<vector<float>>", &t_cc_raw_samp);
339  m_outputTree->Branch("cc_sig", "vector<float>", &t_cc_sig);
340  m_outputTree->Branch("cc_layer", "vector<int>", &t_cc_layer);
341 
342  m_outputTree->Branch("edgeGapA", &t_edgeGapA, "edgeGapA/F");
343  m_outputTree->Branch("edgeGapC", &t_edgeGapC, "edgeGapC/F");
344 
345  m_outputTree->Branch("ntrk", &t_ntrk, "ntrk/i");
346  if (enableTracks)
347  {
348  m_outputTree->Branch("trk_pt", "vector<float>", &t_trk_pt);
349  m_outputTree->Branch("trk_eta", "vector<float>", &t_trk_eta);
350  m_outputTree->Branch("trk_theta", "vector<float>", &t_trk_theta);
351  m_outputTree->Branch("trk_phi", "vector<float>", &t_trk_phi);
352  m_outputTree->Branch("trk_e", "vector<float>", &t_trk_e);
353  m_outputTree->Branch("trk_index", "vector<int>", &t_trk_index);
354  m_outputTree->Branch("trk_d0", "vector<float>", &t_trk_d0);
355  m_outputTree->Branch("trk_z0", "vector<float>", &t_trk_z0);
356  m_outputTree->Branch("trk_vz", "vector<float>", &t_trk_vz);
357  m_outputTree->Branch("trk_vtxz", "vector<float>", &t_trk_vtxz);
358  m_outputTree->Branch("trk_pixeldEdx", "vector<float>", &t_trk_pixeldEdx);
359  m_outputTree->Branch("trk_charge", "vector<int8_t>", &t_trk_charge);
360  m_outputTree->Branch("trk_quality", "vector<int16_t>", &t_trk_quality);
361  m_outputTree->Branch("trk_nPixHits", "vector<uint8_t>", &t_trk_nPixHits);
362  m_outputTree->Branch("trk_nSctHits", "vector<uint8_t>", &t_trk_nSctHits);
363  m_outputTree->Branch("trk_nPixDead", "vector<uint8_t>", &t_trk_nPixDead);
364  m_outputTree->Branch("trk_nSctDead", "vector<uint8_t>", &t_trk_nSctDead);
365  m_outputTree->Branch("trk_nPixHoles", "vector<uint8_t>", &t_trk_nPixHoles);
366  m_outputTree->Branch("trk_nSctHoles", "vector<uint8_t>", &t_trk_nSctHoles);
367  m_outputTree->Branch("trk_nTrtHits", "vector<uint8_t>", &t_trk_nTrtHits);
368  m_outputTree->Branch("trk_nTrtOutliers", "vector<uint8_t>", &t_trk_nTrtOutliers);
369  m_outputTree->Branch("trk_inPixHits", "vector<uint8_t>", &t_trk_inPixHits);
370  m_outputTree->Branch("trk_exPixHits", "vector<uint8_t>", &t_trk_exPixHits);
371  m_outputTree->Branch("trk_ninPixHits", "vector<uint8_t>", &t_trk_ninPixHits);
372  m_outputTree->Branch("trk_nexPixHits", "vector<uint8_t>", &t_trk_nexPixHits);
373  }
374 
375  if( lhcf2022 || lhcf2022zdc || lhcf2022afp){
376  m_outputTree->Branch("nProtons", &nProtons, "nProtons/i");
377  m_outputTree->Branch("proton_pt", "vector<double>", &proton_pt);
378  m_outputTree->Branch("proton_eta", "vector<double>", &proton_eta);
379  m_outputTree->Branch("proton_phi", "vector<double>", &proton_phi);
380  m_outputTree->Branch("proton_e", "vector<double>", &proton_e);
381  m_outputTree->Branch("proton_side", "vector<int>", &proton_side);
382  m_outputTree->Branch("proton_eLoss", "vector<double>", &proton_eLoss);
383  m_outputTree->Branch("proton_t", "vector<double>", &proton_t);
384  m_outputTree->Branch("proton_track_stationID", "vector<vector<int>>", &proton_track_stationID);
385  m_outputTree->Branch("proton_track_nClusters", "vector<vector<int>>", &proton_track_nClusters);
386  m_outputTree->Branch("proton_track_xLocal", "vector<vector<float>>", &proton_track_xLocal);
387  m_outputTree->Branch("proton_track_yLocal", "vector<vector<float>>", &proton_track_yLocal);
388  m_outputTree->Branch("proton_track_zLocal", "vector<vector<float>>", &proton_track_zLocal);
389  m_outputTree->Branch("proton_track_xSlope", "vector<vector<float>>", &proton_track_xSlope);
390  m_outputTree->Branch("proton_track_ySlope", "vector<vector<float>>", &proton_track_ySlope);
391  }
392 
393  }
394  }
395 
396  ANA_MSG_DEBUG("Anti-howdy from Initialize!");
397 
398 
399  // Here you do everything that you need to do after the first input
400  // file has been connected and before the first event is processed,
401  // e.g. create additional histograms based on which variables are
402  // available in the input files. You can also create all of your
403  // histograms and trees in here, but be aware that this method
404  // doesn't get called if no events are processed. So any objects
405  // you create here won't be available in the output if you have no
406  // input events.
407 
408  ANA_MSG_INFO("enableOutputTree = " << enableOutputTree);
409  ANA_MSG_INFO("writeOnlyTriggers = " << writeOnlyTriggers);
410  ANA_MSG_INFO("enableOutputSamples = " << enableOutputSamples);
411  ANA_MSG_INFO("enableTrigger = " << enableTrigger);
412  ANA_MSG_INFO("enableRPD = " << enableRPD);
413  ANA_MSG_INFO("enableCentroid = " << enableCentroid);
414  ANA_MSG_INFO("zdcCalib = " << zdcCalib);
415  ANA_MSG_INFO("zdcInj = " << zdcInj);
416  ANA_MSG_INFO("zdcLaser = " << zdcLaser);
417  ANA_MSG_INFO("zdcConfig = " << zdcConfig);
418  ANA_MSG_INFO("reprocZdc = " << reprocZdc);
419  ANA_MSG_INFO("auxSuffix = " << auxSuffix );
420  ANA_MSG_INFO("zdcLowGainMode = " << zdcLowGainMode);
421  ANA_MSG_INFO("enableClusters = " << enableClusters);
422  ANA_MSG_INFO("trackLimit = " << trackLimit);
423  ANA_MSG_INFO("trackLimitReject = " << trackLimitReject);
424  ANA_MSG_INFO("isMC = " << m_isMC);
425  ANA_MSG_INFO("useGRL = " << useGRL);
426  ANA_MSG_INFO("grlFilename = " << grlFilename);
427  ANA_MSG_INFO("slimmed = " << slimmed);
428  ANA_MSG_INFO("zdcOnly = " << zdcOnly);
429  ANA_MSG_INFO("flipDelay = " << flipDelay);
430  ANA_MSG_INFO("nsamplesZdc = " << nsamplesZdc);
431  ANA_MSG_INFO("lhcf2022 = " << lhcf2022);
432  ANA_MSG_INFO("lhcf2022afp = " << lhcf2022afp);
433  ANA_MSG_INFO("lhcf2022zdc = " << lhcf2022zdc);
434  ANA_MSG_INFO("doZdcCalib = " << doZdcCalib);
435 
436  ANA_MSG_DEBUG("initialize: Initialize!");
437 
438 
439  // GRL
440 
441  if (useGRL)
442  {
443  const char* fullGRLFilePath = gSystem->ExpandPathName (grlFilename.c_str());
444  ANA_MSG_INFO("GRL: " << fullGRLFilePath);
445  std::vector<std::string> vecStringGRL;
446  vecStringGRL.push_back(fullGRLFilePath);
447  ANA_CHECK(m_grl.setProperty( "GoodRunsListVec", vecStringGRL));
448  ANA_CHECK(m_grl.setProperty("PassThrough", false)); // if true (default) will ignore result of GRL and will just pass all events
450 
451  }
452 
453  if (enableTracks)
454  {
455  ANA_CHECK(m_selTool.retrieve());
456  }
457 
458  if (enableTrigger) // HLT related
459  {
460  ANA_MSG_INFO("Trying to initialize TDT");
461  ANA_CHECK(m_trigDecisionTool.retrieve());
462  }
463 
464  // ZDC re-reco tool
465  if (reprocZdc)
466  {
467  m_zdcAnalysisTool.setTypeAndName("ZDC::ZdcAnalysisTool/ZdcAnalysisTool");
468 
469  ANA_MSG_INFO("Trying to configure ZDC Analysis Tool!");
470 
476  ANA_CHECK(m_zdcAnalysisTool.setProperty("ForceCalibRun", -1));
477 
478  ANA_MSG_INFO("Setting up zdcConfig=" << zdcConfig);
479  if (zdcConfig=="LHCf2022")
480  {
481  ANA_CHECK(m_zdcAnalysisTool.setProperty("DoTrigEff", false)); // for now
482  ANA_CHECK(m_zdcAnalysisTool.setProperty("DoTimeCalib", false)); // for now
483  ANA_CHECK(m_zdcAnalysisTool.setProperty("Configuration", "LHCf2022"));
484  }
485  else if (zdcConfig == "PbPb2018")
486  {
487  ANA_CHECK(m_zdcAnalysisTool.setProperty("Configuration", "PbPb2018"));
488  }
489  else if (zdcConfig == "pPb2016")
490  {
491  ANA_CHECK(m_zdcAnalysisTool.setProperty("Configuration", "pPb2016"));
492  }
493  else if (zdcConfig == "PbPb2015")
494  {
495  ANA_CHECK(m_zdcAnalysisTool.setProperty("Configuration", "PbPb2015"));
496  }
497 
498  if (flipDelay)
499  ANA_MSG_INFO("FLIP ZDC DELAY IN EM MODULES");
500  else
501  ANA_MSG_INFO("NO FLIP ZDC DELAY IN EM MODULES");
502 
503 
504  ANA_MSG_INFO("Trying to initialize ZDC Analysis Tool!");
506  }
507 
508  if (zdcInj)
509  {
510  m_zdcInjPulserAmpMap = std::make_shared<ZdcInjPulserAmpMap>();
511  ATH_MSG_INFO( "Using JSON file for injector-pulse voltage at path " << m_zdcInjPulserAmpMap->getFilePath() );
512  }
513 
514  return StatusCode::SUCCESS;
515 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ inputMetaStore() [1/2]

AnaAlgorithm::MetaStorePtr_t EL::AnaAlgorithm::inputMetaStore ( )
inherited

Definition at line 81 of file AnaAlgorithm.cxx.

82  {
83 #ifdef XAOD_STANDALONE
84  return &m_inputMetaStore;
85 #else
86  return m_inputMetaStore;
87 #endif // XAOD_STANDALONE
88  }

◆ inputMetaStore() [2/2]

AnaAlgorithm::ConstMetaStorePtr_t EL::AnaAlgorithm::inputMetaStore ( ) const
inherited

Accessor for the input metadata store

Definition at line 72 of file AnaAlgorithm.cxx.

73  {
74 #ifdef XAOD_STANDALONE
75  return &m_inputMetaStore;
76 #else
77  return m_inputMetaStore;
78 #endif // XAOD_STANDALONE
79  }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ myReplace()

void AthHistogramming::myReplace ( std::string &  str,
const std::string &  oldStr,
const std::string &  newStr 
)
privateinherited

Helper method to replace sub-string.

Definition at line 590 of file AthHistogramming.cxx.

593 {
594  size_t pos = 0;
595  while((pos = str.find(oldStr, pos)) != std::string::npos)
596  {
597  str.replace(pos, oldStr.length(), newStr);
598  pos += newStr.length();
599  }
600 }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ outputMetaStore() [1/2]

AnaAlgorithm::MetaStorePtr_t EL::AnaAlgorithm::outputMetaStore ( )
inherited

Definition at line 101 of file AnaAlgorithm.cxx.

102  {
103 #ifdef XAOD_STANDALONE
104  return &m_outputMetaStore;
105 #else
106  return m_outputMetaStore;
107 #endif // XAOD_STANDALONE
108  }

◆ outputMetaStore() [2/2]

AnaAlgorithm::ConstMetaStorePtr_t EL::AnaAlgorithm::outputMetaStore ( ) const
inherited

Accessor for the output metadata store

Definition at line 92 of file AnaAlgorithm.cxx.

93  {
94 #ifdef XAOD_STANDALONE
95  return &m_outputMetaStore;
96 #else
97  return m_outputMetaStore;
98 #endif // XAOD_STANDALONE
99  }

◆ print()

void EL::AnaAlgorithm::print ( ) const
protectedvirtualinherited

print the state of the algorithm

This is mostly to allow algorithms to add a little debugging information if they feel like it.

Definition at line 336 of file AnaAlgorithm.cxx.

338  {}

◆ processClusters()

void ZdcNtuple::processClusters ( )

Definition at line 1788 of file ZdcNtuple.cxx.

1789 {
1790  //t_nclus = 0;
1791 
1792  t_cc_pt.clear();
1793  t_cc_eta.clear();
1794  t_cc_phi.clear();
1795  t_cc_e.clear();
1796  t_cc_raw_m.clear();
1797  t_cc_raw_eta.clear();
1798  t_cc_raw_phi.clear();
1799  t_cc_raw_e.clear();
1800  t_cc_raw_samp.clear();
1801  t_cc_layer.clear();
1802  t_cc_sig.clear();
1803 
1805 
1806  t_clusEt = 0;
1807  t_clusEtMax = -999;
1808  t_clusetaMax = 0;
1809  t_clusphiMax = 0;
1810 
1811  for (const auto cluster : *m_caloClusters)
1812  {
1813  t_cc_pt.push_back(cluster->pt());
1814  t_cc_eta.push_back(cluster->eta());
1815  t_cc_phi.push_back(cluster->phi());
1816  t_cc_e.push_back(cluster->e());
1817  t_cc_raw_m.push_back(cluster->rawM());
1818  t_cc_raw_eta.push_back(cluster->rawEta());
1819  t_cc_raw_phi.push_back(cluster->rawPhi());
1820  t_cc_raw_e.push_back(cluster->rawE());
1821 
1822  std::vector<float> energies;
1823 
1824  for (size_t s = CaloSampling::PreSamplerB; s < CaloSampling::Unknown; s++ )
1825  {
1826  bool hasSample = cluster->hasSampling( (xAOD::CaloCluster::CaloSample) s );
1827  float e = 0;
1828  if (hasSample)
1829  {
1830  e = cluster->eSample( (xAOD::CaloCluster::CaloSample) s);
1831  }
1832  energies.push_back(e);
1833  }
1834  t_cc_raw_samp.push_back(energies);
1835 
1836  float et = cluster->e() / TMath::CosH(cluster->eta());
1837  t_clusEt += et;
1838  if (et > t_clusEtMax)
1839  {
1840  t_clusEtMax = et;
1841  t_clusetaMax = cluster->eta();
1842  t_clusphiMax = cluster->phi();
1843  }
1844 
1845  double cell_sig = 0;
1846  if (!cluster->retrieveMoment(xAOD::CaloCluster::CELL_SIGNIFICANCE, cell_sig)) {ANA_MSG_DEBUG("processClusters() : No CELL_SIGNIFICANCE!");}
1847  t_cc_sig.push_back(cell_sig);
1848  double cell_layer = 0;
1849  if (!cluster->retrieveMoment(xAOD::CaloCluster::CELL_SIG_SAMPLING, cell_layer)) {ANA_MSG_DEBUG("processClusters() : No CELL_SIG_SAMPLING!");}
1850  t_cc_layer.push_back(static_cast<int>(cell_layer));
1851  //t_nclus++;
1852  }
1853 
1854  if ( (!enableClusters) || (t_ntrk >= trackLimit) ) // if disabled or if too many tracks
1855  {
1856  t_cc_pt.clear();
1857  t_cc_eta.clear();
1858  t_cc_phi.clear();
1859  t_cc_e.clear();
1860  t_cc_layer.clear();
1861  t_cc_sig.clear();
1862  }
1863  else
1864  {
1865  ANA_MSG_DEBUG("processClusters(): keeping clusters");
1866  }
1867  return;
1868 }

◆ processEventInfo()

void ZdcNtuple::processEventInfo ( )

◆ processFCal()

void ZdcNtuple::processFCal ( )

Definition at line 1564 of file ZdcNtuple.cxx.

1565 {
1566  ANA_MSG_DEBUG("processFCal: processing FCal");
1567 
1568  t_fcalEt = 0.;
1569  t_fcalEtA = 0.;
1570  t_fcalEtC = 0.;
1571  t_fcalEtA_TT = 0.;
1572  t_fcalEtC_TT = 0.;
1573 
1574  if (m_caloSums)
1575  {
1576  static const SG::ConstAccessor<std::string> SummaryAcc("Summary");
1577  for (const auto calosum : *m_caloSums)
1578  {
1579  const std::string name = SummaryAcc(*calosum);
1580  if (name == "FCal")
1581  {
1582  t_fcalEt = calosum->et();
1583  ANA_MSG_DEBUG("processFCal: fcalEt = " << t_fcalEt);
1584  }
1585 
1586  if (name == "All")
1587  {
1588  t_totalEt = calosum->et();
1589  ANA_MSG_DEBUG("processFCal: totalEt = " << t_totalEt);
1590  }
1591  }
1592  }
1593 
1594  t_fcalEtA = 0;
1595  t_fcalEtC = 0;
1596  t_totalEt24 = 0;
1597 
1598  if (m_eventShapes)
1599  {
1600  for (const auto eventShape : *m_eventShapes)
1601  {
1602  int layer = eventShape->layer();
1603  float eta = eventShape->etaMin();
1604  float et = eventShape->et();
1605  if (layer == 21 || layer == 22 || layer == 23)
1606  {
1607  if (eta > 0) t_fcalEtA += et;
1608  if (eta < 0) t_fcalEtC += et;
1609  }
1610 
1611  if (TMath::Abs(eta) < 2.4)
1612  {
1613  t_totalEt24 += et;
1614  }
1615  }
1616  }
1617 
1618  t_L1ET = 0;
1619  t_L1ET24 = 0;
1620 
1621  if (m_lvl1EnergySumRoI)
1622  {
1624  //t_L1ET24 = m_lvl1EnergySumRoI->energyTRestricted(); // TBD when limited eta ET available
1625  }
1626 
1627  return;
1628 }

◆ processGaps()

void ZdcNtuple::processGaps ( )

Definition at line 1630 of file ZdcNtuple.cxx.

1631 {
1632 
1633  float eta_min = 5;
1634  float eta_max = -5;
1635 
1636  if (!m_caloClusters) return;
1637  for (const auto cl : *m_caloClusters)
1638  {
1639 
1640  if (cl->pt() < m_gapPtMin) continue;
1641 
1642  int etabin = h_TCSigCut->GetXaxis()->FindBin(cl->eta());
1643  if (etabin < 1 || etabin > h_TCSigCut->GetNbinsX()) continue;
1644  float sig_cut = h_TCSigCut->GetBinContent(etabin);
1645  float sig = cl->getMomentValue(xAOD::CaloCluster::CELL_SIGNIFICANCE);
1646  int cl_cell_sig_samp = static_cast<int>(cl->getMomentValue(xAOD::CaloCluster::CELL_SIG_SAMPLING));
1647 
1648  ANA_MSG_VERBOSE ("gapclus: etabin " << etabin << " sig_cut=" << sig_cut << " sig=" << sig << " samp=" << cl_cell_sig_samp);
1649 
1650  if (sig < sig_cut) continue;
1651 
1652  if (cl_cell_sig_samp >= CaloSampling::TileBar0 && cl_cell_sig_samp <= CaloSampling::TileExt2) continue;
1653 
1654  if (cl->eta() < eta_min) eta_min = cl->eta();
1655  if (cl->eta() > eta_max) eta_max = cl->eta();
1656 
1657  }
1658 
1659  t_edgeGapA = 4.9 - eta_max;
1660  t_edgeGapC = eta_min + 4.9;
1661  ANA_MSG_DEBUG("processGaps(): egA " << t_edgeGapA << " , egC " << t_edgeGapC);
1662 
1663 }

◆ processInDet()

void ZdcNtuple::processInDet ( )

Definition at line 1276 of file ZdcNtuple.cxx.

1277 {
1278  ANA_MSG_DEBUG("processInDet(): processing tracks & vertices!");
1279  t_ntrk = 0;
1280  t_nvx = 0;
1281  t_vxntrk = 0;
1282  t_vx_trk_index.clear();
1283  t_vxsumpt2 = 0;
1284  t_vxtype = 0;
1285  t_pvindex = -1;
1286  t_puvxntrk = 0;
1287  t_puvxsumpt = 0;
1288  t_vxnlooseprimary = 0;
1289  t_vxnminbias = 0;
1290 
1291  int i;
1292  for (i = 0; i < 3; i++) t_vx[i] = 0;
1293  for (i = 0; i < 6; i++) t_vxcov[i] = 0;
1294 
1295  const xAOD::Vertex* primary_vertex = nullptr;
1296  size_t pv_index = -1;
1297  size_t vx_index = 0;
1298  float max_pileup_sumpT = 0.;
1299  int max_pileup_nTrack = 0;
1300  float max_pileup_z = 0;
1301  int nStrongPileup = 0;
1302 
1303  t_nvtx = 0;
1304  t_vtx_type.clear();
1305  t_vtx_x.clear();
1306  t_vtx_y.clear();
1307  t_vtx_z.clear();
1308  t_vtx_ntrk_all.clear();
1309  t_vtx_sumpt2_all.clear();
1310  t_vtx_ntrk.clear();
1311  t_vtx_sumpt2.clear();
1312  t_vtx_trk_index.clear();
1313 
1314  if (m_primaryVertices)
1315  {
1316  ANA_MSG_DEBUG("processInDet: processing vertices");
1317 
1319 
1320  static const SG::ConstAccessor<float> sumPt2Acc("sumPt2");
1321 
1322  // start of new vertex representation
1324  for (const auto vertex : *m_primaryVertices)
1325  {
1326  float vtx_sumpt2 = 0;
1327  int vtx_ntrk = 0;
1328 
1329  t_vtx_type.push_back(vertex->vertexType());
1330  t_vtx_x.push_back(0);
1331  t_vtx_y.push_back(0);
1332  t_vtx_z.push_back(vertex->z());
1333 
1334  t_vtx_ntrk.push_back(vtx_ntrk);
1335  t_vtx_sumpt2.push_back(vtx_sumpt2 / 1e6);
1336  t_vtx_ntrk_all.push_back(vertex->nTrackParticles());
1337 
1338  if (sumPt2Acc.isAvailable(*vertex))
1339  t_vtx_sumpt2_all.push_back(sumPt2Acc(*vertex));
1340  else
1341  t_vtx_sumpt2_all.push_back(-1);
1342 
1343  std::vector<int16_t> trk_index;
1344  if ( m_trackParticles && vertex->nTrackParticles() <= trackLimit )
1345  {
1346  const std::vector< ElementLink< xAOD::TrackParticleContainer > >& vxTrackParticles = vertex->trackParticleLinks();
1347  for (size_t itrk = 0; itrk < vxTrackParticles.size(); itrk++)
1348  {
1349  ElementLink< xAOD::TrackParticleContainer > trkLink = vxTrackParticles.at(itrk);
1350  trk_index.push_back(trkLink.index());
1351  }
1352  }
1353  t_vtx_trk_index.push_back(trk_index);
1354 
1355  // end of new vertex representation
1356 
1357  if (vertex->vertexType() == xAOD::VxType::PriVtx)
1358  {
1359  primary_vertex = vertex;
1360  pv_index = vx_index;
1361  }
1362  if (vertex->vertexType() == xAOD::VxType::PileUp)
1363  {
1364  float pileup_sumpT = 0;
1365  int pileup_nTrack = 0;
1366  for (size_t itr = 0; itr < vertex->nTrackParticles(); itr++)
1367  {
1368  int track_quality = trackQuality(vertex->trackParticle(itr), vertex);
1369  if (track_quality != -1 && (track_quality & 128) != 0)
1370  {
1371  pileup_nTrack++;
1372  pileup_sumpT += vertex->trackParticle(itr)->pt();
1373  }
1374  }
1375  if (pileup_sumpT > max_pileup_sumpT)
1376  {
1377  max_pileup_sumpT = pileup_sumpT;
1378  max_pileup_nTrack = pileup_nTrack;
1379  max_pileup_z = vertex->z();
1380  }
1381  if (pileup_sumpT > 5e3 || pileup_nTrack > 5) nStrongPileup++;
1382  }
1383  vx_index++;
1384  }
1385  }
1386 
1387  t_nstrong = nStrongPileup;
1388 
1389  if (primary_vertex != nullptr)
1390  {
1391  t_vx[0] = primary_vertex->x();
1392  t_vx[1] = primary_vertex->y();
1393  t_vx[2] = primary_vertex->z();
1394  /*
1395  const std::vector<float>& cov = primary_vertex->covariance();
1396  */
1397  //for (size_t i=0;i<cov.size();i++)
1398  for (size_t i = 0; i < 6; i++)
1399  {
1400  //t_vxcov[i] = cov.at(i);
1401  t_vxcov[i] = 0;
1402  }
1403  t_vxntrk = primary_vertex->nTrackParticles();
1404  static const SG::ConstAccessor<float> sumPt2Acc("sumPt2");
1405  if (sumPt2Acc.isAvailable(*primary_vertex))
1406  t_vxsumpt2 = sumPt2Acc(*primary_vertex);
1407  else
1408  t_vxsumpt2 = 0;
1409 
1410  t_vxtype = primary_vertex->vertexType();
1411  t_pvindex = pv_index;
1412  t_puvxz = max_pileup_z;
1413  t_puvxsumpt = max_pileup_sumpT;
1414  t_puvxntrk = max_pileup_nTrack;
1415 
1416  const std::vector< ElementLink< xAOD::TrackParticleContainer > >& vxTrackParticles = primary_vertex->trackParticleLinks();
1417 
1418  for (size_t itrk = 0; itrk < vxTrackParticles.size(); itrk++)
1419  {
1420  ElementLink< xAOD::TrackParticleContainer > trkLink = vxTrackParticles.at(itrk);
1421  if (!trkLink.isValid()) continue;
1422  if (m_trackParticles)
1423  {
1424  if (m_trackParticles->size() <= trackLimit)
1425  t_vx_trk_index.push_back(trkLink.index());
1426  }
1427  }
1428 
1429  }
1430 
1431 
1432  if (m_trackParticles)
1433  {
1434  ANA_MSG_DEBUG("processInDet: processing trackss");
1435 
1436  t_trk_pt.clear();
1437  t_trk_eta.clear();
1438  t_trk_phi.clear();
1439  t_trk_e.clear();
1440  t_trk_index.clear();
1441  t_trk_theta.clear();
1442  t_trk_charge.clear();
1443  t_trk_d0.clear();
1444  t_trk_z0.clear();
1445  t_trk_vz.clear();
1446  t_trk_vtxz.clear();
1447  t_trk_quality.clear();
1448  t_trk_nPixHits.clear();
1449  t_trk_nSctHits.clear();
1450  t_trk_nPixDead.clear();
1451  t_trk_nSctDead.clear();
1452  t_trk_nPixHoles.clear();
1453  t_trk_nSctHoles.clear();
1454  t_trk_nTrtHits.clear();
1455  t_trk_nTrtOutliers.clear();
1456  t_trk_inPixHits.clear();
1457  t_trk_exPixHits.clear();
1458  t_trk_ninPixHits.clear();
1459  t_trk_nexPixHits.clear();
1460  t_trk_pixeldEdx.clear();
1461 
1463 
1464  if ( !enableTracks ) return;
1465 
1466  if ( t_ntrk <= trackLimit ) // dump all tracks
1467  {
1468  int trk_index = 0;
1469  for (const auto track : *m_trackParticles)
1470  {
1471  writeTrack(track, primary_vertex, trk_index++);
1472  }
1473  }
1474  else // write small vertices
1475  {
1476  for (const auto vertex : *m_primaryVertices)
1477  {
1478  if (vertex->nTrackParticles() <= trackLimit )
1479  {
1480  const std::vector< ElementLink< xAOD::TrackParticleContainer > >& vxTrackParticles = vertex->trackParticleLinks();
1481  for (size_t itrk = 0; itrk < vxTrackParticles.size(); itrk++)
1482  {
1483  ElementLink< xAOD::TrackParticleContainer > trkLink = vxTrackParticles.at(itrk);
1484  writeTrack(*trkLink, vertex, trkLink.index());
1485  }
1486  }
1487  }
1488  }
1489  }
1490 
1491  return;
1492 }

◆ processMBTS()

void ZdcNtuple::processMBTS ( )

Definition at line 1665 of file ZdcNtuple.cxx.

1666 {
1667  ANA_MSG_DEBUG("processMBTS: trying to process!");
1668  t_mbts_countA = 0;
1669  t_mbts_countC = 0;
1670  t_T2mbts_countAin = 0;
1671  t_T2mbts_countCin = 0;
1672  t_mbts_timeA = 0.;
1673  t_mbts_timeC = 0.;
1674  t_mbts_timeDiff = 0.;
1675 
1676  if (m_mbtsInfo->size() > 0)
1677  {
1678  t_mbts_countA = m_mbtsInfo->at(0)->countA();
1679  t_mbts_countC = m_mbtsInfo->at(0)->countC();
1680  t_mbts_timeA = m_mbtsInfo->at(0)->timeA();
1681  t_mbts_timeC = m_mbtsInfo->at(0)->timeC();
1682  t_mbts_timeDiff = m_mbtsInfo->at(0)->timeDiff();
1683  }
1684  else
1685  {
1686  ANA_MSG_INFO("processMBTS: Warning: MBTS info empty!");
1687  }
1688 
1689  for (int iside = 0; iside < 2; iside++)
1690  {
1691  for (int iin = 0; iin < 8; iin++)
1692  {
1693  t_mbts_in_e[iside][iin] = 0.;
1694  t_mbts_in_t[iside][iin] = 0.;
1695  t_T2mbts_in_e[iside][iin] = 0.;
1696  t_T2mbts_in_t[iside][iin] = 0.;
1697  }
1698  for (int iout = 0; iout < 4; iout++)
1699  {
1700  t_mbts_out_e[iside][iout] = 0.;
1701  t_mbts_out_t[iside][iout] = 0.;
1702  t_T2mbts_out_e[iside][iout] = 0.;
1703  t_T2mbts_out_t[iside][iout] = 0.;
1704  }
1705  }
1706 
1707  ANA_MSG_DEBUG ("filling MBTS");
1708 
1709  if (m_mbtsModules == 0)
1710  {
1711  ANA_MSG_INFO("processMBTS: no MBTS container?");
1712  return;
1713  }
1714 
1715  for (const auto mbtsMod : *m_mbtsModules)
1716  {
1717  int iside = 1;
1718  if (mbtsMod->type() < 0) iside = 0.;
1719  float phibin = 0.;
1720  int iphibin = -1;
1721  if (mbtsMod->eta() > 3)
1722  {
1723  phibin = mbtsMod->phi() / (2 * TMath::Pi() / 8.) - 0.4;
1724  iphibin = static_cast<int>(phibin);
1725  if (iphibin < 0 || iphibin > 7)
1726  {
1727  ANA_MSG_INFO("processMBTS: MBTS has bad phi bin");
1728  continue;
1729  }
1730  t_mbts_in_e[iside][iphibin] = mbtsMod->e();
1731  t_mbts_in_t[iside][iphibin] = mbtsMod->time();
1732  }
1733  else
1734  {
1735  phibin = mbtsMod->phi() / (2 * TMath::Pi() / 4.) - 0.24;
1736  iphibin = static_cast<int>(phibin);
1737  if (iphibin < 0 || iphibin > 3)
1738  {
1739  ANA_MSG_INFO("processMBTS: MBTS has bad phi bin");
1740  continue;
1741  }
1742  t_mbts_out_e[iside][iphibin] = mbtsMod->e();
1743  t_mbts_out_t[iside][iphibin] = mbtsMod->time();
1744  }
1745  }
1746 
1747  if (!m_trigT2MbtsBits) return;
1748 
1749  for (const auto mbtsBits : *m_trigT2MbtsBits)
1750  {
1751  const std::vector<float>& energies = mbtsBits->triggerEnergies();
1752  const std::vector<float>& times = mbtsBits->triggerTimes();
1753  for (int imbts = 0; imbts < 32; imbts++)
1754  {
1755  int side = imbts / 16;
1756  int ring = (imbts - 16 * side) / 8;
1757  bool isInner = (ring == 0);
1758  int index = (imbts - 16 * side - ring * 8);
1759  if (!isInner)
1760  {
1761  if ((index % 2) != 0) continue; // skip odd out ring
1762  index /= 2;
1763  }
1764  int iside = (side == 0) ? 1 : 0; // code maps side 1 into first 16 bits and side -1 into second set
1765 
1766  ANA_MSG_VERBOSE ("imbts=" << imbts << " isInner=" << isInner << " iside=" << iside << " index=" << index << " e=" << energies.at(imbts) << " t=" << times.at(imbts));
1767  if (isInner)
1768  {
1769  t_T2mbts_in_e[iside][index] = energies.at(imbts);
1770  t_T2mbts_in_t[iside][index] = times.at(imbts);
1771  if (TMath::Abs(times.at(imbts)) < 12.0 && energies.at(imbts) > 40 / 222.)
1772  {
1773  if (iside == 0) t_T2mbts_countCin++;
1774  if (iside == 1) t_T2mbts_countAin++;
1775  }
1776  }
1777  else
1778  {
1779  t_T2mbts_out_e[iside][index] = energies.at(imbts);
1780  t_T2mbts_out_t[iside][index] = times.at(imbts);
1781  }
1782  }
1783  }
1784 
1785  return;
1786 }

◆ processMCEventCollection()

void ZdcNtuple::processMCEventCollection ( )

Definition at line 1077 of file ZdcNtuple.cxx.

1077  {
1078  /******************************************
1079  * Get the McEventCollection (input)
1080  ******************************************/
1081  SG::ReadHandle<McEventCollection> mcEventCollection (m_mcEventCollectionName, getContext());
1082  if (!mcEventCollection.isValid()){
1083  ANA_MSG_ERROR("Could not retrieve HepMC with key:" << m_mcEventCollectionName.key());
1084  return;
1085  }else{
1086  ANA_MSG_DEBUG("Retrieved HepMC with key: " << m_mcEventCollectionName.key());
1087  }
1088 
1089  /******************************************
1090  * Clear and resize the output vectors
1091  ******************************************/
1092  t_ZdcTruthParticlePosx.clear();
1093  t_ZdcTruthParticlePosy.clear();
1094  t_ZdcTruthParticlePosz.clear();
1095  t_ZdcTruthParticleTime.clear();
1096  t_ZdcTruthParticlePx.clear();
1097  t_ZdcTruthParticlePy.clear();
1098  t_ZdcTruthParticlePz.clear();
1099  t_ZdcTruthParticleEnergy.clear();
1100 
1101  /******************************************
1102  * Sort the particles into sides and add
1103  * them to the output vectors
1104  ******************************************/
1105  for (unsigned int cntr = 0; cntr < mcEventCollection->size(); ++cntr){
1106  const HepMC::GenEvent *genEvt = (*mcEventCollection)[cntr];
1107 #ifdef HEPMC3
1108  for (const auto &vertex : genEvt->vertices()){
1109  for (const auto &particle : vertex->particles_in()){
1110 #else
1111  for (const auto &vertex : genEvt->vertex_range()){
1112  for (auto ip = vertex->particles_in_const_begin();
1113  ip != vertex->particles_in_const_end();
1114  ++ip) {
1115  auto particle = *ip;
1116 #endif
1117  t_ZdcTruthParticlePosx.push_back(vertex->position().x());
1118  t_ZdcTruthParticlePosy.push_back(vertex->position().y());
1119  t_ZdcTruthParticlePosz.push_back(vertex->position().z());
1120  t_ZdcTruthParticleTime.push_back(vertex->position().t());
1121  t_ZdcTruthParticlePx.push_back(particle->momentum().x());
1122  t_ZdcTruthParticlePy.push_back(particle->momentum().y());
1123  t_ZdcTruthParticlePz.push_back(particle->momentum().z());
1124  t_ZdcTruthParticleEnergy.push_back(particle->momentum().e());
1125  } // end loop over particles
1126  }// end loop over vertices
1127  }// end loop over HepMC events
1128 }

◆ processProtons()

void ZdcNtuple::processProtons ( )

Definition at line 1870 of file ZdcNtuple.cxx.

1870  {
1871 
1872  proton_pt.clear();
1873  proton_eta.clear();
1874  proton_phi.clear();
1875  proton_e.clear();
1876  proton_side.clear();
1877  proton_eLoss.clear();
1878  proton_t.clear();
1879 
1880  proton_track_stationID.clear();
1881  proton_track_nClusters.clear();
1882  proton_track_xLocal.clear();
1883  proton_track_yLocal.clear();
1884  proton_track_zLocal.clear();
1885  proton_track_xSlope.clear();
1886  proton_track_ySlope.clear();
1887 
1888  proton_track_stationID.resize(m_afpProtons->size(), std::vector<int>(2));
1889  proton_track_nClusters.resize(m_afpProtons->size(), std::vector<int>(2));
1890  proton_track_xLocal.resize(m_afpProtons->size(), std::vector<float>(2));
1891  proton_track_yLocal.resize(m_afpProtons->size(), std::vector<float>(2));
1892  proton_track_zLocal.resize(m_afpProtons->size(), std::vector<float>(2));
1893  proton_track_xSlope.resize(m_afpProtons->size(), std::vector<float>(2));
1894  proton_track_ySlope.resize(m_afpProtons->size(), std::vector<float>(2));
1895 
1896  nProtons = 0;
1897 
1898  for(const auto * proton: *m_afpProtons){
1899 
1900  proton_pt.push_back(proton->pt());
1901  proton_eta.push_back(proton->eta());
1902  proton_phi.push_back(proton->phi());
1903  proton_e.push_back(proton->e());
1904  proton_side.push_back(proton->side());
1905 
1906  proton_eLoss.push_back((6800.-proton->e())/6800.);
1907  p_scat.SetPtEtaPhiE(proton->pt(), proton->eta(), proton->phi(), proton->e());
1908  (signbit(proton->eta())) ? p_beam.SetPxPyPzE(0.0, 0.0, -6800.0, 6800.0) : p_beam.SetPxPyPzE(0.0, 0.0, 6800.0,\
1909  6800.0);
1910 
1911  proton_t.push_back( (p_beam - p_scat)*(p_beam - p_scat));
1912 
1913  for(int i=0; i< int(proton->nTracks()); i++){
1914 
1915  proton_track_stationID.at(nProtons).at(i) = proton->track(i)->stationID();
1916  proton_track_nClusters.at(nProtons).at(i) = proton->track(i)->nClusters();
1917  proton_track_xLocal.at(nProtons).at(i) = proton->track(i)->xLocal();
1918  proton_track_yLocal.at(nProtons).at(i) = proton->track(i)->yLocal();
1919  proton_track_zLocal.at(nProtons).at(i) = proton->track(i)->zLocal();
1920  proton_track_xSlope.at(nProtons).at(i) = proton->track(i)->xSlope();
1921  proton_track_ySlope.at(nProtons).at(i) = proton->track(i)->ySlope();
1922 
1923  }
1924 
1925  nProtons++;
1926  }
1927 
1928  return;
1929 }

◆ processTriggerDecision()

bool ZdcNtuple::processTriggerDecision ( )

Definition at line 1130 of file ZdcNtuple.cxx.

1131 {
1132  ANA_MSG_DEBUG ("Processing trigger");
1133 
1134  bool passTrigger = false;
1135 
1136  t_trigger = 0;
1137  t_trigger_TBP = 0;
1138 
1139  for (int i = 0; i < 16; i++)
1140  {
1141  t_tav[i] = 0;
1142  t_tbp[i] = 0;
1143  }
1144 
1145  if (m_trigDecision)
1146  {
1147  for (int i = 0; i < 16; i++)
1148  {
1149  t_tbp[i] = m_trigDecision->tbp().at(i);
1150  t_tav[i] = m_trigDecision->tav().at(i);
1151  ANA_MSG_DEBUG( "TD: " << i << " tbp: " << std::hex << t_tbp[i] << "\t" << t_tav[i] );
1152  }
1154  }
1155 
1156  if (enableTrigger)
1157  {
1158 
1159  int ic = 0;
1160  for (auto cg : m_chainGroups)
1161  {
1162 
1163  if (zdcCalib)
1164  {
1165  std::string name = cg->getListOfTriggers().at(0);
1166  const unsigned int triggerbits = m_trigDecisionTool->isPassedBits(name);
1167  // deferred functionality
1168  //bool tbp = triggerbits&TrigDefs::L1_isPassedBeforePrescale;
1169  //bool tap = triggerbits&TrigDefs::L1_isPassedAfterPrescale;
1170  bool tav = triggerbits&TrigDefs::L1_isPassedAfterVeto;
1171  ANA_MSG_DEBUG("TD: checking trigger name=" << name<< " tav=" << tav);
1172  if (tav)
1173  {
1174  t_trigger += (1 << ic);
1175  t_decisions[ic] = true;
1176  t_prescales[ic] = cg->getPrescale();
1177  passTrigger = true;
1178  }
1179  else
1180  {
1181  t_decisions[ic] = 0;
1182  t_prescales[ic] = 0;
1183  }
1184  }
1185  else
1186  {
1187  if (cg->isPassed())
1188  {
1189  t_trigger += (1 << ic);
1190  t_decisions[ic] = true;
1191  t_prescales[ic] = cg->getPrescale();
1192  passTrigger = true;
1193  }
1194  else
1195  {
1196  t_decisions[ic] = 0;
1197  t_prescales[ic] = 0;
1198  }
1199  }
1200 
1201  if (cg->isPassedBits()&TrigDefs::EF_passedRaw)
1202  {
1203  t_trigger_TBP += (1 << ic);
1204  }
1205 
1206 
1207  ic++;
1208  }
1209 
1210  int irc = 0;
1211  for (auto cg : m_rerunChainGroups)
1212  {
1213  t_rerunDecisions[irc] = false;
1214  if (cg->isPassedBits()&TrigDefs::EF_passedRaw)
1215  {
1216  t_rerunDecisions[irc] = true;
1217  }
1218  irc++;
1219  }
1220 
1221  }
1222 
1223  return passTrigger;
1224 }

◆ processTriggerTowers()

void ZdcNtuple::processTriggerTowers ( )

◆ processVInjInfo()

void ZdcNtuple::processVInjInfo ( )

Definition at line 1251 of file ZdcNtuple.cxx.

1251  {
1252  // Check for new run number
1253  //
1254  if (t_runNumber != m_lastRunNumber) {
1255  //
1256  // Get access to the injector pulse steps for this run
1257  //
1259  if (!m_injMapRunToken.isValid()) {
1260  ANA_MSG_ERROR("Unable to obtain injector pulse steps for run " << t_runNumber);
1261  }
1262  else {
1263  unsigned int startLB = m_zdcInjPulserAmpMap->getFirstLumiBlock(m_injMapRunToken);
1264  unsigned int nsteps = m_zdcInjPulserAmpMap->getNumSteps(m_injMapRunToken);
1265  ANA_MSG_DEBUG("Successfully obtained injector pulse steps for run " << t_runNumber
1266  << ", first LB = " << startLB << ", number of steps = " << nsteps);
1267  }
1268 
1269  // update the last run number to be the current run number
1271  }
1272 
1273  t_vInj = m_zdcInjPulserAmpMap->getPulserAmplitude(m_injMapRunToken, t_lumiBlock);
1274 }

◆ processZdcNtupleFromModules()

void ZdcNtuple::processZdcNtupleFromModules ( )

Definition at line 628 of file ZdcNtuple.cxx.

629 {
630 
633 
634  ANA_MSG_DEBUG ("copying already processed info!");
635 
636  //Reset the truth separately since it has a different range
637  for(int iside : {0,1}){
638  for(int imod = 0; imod < 7; ++imod){
639  t_ZdcModuleTruthTotal[iside][imod] = 0;
640  t_ZdcModuleTruthInvis[iside][imod] = 0;
641  t_ZdcModuleTruthEM[iside][imod] = 0;
642  t_ZdcModuleTruthNonEM[iside][imod] = 0;
643  t_ZdcModuleTruthEscaped[iside][imod] = 0;
644  t_ZdcModuleTruthNphotons[iside][imod] = 0;
645  }
646  for(int ch = 0; ch < 16; ++ch){
647  t_RpdModuleTruthNphotons[iside][ch] = 0;
648  }
649  }
650 
651  for (size_t iside = 0; iside < 2; iside++)
652  {
653  t_ZdcAmp[iside] = 0; t_ZdcEnergy[iside] = 0; t_ZdcTime[iside] = 0; t_ZdcStatus[iside] = 0;
654  t_ZdcTrigEff[iside] = 0;t_ZdcLucrodTriggerSideAmp[iside] = 0; t_ZdcLucrodTriggerSideAmpLG[iside] = 0; t_ZdcTruthTotal[iside] = 0;
655  t_ZdcTruthInvis[iside] = 0; t_ZdcTruthEM[iside] = 0; t_ZdcTruthNonEM[iside] = 0;
656  t_ZdcTruthEscaped[iside] = 0;
657  for (int imod = 0; imod < 4; imod++)
658  {
659  t_ZdcModuleAmp[iside][imod] = 0; t_ZdcModuleTime[iside][imod] = 0; t_ZdcModuleStatus[iside][imod] = 0;
660 
661  t_ZdcModuleCalibAmp[iside][imod] = 0; t_ZdcModuleCalibTime[iside][imod] = 0; t_ZdcModuleChisq[iside][imod] = 0; t_ZdcModuleFitAmp[iside][imod] = 0;
662  t_ZdcModuleFitT0[iside][imod] = 0; t_ZdcModuleBkgdMaxFraction[iside][imod] = 0; t_ZdcModuleAmpError[iside][imod] = 0;
663  t_ZdcModuleMinDeriv2nd[iside][imod] = 0; t_ZdcModulePresample[iside][imod] = 0; t_ZdcModulePreSampleAmp[iside][imod] = 0;
664  t_ZdcLucrodTriggerAmp[iside][imod] = 0;t_ZdcLucrodTriggerAmpLG[iside][imod] = 0;
665  t_ZdcModuleMaxADC[iside][imod] = 0; t_ZdcModuleMaxADCHG[iside][imod] = 0; t_ZdcModuleMaxADCLG[iside][imod] = 0;
666  t_ZdcModulePeakADCHG[iside][imod] = 0; t_ZdcModulePeakADCLG[iside][imod] = 0;
667  t_ZdcModuleAmpLGRefit[iside][imod] = 0; t_ZdcModuleAmpCorrLGRefit[iside][imod] = 0;
668  t_ZdcModuleT0LGRefit[iside][imod] = 0; t_ZdcModuleT0SubLGRefit[iside][imod] = 0; t_ZdcModuleChisqLGRefit[iside][imod] = 0;
669 
671  {
672  for (int ig=0;ig<2;ig++)
673  {
674  for (int id=0;id<2;id++)
675  {
676  for (unsigned int isamp=0;isamp<nsamplesZdc;isamp++)
677  {
678  if (nsamplesZdc==7) t_raw7[iside][imod][ig][id][isamp]=0;
679  if (nsamplesZdc==15) t_raw15[iside][imod][ig][id][isamp]=0;
680  if (nsamplesZdc==24) t_raw24[iside][imod][ig][id][isamp]=0;
681  }
682  }
683  }
684  if (nsamplesZdc==24)
685  {
686  for (int ch=0;ch<16;ch++)
687  {
688  for (unsigned int isamp=0;isamp<nsamplesZdc;isamp++)
689  {
690  t_rpdRaw[iside][ch][isamp]=0;
691  }
692  }
693  }
694  }
695  if (enableRPD)
696  {
697  for (int ch = 0; ch < 16; ch++) {
698  t_RpdChannelBaseline[iside][ch] = 0;
703  t_RpdChannelPileupExpFitMSE[iside][ch] = 0;
705  t_RpdChannelAmplitude[iside][ch] = 0;
706  t_RpdChannelAmplitudeCalib[iside][ch] = 0;
707  t_RpdChannelMaxADC[iside][ch] = 0;
708  t_RpdChannelMaxADCCalib[iside][ch] = 0;
709  t_RpdChannelMaxSample[iside][ch] = 0;
710  t_RpdChannelStatus[iside][ch] = 0;
711  t_RpdChannelPileupFrac[iside][ch] = 0;
712  }
713  t_RpdSideStatus[iside] = 0;
714  }
715  if (enableCentroid)
716  {
717  t_centroidStatus[iside] = 0;
718  std::fill(t_RPDChannelSubtrAmp[iside], t_RPDChannelSubtrAmp[iside] + 16, 0);
719  t_RPDSubtrAmpSum[iside] = 0;
722  t_xCentroidPreAvgSubtr[iside] = 0;
723  t_yCentroidPreAvgSubtr[iside] = 0;
724  t_xCentroid[iside] = 0;
725  t_yCentroid[iside] = 0;
726  std::fill(t_xRowCentroid[iside], t_xRowCentroid[iside] + 4, 0);
727  std::fill(t_yColCentroid[iside], t_yColCentroid[iside] + 4, 0);
728  t_reactionPlaneAngle[iside] = 0;
729  }
730  }
731  }
732 
733  t_ZdcModuleMask = 0;
734  if (enableCentroid) {
736  t_centroidEventValid = false;
738  }
739 
740  /*
741  if (t_zdcEventInfoError == xAOD::EventInfo::Error)
742  {
743  ANA_MSG_INFO("ZDC event failed EventInfo error check - aborting!");
744  return;
745  }
746  */
747 
748  static const SG::ConstAccessor<char> centroidEventValidAcc("centroidEventValid" + auxSuffix);
749  static const SG::ConstAccessor<float> cosDeltaReactionPlaneAngleAcc("cosDeltaReactionPlaneAngle" + auxSuffix);
750  static const SG::ConstAccessor<float> CalibEnergyAcc("CalibEnergy"+auxSuffix);
751  static const SG::ConstAccessor<float> CalibEnergyErrAcc("CalibEnergyErr"+auxSuffix);
752  static const SG::ConstAccessor<float> UncalibSumAcc("UncalibSum"+auxSuffix);
753  static const SG::ConstAccessor<float> UncalibSumErrAcc("UncalibSumErr"+auxSuffix);
754  static const SG::ConstAccessor<float> AverageTimeAcc("AverageTime"+auxSuffix);
755  static const SG::ConstAccessor<unsigned int> StatusAcc("Status"+auxSuffix);
756  static const SG::ConstAccessor<unsigned int> ModuleMaskAcc("ModuleMask"+auxSuffix);
757  static const SG::ConstAccessor<float> TruthTotalEnergyAcc("TruthTotalEnergy" + auxSuffix);
758  static const SG::ConstAccessor<float> TruthInvisibleEnergyAcc("TruthInvisibleEnergy" + auxSuffix);
759  static const SG::ConstAccessor<float> TruthEMEnergyAcc("TruthEMEnergy" + auxSuffix);
760  static const SG::ConstAccessor<float> TruthNonEMEnergyAcc("TruthNonEMEnergy" + auxSuffix);
761  static const SG::ConstAccessor<float> TruthEscapedEnergyAcc("TruthEscapedEnergy" + auxSuffix);
762  static const SG::ConstAccessor<unsigned int> centroidStatusAcc("centroidStatus" + auxSuffix);
763  static const SG::ConstAccessor<std::vector<float> > RPDChannelSubtrAmpAcc("RPDChannelSubtrAmp" + auxSuffix);
764  static const SG::ConstAccessor<float> RPDSubtrAmpSumAcc("RPDSubtrAmpSum" + auxSuffix);
765  static const SG::ConstAccessor<float> xCentroidPreGeomCorPreAvgSubtrAcc("xCentroidPreGeomCorPreAvgSubtr" + auxSuffix);
766  static const SG::ConstAccessor<float> yCentroidPreGeomCorPreAvgSubtrAcc("yCentroidPreGeomCorPreAvgSubtr" + auxSuffix);
767  static const SG::ConstAccessor<float> xCentroidPreAvgSubtrAcc("xCentroidPreAvgSubtr" + auxSuffix);
768  static const SG::ConstAccessor<float> yCentroidPreAvgSubtrAcc("yCentroidPreAvgSubtr" + auxSuffix);
769  static const SG::ConstAccessor<float> xCentroidAcc("xCentroid" + auxSuffix);
770  static const SG::ConstAccessor<float> yCentroidAcc("yCentroid" + auxSuffix);
771  static const SG::ConstAccessor<std::vector<float> > xRowCentroidAcc("xRowCentroid" + auxSuffix);
772  static const SG::ConstAccessor<std::vector<float> > yColCentroidAcc("yColCentroid" + auxSuffix);
773  static const SG::ConstAccessor<float> reactionPlaneAngleAcc("reactionPlaneAngle" + auxSuffix);
774  static const SG::ConstAccessor<unsigned int> RPDStatusAcc("RPDStatus" + auxSuffix);
775  static const SG::ConstAccessor<unsigned int> nPhotonsAcc("nPhotons" + auxSuffix);
776  static const SG::ConstAccessor<float> CalibTimeAcc("CalibTime" + auxSuffix);
777  static const SG::ConstAccessor<float> AmplitudeAcc("Amplitude" + auxSuffix);
778  static const SG::ConstAccessor<float> TimeAcc("Time" + auxSuffix);
779  static const SG::ConstAccessor<float> ChisqAcc("Chisq" + auxSuffix);
780  static const SG::ConstAccessor<float> FitAmpAcc("FitAmp" + auxSuffix);
781  static const SG::ConstAccessor<float> FitAmpErrorAcc("FitAmpError" + auxSuffix);
782  static const SG::ConstAccessor<float> FitT0Acc("FitT0" + auxSuffix);
783  static const SG::ConstAccessor<float> BkgdMaxFractionAcc("BkgdMaxFraction" + auxSuffix);
784  static const SG::ConstAccessor<float> MinDeriv2ndAcc("MinDeriv2nd" + auxSuffix);
785  static const SG::ConstAccessor<float> PresampleAcc("Presample" + auxSuffix);
786  static const SG::ConstAccessor<float> PreSampleAmpAcc("PreSampleAmp" + auxSuffix);
787  static const SG::ConstAccessor<float> RPDChannelBaselineAcc("RPDChannelBaseline" + auxSuffix);
788  static const SG::ConstAccessor<std::vector<float> > RPDChannelPileupExpFitParamsAcc("RPDChannelPileupExpFitParams" + auxSuffix);
789  static const SG::ConstAccessor<std::vector<float> > RPDChannelPileupExpFitParamErrsAcc("RPDChannelPileupExpFitParamErrs" + auxSuffix);
790  static const SG::ConstAccessor<std::vector<float> > RPDChannelPileupStretchedExpFitParamsAcc("RPDChannelPileupStretchedExpFitParams" + auxSuffix);
791  static const SG::ConstAccessor<std::vector<float> > RPDChannelPileupStretchedExpFitParamErrsAcc("RPDChannelPileupStretchedExpFitParamErrs" + auxSuffix);
792  static const SG::ConstAccessor<float> RPDChannelPileupExpFitMSEAcc("RPDChannelPileupExpFitMSE" + auxSuffix);
793  static const SG::ConstAccessor<float> RPDChannelPileupStretchedExpFitMSEAcc("RPDChannelPileupStretchedExpFitMSE" + auxSuffix);
794  static const SG::ConstAccessor<float> RPDChannelAmplitudeAcc("RPDChannelAmplitude" + auxSuffix);
795  static const SG::ConstAccessor<float> RPDChannelAmplitudeCalibAcc("RPDChannelAmplitudeCalib" + auxSuffix);
796  static const SG::ConstAccessor<float> RPDChannelMaxADCAcc("RPDChannelMaxADC" + auxSuffix);
797  static const SG::ConstAccessor<float> RPDChannelMaxADCCalibAcc("RPDChannelMaxADCCalib" + auxSuffix);
798  static const SG::ConstAccessor<unsigned int> RPDChannelMaxSampleAcc("RPDChannelMaxSample" + auxSuffix);
799  static const SG::ConstAccessor<unsigned int> RPDChannelStatusAcc("RPDChannelStatus" + auxSuffix);
800  static const SG::ConstAccessor<float> RPDChannelPileupFracAcc("RPDChannelPileupFrac" + auxSuffix);
801  static const SG::ConstAccessor<float> AmpLGRefitAcc("AmpLGRefit" + auxSuffix);
802  static const SG::ConstAccessor<float> T0LGRefitAcc("T0LGRefit" + auxSuffix);
803  static const SG::ConstAccessor<float> T0SubLGRefitAcc("T0SubLGRefit" + auxSuffix);
804  static const SG::ConstAccessor<float> ChisqLGRefitAcc("ChisqLGRefit" + auxSuffix);
805 
806  static const SG::ConstAccessor<uint16_t> LucrodTriggerAmpAcc("LucrodTriggerAmp");
807  static const SG::ConstAccessor<uint16_t> LucrodTriggerAmpLGAcc("LucrodTriggerAmpLG");
808  static const SG::ConstAccessor<uint16_t> LucrodTriggerSideAmpAcc("LucrodTriggerSideAmp");
809  static const SG::ConstAccessor<uint16_t> LucrodTriggerSideAmpLGAcc("LucrodTriggerSideAmpLG");
810  static const SG::ConstAccessor<float> Amplitude0Acc("Amplitude");
811  static const SG::ConstAccessor<float> MaxADCAcc("MaxADC");
812  static const SG::ConstAccessor<float> MaxADCHGAcc("MaxADCHG");
813  static const SG::ConstAccessor<float> MaxADCLGAcc("MaxADCLG");
814  static const SG::ConstAccessor<float> PeakADCHGAcc("PeakADCHG");
815  static const SG::ConstAccessor<float> PeakADCLGAcc("PeakADCLG");
816  static const SG::ConstAccessor<std::vector<uint16_t> > g0d0DataAcc("g0d0Data");
817  static const SG::ConstAccessor<std::vector<uint16_t> > g0d1DataAcc("g0d1Data");
818  static const SG::ConstAccessor<std::vector<uint16_t> > g1d0DataAcc("g1d0Data");
819  static const SG::ConstAccessor<std::vector<uint16_t> > g1d1DataAcc("g1d1Data");
820  static const SG::ConstAccessor<std::vector<uint16_t> > g0dataAcc("g0data");
821  static const SG::ConstAccessor<std::vector<uint16_t> > g1dataAcc("g1data");
822 
825  t_rpdDecodingError = rpdErr;
826  t_zdcDecodingError = zdcErr;
827  if (enableCentroid) {
828  // locate global sum (only if centroid is needed)
829  xAOD::ZdcModule const * globalSum = nullptr;
830  for (auto const * zdcSum : *zdcSums) {
831  if (zdcSum->zdcSide() == 0) {
832  globalSum = zdcSum;
833  break;
834  }
835  }
836  if (!globalSum) {
837  ANA_MSG_ERROR("unable to locate global ZdcSum (side = 0)");
839  }
840  else {
841  t_centroidDecorationsAvailable = centroidStatusAcc.isAvailable(*globalSum);
842  }
843  }
844 
845  if (rpdErr||zdcErr) ANA_MSG_WARNING( "Decoding errors ZDC=" << zdcErr << " RPD=" << rpdErr );
846 
847  if (zdcSums.ptr())
848  {
849  ANA_MSG_DEBUG( "accessing ZdcSums" );
850  for (const auto zdcSum : *zdcSums)
851  {
852  if (zdcSum->zdcSide()==0 && enableCentroid && t_centroidDecorationsAvailable)
853  {
854  // new global sum
855  t_centroidEventValid = centroidEventValidAcc(*zdcSum);
856  t_cosDeltaReactionPlaneAngle = cosDeltaReactionPlaneAngleAcc(*zdcSum);
857  continue;
858  }
859  int iside = 0;
860  if (zdcSum->zdcSide() > 0) iside = 1;
861 
862  //static SG::AuxElement::ConstAccessor< float > acc( "CalibEnergy" );
863  //t_ZdcEnergy[iside] = acc(*zdcSum);
864 
865  if (enableZDC && !zdcErr)
866  {
867  t_ZdcEnergy[iside] = CalibEnergyAcc(*zdcSum);
868  t_ZdcEnergyErr[iside] = CalibEnergyErrAcc(*zdcSum);
869 
870  t_ZdcAmp[iside] = UncalibSumAcc(*zdcSum);
871  t_ZdcAmpErr[iside] = UncalibSumErrAcc(*zdcSum);
872  if (LucrodTriggerSideAmpAcc.isAvailable(*zdcSum))
873  t_ZdcLucrodTriggerSideAmp[iside] = LucrodTriggerSideAmpAcc(*zdcSum);
874  if (LucrodTriggerSideAmpLGAcc.isAvailable(*zdcSum))
875  t_ZdcLucrodTriggerSideAmpLG[iside] = LucrodTriggerSideAmpLGAcc(*zdcSum);
876 
877  ANA_MSG_VERBOSE("processZdcNtupleFromModules: ZdcSum energy = " << t_ZdcEnergy[iside]);
878 
879  t_ZdcTime[iside] = AverageTimeAcc(*zdcSum);
880  t_ZdcStatus[iside] = StatusAcc(*zdcSum);
881  t_ZdcModuleMask += ( ModuleMaskAcc(*zdcSum) << 4 * iside);
882 
883  if(m_isMC){
884  ANA_MSG_DEBUG("Filling sum truth");
885  t_ZdcTruthTotal [iside] = TruthTotalEnergyAcc(*zdcSum);
886  t_ZdcTruthInvis [iside] = TruthInvisibleEnergyAcc(*zdcSum);
887  t_ZdcTruthEM [iside] = TruthEMEnergyAcc(*zdcSum);
888  t_ZdcTruthNonEM [iside] = TruthNonEMEnergyAcc(*zdcSum);
889  t_ZdcTruthEscaped[iside] = TruthEscapedEnergyAcc(*zdcSum);
890  }
891 
892  }
893 
894  if (enableRPD)
895  {
896  if (enableRPDAmp && !rpdErr)
897  {
898  t_RpdSideStatus[iside] = RPDStatusAcc(*zdcSum);
899  }
901  {
902  t_centroidStatus[iside] = centroidStatusAcc(*zdcSum);
903  std::vector<float> const& rpdChannelSubtrAmp = RPDChannelSubtrAmpAcc(*zdcSum);
904  std::copy(rpdChannelSubtrAmp.begin(), rpdChannelSubtrAmp.end(), t_RPDChannelSubtrAmp[iside]);
905  t_RPDSubtrAmpSum[iside] = RPDSubtrAmpSumAcc(*zdcSum);
906  t_xCentroidPreGeomCorPreAvgSubtr[iside] = xCentroidPreGeomCorPreAvgSubtrAcc(*zdcSum);
907  t_yCentroidPreGeomCorPreAvgSubtr[iside] = yCentroidPreGeomCorPreAvgSubtrAcc(*zdcSum);
908  t_xCentroidPreAvgSubtr[iside] = xCentroidPreAvgSubtrAcc(*zdcSum);
909  t_yCentroidPreAvgSubtr[iside] = yCentroidPreAvgSubtrAcc(*zdcSum);
910  t_xCentroid[iside] = xCentroidAcc(*zdcSum);
911  t_yCentroid[iside] = yCentroidAcc(*zdcSum);
912  std::vector<float> const& xRowCentroid = xRowCentroidAcc(*zdcSum);
913  std::copy(xRowCentroid.begin(), xRowCentroid.end(), t_xRowCentroid[iside]);
914  std::vector<float> const& yColCentroid = yColCentroidAcc(*zdcSum);
915  std::copy(yColCentroid.begin(), yColCentroid.end(), t_yColCentroid[iside]);
916  t_reactionPlaneAngle[iside] = reactionPlaneAngleAcc(*zdcSum);
917  }
918  }
919  }
920  }
921 
922  ANA_MSG_DEBUG( "accessing ZdcModules" );
923 
924  if (zdcModules.ptr())
925  {
926  for (const auto zdcMod : *zdcModules)
927  {
928  int iside = 0;
929  if (zdcMod->zdcSide() > 0) iside = 1;
930  int imod = zdcMod->zdcModule();
931 
932  if (m_isMC){
933  //Calib hits are only stored in channel 0 of the RPD
934  if(!(imod == 4 && zdcMod->zdcChannel() != 0)){
935  t_ZdcModuleTruthTotal [iside][imod] = TruthTotalEnergyAcc(*zdcMod);
936  t_ZdcModuleTruthInvis [iside][imod] = TruthInvisibleEnergyAcc(*zdcMod);
937  t_ZdcModuleTruthEM [iside][imod] = TruthEMEnergyAcc(*zdcMod);
938  t_ZdcModuleTruthNonEM [iside][imod] = TruthNonEMEnergyAcc(*zdcMod);
939  t_ZdcModuleTruthEscaped[iside][imod] = TruthEscapedEnergyAcc(*zdcMod);
940  t_ZdcModuleTruthNphotons[iside][imod] = nPhotonsAcc(*zdcMod);
941  }
942  //Calib hits are stored for all modules
943  //Other data is only valid for module 1-4
944  if(imod > 4) continue;
945  }
946 
947  ANA_MSG_VERBOSE ("Module " << zdcMod->zdcSide() << " " << zdcMod->zdcModule() << " amp:" << AmplitudeAcc(*zdcMod));
948 
949  if (zdcMod->zdcType() == 0 && !zdcErr)
950  {
951  // ZDC energy type modules
952  t_ZdcModuleCalibAmp[iside][imod] = CalibEnergyAcc(*zdcMod);
953  t_ZdcModuleCalibTime[iside][imod] = CalibTimeAcc(*zdcMod);
954  t_ZdcModuleStatus[iside][imod] = StatusAcc(*zdcMod);
955  if (t_ZdcModuleAmp[iside][imod] != 0.)
956  Warning("processZdcNtupleFromModules", "overwriting side %d module %d!", iside, imod);
957  t_ZdcModuleAmp[iside][imod] = AmplitudeAcc(*zdcMod);
958  t_ZdcModuleTime[iside][imod] = TimeAcc(*zdcMod);
959 
960  t_ZdcModuleChisq[iside][imod] = ChisqAcc(*zdcMod);
961  t_ZdcModuleFitAmp[iside][imod] = FitAmpAcc(*zdcMod);
962  t_ZdcModuleAmpError[iside][imod] = FitAmpErrorAcc(*zdcMod);
963  t_ZdcModuleFitT0[iside][imod] = FitT0Acc(*zdcMod);
964  t_ZdcModuleBkgdMaxFraction[iside][imod] = BkgdMaxFractionAcc(*zdcMod);
965  t_ZdcModuleMinDeriv2nd[iside][imod] = MinDeriv2ndAcc(*zdcMod);
966  t_ZdcModulePresample[iside][imod] = PresampleAcc(*zdcMod);
967  t_ZdcModulePreSampleAmp[iside][imod] = PreSampleAmpAcc(*zdcMod);
968 
969  if (AmpLGRefitAcc.isAvailable(*zdcMod)) {
970  t_ZdcModuleAmpLGRefit[iside][imod] = AmpLGRefitAcc(*zdcMod);
971  t_ZdcModuleT0LGRefit[iside][imod] = T0LGRefitAcc(*zdcMod);
972  t_ZdcModuleT0SubLGRefit[iside][imod] = T0SubLGRefitAcc(*zdcMod);
973  t_ZdcModuleChisqLGRefit[iside][imod] = ChisqLGRefitAcc(*zdcMod);
974  }
975 
976  if (LucrodTriggerAmpAcc.isAvailable(*zdcMod))
977  t_ZdcLucrodTriggerAmp[iside][imod] = LucrodTriggerAmpAcc(*zdcMod);
978  if (LucrodTriggerAmpLGAcc.isAvailable(*zdcMod))
979  t_ZdcLucrodTriggerAmpLG[iside][imod] = LucrodTriggerAmpLGAcc(*zdcMod);
980 
981  if (MaxADCAcc.isAvailable(*zdcMod))
982  t_ZdcModuleMaxADC[iside][imod] = MaxADCAcc(*zdcMod);
983  if (MaxADCHGAcc.isAvailable(*zdcMod))
984  t_ZdcModuleMaxADCHG[iside][imod] = MaxADCHGAcc(*zdcMod);
985  if (MaxADCLGAcc.isAvailable(*zdcMod))
986  t_ZdcModuleMaxADCLG[iside][imod] = MaxADCLGAcc(*zdcMod);
987  if (PeakADCHGAcc.isAvailable(*zdcMod))
988  t_ZdcModulePeakADCHG[iside][imod] = PeakADCHGAcc(*zdcMod);
989  if (PeakADCLGAcc.isAvailable(*zdcMod))
990  t_ZdcModulePeakADCLG[iside][imod] = PeakADCLGAcc(*zdcMod);
991 
992  if (enableOutputSamples && !zdcErr)
993  {
994  for (unsigned int isamp = 0; isamp < nsamplesZdc; isamp++) // 7 samples
995  {
996  if (nsamplesZdc == 7)
997  {
998  t_raw7[iside][imod][0][0][isamp] = g0d0DataAcc(*zdcMod).at(isamp);
999  t_raw7[iside][imod][0][1][isamp] = g0d1DataAcc(*zdcMod).at(isamp);
1000  t_raw7[iside][imod][1][0][isamp] = g1d0DataAcc(*zdcMod).at(isamp);
1001  t_raw7[iside][imod][1][1][isamp] = g1d1DataAcc(*zdcMod).at(isamp);
1002  }
1003 
1004  if (nsamplesZdc == 15)
1005  {
1006  t_raw15[iside][imod][0][0][isamp] = g0d0DataAcc(*zdcMod).at(isamp);
1007  t_raw15[iside][imod][0][1][isamp] = g0d1DataAcc(*zdcMod).at(isamp);
1008  t_raw15[iside][imod][1][0][isamp] = g1d0DataAcc(*zdcMod).at(isamp);
1009  t_raw15[iside][imod][1][1][isamp] = g1d1DataAcc(*zdcMod).at(isamp);
1010  }
1011 
1012  if (nsamplesZdc == 24)
1013  {
1014  t_raw24[iside][imod][0][0][isamp] = g0dataAcc(*zdcMod).at(isamp);
1015  t_raw24[iside][imod][1][0][isamp] = g1dataAcc(*zdcMod).at(isamp);
1016  }
1017  }
1018  }
1019  }
1020  else if (zdcMod->zdcType() == 1 && nsamplesZdc == 24)
1021  {
1022  // this is the RPD
1023  if (enableRPD)
1024  {
1025  if (enableRPDAmp && !rpdErr)
1026  {
1027  t_RpdChannelBaseline[iside][zdcMod->zdcChannel()] = RPDChannelBaselineAcc(*zdcMod);
1028  std::vector<float> const &rpdChannelPileupExpFitParams = RPDChannelPileupExpFitParamsAcc(*zdcMod);
1029  std::copy(rpdChannelPileupExpFitParams.begin(), rpdChannelPileupExpFitParams.end(), t_RpdChannelPileupExpFitParams[iside][zdcMod->zdcChannel()]);
1030  std::vector<float> const &rpdChannelPileupExpFitParamErrs = RPDChannelPileupExpFitParamErrsAcc(*zdcMod);
1031  std::copy(rpdChannelPileupExpFitParamErrs.begin(), rpdChannelPileupExpFitParamErrs.end(), t_RpdChannelPileupExpFitParamErrs[iside][zdcMod->zdcChannel()]);
1032  std::vector<float> const &rpdChannelPileupStretchedExpFitParams = RPDChannelPileupStretchedExpFitParamsAcc(*zdcMod);
1033  std::copy(rpdChannelPileupStretchedExpFitParams.begin(), rpdChannelPileupStretchedExpFitParams.end(), t_RpdChannelPileupStretchedExpFitParams[iside][zdcMod->zdcChannel()]);
1034  std::vector<float> const &rpdChannelPileupStretchedExpFitParamErrs = RPDChannelPileupStretchedExpFitParamErrsAcc(*zdcMod);
1035  std::copy(rpdChannelPileupStretchedExpFitParamErrs.begin(), rpdChannelPileupStretchedExpFitParamErrs.end(), t_RpdChannelPileupStretchedExpFitParamErrs[iside][zdcMod->zdcChannel()]);
1036  t_RpdChannelPileupExpFitMSE[iside][zdcMod->zdcChannel()] = RPDChannelPileupExpFitMSEAcc(*zdcMod);
1037  t_RpdChannelPileupStretchedExpFitMSE[iside][zdcMod->zdcChannel()] = RPDChannelPileupStretchedExpFitMSEAcc(*zdcMod);
1038  t_RpdChannelAmplitude[iside][zdcMod->zdcChannel()] = RPDChannelAmplitudeAcc(*zdcMod);
1039  t_RpdChannelAmplitudeCalib[iside][zdcMod->zdcChannel()] = RPDChannelAmplitudeCalibAcc(*zdcMod);
1040  t_RpdChannelMaxADC[iside][zdcMod->zdcChannel()] = RPDChannelMaxADCAcc(*zdcMod);
1041  t_RpdChannelMaxADCCalib[iside][zdcMod->zdcChannel()] = RPDChannelMaxADCCalibAcc(*zdcMod);
1042  t_RpdChannelMaxSample[iside][zdcMod->zdcChannel()] = RPDChannelMaxSampleAcc(*zdcMod);
1043  t_RpdChannelStatus[iside][zdcMod->zdcChannel()] = RPDChannelStatusAcc(*zdcMod);
1044  t_RpdChannelPileupFrac[iside][zdcMod->zdcChannel()] = RPDChannelPileupFracAcc(*zdcMod);
1045  if(m_isMC){
1046  t_RpdModuleTruthNphotons[iside][zdcMod->zdcChannel()] = nPhotonsAcc(*zdcMod);
1047  }
1048  }
1049  if (enableOutputSamples)
1050  {
1051  std::vector<uint16_t> const &rpdChannelRaw = g0dataAcc(*zdcMod);
1052  std::copy(rpdChannelRaw.begin(), rpdChannelRaw.end(), t_rpdRaw[iside][zdcMod->zdcChannel()]);
1053  }
1054  }
1055  }
1056  }
1057  }
1058  else
1059  {
1060  ANA_MSG_INFO("No ZdcModules" << auxSuffix << " when expected!");
1061  }
1062 
1063  if (msgLvl (MSG::VERBOSE))
1064  {
1065  std::ostringstream message;
1066  message << "Dump zdc_ZdcModuleAmp: ";
1067  for (int iside = 0; iside < 2; iside++)
1068  {
1069  for (int imod = 0; imod < 4; imod++)
1070  {
1071  message << t_ZdcModuleAmp[iside][imod] << " ";
1072  }
1073  }
1074  }
1075 }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ reprocessZdcModule()

void ZdcNtuple::reprocessZdcModule ( const xAOD::ZdcModule zdcMod,
bool  flipdelay = 0 
)

◆ requestBeginInputFile()

StatusCode EL::AnaAlgorithm::requestBeginInputFile ( )
inherited

register this algorithm to have an implementation of beginInputFile

Guarantee
strong
Failures
beginInputFile not supported

Definition at line 270 of file AnaAlgorithm.cxx.

272  {
273  m_hasBeginInputFile = true;
274 
275 #ifndef XAOD_STANDALONE
276  // Connect to the IncidentSvc:
277  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
278  ATH_CHECK( incSvc.retrieve() );
279 
280  // Set up the right callback, but ensure we don't double-register
281  // if we are called twice
282  incSvc->removeListener( this, IncidentType::BeginInputFile );
283  incSvc->addListener( this, IncidentType::BeginInputFile, 0, true );
284 #endif
285 
286  return StatusCode::SUCCESS;
287  }

◆ requestEndInputFile()

StatusCode EL::AnaAlgorithm::requestEndInputFile ( )
inherited

register this algorithm to have an implementation of endInputFile

Guarantee
strong
Failures
endInputFile not supported

Definition at line 291 of file AnaAlgorithm.cxx.

293  {
294  m_hasEndInputFile = true;
295 
296 #ifndef XAOD_STANDALONE
297  // Connect to the IncidentSvc:
298  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
299  ATH_CHECK( incSvc.retrieve() );
300 
301  // Set up the right callback, but ensure we don't double-register
302  // if we are called twice
303  incSvc->removeListener( this, IncidentType::EndInputFile );
304  incSvc->addListener( this, IncidentType::EndInputFile, 0, true );
305 #endif
306 
307  return StatusCode::SUCCESS;
308  }

◆ requestFileExecute()

StatusCode EL::AnaAlgorithm::requestFileExecute ( )
inherited

register this algorithm to have an implementation of fileexecute

Guarantee
strong
Failures
fileExecute not supported

Definition at line 249 of file AnaAlgorithm.cxx.

251  {
252  m_hasFileExecute = true;
253 
254 #ifndef XAOD_STANDALONE
255  // Connect to the IncidentSvc:
256  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
257  ATH_CHECK( incSvc.retrieve() );
258 
259  // Set up the right callback, but ensure we don't double-register
260  // if we are called twice
261  incSvc->removeListener( this, IncidentType::BeginInputFile );
262  incSvc->addListener( this, IncidentType::BeginInputFile, 0, true );
263 #endif
264 
265  return StatusCode::SUCCESS;
266  }

◆ setupTriggerHistos()

void ZdcNtuple::setupTriggerHistos ( )

Definition at line 1962 of file ZdcNtuple.cxx.

1963 {
1964  if (!enableTrigger) return;
1965 
1966  m_outputTree = tree( "zdcTree" );
1967  ANA_MSG_INFO("setupTriggerHistos(): Setting up trigger histos and ntuple = " << m_outputTree);
1968 
1969  std::vector<std::string> triggers;
1970  std::vector<std::string> rerunTriggers;
1971  bool zdc_triggers = true;
1972 
1973  // ZDC triggers
1974  if (zdc_triggers)
1975  {
1976  if (zdcCalib) // lists for calibration data
1977  {
1978  if (lhcf2022)
1979  {
1980  triggers.push_back("HLT_noalg_ZDCPEB_L1LHCF");
1981  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_OR");
1982  }
1983 
1984  if (pbpb2023)
1985  {
1986  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_OR");
1987  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_OR_EMPTY");
1988  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_OR_UNPAIRED_NONISO");
1989  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A_C");
1990  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A_C_EMPTY");
1991  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A_C_UNPAIRED_NONISO");
1992  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A");
1993  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A_EMPTY");
1994  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_A_UNPAIRED_NONISO");
1995  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_C");
1996  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_C_EMPTY");
1997  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_C_UNPAIRED_NONISO");
1998  }
1999  }
2000  else // lists for physics data
2001  {
2002  if (lhcf2022)
2003  {
2004  triggers.push_back("HLT_noalg_L1LHCF");
2005  }
2006  if (lhcf2022afp)
2007  {
2008  triggers.push_back("HLT_noalg_AFPPEB_L1AFP_A");
2009  triggers.push_back("HLT_noalg_AFPPEB_L1AFP_C");
2010  }
2011  if (lhcf2022zdc)
2012  {
2013  triggers.push_back("HLT_noalg_ZDCPEB_L1ZDC_OR");
2014  triggers.push_back("HLT_noalg_ZDCPEB_L1LHCF");
2015  triggers.push_back("HLT_noalg_L1ZDC_OR");
2016  triggers.push_back("HLT_noalg_L1ZDC_XOR_E2");
2017  triggers.push_back("HLT_noalg_L1ZDC_XOR_E1_E3");
2018  triggers.push_back("HLT_noalg_L1ZDC_A_AND_C");
2019  triggers.push_back("HLT_mb_sptrk_L1ZDC_OR");
2020  triggers.push_back("HLT_mb_sptrk_L1ZDC_XOR_E2");
2021  triggers.push_back("HLT_mb_sptrk_L1ZDC_XOR_E1_E3");
2022  triggers.push_back("HLT_mb_sptrk_L1ZDC_A_AND_C");
2023  triggers.push_back("HLT_mb_sp100_trk30_hmt_L1ZDC_XOR_E2");
2024  triggers.push_back("HLT_mb_sp100_trk30_hmt_L1ZDC_XOR_E1_E3");
2025  triggers.push_back("HLT_mb_sp100_trk30_hmt_L1ZDC_A_AND_C");
2026  }
2027  }
2028  }
2029 
2030  //char name[50];
2031  ANA_MSG_INFO("Adding trigger branches!");
2032 
2033  int ic = 0;
2034  for (auto &trig : triggers)
2035  {
2036  const Trig::ChainGroup* cg = m_trigDecisionTool->getChainGroup(trig);
2037  if (cg->getListOfTriggers().size())
2038  {
2039  ANA_MSG_INFO("setupTriggerHistos(): Trigger found = " << trig.c_str() << " bit " << ic);
2040  }
2041  else
2042  {
2043  ANA_MSG_INFO("setupTriggerHistos(): Trigger NOT found = " << trig.c_str() << " bit " << ic);
2044  }
2045  m_chainGroups.push_back(cg);
2046  // force all triggers to show up in tree
2047  TString bname(trig.c_str());
2048  m_outputTree->Branch(bname, &(t_decisions[ic]), bname + "/O");
2049  m_outputTree->Branch("ps_" + bname, &(t_prescales[ic]), "ps_" + bname + "/F");
2050  ic++;
2051  }
2052 
2053  ANA_MSG_INFO( "triggers = " << triggers.size() << " chains = " << m_chainGroups.size() );
2054 
2055  int irc = 0;
2056  ANA_MSG_INFO("Adding rerun trigger branches!");
2057  for (auto &trig : rerunTriggers)
2058  {
2059  const Trig::ChainGroup* cg = m_trigDecisionTool->getChainGroup(trig);
2060  m_rerunChainGroups.push_back(cg);
2061  if (cg->getListOfTriggers().size())
2062  {
2063  ANA_MSG_INFO("setupTriggerHistos(): Rerun trigger found = " << trig.c_str() << " bit " << irc);
2064  }
2065  else
2066  {
2067  ANA_MSG_INFO("setupTriggerHistos(): Rerun trigger NOT found = " << trig.c_str() << " bit " << irc);
2068  }
2069  // force all rerun triggers to show up in tree
2070  TString bname(trig.c_str());
2071  m_outputTree->Branch(bname, &(t_rerunDecisions[irc]), bname + "/O");
2072  irc++;
2073  }
2074 
2075  // trigger matching flags for electrons and muons
2076 
2077  m_setupTrigHist = true;
2078 
2079  ANA_MSG_INFO("setupTriggerHistos(): Finished setting up trigger");
2080 
2081 }

◆ sysInitialize()

StatusCode AthHistogramAlgorithm::sysInitialize ( )
virtualinherited

Initialization method invoked by the framework.

This method is responsible for any bookkeeping of initialization required by the framework itself. It will in turn invoke the initialize() method of the derived algorithm, and of any sub-algorithms which it creates.

Reimplemented from AthAlgorithm.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 75 of file AthHistogramAlgorithm.cxx.

76 {
77  // ---- stolen from GaudiKernel/Algorithm::sysInitialize -------
78  // Bypass the initialization if the algorithm
79  // has already been initialized.
80  if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS;
81 
82  // Set the Algorithm's properties
83  bindPropertiesTo( serviceLocator()->getOptsSvc() );
84 
85  // Bypass the initialization if the algorithm is disabled.
86  // Need to do this after bindPropertiesTo.
87  if ( !isEnabled( ) ) return StatusCode::SUCCESS;
88 
89  // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END ---
90 
91 
92  // Get the THistSvc
93  ATH_CHECK ( histSvc().retrieve() );
94 
95  // Configure the underlying AthHistogramming helper
100 
101  // Print some setup information into the log file
102  ATH_MSG_DEBUG ("Initializing " << name() << "...");
103  ATH_MSG_DEBUG (" using THistService = " << m_histSvc );
104  ATH_MSG_DEBUG (" using RootStreamName = " << m_prefix );
105  ATH_MSG_DEBUG (" using RootDirName = " << m_rootDir );
106  ATH_MSG_DEBUG (" using HistNamePrefix = " << m_histNamePrefix );
107  ATH_MSG_DEBUG (" using HistNamePostfix = " << m_histNamePostfix );
108  ATH_MSG_DEBUG (" using HistTitlePrefix = " << m_histTitlePrefix );
109  ATH_MSG_DEBUG (" using HistTitlePostfix = " << m_histTitlePostfix );
110 
111 
112  // re-direct to base class...
114 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ trackQuality()

int ZdcNtuple::trackQuality ( const xAOD::TrackParticle tp,
const xAOD::Vertex vertex 
)

Definition at line 1495 of file ZdcNtuple.cxx.

1496 {
1497 
1498  if (!track) return -1;
1499 
1500  bool pass_looseprimary = false;
1501  if (m_selTool->accept(*track,vertex))
1502  {
1503  pass_looseprimary = true;
1504  }
1505 
1506  int quality = 0;
1507  if (pass_looseprimary) quality += 1;
1508 
1509  return quality;
1510 
1511 }

◆ tree()

TTree * AthHistogramming::tree ( const std::string &  treeName,
const std::string &  tDir = "",
const std::string &  stream = "" 
)
protectedinherited

Simplify the retrieval of registered TTrees.

Definition at line 378 of file AthHistogramming.cxx.

379 {
380  // Build a 32 bit hash out of the name
381  const hash_t treeHash = this->hash(treeName);
382 
383  // See if this entry exists in the map
384  TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
385  if ( it == m_treeMap.end() ) // It doesn't exist!
386  { // Let's see into the THistSvc if somebody else has registered the TTree...
387 
388  // Need to copy the strings as we will massage them from here on
389  std::string treeNameCopy = treeName;
390  std::string tDirCopy = tDir;
391  std::string streamCopy = stream;
392 
393  // Massage the final string to book things
394  std::string bookingString("");
395  this->buildBookingString( bookingString, treeNameCopy, tDirCopy, streamCopy );
396 
397  TTree* treePointer(NULL);
398  if ( !((histSvc()->getTree(bookingString, treePointer)).isSuccess()) )
399  {
400  m_msg << MSG::WARNING
401  << "Problem retrieving the TTree with name " << treeNameCopy
402  << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
403  << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
404  return NULL;
405  }
406  // If we get to here, we actually found the TTree in the THistSvc.
407  // So let's add it to the local cache map and return its pointer
408  m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treePointer ) );
409  return treePointer;
410  }
411 
412  // Return the pointer to the TTree that we got from the local cache map
413  return it->second;
414 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ writeTrack()

void ZdcNtuple::writeTrack ( const xAOD::TrackParticle track,
const xAOD::Vertex vertex,
int  trk_index 
)

Definition at line 1515 of file ZdcNtuple.cxx.

1516 {
1517  t_trk_pt.push_back(track->pt());
1518  t_trk_eta.push_back(track->eta());
1519  t_trk_phi.push_back(track->phi());
1520  t_trk_e.push_back(track->e());
1521  t_trk_index.push_back(trk_index);
1522  t_trk_theta.push_back(track->theta());
1523  t_trk_charge.push_back(track->charge());
1524  t_trk_d0.push_back(track->d0());
1525  t_trk_z0.push_back(track->z0());
1526  t_trk_vz.push_back(track->vz());
1527 
1528  float vtxz = -999.;
1529  t_trk_vtxz.push_back(vtxz);
1530 
1531  static const SG::ConstAccessor<uint8_t> numberOfInnermostPixelLayerHitsAcc("numberOfInnermostPixelLayerHits");
1532  static const SG::ConstAccessor<uint8_t> expectInnermostPixelLayerHitAcc("expectInnermostPixelLayerHit");
1533  static const SG::ConstAccessor<uint8_t> numberOfNextToInnermostPixelLayerHitsAcc("numberOfNextToInnermostPixelLayerHits");
1534  static const SG::ConstAccessor<uint8_t> expectNextToInnermostPixelLayerHitAcc("expectNextToInnermostPixelLayerHit");
1535  static const SG::ConstAccessor<uint8_t> numberOfSCTHitsAcc("numberOfSCTHits");
1536  static const SG::ConstAccessor<uint8_t> numberOfPixelHitsAcc("numberOfPixelHits");
1537  static const SG::ConstAccessor<uint8_t> numberOfSCTDeadSensorsAcc("numberOfSCTDeadSensors");
1538  static const SG::ConstAccessor<uint8_t> numberOfPixelDeadSensorsAcc("numberOfPixelDeadSensors");
1539  static const SG::ConstAccessor<uint8_t> numberOfSCTHolesAcc("numberOfSCTHoles");
1540  static const SG::ConstAccessor<uint8_t> numberOfPixelHolesAcc("numberOfPixelHoles");
1541  static const SG::ConstAccessor<uint8_t> numberOfTRTHitsAcc("numberOfTRTHits");
1542  static const SG::ConstAccessor<uint8_t> numberOfTRTOutliersAcc("numberOfTRTOutliers");
1543 
1544  t_trk_quality.push_back(trackQuality(track, vertex));
1545  t_trk_inPixHits.push_back(numberOfInnermostPixelLayerHitsAcc(*track));
1546  t_trk_exPixHits.push_back(expectInnermostPixelLayerHitAcc(*track));
1547  t_trk_ninPixHits.push_back(numberOfNextToInnermostPixelLayerHitsAcc(*track));
1548  t_trk_nexPixHits.push_back(expectNextToInnermostPixelLayerHitAcc(*track));
1549  t_trk_nSctHits.push_back(numberOfSCTHitsAcc(*track));
1550  t_trk_nPixHits.push_back(numberOfPixelHitsAcc(*track));
1551  t_trk_nSctDead.push_back(numberOfSCTDeadSensorsAcc(*track));
1552  t_trk_nPixDead.push_back(numberOfPixelDeadSensorsAcc(*track));
1553  t_trk_nSctHoles.push_back(numberOfSCTHolesAcc(*track));
1554  t_trk_nPixHoles.push_back(numberOfPixelHolesAcc(*track));
1555  t_trk_nTrtHits.push_back(numberOfTRTHitsAcc(*track));
1556  t_trk_nTrtOutliers.push_back(numberOfTRTOutliersAcc(*track));
1557 
1558  float pixeldEdx = 0;
1560  t_trk_pixeldEdx.push_back(pixeldEdx);
1561 }

Member Data Documentation

◆ auxSuffix

std::string ZdcNtuple::auxSuffix

Definition at line 81 of file ZdcNtuple.h.

◆ doZdcCalib

bool ZdcNtuple::doZdcCalib

Definition at line 92 of file ZdcNtuple.h.

◆ enableCentroid

bool ZdcNtuple::enableCentroid

Definition at line 90 of file ZdcNtuple.h.

◆ enableClusters

bool ZdcNtuple::enableClusters

Definition at line 63 of file ZdcNtuple.h.

◆ enableElectrons

bool ZdcNtuple::enableElectrons

Definition at line 66 of file ZdcNtuple.h.

◆ enableJets

bool ZdcNtuple::enableJets

Definition at line 70 of file ZdcNtuple.h.

◆ enableMuons

bool ZdcNtuple::enableMuons

Definition at line 65 of file ZdcNtuple.h.

◆ enableOutputSamples

bool ZdcNtuple::enableOutputSamples

Definition at line 60 of file ZdcNtuple.h.

◆ enableOutputTree

bool ZdcNtuple::enableOutputTree

Definition at line 59 of file ZdcNtuple.h.

◆ enablePhotons

bool ZdcNtuple::enablePhotons

Definition at line 67 of file ZdcNtuple.h.

◆ enableRPD

bool ZdcNtuple::enableRPD

Definition at line 88 of file ZdcNtuple.h.

◆ enableRPDAmp

bool ZdcNtuple::enableRPDAmp

Definition at line 89 of file ZdcNtuple.h.

◆ enableTracks

bool ZdcNtuple::enableTracks

Definition at line 64 of file ZdcNtuple.h.

◆ enableTrigger

bool ZdcNtuple::enableTrigger

Definition at line 61 of file ZdcNtuple.h.

◆ enableTriggerJets

bool ZdcNtuple::enableTriggerJets

Definition at line 71 of file ZdcNtuple.h.

◆ enableTruth

bool ZdcNtuple::enableTruth

Definition at line 69 of file ZdcNtuple.h.

◆ enableTT

bool ZdcNtuple::enableTT

Definition at line 68 of file ZdcNtuple.h.

◆ enableZDC

bool ZdcNtuple::enableZDC

Definition at line 87 of file ZdcNtuple.h.

◆ flipDelay

bool ZdcNtuple::flipDelay

Definition at line 79 of file ZdcNtuple.h.

◆ grlFilename

std::string ZdcNtuple::grlFilename

Definition at line 58 of file ZdcNtuple.h.

◆ h_TCSigCut

TH1* ZdcNtuple::h_TCSigCut

Definition at line 333 of file ZdcNtuple.h.

◆ h_zdcTriggers

TH1* ZdcNtuple::h_zdcTriggers

Definition at line 145 of file ZdcNtuple.h.

◆ h_zdcTriggersTBP

TH1* ZdcNtuple::h_zdcTriggersTBP

Definition at line 146 of file ZdcNtuple.h.

◆ lhcf2022

bool ZdcNtuple::lhcf2022

Definition at line 83 of file ZdcNtuple.h.

◆ lhcf2022afp

bool ZdcNtuple::lhcf2022afp

Definition at line 85 of file ZdcNtuple.h.

◆ lhcf2022zdc

bool ZdcNtuple::lhcf2022zdc

Definition at line 84 of file ZdcNtuple.h.

◆ m_afpProtons

const xAOD::AFPProtonContainer* ZdcNtuple::m_afpProtons

Definition at line 128 of file ZdcNtuple.h.

◆ m_caloClusters

const xAOD::CaloClusterContainer* ZdcNtuple::m_caloClusters

Definition at line 123 of file ZdcNtuple.h.

◆ m_caloSums

const xAOD::HIEventShapeContainer* ZdcNtuple::m_caloSums

Definition at line 117 of file ZdcNtuple.h.

◆ m_chainGroups

std::vector<const Trig::ChainGroup*> ZdcNtuple::m_chainGroups

Definition at line 137 of file ZdcNtuple.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_effMap

EffMap_t AthHistogramming::m_effMap
privateinherited

The map of histogram names to their pointers.

Definition at line 208 of file AthHistogramming.h.

◆ m_eventCounter

int ZdcNtuple::m_eventCounter

Definition at line 133 of file ZdcNtuple.h.

◆ m_eventInfo

const xAOD::EventInfo* ZdcNtuple::m_eventInfo

Definition at line 113 of file ZdcNtuple.h.

◆ m_eventShapes

const xAOD::HIEventShapeContainer* ZdcNtuple::m_eventShapes

Definition at line 118 of file ZdcNtuple.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_gapPtMin

float ZdcNtuple::m_gapPtMin

Definition at line 322 of file ZdcNtuple.h.

◆ m_gapThresholds

float ZdcNtuple::m_gapThresholds[98]
Initial value:
=
{4.7426,5.11018,5.07498,5.0969,5.10695,5.04098,5.07106,4.98087,5.11647,5.08988,5.16267,
5.17202,5.23803,5.25314,5.29551,5.35092,5.40863,5.44375,5.38075,5.25022,5.37933,5.25459,5.37719,5.25169,5.73985,
5.79174,5.79266,5.79588,5.7963,5.81949,5.82273,5.85658,5.85442,5.84779,5.77679,5.83323,5.84524,5.84439,5.84488,
5.84744,5.84683,5.84524,5.84594,5.84656,5.84639,5.84461,5.84515,5.84206,5.8396,5.84497,5.84801,5.84608,5.84608,
5.84783,5.84726,5.84844,5.8477,5.84796,5.84757,5.84822,5.84814,5.84617,5.83451,5.77658,5.84309,5.85496,5.85761,
5.82555,5.82206,5.78982,5.78482,5.7778,5.78327,5.74898,5.25459,5.37503,5.25459,5.37283,5.25169,5.37862,5.44473,
5.41041,5.34498,5.29551,5.25602,5.2283,5.17428,5.14504,5.09342,5.12256,4.98721,5.07106,5.02642,5.10031,5.11018,
5.05447,5.10031,4.7426}

Definition at line 324 of file ZdcNtuple.h.

◆ m_graphMap

GraphMap_t AthHistogramming::m_graphMap
privateinherited

The map of TGraph names to their pointers.

Definition at line 222 of file AthHistogramming.h.

◆ m_grl

Definition at line 102 of file ZdcNtuple.h.

◆ m_hasBeginInputFile

bool EL::AnaAlgorithm::m_hasBeginInputFile {false}
privateinherited

the value of hasBeginInputFile

Definition at line 590 of file AnaAlgorithm.h.

◆ m_hasEndInputFile

bool EL::AnaAlgorithm::m_hasEndInputFile {false}
privateinherited

the value of hasEndInputFile

Definition at line 594 of file AnaAlgorithm.h.

◆ m_hasFileExecute

bool EL::AnaAlgorithm::m_hasFileExecute {false}
privateinherited

the value of hasFileExecute

Definition at line 586 of file AnaAlgorithm.h.

◆ m_histMap

HistMap_t AthHistogramming::m_histMap
privateinherited

The map of histogram names to their pointers.

Definition at line 201 of file AthHistogramming.h.

◆ m_histNamePostfix

std::string AthHistogramAlgorithm::m_histNamePostfix
privateinherited

The postfix for the histogram THx name.

Definition at line 97 of file AthHistogramAlgorithm.h.

◆ m_histNamePrefix

std::string AthHistogramAlgorithm::m_histNamePrefix
privateinherited

The prefix for the histogram THx name.

Definition at line 94 of file AthHistogramAlgorithm.h.

◆ m_histSvc

ServiceHandle<ITHistSvc> AthHistogramAlgorithm::m_histSvc
privateinherited

Default constructor: AthHistogramAlgorithm();.

a handle on the Hist/TTree registration service

Definition at line 83 of file AthHistogramAlgorithm.h.

◆ m_histTitlePostfix

std::string AthHistogramAlgorithm::m_histTitlePostfix
privateinherited

The postfix for the histogram THx title.

Definition at line 103 of file AthHistogramAlgorithm.h.

◆ m_histTitlePrefix

std::string AthHistogramAlgorithm::m_histTitlePrefix
privateinherited

The prefix for the histogram THx title.

Definition at line 100 of file AthHistogramAlgorithm.h.

◆ m_injMapRunToken

ZdcInjPulserAmpMap::Token ZdcNtuple::m_injMapRunToken {}
private

Definition at line 53 of file ZdcNtuple.h.

◆ m_inputMetaStore

MetaStore_t EL::AnaAlgorithm::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 551 of file AnaAlgorithm.h.

◆ m_isMC

bool ZdcNtuple::m_isMC

Definition at line 134 of file ZdcNtuple.h.

◆ m_lastRunNumber

unsigned int ZdcNtuple::m_lastRunNumber {0}
private

Definition at line 52 of file ZdcNtuple.h.

◆ m_lvl1EnergySumRoI

const xAOD::EnergySumRoI* ZdcNtuple::m_lvl1EnergySumRoI

Definition at line 125 of file ZdcNtuple.h.

◆ m_mbtsInfo

const xAOD::ForwardEventInfoContainer* ZdcNtuple::m_mbtsInfo

Definition at line 119 of file ZdcNtuple.h.

◆ m_mbtsModules

const xAOD::MBTSModuleContainer* ZdcNtuple::m_mbtsModules

Definition at line 120 of file ZdcNtuple.h.

◆ m_mcEventCollectionName

SG::ReadHandleKey<McEventCollection> ZdcNtuple::m_mcEventCollectionName {this, "MCEventCollectionName", "TruthEvent", ""}

Definition at line 110 of file ZdcNtuple.h.

◆ m_msg

MsgStream AthHistogramming::m_msg
privateinherited

Cached Message Stream.

Definition at line 248 of file AthHistogramming.h.

◆ m_name

std::string AthHistogramming::m_name
privateinherited

Instance name.

Definition at line 245 of file AthHistogramming.h.

◆ m_nTriggers

int ZdcNtuple::m_nTriggers

Definition at line 132 of file ZdcNtuple.h.

◆ m_outputMetaStore

MetaStore_t EL::AnaAlgorithm::m_outputMetaStore
privateinherited

Object accessing the output metadata store.

Definition at line 555 of file AnaAlgorithm.h.

◆ m_outputTree

TTree* ZdcNtuple::m_outputTree

Definition at line 148 of file ZdcNtuple.h.

◆ m_prefix

std::string AthHistogramAlgorithm::m_prefix
privateinherited

Name of the ROOT output stream (file)

Definition at line 88 of file AthHistogramAlgorithm.h.

◆ m_primaryVertices

const xAOD::VertexContainer* ZdcNtuple::m_primaryVertices

Definition at line 122 of file ZdcNtuple.h.

◆ m_rerunChainGroups

std::vector<const Trig::ChainGroup*> ZdcNtuple::m_rerunChainGroups

Definition at line 138 of file ZdcNtuple.h.

◆ m_rootDir

std::string AthHistogramAlgorithm::m_rootDir
privateinherited

Name of the ROOT directory.

Definition at line 91 of file AthHistogramAlgorithm.h.

◆ m_scaledownCounter

int ZdcNtuple::m_scaledownCounter

Definition at line 136 of file ZdcNtuple.h.

◆ m_selTool

ToolHandle< InDet::IInDetTrackSelectionTool > ZdcNtuple::m_selTool

Definition at line 104 of file ZdcNtuple.h.

◆ m_setupTrigHist

bool ZdcNtuple::m_setupTrigHist

Definition at line 135 of file ZdcNtuple.h.

◆ m_streamName

std::string AthHistogramming::m_streamName
privateinherited

Name of the ROOT output stream (file)

Definition at line 226 of file AthHistogramming.h.

◆ m_trackParticles

const xAOD::TrackParticleContainer* ZdcNtuple::m_trackParticles

Definition at line 124 of file ZdcNtuple.h.

◆ m_treeMap

TreeMap_t AthHistogramming::m_treeMap
privateinherited

The map of TTree names to their pointers.

Definition at line 215 of file AthHistogramming.h.

◆ m_trigDecision

const xAOD::TrigDecision* ZdcNtuple::m_trigDecision

Definition at line 116 of file ZdcNtuple.h.

◆ m_trigDecisionTool

PublicToolHandle<Trig::TrigDecisionTool> ZdcNtuple::m_trigDecisionTool { this, "TrigDecisionTool", "", "Handle to the TrigDecisionTool" }

Definition at line 100 of file ZdcNtuple.h.

◆ m_trigT2MbtsBits

const xAOD::TrigT2MbtsBitsContainer* ZdcNtuple::m_trigT2MbtsBits

Definition at line 121 of file ZdcNtuple.h.

◆ m_truthParticleContainer

const xAOD::TruthParticleContainer* ZdcNtuple::m_truthParticleContainer

Definition at line 126 of file ZdcNtuple.h.

◆ m_TTcontainer

const xAOD::TriggerTowerContainer* ZdcNtuple::m_TTcontainer

Definition at line 127 of file ZdcNtuple.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_zdcAnalysisTool

asg::AnaToolHandle<ZDC::IZdcAnalysisTool> ZdcNtuple::m_zdcAnalysisTool

Definition at line 103 of file ZdcNtuple.h.

◆ m_zdcInjPulserAmpMap

std::shared_ptr<ZdcInjPulserAmpMap> ZdcNtuple::m_zdcInjPulserAmpMap

Definition at line 130 of file ZdcNtuple.h.

◆ m_zdcModuleContainerName

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcNtuple::m_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }

Definition at line 106 of file ZdcNtuple.h.

◆ m_zdcSumContainerName

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcNtuple::m_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }

Definition at line 108 of file ZdcNtuple.h.

◆ nProtons

int ZdcNtuple::nProtons

Definition at line 400 of file ZdcNtuple.h.

◆ nsamplesZdc

size_t ZdcNtuple::nsamplesZdc

Definition at line 82 of file ZdcNtuple.h.

◆ outputName

std::string ZdcNtuple::outputName

Definition at line 95 of file ZdcNtuple.h.

◆ outputTreeScaledown

int ZdcNtuple::outputTreeScaledown

Definition at line 96 of file ZdcNtuple.h.

◆ p_beam

TLorentzVector ZdcNtuple::p_beam

Definition at line 416 of file ZdcNtuple.h.

◆ p_scat

TLorentzVector ZdcNtuple::p_scat

Definition at line 417 of file ZdcNtuple.h.

◆ pbpb2023

bool ZdcNtuple::pbpb2023

Definition at line 86 of file ZdcNtuple.h.

◆ proton_e

std::vector<double> ZdcNtuple::proton_e

Definition at line 404 of file ZdcNtuple.h.

◆ proton_eLoss

std::vector<double> ZdcNtuple::proton_eLoss

Definition at line 406 of file ZdcNtuple.h.

◆ proton_eta

std::vector<double> ZdcNtuple::proton_eta

Definition at line 402 of file ZdcNtuple.h.

◆ proton_phi

std::vector<double> ZdcNtuple::proton_phi

Definition at line 403 of file ZdcNtuple.h.

◆ proton_pt

std::vector<double> ZdcNtuple::proton_pt

Definition at line 401 of file ZdcNtuple.h.

◆ proton_side

std::vector<int> ZdcNtuple::proton_side

Definition at line 405 of file ZdcNtuple.h.

◆ proton_t

std::vector<double> ZdcNtuple::proton_t

Definition at line 407 of file ZdcNtuple.h.

◆ proton_track_nClusters

std::vector<std::vector<int> > ZdcNtuple::proton_track_nClusters

Definition at line 414 of file ZdcNtuple.h.

◆ proton_track_stationID

std::vector<std::vector<int> > ZdcNtuple::proton_track_stationID

Definition at line 408 of file ZdcNtuple.h.

◆ proton_track_xLocal

std::vector<std::vector<float> > ZdcNtuple::proton_track_xLocal

Definition at line 409 of file ZdcNtuple.h.

◆ proton_track_xSlope

std::vector<std::vector<float> > ZdcNtuple::proton_track_xSlope

Definition at line 412 of file ZdcNtuple.h.

◆ proton_track_yLocal

std::vector<std::vector<float> > ZdcNtuple::proton_track_yLocal

Definition at line 410 of file ZdcNtuple.h.

◆ proton_track_ySlope

std::vector<std::vector<float> > ZdcNtuple::proton_track_ySlope

Definition at line 413 of file ZdcNtuple.h.

◆ proton_track_zLocal

std::vector<std::vector<float> > ZdcNtuple::proton_track_zLocal

Definition at line 411 of file ZdcNtuple.h.

◆ reprocZdc

bool ZdcNtuple::reprocZdc

Definition at line 80 of file ZdcNtuple.h.

◆ slimmed

bool ZdcNtuple::slimmed

Definition at line 56 of file ZdcNtuple.h.

◆ t_actIntPerCrossing

float ZdcNtuple::t_actIntPerCrossing

Definition at line 160 of file ZdcNtuple.h.

◆ t_avgIntPerCrossing

float ZdcNtuple::t_avgIntPerCrossing

Definition at line 159 of file ZdcNtuple.h.

◆ t_bcid

uint32_t ZdcNtuple::t_bcid

Definition at line 152 of file ZdcNtuple.h.

◆ t_bunchGroup

uint8_t ZdcNtuple::t_bunchGroup

Definition at line 154 of file ZdcNtuple.h.

◆ t_cc_e

std::vector<float> ZdcNtuple::t_cc_e

Definition at line 384 of file ZdcNtuple.h.

◆ t_cc_eta

std::vector<float> ZdcNtuple::t_cc_eta

Definition at line 382 of file ZdcNtuple.h.

◆ t_cc_layer

std::vector<int> ZdcNtuple::t_cc_layer

Definition at line 386 of file ZdcNtuple.h.

◆ t_cc_phi

std::vector<float> ZdcNtuple::t_cc_phi

Definition at line 383 of file ZdcNtuple.h.

◆ t_cc_pt

std::vector<float> ZdcNtuple::t_cc_pt

Definition at line 381 of file ZdcNtuple.h.

◆ t_cc_raw_e

std::vector<float> ZdcNtuple::t_cc_raw_e

Definition at line 390 of file ZdcNtuple.h.

◆ t_cc_raw_eta

std::vector<float> ZdcNtuple::t_cc_raw_eta

Definition at line 388 of file ZdcNtuple.h.

◆ t_cc_raw_m

std::vector<float> ZdcNtuple::t_cc_raw_m

Definition at line 387 of file ZdcNtuple.h.

◆ t_cc_raw_phi

std::vector<float> ZdcNtuple::t_cc_raw_phi

Definition at line 389 of file ZdcNtuple.h.

◆ t_cc_raw_samp

std::vector<std::vector<float> > ZdcNtuple::t_cc_raw_samp

Definition at line 391 of file ZdcNtuple.h.

◆ t_cc_sig

std::vector<float> ZdcNtuple::t_cc_sig

Definition at line 385 of file ZdcNtuple.h.

◆ t_centroidDecorationsAvailable

bool ZdcNtuple::t_centroidDecorationsAvailable

Definition at line 262 of file ZdcNtuple.h.

◆ t_centroidEventValid

char ZdcNtuple::t_centroidEventValid

Definition at line 263 of file ZdcNtuple.h.

◆ t_centroidStatus

unsigned int ZdcNtuple::t_centroidStatus[2]

Definition at line 264 of file ZdcNtuple.h.

◆ t_clusEt

float ZdcNtuple::t_clusEt

Definition at line 393 of file ZdcNtuple.h.

◆ t_clusetaMax

float ZdcNtuple::t_clusetaMax

Definition at line 395 of file ZdcNtuple.h.

◆ t_clusEtMax

float ZdcNtuple::t_clusEtMax

Definition at line 394 of file ZdcNtuple.h.

◆ t_clusphiMax

float ZdcNtuple::t_clusphiMax

Definition at line 396 of file ZdcNtuple.h.

◆ t_cosDeltaReactionPlaneAngle

float ZdcNtuple::t_cosDeltaReactionPlaneAngle

Definition at line 276 of file ZdcNtuple.h.

◆ t_decisions

bool ZdcNtuple::t_decisions[200]

Definition at line 172 of file ZdcNtuple.h.

◆ t_edgeGapA

float ZdcNtuple::t_edgeGapA

Definition at line 320 of file ZdcNtuple.h.

◆ t_edgeGapC

float ZdcNtuple::t_edgeGapC

Definition at line 321 of file ZdcNtuple.h.

◆ t_eventNumber

uint32_t ZdcNtuple::t_eventNumber

Definition at line 150 of file ZdcNtuple.h.

◆ t_extendedLevel1ID

uint32_t ZdcNtuple::t_extendedLevel1ID

Definition at line 156 of file ZdcNtuple.h.

◆ t_fcalEt

float ZdcNtuple::t_fcalEt

Definition at line 306 of file ZdcNtuple.h.

◆ t_fcalEtA

float ZdcNtuple::t_fcalEtA

Definition at line 307 of file ZdcNtuple.h.

◆ t_fcalEtA_TT

float ZdcNtuple::t_fcalEtA_TT

Definition at line 309 of file ZdcNtuple.h.

◆ t_fcalEtA_TTsum

float ZdcNtuple::t_fcalEtA_TTsum

Definition at line 311 of file ZdcNtuple.h.

◆ t_fcalEtC

float ZdcNtuple::t_fcalEtC

Definition at line 308 of file ZdcNtuple.h.

◆ t_fcalEtC_TT

float ZdcNtuple::t_fcalEtC_TT

Definition at line 310 of file ZdcNtuple.h.

◆ t_fcalEtC_TTsum

float ZdcNtuple::t_fcalEtC_TTsum

Definition at line 312 of file ZdcNtuple.h.

◆ t_L1ET

float ZdcNtuple::t_L1ET

Definition at line 140 of file ZdcNtuple.h.

◆ t_L1ET24

float ZdcNtuple::t_L1ET24

Definition at line 141 of file ZdcNtuple.h.

◆ t_lumiBlock

uint32_t ZdcNtuple::t_lumiBlock

Definition at line 151 of file ZdcNtuple.h.

◆ t_mbts_countA

uint16_t ZdcNtuple::t_mbts_countA

Definition at line 336 of file ZdcNtuple.h.

◆ t_mbts_countC

uint16_t ZdcNtuple::t_mbts_countC

Definition at line 337 of file ZdcNtuple.h.

◆ t_mbts_in_e

float ZdcNtuple::t_mbts_in_e[2][8]

Definition at line 175 of file ZdcNtuple.h.

◆ t_mbts_in_t

float ZdcNtuple::t_mbts_in_t[2][8]

Definition at line 177 of file ZdcNtuple.h.

◆ t_mbts_out_e

float ZdcNtuple::t_mbts_out_e[2][4]

Definition at line 176 of file ZdcNtuple.h.

◆ t_mbts_out_t

float ZdcNtuple::t_mbts_out_t[2][4]

Definition at line 178 of file ZdcNtuple.h.

◆ t_mbts_timeA

float ZdcNtuple::t_mbts_timeA

Definition at line 338 of file ZdcNtuple.h.

◆ t_mbts_timeC

float ZdcNtuple::t_mbts_timeC

Definition at line 339 of file ZdcNtuple.h.

◆ t_mbts_timeDiff

float ZdcNtuple::t_mbts_timeDiff

Definition at line 340 of file ZdcNtuple.h.

◆ t_nclus

uint32_t ZdcNtuple::t_nclus

Definition at line 380 of file ZdcNtuple.h.

◆ t_nstrong

int ZdcNtuple::t_nstrong

Definition at line 289 of file ZdcNtuple.h.

◆ t_ntrk

uint32_t ZdcNtuple::t_ntrk

Definition at line 352 of file ZdcNtuple.h.

◆ t_nvtx

int ZdcNtuple::t_nvtx

Definition at line 294 of file ZdcNtuple.h.

◆ t_nvx

int ZdcNtuple::t_nvx

Definition at line 278 of file ZdcNtuple.h.

◆ t_passBits

uint32_t ZdcNtuple::t_passBits

Definition at line 155 of file ZdcNtuple.h.

◆ t_prescales

float ZdcNtuple::t_prescales[200]

Definition at line 171 of file ZdcNtuple.h.

◆ t_puvxntrk

int ZdcNtuple::t_puvxntrk

Definition at line 287 of file ZdcNtuple.h.

◆ t_puvxsumpt

float ZdcNtuple::t_puvxsumpt

Definition at line 288 of file ZdcNtuple.h.

◆ t_puvxz

float ZdcNtuple::t_puvxz

Definition at line 286 of file ZdcNtuple.h.

◆ t_pvindex

int ZdcNtuple::t_pvindex

Definition at line 283 of file ZdcNtuple.h.

◆ t_raw15

uint16_t ZdcNtuple::t_raw15[2][4][2][2][15]

Definition at line 346 of file ZdcNtuple.h.

◆ t_raw24

uint16_t ZdcNtuple::t_raw24[2][4][2][2][24]

Definition at line 347 of file ZdcNtuple.h.

◆ t_raw7

uint16_t ZdcNtuple::t_raw7[2][4][2][2][7]

Definition at line 345 of file ZdcNtuple.h.

◆ t_reactionPlaneAngle

float ZdcNtuple::t_reactionPlaneAngle[2]

Definition at line 275 of file ZdcNtuple.h.

◆ t_rerunDecisions

bool ZdcNtuple::t_rerunDecisions[200]

Definition at line 173 of file ZdcNtuple.h.

◆ t_RpdChannelAmplitude

float ZdcNtuple::t_RpdChannelAmplitude[2][16]

Definition at line 252 of file ZdcNtuple.h.

◆ t_RpdChannelAmplitudeCalib

float ZdcNtuple::t_RpdChannelAmplitudeCalib[2][16]

Definition at line 253 of file ZdcNtuple.h.

◆ t_RpdChannelBaseline

float ZdcNtuple::t_RpdChannelBaseline[2][16]

Definition at line 245 of file ZdcNtuple.h.

◆ t_RpdChannelMaxADC

float ZdcNtuple::t_RpdChannelMaxADC[2][16]

Definition at line 254 of file ZdcNtuple.h.

◆ t_RpdChannelMaxADCCalib

float ZdcNtuple::t_RpdChannelMaxADCCalib[2][16]

Definition at line 255 of file ZdcNtuple.h.

◆ t_RpdChannelMaxSample

unsigned int ZdcNtuple::t_RpdChannelMaxSample[2][16]

Definition at line 256 of file ZdcNtuple.h.

◆ t_RpdChannelPileupExpFitMSE

float ZdcNtuple::t_RpdChannelPileupExpFitMSE[2][16]

Definition at line 250 of file ZdcNtuple.h.

◆ t_RpdChannelPileupExpFitParamErrs

float ZdcNtuple::t_RpdChannelPileupExpFitParamErrs[2][16][2]

Definition at line 248 of file ZdcNtuple.h.

◆ t_RpdChannelPileupExpFitParams

float ZdcNtuple::t_RpdChannelPileupExpFitParams[2][16][2]

Definition at line 246 of file ZdcNtuple.h.

◆ t_RpdChannelPileupFrac

float ZdcNtuple::t_RpdChannelPileupFrac[2][16]

Definition at line 258 of file ZdcNtuple.h.

◆ t_RpdChannelPileupStretchedExpFitMSE

float ZdcNtuple::t_RpdChannelPileupStretchedExpFitMSE[2][16]

Definition at line 251 of file ZdcNtuple.h.

◆ t_RpdChannelPileupStretchedExpFitParamErrs

float ZdcNtuple::t_RpdChannelPileupStretchedExpFitParamErrs[2][16][3]

Definition at line 249 of file ZdcNtuple.h.

◆ t_RpdChannelPileupStretchedExpFitParams

float ZdcNtuple::t_RpdChannelPileupStretchedExpFitParams[2][16][3]

Definition at line 247 of file ZdcNtuple.h.

◆ t_RpdChannelStatus

unsigned int ZdcNtuple::t_RpdChannelStatus[2][16]

Definition at line 257 of file ZdcNtuple.h.

◆ t_RPDChannelSubtrAmp

float ZdcNtuple::t_RPDChannelSubtrAmp[2][16]

Definition at line 265 of file ZdcNtuple.h.

◆ t_rpdDecodingError

uint8_t ZdcNtuple::t_rpdDecodingError

Definition at line 165 of file ZdcNtuple.h.

◆ t_RpdModuleTruthNphotons

unsigned int ZdcNtuple::t_RpdModuleTruthNphotons[2][16]

Definition at line 260 of file ZdcNtuple.h.

◆ t_rpdRaw

uint16_t ZdcNtuple::t_rpdRaw[2][16][24]

Definition at line 349 of file ZdcNtuple.h.

◆ t_RpdSideStatus

unsigned int ZdcNtuple::t_RpdSideStatus[2]

Definition at line 259 of file ZdcNtuple.h.

◆ t_RPDSubtrAmpSum

float ZdcNtuple::t_RPDSubtrAmpSum[2]

Definition at line 266 of file ZdcNtuple.h.

◆ t_runNumber

uint32_t ZdcNtuple::t_runNumber

Definition at line 149 of file ZdcNtuple.h.

◆ t_T2mbts_countAin

uint16_t ZdcNtuple::t_T2mbts_countAin

Definition at line 342 of file ZdcNtuple.h.

◆ t_T2mbts_countCin

uint16_t ZdcNtuple::t_T2mbts_countCin

Definition at line 343 of file ZdcNtuple.h.

◆ t_T2mbts_in_e

float ZdcNtuple::t_T2mbts_in_e[2][8]

Definition at line 180 of file ZdcNtuple.h.

◆ t_T2mbts_in_t

float ZdcNtuple::t_T2mbts_in_t[2][8]

Definition at line 182 of file ZdcNtuple.h.

◆ t_T2mbts_out_e

float ZdcNtuple::t_T2mbts_out_e[2][4]

Definition at line 181 of file ZdcNtuple.h.

◆ t_T2mbts_out_t

float ZdcNtuple::t_T2mbts_out_t[2][4]

Definition at line 183 of file ZdcNtuple.h.

◆ t_tav

uint32_t ZdcNtuple::t_tav[16]

Definition at line 185 of file ZdcNtuple.h.

◆ t_tbp

uint32_t ZdcNtuple::t_tbp[16]

Definition at line 186 of file ZdcNtuple.h.

◆ t_timeStamp

uint32_t ZdcNtuple::t_timeStamp

Definition at line 157 of file ZdcNtuple.h.

◆ t_timeStampNSOffset

uint32_t ZdcNtuple::t_timeStampNSOffset

Definition at line 158 of file ZdcNtuple.h.

◆ t_totalEt

float ZdcNtuple::t_totalEt

Definition at line 314 of file ZdcNtuple.h.

◆ t_totalEt24

float ZdcNtuple::t_totalEt24

Definition at line 316 of file ZdcNtuple.h.

◆ t_totalEt24_TTsum

float ZdcNtuple::t_totalEt24_TTsum

Definition at line 317 of file ZdcNtuple.h.

◆ t_totalEt_TTsum

float ZdcNtuple::t_totalEt_TTsum

Definition at line 315 of file ZdcNtuple.h.

◆ t_trigger

uint64_t ZdcNtuple::t_trigger

Definition at line 167 of file ZdcNtuple.h.

◆ t_trigger_TBP

uint32_t ZdcNtuple::t_trigger_TBP

Definition at line 168 of file ZdcNtuple.h.

◆ t_trk_charge

std::vector<int8_t> ZdcNtuple::t_trk_charge

Definition at line 362 of file ZdcNtuple.h.

◆ t_trk_d0

std::vector<float> ZdcNtuple::t_trk_d0

Definition at line 358 of file ZdcNtuple.h.

◆ t_trk_e

std::vector<float> ZdcNtuple::t_trk_e

Definition at line 356 of file ZdcNtuple.h.

◆ t_trk_eta

std::vector<float> ZdcNtuple::t_trk_eta

Definition at line 354 of file ZdcNtuple.h.

◆ t_trk_exPixHits

std::vector<uint8_t> ZdcNtuple::t_trk_exPixHits

Definition at line 374 of file ZdcNtuple.h.

◆ t_trk_index

std::vector<int> ZdcNtuple::t_trk_index

Definition at line 364 of file ZdcNtuple.h.

◆ t_trk_inPixHits

std::vector<uint8_t> ZdcNtuple::t_trk_inPixHits

Definition at line 373 of file ZdcNtuple.h.

◆ t_trk_nexPixHits

std::vector<uint8_t> ZdcNtuple::t_trk_nexPixHits

Definition at line 376 of file ZdcNtuple.h.

◆ t_trk_ninPixHits

std::vector<uint8_t> ZdcNtuple::t_trk_ninPixHits

Definition at line 375 of file ZdcNtuple.h.

◆ t_trk_nPixDead

std::vector<uint8_t> ZdcNtuple::t_trk_nPixDead

Definition at line 367 of file ZdcNtuple.h.

◆ t_trk_nPixHits

std::vector<uint8_t> ZdcNtuple::t_trk_nPixHits

Definition at line 365 of file ZdcNtuple.h.

◆ t_trk_nPixHoles

std::vector<uint8_t> ZdcNtuple::t_trk_nPixHoles

Definition at line 369 of file ZdcNtuple.h.

◆ t_trk_nSctDead

std::vector<uint8_t> ZdcNtuple::t_trk_nSctDead

Definition at line 368 of file ZdcNtuple.h.

◆ t_trk_nSctHits

std::vector<uint8_t> ZdcNtuple::t_trk_nSctHits

Definition at line 366 of file ZdcNtuple.h.

◆ t_trk_nSctHoles

std::vector<uint8_t> ZdcNtuple::t_trk_nSctHoles

Definition at line 370 of file ZdcNtuple.h.

◆ t_trk_nTrtHits

std::vector<uint8_t> ZdcNtuple::t_trk_nTrtHits

Definition at line 371 of file ZdcNtuple.h.

◆ t_trk_nTrtOutliers

std::vector<uint8_t> ZdcNtuple::t_trk_nTrtOutliers

Definition at line 372 of file ZdcNtuple.h.

◆ t_trk_phi

std::vector<float> ZdcNtuple::t_trk_phi

Definition at line 355 of file ZdcNtuple.h.

◆ t_trk_pixeldEdx

std::vector<float> ZdcNtuple::t_trk_pixeldEdx

Definition at line 377 of file ZdcNtuple.h.

◆ t_trk_pt

std::vector<float> ZdcNtuple::t_trk_pt

Definition at line 353 of file ZdcNtuple.h.

◆ t_trk_quality

std::vector<int16_t> ZdcNtuple::t_trk_quality

Definition at line 363 of file ZdcNtuple.h.

◆ t_trk_theta

std::vector<float> ZdcNtuple::t_trk_theta

Definition at line 357 of file ZdcNtuple.h.

◆ t_trk_vtxz

std::vector<float> ZdcNtuple::t_trk_vtxz

Definition at line 361 of file ZdcNtuple.h.

◆ t_trk_vz

std::vector<float> ZdcNtuple::t_trk_vz

Definition at line 360 of file ZdcNtuple.h.

◆ t_trk_z0

std::vector<float> ZdcNtuple::t_trk_z0

Definition at line 359 of file ZdcNtuple.h.

◆ t_vInj

float ZdcNtuple::t_vInj

Definition at line 153 of file ZdcNtuple.h.

◆ t_vtx_ntrk

std::vector<int16_t> ZdcNtuple::t_vtx_ntrk

Definition at line 301 of file ZdcNtuple.h.

◆ t_vtx_ntrk_all

std::vector<int16_t> ZdcNtuple::t_vtx_ntrk_all

Definition at line 299 of file ZdcNtuple.h.

◆ t_vtx_sumpt2

std::vector<float> ZdcNtuple::t_vtx_sumpt2

Definition at line 302 of file ZdcNtuple.h.

◆ t_vtx_sumpt2_all

std::vector<float> ZdcNtuple::t_vtx_sumpt2_all

Definition at line 300 of file ZdcNtuple.h.

◆ t_vtx_trk_index

std::vector< std::vector<int16_t> > ZdcNtuple::t_vtx_trk_index

Definition at line 303 of file ZdcNtuple.h.

◆ t_vtx_type

std::vector<int8_t> ZdcNtuple::t_vtx_type

Definition at line 295 of file ZdcNtuple.h.

◆ t_vtx_x

std::vector<float> ZdcNtuple::t_vtx_x

Definition at line 296 of file ZdcNtuple.h.

◆ t_vtx_y

std::vector<float> ZdcNtuple::t_vtx_y

Definition at line 297 of file ZdcNtuple.h.

◆ t_vtx_z

std::vector<float> ZdcNtuple::t_vtx_z

Definition at line 298 of file ZdcNtuple.h.

◆ t_vx

float ZdcNtuple::t_vx[3]

Definition at line 279 of file ZdcNtuple.h.

◆ t_vx_trk_index

std::vector<int> ZdcNtuple::t_vx_trk_index

Definition at line 281 of file ZdcNtuple.h.

◆ t_vxcov

float ZdcNtuple::t_vxcov[6]

Definition at line 284 of file ZdcNtuple.h.

◆ t_vxngoodmuon

int ZdcNtuple::t_vxngoodmuon

Definition at line 292 of file ZdcNtuple.h.

◆ t_vxnlooseprimary

int ZdcNtuple::t_vxnlooseprimary

Definition at line 290 of file ZdcNtuple.h.

◆ t_vxnminbias

int ZdcNtuple::t_vxnminbias

Definition at line 291 of file ZdcNtuple.h.

◆ t_vxntrk

int ZdcNtuple::t_vxntrk

Definition at line 280 of file ZdcNtuple.h.

◆ t_vxsumpt2

float ZdcNtuple::t_vxsumpt2

Definition at line 285 of file ZdcNtuple.h.

◆ t_vxtype

int ZdcNtuple::t_vxtype

Definition at line 282 of file ZdcNtuple.h.

◆ t_xCentroid

float ZdcNtuple::t_xCentroid[2]

Definition at line 271 of file ZdcNtuple.h.

◆ t_xCentroidPreAvgSubtr

float ZdcNtuple::t_xCentroidPreAvgSubtr[2]

Definition at line 269 of file ZdcNtuple.h.

◆ t_xCentroidPreGeomCorPreAvgSubtr

float ZdcNtuple::t_xCentroidPreGeomCorPreAvgSubtr[2]

Definition at line 267 of file ZdcNtuple.h.

◆ t_xRowCentroid

float ZdcNtuple::t_xRowCentroid[2][4]

Definition at line 273 of file ZdcNtuple.h.

◆ t_yCentroid

float ZdcNtuple::t_yCentroid[2]

Definition at line 272 of file ZdcNtuple.h.

◆ t_yCentroidPreAvgSubtr

float ZdcNtuple::t_yCentroidPreAvgSubtr[2]

Definition at line 270 of file ZdcNtuple.h.

◆ t_yCentroidPreGeomCorPreAvgSubtr

float ZdcNtuple::t_yCentroidPreGeomCorPreAvgSubtr[2]

Definition at line 268 of file ZdcNtuple.h.

◆ t_yColCentroid

float ZdcNtuple::t_yColCentroid[2][4]

Definition at line 274 of file ZdcNtuple.h.

◆ t_ZdcAmp

float ZdcNtuple::t_ZdcAmp[2]

Definition at line 188 of file ZdcNtuple.h.

◆ t_ZdcAmpErr

float ZdcNtuple::t_ZdcAmpErr[2]

Definition at line 189 of file ZdcNtuple.h.

◆ t_zdcDecodingError

uint8_t ZdcNtuple::t_zdcDecodingError

Definition at line 164 of file ZdcNtuple.h.

◆ t_ZdcEnergy

float ZdcNtuple::t_ZdcEnergy[2]

Definition at line 190 of file ZdcNtuple.h.

◆ t_ZdcEnergyErr

float ZdcNtuple::t_ZdcEnergyErr[2]

Definition at line 191 of file ZdcNtuple.h.

◆ t_zdcEventInfoError

uint8_t ZdcNtuple::t_zdcEventInfoError

Definition at line 161 of file ZdcNtuple.h.

◆ t_zdcEventInfoErrorWord

uint32_t ZdcNtuple::t_zdcEventInfoErrorWord

Definition at line 162 of file ZdcNtuple.h.

◆ t_ZdcLucrodTriggerAmp

unsigned short ZdcNtuple::t_ZdcLucrodTriggerAmp[2][4]

Definition at line 225 of file ZdcNtuple.h.

◆ t_ZdcLucrodTriggerAmpLG

unsigned short ZdcNtuple::t_ZdcLucrodTriggerAmpLG[2][4]

Definition at line 226 of file ZdcNtuple.h.

◆ t_ZdcLucrodTriggerSideAmp

unsigned short ZdcNtuple::t_ZdcLucrodTriggerSideAmp[2]

Definition at line 196 of file ZdcNtuple.h.

◆ t_ZdcLucrodTriggerSideAmpLG

unsigned short ZdcNtuple::t_ZdcLucrodTriggerSideAmpLG[2]

Definition at line 197 of file ZdcNtuple.h.

◆ t_ZdcModuleAmp

float ZdcNtuple::t_ZdcModuleAmp[2][4]

Definition at line 212 of file ZdcNtuple.h.

◆ t_ZdcModuleAmpCorrLGRefit

float ZdcNtuple::t_ZdcModuleAmpCorrLGRefit[2][4]

Definition at line 233 of file ZdcNtuple.h.

◆ t_ZdcModuleAmpError

float ZdcNtuple::t_ZdcModuleAmpError[2][4]

Definition at line 220 of file ZdcNtuple.h.

◆ t_ZdcModuleAmpLGRefit

float ZdcNtuple::t_ZdcModuleAmpLGRefit[2][4]

Definition at line 232 of file ZdcNtuple.h.

◆ t_ZdcModuleBkgdMaxFraction

float ZdcNtuple::t_ZdcModuleBkgdMaxFraction[2][4]

Definition at line 221 of file ZdcNtuple.h.

◆ t_ZdcModuleCalibAmp

float ZdcNtuple::t_ZdcModuleCalibAmp[2][4]

Definition at line 218 of file ZdcNtuple.h.

◆ t_ZdcModuleCalibTime

float ZdcNtuple::t_ZdcModuleCalibTime[2][4]

Definition at line 219 of file ZdcNtuple.h.

◆ t_ZdcModuleChisq

float ZdcNtuple::t_ZdcModuleChisq[2][4]

Definition at line 216 of file ZdcNtuple.h.

◆ t_ZdcModuleChisqLGRefit

float ZdcNtuple::t_ZdcModuleChisqLGRefit[2][4]

Definition at line 236 of file ZdcNtuple.h.

◆ t_ZdcModuleFitAmp

float ZdcNtuple::t_ZdcModuleFitAmp[2][4]

Definition at line 214 of file ZdcNtuple.h.

◆ t_ZdcModuleFitT0

float ZdcNtuple::t_ZdcModuleFitT0[2][4]

Definition at line 215 of file ZdcNtuple.h.

◆ t_ZdcModuleMask

unsigned int ZdcNtuple::t_ZdcModuleMask

Definition at line 194 of file ZdcNtuple.h.

◆ t_ZdcModuleMaxADC

float ZdcNtuple::t_ZdcModuleMaxADC[2][4]

Definition at line 227 of file ZdcNtuple.h.

◆ t_ZdcModuleMaxADCHG

float ZdcNtuple::t_ZdcModuleMaxADCHG[2][4]

Definition at line 228 of file ZdcNtuple.h.

◆ t_ZdcModuleMaxADCLG

float ZdcNtuple::t_ZdcModuleMaxADCLG[2][4]

Definition at line 229 of file ZdcNtuple.h.

◆ t_ZdcModuleMinDeriv2nd

float ZdcNtuple::t_ZdcModuleMinDeriv2nd[2][4]

Definition at line 222 of file ZdcNtuple.h.

◆ t_ZdcModulePeakADCHG

float ZdcNtuple::t_ZdcModulePeakADCHG[2][4]

Definition at line 230 of file ZdcNtuple.h.

◆ t_ZdcModulePeakADCLG

float ZdcNtuple::t_ZdcModulePeakADCLG[2][4]

Definition at line 231 of file ZdcNtuple.h.

◆ t_ZdcModulePresample

float ZdcNtuple::t_ZdcModulePresample[2][4]

Definition at line 223 of file ZdcNtuple.h.

◆ t_ZdcModulePreSampleAmp

float ZdcNtuple::t_ZdcModulePreSampleAmp[2][4]

Definition at line 224 of file ZdcNtuple.h.

◆ t_ZdcModuleStatus

unsigned int ZdcNtuple::t_ZdcModuleStatus[2][4]

Definition at line 217 of file ZdcNtuple.h.

◆ t_ZdcModuleT0LGRefit

float ZdcNtuple::t_ZdcModuleT0LGRefit[2][4]

Definition at line 234 of file ZdcNtuple.h.

◆ t_ZdcModuleT0SubLGRefit

float ZdcNtuple::t_ZdcModuleT0SubLGRefit[2][4]

Definition at line 235 of file ZdcNtuple.h.

◆ t_ZdcModuleTime

float ZdcNtuple::t_ZdcModuleTime[2][4]

Definition at line 213 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthEM

float ZdcNtuple::t_ZdcModuleTruthEM[2][7]

Definition at line 240 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthEscaped

float ZdcNtuple::t_ZdcModuleTruthEscaped[2][7]

Definition at line 242 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthInvis

float ZdcNtuple::t_ZdcModuleTruthInvis[2][7]

Definition at line 239 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthNonEM

float ZdcNtuple::t_ZdcModuleTruthNonEM[2][7]

Definition at line 241 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthNphotons

unsigned int ZdcNtuple::t_ZdcModuleTruthNphotons[2][7]

Definition at line 243 of file ZdcNtuple.h.

◆ t_ZdcModuleTruthTotal

float ZdcNtuple::t_ZdcModuleTruthTotal[2][7]

Definition at line 238 of file ZdcNtuple.h.

◆ t_ZdcStatus

short ZdcNtuple::t_ZdcStatus[2]

Definition at line 193 of file ZdcNtuple.h.

◆ t_ZdcTime

float ZdcNtuple::t_ZdcTime[2]

Definition at line 192 of file ZdcNtuple.h.

◆ t_ZdcTrigEff

float ZdcNtuple::t_ZdcTrigEff[2]

Definition at line 195 of file ZdcNtuple.h.

◆ t_ZdcTruthEM

float ZdcNtuple::t_ZdcTruthEM[2]

Definition at line 200 of file ZdcNtuple.h.

◆ t_ZdcTruthEscaped

float ZdcNtuple::t_ZdcTruthEscaped[2]

Definition at line 202 of file ZdcNtuple.h.

◆ t_ZdcTruthInvis

float ZdcNtuple::t_ZdcTruthInvis[2]

Definition at line 199 of file ZdcNtuple.h.

◆ t_ZdcTruthNonEM

float ZdcNtuple::t_ZdcTruthNonEM[2]

Definition at line 201 of file ZdcNtuple.h.

◆ t_ZdcTruthParticleEnergy

std::vector< float > ZdcNtuple::t_ZdcTruthParticleEnergy

Definition at line 210 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePosx

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePosx

Definition at line 203 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePosy

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePosy

Definition at line 204 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePosz

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePosz

Definition at line 205 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePx

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePx

Definition at line 207 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePy

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePy

Definition at line 208 of file ZdcNtuple.h.

◆ t_ZdcTruthParticlePz

std::vector< float > ZdcNtuple::t_ZdcTruthParticlePz

Definition at line 209 of file ZdcNtuple.h.

◆ t_ZdcTruthParticleTime

std::vector< float > ZdcNtuple::t_ZdcTruthParticleTime

Definition at line 206 of file ZdcNtuple.h.

◆ t_ZdcTruthTotal

float ZdcNtuple::t_ZdcTruthTotal[2]

Definition at line 198 of file ZdcNtuple.h.

◆ trackLimit

size_t ZdcNtuple::trackLimit

Definition at line 77 of file ZdcNtuple.h.

◆ trackLimitReject

bool ZdcNtuple::trackLimitReject

Definition at line 78 of file ZdcNtuple.h.

◆ useGRL

bool ZdcNtuple::useGRL

Definition at line 57 of file ZdcNtuple.h.

◆ writeOnlyTriggers

bool ZdcNtuple::writeOnlyTriggers

Definition at line 62 of file ZdcNtuple.h.

◆ zdcCalib

bool ZdcNtuple::zdcCalib

Definition at line 72 of file ZdcNtuple.h.

◆ zdcConfig

std::string ZdcNtuple::zdcConfig

Definition at line 93 of file ZdcNtuple.h.

◆ zdcInj

bool ZdcNtuple::zdcInj

Definition at line 74 of file ZdcNtuple.h.

◆ zdcLaser

bool ZdcNtuple::zdcLaser

Definition at line 73 of file ZdcNtuple.h.

◆ zdcLowGainMode

unsigned int ZdcNtuple::zdcLowGainMode

Definition at line 76 of file ZdcNtuple.h.

◆ zdcOnly

bool ZdcNtuple::zdcOnly

Definition at line 75 of file ZdcNtuple.h.


The documentation for this class was generated from the following files:
ZdcNtuple::t_trk_phi
std::vector< float > t_trk_phi
Definition: ZdcNtuple.h:355
AthHistogramming::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition: AthHistogramming.h:229
ZdcNtuple::t_trk_d0
std::vector< float > t_trk_d0
Definition: ZdcNtuple.h:358
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ZdcNtuple::t_RPDSubtrAmpSum
float t_RPDSubtrAmpSum[2]
Definition: ZdcNtuple.h:266
asg::AnaToolHandle::initialize
StatusCode initialize()
initialize the tool
AthHistogramming::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition: AthHistogramming.h:421
AthHistogramAlgorithm::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition: AthHistogramAlgorithm.h:113
ZdcNtuple::processEventInfo
void processEventInfo()
Definition: ZdcNtuple.cxx:1226
ZdcNtuple::proton_track_ySlope
std::vector< std::vector< float > > proton_track_ySlope
Definition: ZdcNtuple.h:413
ZdcNtuple::t_ZdcModuleChisqLGRefit
float t_ZdcModuleChisqLGRefit[2][4]
Definition: ZdcNtuple.h:236
ZdcNtuple::t_ZdcLucrodTriggerAmp
unsigned short t_ZdcLucrodTriggerAmp[2][4]
Definition: ZdcNtuple.h:225
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
EL::AnaAlgorithm::m_hasBeginInputFile
bool m_hasBeginInputFile
the value of hasBeginInputFile
Definition: AnaAlgorithm.h:590
ZdcNtuple::t_trk_nSctHits
std::vector< uint8_t > t_trk_nSctHits
Definition: ZdcNtuple.h:366
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
xAOD::Vertex_v1::x
float x() const
Returns the x position.
ZdcNtuple::t_ZdcTruthParticlePosx
std::vector< float > t_ZdcTruthParticlePosx
Definition: ZdcNtuple.h:203
ZdcNtuple::t_RpdChannelPileupStretchedExpFitParamErrs
float t_RpdChannelPileupStretchedExpFitParamErrs[2][16][3]
Definition: ZdcNtuple.h:249
ZdcNtuple::t_rpdRaw
uint16_t t_rpdRaw[2][16][24]
Definition: ZdcNtuple.h:349
EL::AnaAlgorithm::endInputFile
virtual ::StatusCode endInputFile()
perform the action for the end of an input file
Definition: AnaAlgorithm.cxx:359
ZdcNtuple::t_trigger
uint64_t t_trigger
Definition: ZdcNtuple.h:167
ZdcNtuple::m_zdcInjPulserAmpMap
std::shared_ptr< ZdcInjPulserAmpMap > m_zdcInjPulserAmpMap
Definition: ZdcNtuple.h:130
et
Extra patterns decribing particle interation process.
ZdcNtuple::t_trk_ninPixHits
std::vector< uint8_t > t_trk_ninPixHits
Definition: ZdcNtuple.h:375
ZdcNtuple::t_RpdChannelPileupExpFitParamErrs
float t_RpdChannelPileupExpFitParamErrs[2][16][2]
Definition: ZdcNtuple.h:248
ZdcNtuple::t_ZdcModuleT0LGRefit
float t_ZdcModuleT0LGRefit[2][4]
Definition: ZdcNtuple.h:234
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
AthHistogramming::myReplace
void myReplace(std::string &str, const std::string &oldStr, const std::string &newStr)
Helper method to replace sub-string.
Definition: AthHistogramming.cxx:590
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ZdcNtuple::t_T2mbts_countCin
uint16_t t_T2mbts_countCin
Definition: ZdcNtuple.h:343
AthHistogramming::m_msg
MsgStream m_msg
Cached Message Stream.
Definition: AthHistogramming.h:248
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
AthHistogramming::m_histMap
HistMap_t m_histMap
The map of histogram names to their pointers.
Definition: AthHistogramming.h:201
CaloCell_ID_FCS::TileExt2
@ TileExt2
Definition: FastCaloSim_CaloCell_ID.h:39
ZdcNtuple::lhcf2022zdc
bool lhcf2022zdc
Definition: ZdcNtuple.h:84
xAOD::Vertex_v1::nTrackParticles
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
Definition: Vertex_v1.cxx:270
ZdcNtuple::reprocZdc
bool reprocZdc
Definition: ZdcNtuple.h:80
ZdcNtuple::proton_eLoss
std::vector< double > proton_eLoss
Definition: ZdcNtuple.h:406
ParticleGun_SamplingFraction.eta2
eta2
Definition: ParticleGun_SamplingFraction.py:96
ZdcNtuple::grlFilename
std::string grlFilename
Definition: ZdcNtuple.h:58
ZdcNtuple::t_ZdcModuleCalibAmp
float t_ZdcModuleCalibAmp[2][4]
Definition: ZdcNtuple.h:218
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
ZdcNtuple::t_RpdChannelPileupStretchedExpFitMSE
float t_RpdChannelPileupStretchedExpFitMSE[2][16]
Definition: ZdcNtuple.h:251
ZdcNtuple::enableTracks
bool enableTracks
Definition: ZdcNtuple.h:64
ZdcNtuple::t_ZdcLucrodTriggerSideAmpLG
unsigned short t_ZdcLucrodTriggerSideAmpLG[2]
Definition: ZdcNtuple.h:197
AthHistogramAlgorithm::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
Definition: AthHistogramAlgorithm.h:83
ZdcNtuple::t_mbts_timeDiff
float t_mbts_timeDiff
Definition: ZdcNtuple.h:340
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ZdcNtuple::t_RpdChannelMaxADC
float t_RpdChannelMaxADC[2][16]
Definition: ZdcNtuple.h:254
xAOD::EventInfo_v1::eventNumber
uint64_t eventNumber() const
The current event's event number.
ZdcNtuple::t_cc_raw_eta
std::vector< float > t_cc_raw_eta
Definition: ZdcNtuple.h:388
ZdcNtuple::t_RpdChannelStatus
unsigned int t_RpdChannelStatus[2][16]
Definition: ZdcNtuple.h:257
ZdcNtuple::enableZDC
bool enableZDC
Definition: ZdcNtuple.h:87
ZdcNtuple::t_RpdChannelAmplitudeCalib
float t_RpdChannelAmplitudeCalib[2][16]
Definition: ZdcNtuple.h:253
ZdcNtuple::t_raw24
uint16_t t_raw24[2][4][2][2][24]
Definition: ZdcNtuple.h:347
ZdcNtuple::writeTrack
void writeTrack(const xAOD::TrackParticle *, const xAOD::Vertex *vertex, int)
Definition: ZdcNtuple.cxx:1515
ZdcNtuple::proton_track_xLocal
std::vector< std::vector< float > > proton_track_xLocal
Definition: ZdcNtuple.h:409
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ZdcNtuple::t_nvtx
int t_nvtx
Definition: ZdcNtuple.h:294
ZdcNtuple::t_trk_nPixDead
std::vector< uint8_t > t_trk_nPixDead
Definition: ZdcNtuple.h:367
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
AthHistogramming::book
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Definition: AthHistogramming.h:303
ZdcNtuple::trackQuality
int trackQuality(const xAOD::TrackParticle *tp, const xAOD::Vertex *vertex)
Definition: ZdcNtuple.cxx:1495
ZdcNtuple::m_selTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_selTool
Definition: ZdcNtuple.h:104
ZdcNtuple::t_vtx_x
std::vector< float > t_vtx_x
Definition: ZdcNtuple.h:296
ZdcNtuple::t_ZdcModuleT0SubLGRefit
float t_ZdcModuleT0SubLGRefit[2][4]
Definition: ZdcNtuple.h:235
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ZdcNtuple::t_T2mbts_out_e
float t_T2mbts_out_e[2][4]
Definition: ZdcNtuple.h:181
ZdcNtuple::t_zdcEventInfoError
uint8_t t_zdcEventInfoError
Definition: ZdcNtuple.h:161
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
ZdcNtuple::t_fcalEtC_TT
float t_fcalEtC_TT
Definition: ZdcNtuple.h:310
SG::ReadHandle< McEventCollection >
index
Definition: index.py:1
ZdcNtuple::t_raw7
uint16_t t_raw7[2][4][2][2][7]
Definition: ZdcNtuple.h:345
ZdcNtuple::m_lastRunNumber
unsigned int m_lastRunNumber
Definition: ZdcNtuple.h:52
ZdcNtuple::processProtons
void processProtons()
Definition: ZdcNtuple.cxx:1870
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ZdcNtuple::t_T2mbts_in_e
float t_T2mbts_in_e[2][8]
Definition: ZdcNtuple.h:180
ZdcNtuple::t_trk_nTrtOutliers
std::vector< uint8_t > t_trk_nTrtOutliers
Definition: ZdcNtuple.h:372
ZdcNtuple::t_vtx_trk_index
std::vector< std::vector< int16_t > > t_vtx_trk_index
Definition: ZdcNtuple.h:303
ZdcNtuple::t_totalEt
float t_totalEt
Definition: ZdcNtuple.h:314
EL::AnaAlgorithm::m_inputMetaStore
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
Definition: AnaAlgorithm.h:551
ZdcNtuple::t_ZdcTruthParticlePy
std::vector< float > t_ZdcTruthParticlePy
Definition: ZdcNtuple.h:208
EL::AnaAlgorithm::m_outputMetaStore
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
Definition: AnaAlgorithm.h:555
ZdcNtuple::proton_phi
std::vector< double > proton_phi
Definition: ZdcNtuple.h:403
ZdcNtuple::m_grl
asg::AnaToolHandle< IGoodRunsListSelectionTool > m_grl
Definition: ZdcNtuple.h:102
xAOD::Vertex_v1::trackParticleLinks
const TrackParticleLinks_t & trackParticleLinks() const
Get all the particles associated with the vertex.
ZdcNtuple::t_clusEt
float t_clusEt
Definition: ZdcNtuple.h:393
ZdcNtuple::t_clusphiMax
float t_clusphiMax
Definition: ZdcNtuple.h:396
ZdcNtuple::t_ZdcModuleTruthNphotons
unsigned int t_ZdcModuleTruthNphotons[2][7]
Definition: ZdcNtuple.h:243
ZdcNtuple::nsamplesZdc
size_t nsamplesZdc
Definition: ZdcNtuple.h:82
ZdcNtuple::m_setupTrigHist
bool m_setupTrigHist
Definition: ZdcNtuple.h:135
ZdcNtuple::proton_e
std::vector< double > proton_e
Definition: ZdcNtuple.h:404
xAOD::EnergySumRoI_v2::energyT
float energyT() const
The deposited total transverse energy.
ZdcNtuple::t_trk_nTrtHits
std::vector< uint8_t > t_trk_nTrtHits
Definition: ZdcNtuple.h:371
ZdcNtuple::t_trk_theta
std::vector< float > t_trk_theta
Definition: ZdcNtuple.h:357
ZdcNtuple::zdcLaser
bool zdcLaser
Definition: ZdcNtuple.h:73
ZdcNtuple::t_trk_z0
std::vector< float > t_trk_z0
Definition: ZdcNtuple.h:359
ZdcNtuple::t_fcalEtA
float t_fcalEtA
Definition: ZdcNtuple.h:307
ZdcNtuple::t_clusEtMax
float t_clusEtMax
Definition: ZdcNtuple.h:394
ZdcNtuple::t_vtx_z
std::vector< float > t_vtx_z
Definition: ZdcNtuple.h:298
xAOD::ZdcModule_v1
Class containing ZDC Module information.
Definition: ZdcModule_v1.h:25
ZdcNtuple::enableTrigger
bool enableTrigger
Definition: ZdcNtuple.h:61
asg::AnaToolHandle::setTypeAndName
void setTypeAndName(const std::string &val_typeAndName)
set the value of type and name
ZdcNtuple::t_ZdcModuleTruthInvis
float t_ZdcModuleTruthInvis[2][7]
Definition: ZdcNtuple.h:239
skel.it
it
Definition: skel.GENtoEVGEN.py:396
ZdcNtuple::t_puvxsumpt
float t_puvxsumpt
Definition: ZdcNtuple.h:288
ZdcNtuple::t_fcalEtA_TT
float t_fcalEtA_TT
Definition: ZdcNtuple.h:309
AthHistogramAlgorithm::m_prefix
std::string m_prefix
Name of the ROOT output stream (file)
Definition: AthHistogramAlgorithm.h:88
ZdcNtuple::t_ZdcModuleTruthTotal
float t_ZdcModuleTruthTotal[2][7]
Definition: ZdcNtuple.h:238
ZdcNtuple::t_fcalEt
float t_fcalEt
Definition: ZdcNtuple.h:306
EL::AnaAlgorithm::beginInputFile
virtual ::StatusCode beginInputFile()
perform the action for the beginning of an input file
Definition: AnaAlgorithm.cxx:351
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ZdcNtuple::processTriggerDecision
bool processTriggerDecision()
Definition: ZdcNtuple.cxx:1130
ZdcNtuple::t_trk_eta
std::vector< float > t_trk_eta
Definition: ZdcNtuple.h:354
xAOD::TrigDecision_v1::tav
const std::vector< uint32_t > & tav() const
Get the Trigger After Veto bits.
AthCommonMsg< Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
ZdcNtuple::t_vtx_sumpt2_all
std::vector< float > t_vtx_sumpt2_all
Definition: ZdcNtuple.h:300
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
ZdcNtuple::t_reactionPlaneAngle
float t_reactionPlaneAngle[2]
Definition: ZdcNtuple.h:275
ZdcNtuple::t_ZdcModulePreSampleAmp
float t_ZdcModulePreSampleAmp[2][4]
Definition: ZdcNtuple.h:224
ZdcNtuple::t_RpdChannelPileupExpFitMSE
float t_RpdChannelPileupExpFitMSE[2][16]
Definition: ZdcNtuple.h:250
AthHistogramAlgorithm::m_histNamePrefix
std::string m_histNamePrefix
The prefix for the histogram THx name.
Definition: AthHistogramAlgorithm.h:94
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
ZdcNtuple::t_RPDChannelSubtrAmp
float t_RPDChannelSubtrAmp[2][16]
Definition: ZdcNtuple.h:265
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
ZdcNtuple::t_ZdcModuleMaxADCHG
float t_ZdcModuleMaxADCHG[2][4]
Definition: ZdcNtuple.h:228
ZdcNtuple::t_ZdcModulePeakADCLG
float t_ZdcModulePeakADCLG[2][4]
Definition: ZdcNtuple.h:231
ZdcNtuple::t_vxngoodmuon
int t_vxngoodmuon
Definition: ZdcNtuple.h:292
AthHistogramAlgorithm::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition: AthHistogramAlgorithm.h:100
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
ZdcNtuple::t_ZdcTruthParticlePosz
std::vector< float > t_ZdcTruthParticlePosz
Definition: ZdcNtuple.h:205
ZdcNtuple::t_vtx_y
std::vector< float > t_vtx_y
Definition: ZdcNtuple.h:297
ZdcNtuple::t_raw15
uint16_t t_raw15[2][4][2][2][15]
Definition: ZdcNtuple.h:346
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
ZdcNtuple::t_ZdcModulePeakADCHG
float t_ZdcModulePeakADCHG[2][4]
Definition: ZdcNtuple.h:230
ZdcNtuple::processClusters
void processClusters()
Definition: ZdcNtuple.cxx:1788
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
ZdcNtuple::t_ZdcTruthParticlePosy
std::vector< float > t_ZdcTruthParticlePosy
Definition: ZdcNtuple.h:204
ZdcNtuple::t_decisions
bool t_decisions[200]
Definition: ZdcNtuple.h:172
ZdcNtuple::m_injMapRunToken
ZdcInjPulserAmpMap::Token m_injMapRunToken
Definition: ZdcNtuple.h:53
xAOD::EventInfo_v1::timeStampNSOffset
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
ZdcNtuple::t_centroidEventValid
char t_centroidEventValid
Definition: ZdcNtuple.h:263
ZdcNtuple::zdcLowGainMode
unsigned int zdcLowGainMode
Definition: ZdcNtuple.h:76
ZdcNtuple::pbpb2023
bool pbpb2023
Definition: ZdcNtuple.h:86
ZdcNtuple::acceptEvent
uint32_t acceptEvent()
Definition: ZdcNtuple.cxx:1931
ZdcNtuple::proton_track_stationID
std::vector< std::vector< int > > proton_track_stationID
Definition: ZdcNtuple.h:408
asg::AnaToolHandle::setProperty
StatusCode setProperty(const std::string &property, const T2 &value)
set the given property of the tool.
ZdcNtuple::lhcf2022afp
bool lhcf2022afp
Definition: ZdcNtuple.h:85
ZdcNtuple::t_pvindex
int t_pvindex
Definition: ZdcNtuple.h:283
ZdcNtuple::t_timeStampNSOffset
uint32_t t_timeStampNSOffset
Definition: ZdcNtuple.h:158
ZdcNtuple::t_vxnminbias
int t_vxnminbias
Definition: ZdcNtuple.h:291
ZdcNtuple::t_trk_charge
std::vector< int8_t > t_trk_charge
Definition: ZdcNtuple.h:362
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
ZdcNtuple::enableCentroid
bool enableCentroid
Definition: ZdcNtuple.h:90
ReweightUtils.message
message
Definition: ReweightUtils.py:15
ZdcNtuple::t_ZdcModuleMaxADCLG
float t_ZdcModuleMaxADCLG[2][4]
Definition: ZdcNtuple.h:229
AthHistogramming::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition: AthHistogramming.h:235
ZdcNtuple::t_ZdcTruthInvis
float t_ZdcTruthInvis[2]
Definition: ZdcNtuple.h:199
ZdcNtuple::nProtons
int nProtons
Definition: ZdcNtuple.h:400
xAOD::Vertex_v1::vertexType
VxType::VertexType vertexType() const
The type of the vertex.
ZdcNtuple::t_ZdcModuleAmpError
float t_ZdcModuleAmpError[2][4]
Definition: ZdcNtuple.h:220
EL::AnaAlgorithm::fileExecute
virtual ::StatusCode fileExecute()
perform the action exactly once for each file in the dataset
Definition: AnaAlgorithm.cxx:343
ZdcNtuple::t_ZdcStatus
short t_ZdcStatus[2]
Definition: ZdcNtuple.h:193
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
ZdcNtuple::m_chainGroups
std::vector< const Trig::ChainGroup * > m_chainGroups
Definition: ZdcNtuple.h:137
ZdcNtuple::proton_t
std::vector< double > proton_t
Definition: ZdcNtuple.h:407
H5Utils::getTree
std::string getTree(const std::string &file_name)
Definition: getTree.cxx:36
ZdcNtuple::t_trk_nSctHoles
std::vector< uint8_t > t_trk_nSctHoles
Definition: ZdcNtuple.h:370
xAOD::EventInfo_v1::runNumber
uint32_t runNumber() const
The current event's run number.
ZdcNtuple::useGRL
bool useGRL
Definition: ZdcNtuple.h:57
asg::AnaToolHandle::declarePropertyFor
void declarePropertyFor(T2 *tool, const std::string &name, const std::string &description="")
declare as property on the given tool
ZdcNtuple::proton_side
std::vector< int > proton_side
Definition: ZdcNtuple.h:405
ZdcNtuple::zdcOnly
bool zdcOnly
Definition: ZdcNtuple.h:75
ZdcNtuple::t_ZdcModulePresample
float t_ZdcModulePresample[2][4]
Definition: ZdcNtuple.h:223
ZdcNtuple::t_ZdcTruthParticlePz
std::vector< float > t_ZdcTruthParticlePz
Definition: ZdcNtuple.h:209
ZdcNtuple::t_ZdcEnergyErr
float t_ZdcEnergyErr[2]
Definition: ZdcNtuple.h:191
ZdcNtuple::t_mbts_timeC
float t_mbts_timeC
Definition: ZdcNtuple.h:339
ZdcNtuple::proton_track_zLocal
std::vector< std::vector< float > > proton_track_zLocal
Definition: ZdcNtuple.h:411
ZdcNtuple::t_trk_vz
std::vector< float > t_trk_vz
Definition: ZdcNtuple.h:360
ZdcNtuple::t_totalEt_TTsum
float t_totalEt_TTsum
Definition: ZdcNtuple.h:315
ZdcNtuple::t_cc_raw_e
std::vector< float > t_cc_raw_e
Definition: ZdcNtuple.h:390
ZdcNtuple::t_trk_e
std::vector< float > t_trk_e
Definition: ZdcNtuple.h:356
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
ZdcNtuple::t_ZdcModuleCalibTime
float t_ZdcModuleCalibTime[2][4]
Definition: ZdcNtuple.h:219
xAOD::EventInfo_v1::Error
@ Error
The sub-detector issued an error.
Definition: EventInfo_v1.h:349
ZdcNtuple::t_ZdcModuleBkgdMaxFraction
float t_ZdcModuleBkgdMaxFraction[2][4]
Definition: ZdcNtuple.h:221
ZdcNtuple::t_vInj
float t_vInj
Definition: ZdcNtuple.h:153
ZdcNtuple::proton_track_nClusters
std::vector< std::vector< int > > proton_track_nClusters
Definition: ZdcNtuple.h:414
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRT::Hit::side
@ side
Definition: HitInfo.h:83
ZdcNtuple::t_L1ET24
float t_L1ET24
Definition: ZdcNtuple.h:141
ZdcNtuple::t_ZdcLucrodTriggerAmpLG
unsigned short t_ZdcLucrodTriggerAmpLG[2][4]
Definition: ZdcNtuple.h:226
ZdcNtuple::t_tav
uint32_t t_tav[16]
Definition: ZdcNtuple.h:185
ANA_CHECK_THROW
#define ANA_CHECK_THROW(EXP)
check whether the given expression was successful, throwing an exception on failure
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:339
ZdcNtuple::t_trk_inPixHits
std::vector< uint8_t > t_trk_inPixHits
Definition: ZdcNtuple.h:373
ZdcNtuple::t_vxtype
int t_vxtype
Definition: ZdcNtuple.h:282
ZdcNtuple::t_mbts_timeA
float t_mbts_timeA
Definition: ZdcNtuple.h:338
ZdcNtuple::t_xCentroidPreAvgSubtr
float t_xCentroidPreAvgSubtr[2]
Definition: ZdcNtuple.h:269
ZdcNtuple::t_xCentroid
float t_xCentroid[2]
Definition: ZdcNtuple.h:271
ZdcNtuple::m_mbtsModules
const xAOD::MBTSModuleContainer * m_mbtsModules
Definition: ZdcNtuple.h:120
ZdcInjPulserAmpMap::Token::isValid
bool isValid() const
Definition: ZdcInjPulserAmpMap.h:48
ZdcNtuple::t_avgIntPerCrossing
float t_avgIntPerCrossing
Definition: ZdcNtuple.h:159
ZdcNtuple::t_T2mbts_in_t
float t_T2mbts_in_t[2][8]
Definition: ZdcNtuple.h:182
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
ZdcNtuple::t_clusetaMax
float t_clusetaMax
Definition: ZdcNtuple.h:395
ZdcNtuple::t_yCentroidPreGeomCorPreAvgSubtr
float t_yCentroidPreGeomCorPreAvgSubtr[2]
Definition: ZdcNtuple.h:268
ZdcNtuple::enableOutputTree
bool enableOutputTree
Definition: ZdcNtuple.h:59
ZdcNtuple::t_xCentroidPreGeomCorPreAvgSubtr
float t_xCentroidPreGeomCorPreAvgSubtr[2]
Definition: ZdcNtuple.h:267
ZdcNtuple::t_cc_phi
std::vector< float > t_cc_phi
Definition: ZdcNtuple.h:383
ZdcNtuple::t_zdcDecodingError
uint8_t t_zdcDecodingError
Definition: ZdcNtuple.h:164
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ZdcNtuple::t_RpdChannelPileupExpFitParams
float t_RpdChannelPileupExpFitParams[2][16][2]
Definition: ZdcNtuple.h:246
ZdcNtuple::t_rerunDecisions
bool t_rerunDecisions[200]
Definition: ZdcNtuple.h:173
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ZdcNtuple::writeOnlyTriggers
bool writeOnlyTriggers
Definition: ZdcNtuple.h:62
ZdcNtuple::t_trk_nexPixHits
std::vector< uint8_t > t_trk_nexPixHits
Definition: ZdcNtuple.h:376
ZdcNtuple::t_vxcov
float t_vxcov[6]
Definition: ZdcNtuple.h:284
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
ZdcNtuple::t_ZdcModuleTime
float t_ZdcModuleTime[2][4]
Definition: ZdcNtuple.h:213
ZdcNtuple::t_ZdcTime
float t_ZdcTime[2]
Definition: ZdcNtuple.h:192
ZdcEventInfo::ZDCDECODINGERROR
@ ZDCDECODINGERROR
Definition: ZdcEventInfo.h:19
lumiFormat.i
int i
Definition: lumiFormat.py:85
ZdcNtuple::t_ZdcTruthEscaped
float t_ZdcTruthEscaped[2]
Definition: ZdcNtuple.h:202
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
ZdcNtuple::t_eventNumber
uint32_t t_eventNumber
Definition: ZdcNtuple.h:150
ZdcNtuple::t_ZdcTruthTotal
float t_ZdcTruthTotal[2]
Definition: ZdcNtuple.h:198
ZdcNtuple::t_ZdcModuleFitT0
float t_ZdcModuleFitT0[2][4]
Definition: ZdcNtuple.h:215
ZdcNtuple::t_cc_raw_phi
std::vector< float > t_cc_raw_phi
Definition: ZdcNtuple.h:389
ZdcNtuple::t_ZdcLucrodTriggerSideAmp
unsigned short t_ZdcLucrodTriggerSideAmp[2]
Definition: ZdcNtuple.h:196
CaloCell_ID_FCS::TileBar0
@ TileBar0
Definition: FastCaloSim_CaloCell_ID.h:31
ZdcNtuple::m_eventInfo
const xAOD::EventInfo * m_eventInfo
Definition: ZdcNtuple.h:113
beamspotman.n
n
Definition: beamspotman.py:731
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ZdcNtuple::t_T2mbts_countAin
uint16_t t_T2mbts_countAin
Definition: ZdcNtuple.h:342
ZdcNtuple::t_totalEt24_TTsum
float t_totalEt24_TTsum
Definition: ZdcNtuple.h:317
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ZdcNtuple::t_cc_sig
std::vector< float > t_cc_sig
Definition: ZdcNtuple.h:385
xAOD::CaloCluster_v1::CELL_SIG_SAMPLING
@ CELL_SIG_SAMPLING
CaloSample of the cell with the largest |E|/sig.
Definition: CaloCluster_v1.h:161
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
ZdcNtuple::trackLimit
size_t trackLimit
Definition: ZdcNtuple.h:77
ZdcNtuple::t_ntrk
uint32_t t_ntrk
Definition: ZdcNtuple.h:352
ZdcNtuple::t_passBits
uint32_t t_passBits
Definition: ZdcNtuple.h:155
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:290
ZdcNtuple::t_vtx_ntrk_all
std::vector< int16_t > t_vtx_ntrk_all
Definition: ZdcNtuple.h:299
ZdcNtuple::t_ZdcModuleChisq
float t_ZdcModuleChisq[2][4]
Definition: ZdcNtuple.h:216
ZdcNtuple::t_totalEt24
float t_totalEt24
Definition: ZdcNtuple.h:316
ZdcNtuple::t_rpdDecodingError
uint8_t t_rpdDecodingError
Definition: ZdcNtuple.h:165
ZdcNtuple::t_mbts_out_t
float t_mbts_out_t[2][4]
Definition: ZdcNtuple.h:178
ANA_MSG_WARNING
#define ANA_MSG_WARNING(xmsg)
Macro printing warning messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:292
ZdcNtuple::t_ZdcAmp
float t_ZdcAmp[2]
Definition: ZdcNtuple.h:188
ZdcNtuple::m_eventCounter
int m_eventCounter
Definition: ZdcNtuple.h:133
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:571
ZdcNtuple::t_mbts_countA
uint16_t t_mbts_countA
Definition: ZdcNtuple.h:336
xAOD::EventInfo_v1::extendedLevel1ID
uint32_t extendedLevel1ID() const
The extended Level-1 identifier.
python.BuildSignatureFlags.sig
sig
Definition: BuildSignatureFlags.py:218
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
ZdcNtuple::zdcInj
bool zdcInj
Definition: ZdcNtuple.h:74
dumpFileToPlots.treeName
string treeName
Definition: dumpFileToPlots.py:20
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
ZdcNtuple::t_puvxz
float t_puvxz
Definition: ZdcNtuple.h:286
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ZdcNtuple::t_xRowCentroid
float t_xRowCentroid[2][4]
Definition: ZdcNtuple.h:273
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ZdcNtuple::h_TCSigCut
TH1 * h_TCSigCut
Definition: ZdcNtuple.h:333
ZdcNtuple::processMCEventCollection
void processMCEventCollection()
Definition: ZdcNtuple.cxx:1077
ZdcNtuple::t_zdcEventInfoErrorWord
uint32_t t_zdcEventInfoErrorWord
Definition: ZdcNtuple.h:162
ZdcNtuple::p_scat
TLorentzVector p_scat
Definition: ZdcNtuple.h:417
ZdcNtuple::lhcf2022
bool lhcf2022
Definition: ZdcNtuple.h:83
ZdcNtuple::t_ZdcModuleTruthNonEM
float t_ZdcModuleTruthNonEM[2][7]
Definition: ZdcNtuple.h:241
ZdcNtuple::t_mbts_in_t
float t_mbts_in_t[2][8]
Definition: ZdcNtuple.h:177
EL::AnaAlgorithm::m_hasFileExecute
bool m_hasFileExecute
the value of hasFileExecute
Definition: AnaAlgorithm.h:586
ZdcNtuple::m_trigT2MbtsBits
const xAOD::TrigT2MbtsBitsContainer * m_trigT2MbtsBits
Definition: ZdcNtuple.h:121
AthHistogramming::m_graphMap
GraphMap_t m_graphMap
The map of TGraph names to their pointers.
Definition: AthHistogramming.h:222
ZdcNtuple::processZdcNtupleFromModules
void processZdcNtupleFromModules()
Definition: ZdcNtuple.cxx:628
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
ZdcNtuple::t_cc_e
std::vector< float > t_cc_e
Definition: ZdcNtuple.h:384
xAOD::Vertex_v1::z
float z() const
Returns the z position.
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthHistogramming::m_streamName
std::string m_streamName
Name of the ROOT output stream (file)
Definition: AthHistogramming.h:226
ZdcNtuple::m_mcEventCollectionName
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionName
Definition: ZdcNtuple.h:111
ZdcNtuple::t_mbts_in_e
float t_mbts_in_e[2][8]
Definition: ZdcNtuple.h:175
ZdcNtuple::t_vtx_ntrk
std::vector< int16_t > t_vtx_ntrk
Definition: ZdcNtuple.h:301
AthHistogramming::configAthHistogramming
StatusCode configAthHistogramming(const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
To be called by the derived classes to fill the internal configuration.
Definition: AthHistogramming.cxx:66
ZdcNtuple::t_trk_vtxz
std::vector< float > t_trk_vtxz
Definition: ZdcNtuple.h:361
ZdcNtuple::trackLimitReject
bool trackLimitReject
Definition: ZdcNtuple.h:78
AthHistogramming::hash_t
uint32_t hash_t
typedef for the internal hash
Definition: AthHistogramming.h:169
ZdcNtuple::enableRPDAmp
bool enableRPDAmp
Definition: ZdcNtuple.h:89
ZdcNtuple::t_ZdcModuleAmpLGRefit
float t_ZdcModuleAmpLGRefit[2][4]
Definition: ZdcNtuple.h:232
ZdcNtuple::t_runNumber
uint32_t t_runNumber
Definition: ZdcNtuple.h:149
CxxUtils::crc64
uint64_t crc64(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string,.
Definition: crc64.cxx:696
xAOD::EventInfo_v1::lumiBlock
uint32_t lumiBlock() const
The current event's luminosity block number.
ZdcNtuple::t_RpdModuleTruthNphotons
unsigned int t_RpdModuleTruthNphotons[2][16]
Definition: ZdcNtuple.h:260
xAOD::EventInfo_v1::ForwardDet
@ ForwardDet
The forward detectors.
Definition: EventInfo_v1.h:338
AthHistogramming::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition: AthHistogramming.h:241
ZdcNtuple::m_zdcModuleContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
Definition: ZdcNtuple.h:107
ZdcNtuple::t_trk_pt
std::vector< float > t_trk_pt
Definition: ZdcNtuple.h:353
ZdcNtuple::t_RpdChannelMaxADCCalib
float t_RpdChannelMaxADCCalib[2][16]
Definition: ZdcNtuple.h:255
ZdcNtuple::t_ZdcModuleMask
unsigned int t_ZdcModuleMask
Definition: ZdcNtuple.h:194
ZdcNtuple::m_trackParticles
const xAOD::TrackParticleContainer * m_trackParticles
Definition: ZdcNtuple.h:124
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
ZdcNtuple::m_primaryVertices
const xAOD::VertexContainer * m_primaryVertices
Definition: ZdcNtuple.h:122
grepfile.ic
int ic
Definition: grepfile.py:33
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
fill
void fill(H5::Group &out_file, size_t iterations)
Definition: test-hdf5-writer.cxx:95
ZdcNtuple::m_afpProtons
const xAOD::AFPProtonContainer * m_afpProtons
Definition: ZdcNtuple.h:128
ZdcNtuple::t_vxnlooseprimary
int t_vxnlooseprimary
Definition: ZdcNtuple.h:290
ZdcNtuple::t_cc_raw_m
std::vector< float > t_cc_raw_m
Definition: ZdcNtuple.h:387
Trig::ChainGroup
Definition: ChainGroup.h:51
ZdcNtuple::t_ZdcAmpErr
float t_ZdcAmpErr[2]
Definition: ZdcNtuple.h:189
ZdcNtuple::t_bcid
uint32_t t_bcid
Definition: ZdcNtuple.h:152
ZdcNtuple::m_outputTree
TTree * m_outputTree
Definition: ZdcNtuple.h:148
xAOD::EventInfo_v1::averageInteractionsPerCrossing
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
Definition: EventInfo_v1.cxx:397
ZdcNtuple::t_cc_layer
std::vector< int > t_cc_layer
Definition: ZdcNtuple.h:386
ZdcNtuple::t_extendedLevel1ID
uint32_t t_extendedLevel1ID
Definition: ZdcNtuple.h:156
ZdcNtuple::t_ZdcTruthNonEM
float t_ZdcTruthNonEM[2]
Definition: ZdcNtuple.h:201
ZdcNtuple::zdcConfig
std::string zdcConfig
Definition: ZdcNtuple.h:93
ZdcNtuple::t_ZdcModuleFitAmp
float t_ZdcModuleFitAmp[2][4]
Definition: ZdcNtuple.h:214
xAOD::VxType::PileUp
@ PileUp
Pile-up vertex.
Definition: TrackingPrimitives.h:573
ZdcNtuple::t_ZdcModuleStatus
unsigned int t_ZdcModuleStatus[2][4]
Definition: ZdcNtuple.h:217
ZdcNtuple::t_edgeGapA
float t_edgeGapA
Definition: ZdcNtuple.h:320
ZdcNtuple::t_edgeGapC
float t_edgeGapC
Definition: ZdcNtuple.h:321
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
ZdcNtuple::t_mbts_out_e
float t_mbts_out_e[2][4]
Definition: ZdcNtuple.h:176
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
ANA_MSG_VERBOSE
#define ANA_MSG_VERBOSE(xmsg)
Macro printing verbose messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:286
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ZdcNtuple::t_timeStamp
uint32_t t_timeStamp
Definition: ZdcNtuple.h:157
xAOD::proton
@ proton
Definition: TrackingPrimitives.h:198
ZdcNtuple::t_ZdcModuleTruthEM
float t_ZdcModuleTruthEM[2][7]
Definition: ZdcNtuple.h:240
ZdcNtuple::slimmed
bool slimmed
Definition: ZdcNtuple.h:56
ZdcNtuple::t_trk_exPixHits
std::vector< uint8_t > t_trk_exPixHits
Definition: ZdcNtuple.h:374
AthHistogramming::hash
hash_t hash(const std::string &histName) const
Method to calculate a 32-bit hash from a string.
Definition: AthHistogramming.h:428
ZdcNtuple::zdcCalib
bool zdcCalib
Definition: ZdcNtuple.h:72
ZdcNtuple::t_yCentroid
float t_yCentroid[2]
Definition: ZdcNtuple.h:272
ZdcNtuple::auxSuffix
std::string auxSuffix
Definition: ZdcNtuple.h:81
ZdcNtuple::m_trigDecision
const xAOD::TrigDecision * m_trigDecision
Definition: ZdcNtuple.h:116
ZdcNtuple::t_nvx
int t_nvx
Definition: ZdcNtuple.h:278
ZdcNtuple::enableClusters
bool enableClusters
Definition: ZdcNtuple.h:63
module_driven_slicing.getHist
def getHist(name, makehist)
Definition: module_driven_slicing.py:121
ZdcNtuple::t_tbp
uint32_t t_tbp[16]
Definition: ZdcNtuple.h:186
ZdcNtuple::t_vtx_sumpt2
std::vector< float > t_vtx_sumpt2
Definition: ZdcNtuple.h:302
ZdcNtuple::p_beam
TLorentzVector p_beam
Definition: ZdcNtuple.h:416
ZdcNtuple::t_RpdSideStatus
unsigned int t_RpdSideStatus[2]
Definition: ZdcNtuple.h:259
ZdcNtuple::t_vx
float t_vx[3]
Definition: ZdcNtuple.h:279
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
ZdcNtuple::m_lvl1EnergySumRoI
const xAOD::EnergySumRoI * m_lvl1EnergySumRoI
Definition: ZdcNtuple.h:125
ZdcNtuple::t_bunchGroup
uint8_t t_bunchGroup
Definition: ZdcNtuple.h:154
xAOD::TrigDecision_v1::bgCode
char bgCode() const
Get the bunch group code of the current event.
ZdcNtuple::m_trigDecisionTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Definition: ZdcNtuple.h:101
xxh3::hash64
std::uint64_t hash64(const void *data, std::size_t size)
Passthrough to XXH3_64bits.
Definition: XXH.cxx:9
ZdcNtuple::t_trk_nPixHits
std::vector< uint8_t > t_trk_nPixHits
Definition: ZdcNtuple.h:365
ZdcNtuple::t_ZdcTruthEM
float t_ZdcTruthEM[2]
Definition: ZdcNtuple.h:200
ZdcNtuple::t_centroidDecorationsAvailable
bool t_centroidDecorationsAvailable
Definition: ZdcNtuple.h:262
ZdcNtuple::t_ZdcModuleAmp
float t_ZdcModuleAmp[2][4]
Definition: ZdcNtuple.h:212
ZdcNtuple::t_trk_pixeldEdx
std::vector< float > t_trk_pixeldEdx
Definition: ZdcNtuple.h:377
ZdcNtuple::t_RpdChannelBaseline
float t_RpdChannelBaseline[2][16]
Definition: ZdcNtuple.h:245
xAOD::pixeldEdx
@ pixeldEdx
the dE/dx estimate, calculated using the pixel clusters [?]
Definition: TrackingPrimitives.h:304
xAOD::EventInfo_v1::eventFlags
uint32_t eventFlags(EventFlagSubDet subDet) const
Get the event flags for a particular sub-detector.
Definition: EventInfo_v1.cxx:697
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
xAOD::EventInfo_v1::Tile
@ Tile
The Tile calorimeter.
Definition: EventInfo_v1.h:336
ZdcNtuple::m_mbtsInfo
const xAOD::ForwardEventInfoContainer * m_mbtsInfo
Definition: ZdcNtuple.h:119
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
DeMoScan.index
string index
Definition: DeMoScan.py:364
ZdcNtuple::t_T2mbts_out_t
float t_T2mbts_out_t[2][4]
Definition: ZdcNtuple.h:183
ZdcNtuple::t_RpdChannelAmplitude
float t_RpdChannelAmplitude[2][16]
Definition: ZdcNtuple.h:252
a
TList * a
Definition: liststreamerinfos.cxx:10
AthHistogramming::m_effMap
EffMap_t m_effMap
The map of histogram names to their pointers.
Definition: AthHistogramming.h:208
ZdcNtuple::flipDelay
bool flipDelay
Definition: ZdcNtuple.h:79
h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
ZdcNtuple::t_ZdcModuleTruthEscaped
float t_ZdcModuleTruthEscaped[2][7]
Definition: ZdcNtuple.h:242
ZdcNtuple::t_L1ET
float t_L1ET
Definition: ZdcNtuple.h:140
AthHistogramming::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition: AthHistogramming.h:238
ZDC::IZdcAnalysisTool::reprocessZdc
virtual StatusCode reprocessZdc()=0
ZdcNtuple::m_isMC
bool m_isMC
Definition: ZdcNtuple.h:134
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthHistogramAlgorithm::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition: AthHistogramAlgorithm.h:97
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition: FastCaloSim_CaloCell_ID.h:19
ZdcNtuple::t_vxsumpt2
float t_vxsumpt2
Definition: ZdcNtuple.h:285
ZdcNtuple::t_ZdcEnergy
float t_ZdcEnergy[2]
Definition: ZdcNtuple.h:190
ZdcNtuple::t_ZdcModuleMaxADC
float t_ZdcModuleMaxADC[2][4]
Definition: ZdcNtuple.h:227
ZdcNtuple::m_eventShapes
const xAOD::HIEventShapeContainer * m_eventShapes
Definition: ZdcNtuple.h:118
ZdcNtuple::t_yColCentroid
float t_yColCentroid[2][4]
Definition: ZdcNtuple.h:274
DEBUG
#define DEBUG
Definition: page_access.h:11
AthHistogramming::m_treeMap
TreeMap_t m_treeMap
The map of TTree names to their pointers.
Definition: AthHistogramming.h:215
ZdcNtuple::m_caloSums
const xAOD::HIEventShapeContainer * m_caloSums
Definition: ZdcNtuple.h:117
xAOD::Vertex_v1::y
float y() const
Returns the y position.
ZdcNtuple::t_ZdcTrigEff
float t_ZdcTrigEff[2]
Definition: ZdcNtuple.h:195
ZdcNtuple::t_yCentroidPreAvgSubtr
float t_yCentroidPreAvgSubtr[2]
Definition: ZdcNtuple.h:270
AthHistogramming::m_histNamePrefix
std::string m_histNamePrefix
The prefix for the histogram THx name.
Definition: AthHistogramming.h:232
EL::AnaAlgorithm::m_hasEndInputFile
bool m_hasEndInputFile
the value of hasEndInputFile
Definition: AnaAlgorithm.h:594
ZdcNtuple::t_prescales
float t_prescales[200]
Definition: ZdcNtuple.h:171
ZdcNtuple::t_RpdChannelMaxSample
unsigned int t_RpdChannelMaxSample[2][16]
Definition: ZdcNtuple.h:256
ZdcNtuple::t_cc_pt
std::vector< float > t_cc_pt
Definition: ZdcNtuple.h:381
ZdcNtuple::proton_eta
std::vector< double > proton_eta
Definition: ZdcNtuple.h:402
xAOD::EventInfo_v1::errorState
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
Definition: EventInfo_v1.cxx:817
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
IGoodRunsListSelectionTool::passRunLB
virtual bool passRunLB(const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >()) const =0
Check if the current event passes the selection.
xAOD::EventInfo_v1::timeStamp
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
ZdcNtuple::m_gapPtMin
float m_gapPtMin
Definition: ZdcNtuple.h:322
AthHistogramAlgorithm::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition: AthHistogramAlgorithm.h:103
ZdcNtuple::t_ZdcTruthParticleEnergy
std::vector< float > t_ZdcTruthParticleEnergy
Definition: ZdcNtuple.h:210
xAOD::EventInfo_v1::isEventFlagBitSet
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Definition: EventInfo_v1.cxx:703
AthHistogramming::hist
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
Definition: AthHistogramming.cxx:198
ZdcNtuple::m_zdcAnalysisTool
asg::AnaToolHandle< ZDC::IZdcAnalysisTool > m_zdcAnalysisTool
Definition: ZdcNtuple.h:103
AthHistogramming::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Pointer to the THistSvc (event store by default)
Definition: AthHistogramming.h:194
xAOD::TrigDecision_v1::tbp
const std::vector< uint32_t > & tbp() const
Get the Trigger Before Prescale bits.
ZdcNtuple::proton_pt
std::vector< double > proton_pt
Definition: ZdcNtuple.h:401
dqt_zlumi_alleff_HIST.eff
int eff
Definition: dqt_zlumi_alleff_HIST.py:113
ZdcNtuple::t_cosDeltaReactionPlaneAngle
float t_cosDeltaReactionPlaneAngle
Definition: ZdcNtuple.h:276
str
Definition: BTagTrackIpAccessor.cxx:11
ZdcNtuple::t_ZdcModuleMinDeriv2nd
float t_ZdcModuleMinDeriv2nd[2][4]
Definition: ZdcNtuple.h:222
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
ZdcNtuple::proton_track_xSlope
std::vector< std::vector< float > > proton_track_xSlope
Definition: ZdcNtuple.h:412
ZdcNtuple::setupTriggerHistos
void setupTriggerHistos()
Definition: ZdcNtuple.cxx:1962
ZdcNtuple::t_ZdcTruthParticlePx
std::vector< float > t_ZdcTruthParticlePx
Definition: ZdcNtuple.h:207
xAOD::CaloCluster_v1::CELL_SIGNIFICANCE
@ CELL_SIGNIFICANCE
Cell significance = E/sig of the cell with the largest |E|/sig.
Definition: CaloCluster_v1.h:159
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
calibdata.copy
bool copy
Definition: calibdata.py:27
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
ZdcNtuple::t_centroidStatus
unsigned int t_centroidStatus[2]
Definition: ZdcNtuple.h:264
ZdcNtuple::enableOutputSamples
bool enableOutputSamples
Definition: ZdcNtuple.h:60
Trig::ChainGroup::getListOfTriggers
std::vector< std::string > getListOfTriggers() const
Definition: ChainGroup.cxx:467
ZdcNtuple::m_caloClusters
const xAOD::CaloClusterContainer * m_caloClusters
Definition: ZdcNtuple.h:123
ZdcNtuple::t_vxntrk
int t_vxntrk
Definition: ZdcNtuple.h:280
ZdcNtuple::t_RpdChannelPileupStretchedExpFitParams
float t_RpdChannelPileupStretchedExpFitParams[2][16][3]
Definition: ZdcNtuple.h:247
xAOD::EventInfo_v1::bcid
uint32_t bcid() const
The bunch crossing ID of the event.
AthHistogramming::m_name
std::string m_name
Instance name.
Definition: AthHistogramming.h:245
ZdcNtuple::t_trk_nPixHoles
std::vector< uint8_t > t_trk_nPixHoles
Definition: ZdcNtuple.h:369
ZdcNtuple::t_trk_index
std::vector< int > t_trk_index
Definition: ZdcNtuple.h:364
AthHistogramAlgorithm::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition: AthHistogramAlgorithm.h:91
ZdcNtuple::enableRPD
bool enableRPD
Definition: ZdcNtuple.h:88
ZdcNtuple::t_ZdcModuleAmpCorrLGRefit
float t_ZdcModuleAmpCorrLGRefit[2][4]
Definition: ZdcNtuple.h:233
ZdcNtuple::t_cc_raw_samp
std::vector< std::vector< float > > t_cc_raw_samp
Definition: ZdcNtuple.h:391
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
ZdcNtuple::t_fcalEtC
float t_fcalEtC
Definition: ZdcNtuple.h:308
ZdcNtuple::m_rerunChainGroups
std::vector< const Trig::ChainGroup * > m_rerunChainGroups
Definition: ZdcNtuple.h:138
ZdcNtuple::t_lumiBlock
uint32_t t_lumiBlock
Definition: ZdcNtuple.h:151
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
ZdcNtuple::m_zdcSumContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Definition: ZdcNtuple.h:109
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
ZdcNtuple::t_nstrong
int t_nstrong
Definition: ZdcNtuple.h:289
ZdcNtuple::t_nclus
uint32_t t_nclus
Definition: ZdcNtuple.h:380
xAOD::EventInfo_v1::Core
@ Core
Core flags describing the event.
Definition: EventInfo_v1.h:339
ZdcNtuple::t_RpdChannelPileupFrac
float t_RpdChannelPileupFrac[2][16]
Definition: ZdcNtuple.h:258
ZdcNtuple::t_actIntPerCrossing
float t_actIntPerCrossing
Definition: ZdcNtuple.h:160
VP1PartSpect::Pi
@ Pi
Definition: VP1PartSpectFlags.h:27
ZdcNtuple::t_mbts_countC
uint16_t t_mbts_countC
Definition: ZdcNtuple.h:337
ZdcNtuple::t_trigger_TBP
uint32_t t_trigger_TBP
Definition: ZdcNtuple.h:168
plot_times.times
def times(fn)
Definition: plot_times.py:11
ZdcNtuple::t_vx_trk_index
std::vector< int > t_vx_trk_index
Definition: ZdcNtuple.h:281
ZdcNtuple::t_puvxntrk
int t_puvxntrk
Definition: ZdcNtuple.h:287
AthHistogramming::tree
TTree * tree(const std::string &treeName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered TTrees.
Definition: AthHistogramming.cxx:378
fitman.k
k
Definition: fitman.py:528
ZdcNtuple::t_trk_quality
std::vector< int16_t > t_trk_quality
Definition: ZdcNtuple.h:363
ZdcNtuple::doZdcCalib
bool doZdcCalib
Definition: ZdcNtuple.h:92
xAOD::EventInfo_v1::SCT
@ SCT
The SCT.
Definition: EventInfo_v1.h:333
ZdcNtuple::t_cc_eta
std::vector< float > t_cc_eta
Definition: ZdcNtuple.h:382
ZdcNtuple::t_vtx_type
std::vector< int8_t > t_vtx_type
Definition: ZdcNtuple.h:295
xAOD::EventInfo_v1::actualInteractionsPerCrossing
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.
Definition: EventInfo_v1.cxx:380
ZdcNtuple::processInDet
void processInDet()
Definition: ZdcNtuple.cxx:1276
AthHistogramming::buildBookingString
void buildBookingString(std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
Method to build individual booking string.
Definition: AthHistogramming.cxx:560
ZdcNtuple::t_ZdcTruthParticleTime
std::vector< float > t_ZdcTruthParticleTime
Definition: ZdcNtuple.h:206
ZdcEventInfo::RPDDECODINGERROR
@ RPDDECODINGERROR
Definition: ZdcEventInfo.h:19
ServiceHandle< IIncidentSvc >
ANA_MSG_DEBUG
#define ANA_MSG_DEBUG(xmsg)
Macro printing debug messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:288
AthHistogramming::bookGetPointer
TH1 * bookGetPointer(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Definition: AthHistogramming.h:260
ZdcNtuple::processVInjInfo
void processVInjInfo()
Definition: ZdcNtuple.cxx:1251
ZdcNtuple::t_trk_nSctDead
std::vector< uint8_t > t_trk_nSctDead
Definition: ZdcNtuple.h:368
ZdcNtuple::proton_track_yLocal
std::vector< std::vector< float > > proton_track_yLocal
Definition: ZdcNtuple.h:410