ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TRTMonitoringRun3ESD_Alg Class Reference

#include <TRTMonitoringRun3ESD_Alg.h>

Inheritance diagram for TRTMonitoringRun3ESD_Alg:
Collaboration diagram for TRTMonitoringRun3ESD_Alg:

Public Types

enum  Environment_t {
  Environment_t::user = 0, Environment_t::online, Environment_t::tier0, Environment_t::tier0Raw,
  Environment_t::tier0ESD, Environment_t::AOD, Environment_t::altprod
}
 Specifies the processing environment. More...
 
enum  DataType_t {
  DataType_t::userDefined = 0, DataType_t::monteCarlo, DataType_t::collisions, DataType_t::cosmics,
  DataType_t::heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...
 

Public Member Functions

 TRTMonitoringRun3ESD_Alg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~TRTMonitoringRun3ESD_Alg ()
 
virtual StatusCode initialize () override
 initialize More...
 
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms More...
 
virtual StatusCode execute (const EventContext &ctx) const override
 Applies filters and trigger requirements. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by reference. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by reference. More...
 
template<typename... T>
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference. More...
 
void fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by name. More...
 
void fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by name. More...
 
template<typename... T>
void fill (const std::string &groupName, T &&... variables) const
 Fills a variadic list of variables to a group by name. More...
 
Environment_t environment () const
 Accessor functions for the environment. More...
 
Environment_t envStringToEnum (const std::string &str) const
 Convert the environment string from the python configuration to an enum object. More...
 
DataType_t dataType () const
 Accessor functions for the data type. More...
 
DataType_t dataTypeStringToEnum (const std::string &str) const
 Convert the data type string from the python configuration to an enum object. More...
 
const ToolHandle< GenericMonitoringTool > & getGroup (const std::string &name) const
 Get a specific monitoring tool from the tool handle array. More...
 
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool () const
 Get the trigger decision tool member. More...
 
bool trigChainsArePassed (const std::vector< std::string > &vTrigNames) const
 Check whether triggers are passed. More...
 
SG::ReadHandle< xAOD::EventInfoGetEventInfo (const EventContext &) const
 Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average integrated luminosity multiplied by the live fraction. More...
 
virtual StatusCode parseList (const std::string &line, std::vector< std::string > &result) const
 Parse a string into a vector. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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
 

Public Attributes

 flags = initConfigFlags()
 
 Files
 
 isMC
 
 HISTFileName
 
 Dynamic
 
 GeometryPixel
 
 GeometrySCT
 
 GeometryTRT
 
 GlobalTag
 
 cfg = MainServicesCfg(flags)
 
def TRTMonitoringRun3Acc = TRTMonitoringRun3ESD_AlgConfig(flags)
 

Protected Member Functions

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...
 

Protected Attributes

ToolHandleArray< GenericMonitoringToolm_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools. More...
 
PublicToolHandle< Trig::TrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 Tool to tell whether a specific trigger is passed. More...
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools. More...
 
SG::ReadCondHandleKey< LuminosityCondDatam_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
 
SG::ReadCondHandleKey< LBDurationCondDatam_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
 
SG::ReadCondHandleKey< TrigLiveFractionCondDatam_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
 
AthMonitorAlgorithm::Environment_t m_environment
 Instance of the Environment_t enum. More...
 
AthMonitorAlgorithm::DataType_t m_dataType
 Instance of the DataType_t enum. More...
 
Gaudi::Property< std::string > m_environmentStr {this,"Environment","user"}
 Environment string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_dataTypeStr {this,"DataType","userDefined"}
 DataType string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_triggerChainString {this,"TriggerChain",""}
 Trigger chain string pulled from the job option and parsed into a vector. More...
 
std::vector< std::string > m_vTrigChainNames
 Vector of trigger chain names parsed from trigger chain string. More...
 
Gaudi::Property< std::string > m_fileKey {this,"FileKey",""}
 Internal Athena name for file. More...
 
Gaudi::Property< bool > m_useLumi {this,"EnableLumi",false}
 Allows use of various luminosity functions. More...
 
Gaudi::Property< float > m_defaultLBDuration {this,"DefaultLBDuration",60.}
 Default duration of one lumi block. More...
 
Gaudi::Property< int > m_detailLevel {this,"DetailLevel",0}
 Sets the level of detail used in the monitoring. More...
 
SG::ReadHandleKey< xAOD::EventInfom_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate. More...
 

Private Types

enum  GasType { Xe = 0, Ar = 1, Kr = 2 }
 
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode fillTRTTracks (const EventContext &ctx, const xAOD::TrackParticleContainer &trackCollection, const xAOD::TrigDecision *trigDecision, const ComTime *comTimeObject, const xAOD::EventInfo &eventInfo) const
 
StatusCode fillTRTHighThreshold (const xAOD::TrackParticleContainer &trackCollection, const xAOD::EventInfo &eventInfo, const EventContext &ctx) const
 
int strawLayerNumber (int strawLayerNumber, int LayerNumber) const
 
int strawNumber (int strawNumber, int strawlayerNumber, int LayerNumber) const
 
int chipToBoard (int chip) const
 
int chipToBoard_EndCap (int chip) const
 
float radToDegrees (float radValue) const
 
int strawNumber_reverse (int inp_strawnumber, int *strawNumber, int *strawlayerNumber, int *LayerNumber) const
 
int strawLayerNumber_reverse (int strawLayerNumInp, int *strawLayerNumber, int *LayerNumber) const
 
int strawNumberEndCap (int strawNumber, int strawLayerNumber, int LayerNumber, int phi_stack, int side) const
 
bool checkEventBurst (const TRT_RDO_Container &rdoContainer) const
 
GasType Straw_Gastype (int stat) const
 
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...
 

Private Attributes

BooleanProperty m_ArgonXenonSplitter {this, "doArgonXenonSeparation", true}
 
const AtlasDetectorIDm_idHelper
 
ToolHandle< ITRT_StrawStatusSummaryToolm_sumTool
 
ServiceHandle< ITRT_StrawNeighbourSvcm_TRTStrawNeighbourSvc
 
ToolHandle< ITRT_CalDbToolm_TRTCalDbTool
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trackCollectionKey {this, "TrackParticleContainerKeys", "InDetTrackParticles", "Keys for TrackParticle Container"}
 
SG::ReadHandleKey< xAOD::EventInfom_xAODEventInfoKey {this, "xAODEventInfo", "EventInfo", "Name of EventInfo object"}
 
SG::ReadHandleKey< InDetTimeCollectionm_TRT_BCIDCollectionKey {this, "TRTBCIDCollectionName", "TRT_BCID", "Name of TRT BCID collection"}
 
SG::ReadHandleKey< ComTimem_comTimeObjectKey {this, "ComTimeObjectName", "TRT_Phase", "Name of ComTime object"}
 
SG::ReadHandleKey< xAOD::TrigDecisionm_trigDecisionKey {this, "TrigDecisionObjectName", "xTrigDecision", "Name of trigger decision object"}
 
ToolHandle< Trk::ITrackSummaryToolm_TrackSummaryTool {this, "TrackSummaryTool", "InDetTrackSummaryTool", "Track summary tool name"}
 
ToolHandle< ITRT_DriftFunctionToolm_drifttool
 
const TRT_IDm_pTRTHelper
 
const InDetDD::TRT_DetectorManagerm_mgr
 
bool m_doTracksMon
 
bool m_doStraws
 
bool m_doChips
 
bool m_doShift
 
bool m_doExpert
 
std::vector< std::vector< unsigned char > > m_mat_chip_B {64, std::vector<unsigned char>(1642)}
 
std::vector< std::vector< unsigned char > > m_mat_chip_E {64, std::vector<unsigned char>(3840)}
 
float m_DistToStraw
 
bool m_isCosmics
 
int m_min_si_hits
 
int m_min_pixel_hits
 
int m_min_sct_hits
 
int m_min_trt_hits
 
int m_minTRThits
 
float m_minP
 
float m_min_pT
 
int m_EventBurstCut
 
ToolHandle< InDet::IInDetTrackSelectionToolm_trackSelTool
 
std::string m_name
 
std::unordered_map< std::string, size_t > m_toolLookupMap
 
const ToolHandle< GenericMonitoringToolm_dummy
 
Gaudi::Property< bool > m_enforceExpressTriggers
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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
 

Static Private Attributes

static const int s_numberOfBarrelStacks = 32
 
static const int s_numberOfEndCapStacks = 32
 
static const int s_Straw_max [2] = {1642, 3840}
 
static const int s_iStack_max [2] = {32, 64}
 
static const int s_iChip_max [2] = {104, 240}
 
static const int s_numberOfStacks [2] = {32, 32}
 
static const int s_moduleNum [2] = {96, 64}
 

Detailed Description

Definition at line 59 of file TRTMonitoringRun3ESD_Alg.h.

Member Typedef Documentation

◆ MonVarVec_t

typedef std::vector<std::reference_wrapper<Monitored::IMonitoredVariable> > AthMonitorAlgorithm::MonVarVec_t
privateinherited

Definition at line 365 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 191 of file AthMonitorAlgorithm.h.

191  {
192  userDefined = 0,
193  monteCarlo,
194  collisions,
195  cosmics,
196  heavyIonCollisions,
197  };

◆ Environment_t

enum AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 172 of file AthMonitorAlgorithm.h.

172  {
173  user = 0,
174  online,
175  tier0,
176  tier0Raw,
177  tier0ESD,
178  AOD,
179  altprod,
180  };

◆ GasType

Enumerator
Xe 
Ar 
Kr 

Definition at line 67 of file TRTMonitoringRun3ESD_Alg.h.

67 { Xe = 0, Ar = 1, Kr = 2 };

Constructor & Destructor Documentation

◆ TRTMonitoringRun3ESD_Alg()

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

Definition at line 41 of file TRTMonitoringRun3ESD_Alg.cxx.

42 :AthMonitorAlgorithm(name,pSvcLocator)
43 ,m_idHelper(nullptr)
44 ,m_sumTool("TRT_StrawStatusSummaryTool", this)
45 ,m_TRTStrawNeighbourSvc("TRT_StrawNeighbourSvc", name)
46 ,m_TRTCalDbTool("TRT_CalDbTool", this)
47 ,m_drifttool("TRT_DriftFunctionTool", this)
48 ,m_pTRTHelper(nullptr)
49 ,m_mgr(nullptr)
50 ,m_isCosmics(false)
51 ,m_minTRThits(10)
52 ,m_minP(0)
53 ,m_EventBurstCut(-1)
54 ,m_trackSelTool("InDet::InDetTrackSelectionTool/TrackSelectionTool", this)
55 {
56  declareProperty("InDetTRTStrawStatusSummaryTool", m_sumTool);
57  declareProperty("NeighbourSvc", m_TRTStrawNeighbourSvc);
58  declareProperty("ITRT_CalDbTool", m_TRTCalDbTool);
59  declareProperty("DriftFunctionTool", m_drifttool);
60  declareProperty("TrackSelectionTool", m_trackSelTool);
61  declareProperty("doExpert", m_doExpert = false);
62  declareProperty("DoTracksMon", m_doTracksMon = true);
63  declareProperty("doStraws", m_doStraws = true);
64  declareProperty("doChips", m_doChips = true);
65  declareProperty("doShift", m_doShift = true);
66  declareProperty("DistanceToStraw", m_DistToStraw = 0.4);
67  declareProperty("min_si_hits", m_min_si_hits = 1);
68  declareProperty("min_pixel_hits", m_min_pixel_hits = 0);
69  declareProperty("min_sct_hits", m_min_sct_hits = 0);
70  declareProperty("min_trt_hits", m_min_trt_hits = 10);
71  declareProperty("MinTRTHitCut", m_minTRThits = 10);
72  declareProperty("MinTrackP", m_minP = 0.0 * CLHEP::GeV);
73  declareProperty("min_pT", m_min_pT = 0.5 * CLHEP::GeV);
74 }

◆ ~TRTMonitoringRun3ESD_Alg()

TRTMonitoringRun3ESD_Alg::~TRTMonitoringRun3ESD_Alg ( )
virtual

Definition at line 76 of file TRTMonitoringRun3ESD_Alg.cxx.

76 {}

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ checkEventBurst()

bool TRTMonitoringRun3ESD_Alg::checkEventBurst ( const TRT_RDO_Container rdoContainer) const
private

Definition at line 382 of file TRTMonitoringRun3ESD_Alg.cxx.

382  {
383 //----------------------------------------------------------------------------------//
384  if (m_EventBurstCut <= 0) return true;
385 
386  int nHLHits = 0;
387  TRT_RDO_Container::const_iterator RDO_CollectionBegin = rdoContainer.begin();
388  TRT_RDO_Container::const_iterator RDO_CollectionEnd = rdoContainer.end();
389 
390  for (; RDO_CollectionBegin != RDO_CollectionEnd; ++RDO_CollectionBegin) {
391  const InDetRawDataCollection<TRT_RDORawData> *TRT_Collection(*RDO_CollectionBegin);
392 
393  if (!TRT_Collection) continue;
394  else {
395  DataVector<TRT_RDORawData>::const_iterator p_rdo = TRT_Collection->begin();
396 
397  for (; p_rdo != TRT_Collection->end(); ++p_rdo) {
398  const TRT_LoLumRawData *p_lolum = dynamic_cast<const TRT_LoLumRawData *>(*p_rdo);
399 
400  if (!p_lolum) continue;
401 
402  if (p_lolum->highLevel()) nHLHits++;
403  }
404  }
405  }
406 
407  if (nHLHits > m_EventBurstCut) return false;
408  else return true;
409 }

◆ chipToBoard()

int TRTMonitoringRun3ESD_Alg::chipToBoard ( int  chip) const
private

◆ chipToBoard_EndCap()

int TRTMonitoringRun3ESD_Alg::chipToBoard_EndCap ( int  chip) const
private

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

Returns
the current value of the class's DataType_t instance.

Definition at line 221 of file AthMonitorAlgorithm.h.

221 { return m_dataType; }

◆ dataTypeStringToEnum()

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::dataTypeStringToEnum ( const std::string &  str) const
inherited

Convert the data type string from the python configuration to an enum object.

Returns
a value in the DataType_t enumeration which matches the input string.

Definition at line 140 of file AthMonitorAlgorithm.cxx.

140  {
141  // convert the string to all lowercase
142  std::string lowerCaseStr = str;
143  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
144 
145  // check if it matches one of the enum choices
146  if( lowerCaseStr == "userdefined" ) {
148  } else if( lowerCaseStr == "montecarlo" ) {
149  return DataType_t::monteCarlo;
150  } else if( lowerCaseStr == "collisions" ) {
151  return DataType_t::collisions;
152  } else if( lowerCaseStr == "cosmics" ) {
153  return DataType_t::cosmics;
154  } else if( lowerCaseStr == "heavyioncollisions" ) {
156  } else { // otherwise, warn the user and return "userDefined"
157  ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158  <<str<<", returning userDefined.");
160  }
161 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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; }

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

Returns
the current value of the class's Environment_t instance.

Definition at line 205 of file AthMonitorAlgorithm.h.

205 { return m_environment; }

◆ envStringToEnum()

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::envStringToEnum ( const std::string &  str) const
inherited

Convert the environment string from the python configuration to an enum object.

Returns
a value in the Environment_t enumeration which matches the input string.

Definition at line 112 of file AthMonitorAlgorithm.cxx.

112  {
113  // convert the string to all lowercase
114  std::string lowerCaseStr = str;
115  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
116 
117  // check if it matches one of the enum choices
118  if( lowerCaseStr == "user" ) {
119  return Environment_t::user;
120  } else if( lowerCaseStr == "online" ) {
121  return Environment_t::online;
122  } else if( lowerCaseStr == "tier0" ) {
123  return Environment_t::tier0;
124  } else if( lowerCaseStr == "tier0raw" ) {
126  } else if( lowerCaseStr == "tier0esd" ) {
128  } else if( lowerCaseStr == "aod" ) {
129  return Environment_t::AOD;
130  } else if( lowerCaseStr == "altprod" ) {
131  return Environment_t::altprod;
132  } else { // otherwise, warn the user and return "user"
133  ATH_MSG_WARNING("AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134  <<str<<", returning user.");
135  return Environment_t::user;
136  }
137 }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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 AthMonitorAlgorithm::execute ( const EventContext &  ctx) const
overridevirtualinherited

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 73 of file AthMonitorAlgorithm.cxx.

73  {
74 
75  // Checks that all of the DQ filters are passed. If any one of the filters
76  // fails, return SUCCESS code and do not fill the histograms with the event.
77  for ( const auto& filterItr : m_DQFilterTools ) {
78  if (!filterItr->accept()) {
79  ATH_MSG_DEBUG("Event rejected due to filter tool.");
80  return StatusCode::SUCCESS;
81  }
82  }
83 
84  // Trigger: If there is a decision tool and the chains fail, skip the event.
86  ATH_MSG_DEBUG("Event rejected due to trigger filter.");
87  return StatusCode::SUCCESS;
88  }
89 
90  ATH_MSG_DEBUG("Event accepted!");
91  return fillHistograms(ctx);
92 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::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 & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ fillHistograms()

StatusCode TRTMonitoringRun3ESD_Alg::fillHistograms ( const EventContext &  ctx) const
overridevirtual

adds event to the monitoring histograms

User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.

Parameters
ctxforwarded from execute
Returns
StatusCode

Implements AthMonitorAlgorithm.

Definition at line 1462 of file TRTMonitoringRun3ESD_Alg.cxx.

1462  {
1463  using namespace Monitored;
1464  bool passEventBurst = true;
1465 
1466  // Declare the quantities which should be monitored
1467 
1468  // Set the values of the monitored variables for the event
1469 
1470  ATH_MSG_VERBOSE("Monitoring Histograms being filled");
1471 
1475 
1476  if (!xAODEventInfo.isValid()) {
1477  ATH_MSG_ERROR("Could not find event info object " << m_xAODEventInfoKey.key() <<
1478  " in store");
1479  return StatusCode::FAILURE;
1480  }
1481 
1482  if (m_doTracksMon) {
1483  if (!trackCollection.isValid()) {
1484  ATH_MSG_ERROR("Could not find track collection " << m_trackCollectionKey.key() <<
1485  " in store");
1486  return StatusCode::FAILURE;
1487  }
1488  const xAOD::TrigDecision* trigDecision = nullptr;
1489  if (! m_trigDecisionKey.empty()) {
1490  trigDecision = SG::get(m_trigDecisionKey, ctx);
1491  if (!trigDecision) {
1492  ATH_MSG_INFO("Could not find trigger decision object " << m_trigDecisionKey.key() <<
1493  " in store");
1494  }
1495  }
1496  const ComTime *comTimeObject=nullptr;
1497  if (!m_comTimeObjectKey.empty()) {
1498  SG::ReadHandle<ComTime> tmp_comTimeObject(m_comTimeObjectKey, ctx);
1499  if (!tmp_comTimeObject.isValid()) {
1500  // NOTE: failing to retrieve ComTime from store for some reason
1501  ATH_MSG_DEBUG("Could not find com time object " << m_comTimeObjectKey.key() << " in store" );
1502  }
1503  else {
1504  comTimeObject = tmp_comTimeObject.cptr();
1505  }
1506  }
1507  ATH_CHECK( fillTRTTracks(ctx, *trackCollection, trigDecision, comTimeObject, *xAODEventInfo) );
1508  }
1509 
1510  if (!m_doTracksMon) {
1511  if (!trackCollection.isValid()) {
1512  ATH_MSG_ERROR("Could not find track collection " << m_trackCollectionKey.key() <<
1513  " in store");
1514  return StatusCode::FAILURE;
1515  }
1516  }
1517 
1518  if (passEventBurst) { // ESD files does not have an RDO container to pass event burst, what to do?
1519  ATH_CHECK( fillTRTHighThreshold(*trackCollection, *xAODEventInfo, ctx) );
1520  }
1521 
1522 
1523 
1524  return StatusCode::SUCCESS;
1525 }

◆ fillTRTHighThreshold()

StatusCode TRTMonitoringRun3ESD_Alg::fillTRTHighThreshold ( const xAOD::TrackParticleContainer trackCollection,
const xAOD::EventInfo eventInfo,
const EventContext &  ctx 
) const
private

Definition at line 1237 of file TRTMonitoringRun3ESD_Alg.cxx.

1238  {
1239 //----------------------------------------------------------------------------------//
1240 
1241  auto IntLum = Monitored::Scalar<float>("IntLum", 0.0);
1242  auto LBvsLum = Monitored::Scalar<float>("LBvsLum", 0.0);
1243  auto LBvsTime_x = Monitored::Scalar<float>("LBvsTime_x", 0.0);
1244  auto LBvsTime_y = Monitored::Scalar<float>("LBvsTime_y", 0.0);
1245  auto IntLumWeight = Monitored::Scalar<float>("IntLumWeight", 0.0);
1246  auto LBvsLumWeight = Monitored::Scalar<float>("LBvsLumWeight", 0.0);
1247 
1248  int lumiBlockNumber;
1249  int timeStamp;
1250  lumiBlockNumber = eventInfo.lumiBlock();
1251  timeStamp = eventInfo.timeStamp();
1252 
1253  int runNumber;
1254  runNumber = eventInfo.runNumber();
1255  // get Online Luminosity
1256  double intLum = (lbDuration(ctx) * lbAverageLuminosity(ctx));
1257  IntLum = 0.5;
1258  IntLumWeight = intLum;
1259  fill("SmryHistograms", IntLumWeight, IntLum);
1260  LBvsLum = lumiBlockNumber;
1261  LBvsLumWeight = intLum;
1262  fill("SmryHistograms", LBvsLumWeight, LBvsLum);
1263  LBvsTime_x = lumiBlockNumber;
1264  LBvsTime_y = timeStamp;
1265  fill("SmryHistograms", LBvsTime_x, LBvsTime_y);
1266 
1267  ATH_MSG_VERBOSE("Filling TRT Aging Histos");
1268 
1269  auto Trackr_HT = Monitored::Scalar<float>("Trackr_HT", 0.0);
1270  auto Trackr_All = Monitored::Scalar<float>("Trackr_All", 0.0);
1271  auto Trackz_HT = Monitored::Scalar<float>("Trackz_HT", 0.0);
1272  auto Trackz_All = Monitored::Scalar<float>("Trackz_All", 0.0);
1273 
1274  auto p_trk = trackCollection.begin();
1275  const Trk::Perigee *perigee = nullptr;
1276  const DataVector<const Trk::TrackParameters> *AllTrkPar(nullptr);
1278 
1279  for (; p_trk != trackCollection.end(); ++p_trk) {
1280  AllTrkPar = ((*p_trk)->track())->trackParameters();
1281 
1282  for (p_trkpariter = AllTrkPar->begin(); p_trkpariter != AllTrkPar->end(); ++p_trkpariter) {
1283  if ((perigee = dynamic_cast<const Trk::Perigee *>(*p_trkpariter))) break;
1284  }
1285 
1286  // If you went through all of the track parameters and found no perigee mearsurement
1287  // then something is wrong with the track and so don't use the track.
1288  // i.e. continue to the next track.
1289  if (!perigee) {
1290  ATH_MSG_DEBUG("No perigee mearsurement found for the track. This entry will not be propogated to aging histograms.");
1291  continue;
1292  }
1293 
1294  float track_eta = perigee->eta();
1295  float track_p = (perigee->parameters()[Trk::qOverP] != 0.) ? std::abs(1. / (perigee->parameters()[Trk::qOverP])) : 10e7;
1296  const Trk::TrackStates *trackStates = ((*p_trk)->track())->trackStateOnSurfaces();
1297 
1298  if (trackStates == nullptr) continue;
1299 
1300  Trk::TrackStates::const_iterator TSOSItBegin = trackStates->begin();
1301  Trk::TrackStates::const_iterator TSOSItEnd = trackStates->end();
1302 
1303  uint8_t tempHitsVariable = 0;
1304  (*p_trk)->summaryValue(tempHitsVariable, xAOD::SummaryType::numberOfTRTHits);
1305  int trt_hits = unsigned(tempHitsVariable);
1306 
1307  const bool passed_track_preselection = (static_cast<bool>(m_trackSelTool->accept(**p_trk)) || m_isCosmics) &&
1308  trt_hits >= 6. &&
1309  std::abs(track_p) >= 5000.;
1310 
1311  if (!passed_track_preselection) continue;
1312 
1313  // Now we have hit informations
1314  const Trk::TrackStates *track_states = ((*p_trk)->track())->trackStateOnSurfaces();
1315 
1316  if (track_states) {
1317  ATH_MSG_DEBUG("This track has " << track_states->size() << " track states on surface.");
1318  } else {
1319  ATH_MSG_DEBUG("This track has null track states on surface.");
1320  continue;
1321  }
1322 
1323  int barrel_ec_side = 0;
1324  int layer_or_wheel = 0;
1325  int phi_module = 0;
1326  int straw_layer = 0;
1327 
1328  for (; TSOSItBegin != TSOSItEnd; ++TSOSItBegin) {
1329  if ((*TSOSItBegin) == nullptr) continue;
1330  if ( !((*TSOSItBegin)->type(Trk::TrackStateOnSurface::Measurement)) ) continue;
1331 
1332  const InDet::TRT_DriftCircleOnTrack *trtCircle = dynamic_cast<const InDet::TRT_DriftCircleOnTrack *>((*TSOSItBegin)->measurementOnTrack());
1333  const Trk::TrackParameters *aTrackParam = dynamic_cast<const Trk::TrackParameters *>((*TSOSItBegin)->trackParameters());
1334 
1335  if (!trtCircle) continue;
1336  if (!aTrackParam) continue;
1337 
1338 
1339  Identifier DCoTId = trtCircle->identify();
1340  barrel_ec_side = m_pTRTHelper->barrel_ec(DCoTId);
1341  layer_or_wheel = m_pTRTHelper->layer_or_wheel(DCoTId);
1342  phi_module = m_pTRTHelper->phi_module(DCoTId);
1343  straw_layer = m_pTRTHelper->straw_layer(DCoTId);
1344  int Ba_Ec = abs(barrel_ec_side) - 1; // Ba_Ec: 0 is barrel, 1 is Endcap
1345  int Side = barrel_ec_side > 0 ? 0 : 1; // Side : 0 is side_A, 1 is side_C
1346  double xPos = trtCircle->globalPosition().x(); // Global x coordinate
1347  double yPos = trtCircle->globalPosition().y(); // Global y coordinate
1348  double zPos = trtCircle->globalPosition().z(); // Global z coordinate
1349  double RPos = sqrt(xPos * xPos + yPos * yPos);
1350  Identifier surfaceID;
1351  surfaceID = trtCircle->identify();
1352  // Assume always Xe if m_ArgonXenonSplitter is not enabled, otherwise check the straw status (good is Xe, non-good is Ar)
1353  const InDet::TRT_DriftCircle *RawDriftCircle = dynamic_cast<const InDet::TRT_DriftCircle *>(trtCircle->prepRawData());
1354 
1355  if (!RawDriftCircle) { //coverity 25097
1356  // This shouldn't happen in normal conditions because trtCircle is a TRT_DriftCircleOnTrack object
1357  ATH_MSG_WARNING("RawDriftCircle object returned null");
1358  continue;
1359  }
1360 
1361  int middleHTbit = RawDriftCircle->getWord() & 0x00020000;
1362  //0x00020000 = 0000 0000 0000 0000 0000 0010 0000 0000 0000 0000
1363  bool is_middleHTbit_high = (middleHTbit != 0);
1364  // bool isHighLevel= RawDriftCircle->highLevel();
1365  bool isHighLevel = is_middleHTbit_high; // Hardcoded HT Middle Bit
1366  bool shortStraw = false;
1367  int InputBar = 0;
1368 
1369  if (std::abs(track_eta) < 2. && Ba_Ec == 0.) {
1370  if ((layer_or_wheel == 0) && (phi_module < 4 || (phi_module > 7 && phi_module < 12) || (phi_module > 15 && phi_module < 20) || (phi_module > 23 && phi_module < 28))) InputBar = 1;
1371  else if ((runNumber >= 296939) && (layer_or_wheel == 0) && (phi_module > 27)) InputBar = 1;
1372  else if (layer_or_wheel == 0)
1373  InputBar = 0;
1374  else if ((layer_or_wheel == 1) && ((phi_module > 1 && phi_module < 6) || (phi_module > 9 && phi_module < 14) || (phi_module > 17 && phi_module < 22) || (phi_module > 25 && phi_module < 30)))
1375  InputBar = 1;
1376  else if (layer_or_wheel == 1)
1377  InputBar = 0;
1378  else if (layer_or_wheel == 2 && phi_module % 2 != 0)
1379  InputBar = 1;
1380  else if (layer_or_wheel == 2)
1381  InputBar = 0;
1382  else {
1383  ATH_MSG_WARNING("Should not pass here");
1384  continue;
1385  }
1386 
1387  if ((layer_or_wheel == 0) && straw_layer < 9.)
1388  shortStraw = true;
1389  }
1390 
1391  // Fill Barrel Plots
1392  if ((!shortStraw) && (Ba_Ec == 0)) {
1393  Trackz_All = zPos;
1394  fill("TRTAgingHistograms0"+std::to_string(layer_or_wheel)+std::to_string(InputBar), Trackz_All);
1395  if (isHighLevel) {
1396  Trackz_HT = zPos;
1397  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+std::to_string(layer_or_wheel)+std::to_string(InputBar), Trackz_HT);
1398  }
1399  }
1400 
1401  if (shortStraw) {
1402  if (zPos > 0.) {
1403  Trackz_All = zPos;
1404  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+"3"+std::to_string(InputBar), Trackz_All);
1405  if (isHighLevel) {
1406  Trackz_HT = zPos;
1407  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+"3"+std::to_string(InputBar), Trackz_HT);
1408  }
1409  } else {
1410  Trackz_All = zPos;
1411  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+"4"+std::to_string(InputBar), Trackz_All);
1412 
1413  if (isHighLevel) {
1414  Trackz_HT = zPos;
1415  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+"4"+std::to_string(InputBar), Trackz_HT);
1416  }
1417  }
1418  }
1419 
1420  // End of Barrel plots, moving to Endcap plots
1421  int WType = -1;
1422 
1423  if ((Ba_Ec == 1) && (layer_or_wheel < 6) &&
1424  ((straw_layer > 3 && straw_layer < 8) ||
1425  (straw_layer > 11))) {
1426  WType = 0;
1427  }
1428  if ((Ba_Ec == 1) && (layer_or_wheel >= 6) &&
1429  (straw_layer > 3)) {
1430  WType = 3;
1431  }
1432  if ((Ba_Ec == 1) && (layer_or_wheel < 6) &&
1433  ((straw_layer > -1 && straw_layer < 4) ||
1434  (straw_layer > 7 && straw_layer < 12))) {
1435  WType = 2;
1436  }
1437  if ((Ba_Ec == 1) && (layer_or_wheel >= 6) &&
1438  ((straw_layer > -1 && straw_layer < 4))) {
1439  WType = 1;
1440  }
1441 
1442  if (WType < 0 && Ba_Ec == 1) { // Coverity CID 25096
1443  ATH_MSG_WARNING("The variable \"WType\" is less than zero!.");
1444  continue;
1445  }
1446 
1447  if (Ba_Ec == 1) {
1448  Trackr_All = RPos;
1449  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+std::to_string(WType)+std::to_string(Side), Trackr_All);
1450  if (isHighLevel) {
1451  Trackr_HT = RPos;
1452  fill("TRTAgingHistograms"+std::to_string(Ba_Ec)+std::to_string(WType)+std::to_string(Side), Trackr_HT);
1453  }
1454  }
1455  }
1456  }
1457 
1458  return StatusCode::SUCCESS;
1459 }

◆ fillTRTTracks()

StatusCode TRTMonitoringRun3ESD_Alg::fillTRTTracks ( const EventContext &  ctx,
const xAOD::TrackParticleContainer trackCollection,
const xAOD::TrigDecision trigDecision,
const ComTime comTimeObject,
const xAOD::EventInfo eventInfo 
) const
private

Definition at line 414 of file TRTMonitoringRun3ESD_Alg.cxx.

418  {
419 //----------------------------------------------------------------------------------//
420  ATH_MSG_VERBOSE("Filling TRT Tracks Histos");
421 
422  // TProfile
423  auto ValidRawDriftTimeonTrkS_x = Monitored::Scalar<float>("ValidRawDriftTimeonTrkS_x", 0.0);
424  auto ValidRawDriftTimeonTrkS_y = Monitored::Scalar<float>("ValidRawDriftTimeonTrkS_y", 0.0);
425  auto ValidRawDriftTimeonTrkC_x = Monitored::Scalar<float>("ValidRawDriftTimeonTrkC_x", 0.0);
426  auto ValidRawDriftTimeonTrkC_y = Monitored::Scalar<float>("ValidRawDriftTimeonTrkC_y", 0.0);
427  auto HitTronTMapC_x = Monitored::Scalar<float>("HitTronTMapC_x", 0.0);
428  auto HitTronTMapC_y = Monitored::Scalar<float>("HitTronTMapC_y", 0.0);
429  auto HitTronTwEPCMapS_x = Monitored::Scalar<float>("HitTronTwEPCMapS_x", 0.0);
430  auto HitTronTwEPCMapS_y = Monitored::Scalar<float>("HitTronTwEPCMapS_y", 0.0);
431  auto HitTronTwEPCMapC_x = Monitored::Scalar<float>("HitTronTwEPCMapC_x", 0.0);
432  auto HitTronTwEPCMapC_y = Monitored::Scalar<float>("HitTronTwEPCMapC_y", 0.0);
433  auto AvgTroTDetPhi_B_Ar_x = Monitored::Scalar<float>("AvgTroTDetPhi_B_Ar_x", 0.0);
434  auto AvgTroTDetPhi_B_Ar_y = Monitored::Scalar<float>("AvgTroTDetPhi_B_Ar_y", 0.0);
435  auto AvgTroTDetPhi_B_x = Monitored::Scalar<float>("AvgTroTDetPhi_B_x", 0.0);
436  auto AvgTroTDetPhi_B_y = Monitored::Scalar<float>("AvgTroTDetPhi_B_y", 0.0);
437  auto AvgTroTDetPhi_E_Ar_x = Monitored::Scalar<float>("AvgTroTDetPhi_E_Ar_x", 0.0);
438  auto AvgTroTDetPhi_E_Ar_y = Monitored::Scalar<float>("AvgTroTDetPhi_E_Ar_y", 0.0);
439  auto AvgTroTDetPhi_E_x = Monitored::Scalar<float>("AvgTroTDetPhi_E_x", 0.0);
440  auto AvgTroTDetPhi_E_y = Monitored::Scalar<float>("AvgTroTDetPhi_E_y", 0.0);
441  auto NumHoTDetPhi_B_x = Monitored::Scalar<float>("NumHoTDetPhi_B_x", 0.0);
442  auto NumHoTDetPhi_B_y = Monitored::Scalar<float>("NumHoTDetPhi_B_y", 0.0);
443  auto NumHoTDetPhi_E_x = Monitored::Scalar<float>("NumHoTDetPhi_E_x", 0.0);
444  auto NumHoTDetPhi_E_y = Monitored::Scalar<float>("NumHoTDetPhi_E_y", 0.0);
445  auto EvtPhaseDetPhi_B_x = Monitored::Scalar<float>("EvtPhaseDetPhi_B_x", 0.0);
446  auto EvtPhaseDetPhi_B_y = Monitored::Scalar<float>("EvtPhaseDetPhi_B_y", 0.0);
447  auto EvtPhaseDetPhi_E_x = Monitored::Scalar<float>("EvtPhaseDetPhi_E_x", 0.0);
448  auto EvtPhaseDetPhi_E_y = Monitored::Scalar<float>("EvtPhaseDetPhi_E_y", 0.0);
449  auto NTrksperLB_x = Monitored::Scalar<float>("NTrksperLB_x", 0.0);
450  auto NTrksperLB_y = Monitored::Scalar<float>("NTrksperLB_y", 0.0);
451 
452 
453  // TH1F
454  auto DriftTimeonTrkDist_B = Monitored::Scalar<float>("DriftTimeonTrkDist_B", 0.0);
455  auto DriftTimeonTrkDist_B_Ar = Monitored::Scalar<float>("DriftTimeonTrkDist_B_Ar", 0.0);
456  auto DriftTimeonTrkDist_E_Ar = Monitored::Scalar<float>("DriftTimeonTrkDist_E_Ar", 0.0);
457  auto DriftTimeonTrkDist_E = Monitored::Scalar<float>("DriftTimeonTrkDist_E", 0.0);
458  auto NumTrksDetPhi_B = Monitored::Scalar<float>("NumTrksDetPhi_B", 0.0);
459  auto NumTrksDetPhi_E = Monitored::Scalar<float>("NumTrksDetPhi_E", 0.0);
460  auto Pull_Biased_Barrel = Monitored::Scalar<float>("Pull_Biased_Barrel", 0.0);
461  auto Pull_Biased_EndCap = Monitored::Scalar<float>("Pull_Biased_EndCap", 0.0);
462  auto Residual_B = Monitored::Scalar<float>("Residual_B", 0.0);
463  auto Residual_B_Ar = Monitored::Scalar<float>("Residual_B_Ar", 0.0);
464  auto Residual_B_20GeV = Monitored::Scalar<float>("Residual_B_20GeV", 0.0);
465  auto Residual_B_Ar_20GeV = Monitored::Scalar<float>("Residual_B_Ar_20GeV", 0.0);
466  auto Residual_E = Monitored::Scalar<float>("Residual_E", 0.0);
467  auto Residual_E_Ar = Monitored::Scalar<float>("Residual_E_Ar", 0.0);
468  auto Residual_E_20GeV = Monitored::Scalar<float>("Residual_E_20GeV", 0.0);
469  auto Residual_E_Ar_20GeV = Monitored::Scalar<float>("Residual_E_Ar_20GeV", 0.0);
470  auto Residual_noTubeHits_B = Monitored::Scalar<float>("Residual_noTubeHits_B", 0.0);
471  auto Residual_noTubeHits_B_Ar = Monitored::Scalar<float>("Residual_noTubeHits_B_Ar", 0.0);
472  auto Residual_noTubeHits_B_20GeV = Monitored::Scalar<float>("Residual_noTubeHits_B_20GeV", 0.0);
473  auto Residual_noTubeHits_B_Ar_20GeV = Monitored::Scalar<float>("Residual_noTubeHits_B_Ar_20GeV", 0.0);
474  auto Residual_noTubeHits_E = Monitored::Scalar<float>("Residual_noTubeHits_E", 0.0);
475  auto Residual_noTubeHits_E_Ar = Monitored::Scalar<float>("Residual_noTubeHits_E_Ar", 0.0);
476  auto Residual_noTubeHits_E_20GeV = Monitored::Scalar<float>("Residual_noTubeHits_E_20GeV", 0.0);
477  auto Residual_noTubeHits_E_Ar_20GeV = Monitored::Scalar<float>("Residual_noTubeHits_E_Ar_20GeV", 0.0);
478  auto TimeResidual_B = Monitored::Scalar<float>("TimeResidual_B", 0.0);
479  auto TimeResidual_B_Ar = Monitored::Scalar<float>("TimeResidual_B_Ar", 0.0);
480  auto TimeResidual_E = Monitored::Scalar<float>("TimeResidual_E", 0.0);
481  auto TimeResidual_E_Ar = Monitored::Scalar<float>("TimeResidual_E_Ar", 0.0);
482  auto TimeResidual_noTubeHits_B = Monitored::Scalar<float>("TimeResidual_noTubeHits_B", 0.0);
483  auto TimeResidual_noTubeHits_B_Ar = Monitored::Scalar<float>("TimeResidual_noTubeHits_B_Ar", 0.0);
484  auto TimeResidual_noTubeHits_E = Monitored::Scalar<float>("TimeResidual_noTubeHits_E", 0.0);
485  auto TimeResidual_noTubeHits_E_Ar = Monitored::Scalar<float>("TimeResidual_noTubeHits_E_Ar", 0.0);
486  auto TronTDist_E = Monitored::Scalar<float>("TronTDist_E", 0.0);
487  auto TronTDist_B = Monitored::Scalar<float>("TronTDist_B", 0.0);
488  auto TronTDist_B_Ar = Monitored::Scalar<float>("TronTDist_B_Ar", 0.0);
489  auto TronTDist_E_Ar = Monitored::Scalar<float>("TronTDist_E_Ar", 0.0);
490  auto WireToTrkPosition_B_Ar = Monitored::Scalar<float>("WireToTrkPosition_B_Ar", 0.0);
491  auto WireToTrkPosition_B = Monitored::Scalar<float>("WireToTrkPosition_B", 0.0);
492  auto WireToTrkPosition_E_Ar = Monitored::Scalar<float>("WireToTrkPosition_E_Ar", 0.0);
493  auto WireToTrkPosition_E = Monitored::Scalar<float>("WireToTrkPosition_E", 0.0);
494  auto EvtPhase = Monitored::Scalar<float>("EvtPhase", 0.0);
495  auto Summary = Monitored::Scalar<float>("Summary", 0.0);
496  auto SummaryWeight = Monitored::Scalar<float>("SummaryWeight", 0.0);
497 
498  // TH2F
499  auto RtRelation_B_Ar_x = Monitored::Scalar<float>("RtRelation_B_Ar_x", 0.0);
500  auto RtRelation_B_Ar_y = Monitored::Scalar<float>("RtRelation_B_Ar_y", 0.0);
501  auto RtRelation_B_x = Monitored::Scalar<float>("RtRelation_B_x", 0.0);
502  auto RtRelation_B_y = Monitored::Scalar<float>("RtRelation_B_y", 0.0);
503  auto RtRelation_E_Ar_x = Monitored::Scalar<float>("RtRelation_E_Ar_x", 0.0);
504  auto RtRelation_E_Ar_y = Monitored::Scalar<float>("RtRelation_E_Ar_y", 0.0);
505  auto RtRelation_E_x = Monitored::Scalar<float>("RtRelation_E_x", 0.0);
506  auto RtRelation_E_y = Monitored::Scalar<float>("RtRelation_E_y", 0.0);
507  auto EvtPhaseVsTrig_x = Monitored::Scalar<float>("EvtPhaseVsTrig_x", 0.0);
508  auto EvtPhaseVsTrig_y = Monitored::Scalar<float>("EvtPhaseVsTrig_y", 0.0);
509 
510  // Initialize a bunch of stuff before looping over the track collection. Fill some basic histograms.
511  const float timeCor = comTimeObject ? comTimeObject->getTime() : 0;
512 
513  auto p_trk = trackCollection.begin();
514 
515  const Trk::Perigee *mPer = nullptr;
516  const DataVector<const Trk::TrackParameters> *AllTrkPar(nullptr);
518 
519  int ntrackstack[2][64];
520  int nTotalTracks = 0;
521  int nTracksB[2] = {0, 0};
522  int nTracksEC[2] = {0, 0};
523  int nTracksEC_B[2] = {0, 0};
524  int nTrksperLB_B = 0;
525  int nTrksperLB_E[2] = {0, 0};
526 
527  for (int ibe = 0; ibe < 2; ibe++) {
528  std::fill(ntrackstack[ibe], ntrackstack[ibe] + 64, 0);
529  }
530 
531 for (; p_trk != trackCollection.end(); ++p_trk) {
532 
533  uint8_t tempHitsVariable(0);
534  (*p_trk)->summaryValue(tempHitsVariable, xAOD::SummaryType::numberOfTRTHits);
535  int nTRTHits = unsigned(tempHitsVariable);
536 
537 
538  if (nTRTHits < m_minTRThits) continue;
539 
540  AllTrkPar = ((*p_trk)->track())->trackParameters();
541 
542  // Search of MeasuredPerigee in TrackParameters
543  // The following algorithm only finds the First perigee measurement.
544  // As there should be one and only one perigee measurement then this assumption should be valid.
545  // But no check is done to see if there is more than one perigee measurement.
546  for (p_trkpariter = AllTrkPar->begin(); p_trkpariter != AllTrkPar->end(); ++p_trkpariter) {
547  // If track parameter does have a measured perigee then the track parameter is a keeper and break out of the loop
548  if ((mPer = dynamic_cast<const Trk::Perigee *>(*p_trkpariter))) break;
549  }
550 
551  if (!mPer) continue;
552 
553  float theta = mPer->parameters()[Trk::theta];
554  float p = (mPer->parameters()[Trk::qOverP] != 0.) ? std::abs(1. / (mPer->parameters()[Trk::qOverP])) : 10e7;
555  float pT = (p * std::sin(theta));
556  pT = pT * 1e-3; // GeV
557 
558  if (p < m_minP) continue;
559 
560  const Trk::TrackStates *trackStates = ((*p_trk)->track())->trackStateOnSurfaces();
561 
562  if (trackStates == nullptr) continue;
563 
564  Trk::TrackStates::const_iterator TSOSItBegin0 = trackStates->begin();
565  Trk::TrackStates::const_iterator TSOSItBegin = trackStates->begin();
566  Trk::TrackStates::const_iterator TSOSItBeginTemp = trackStates->begin();
567  Trk::TrackStates::const_iterator TSOSItEnd = trackStates->end();
568 
569  (*p_trk)->summaryValue(tempHitsVariable, xAOD::SummaryType::numberOfTRTHits);
570  int n_trt_hits = unsigned(tempHitsVariable);
571 
572  bool is_pT_over_20GeV = false;
573 
574  if (mPer->pT() > 20 * CLHEP::GeV) {
575  is_pT_over_20GeV = true;
576  } else {
577  is_pT_over_20GeV = false;
578  }
579 
580  const bool cnst_is_pT_over_20GeV = is_pT_over_20GeV;
581 
582  const bool passed_track_preselection = (static_cast<bool>(m_trackSelTool->accept(**p_trk)) || m_isCosmics) &&
583  n_trt_hits >= m_min_trt_hits &&
584  mPer->pT() > (m_isCosmics?m_min_pT : 2.0 * CLHEP::GeV); // Hardcoded cut for pT 2.0 GeV for collision setup
585  if (!passed_track_preselection) continue;
586 
587  nTotalTracks++;
588  int checkB[2] = {0, 0};
589  int checkEC[2] = {0, 0};
590  int checkEC_B[2] = {0, 0};
591  int nTRTHitsW[2][2];
592  int nTRTHits_side[2][2];
593  int nTRTHitsW_perwheel[2][18];
594  int hitontrack[2] = {0, 0};
595  int hitontrack_E_side[2] = {0, 0};
596 
597  for (int ibe = 0; ibe < 2; ibe++) {
598  for (int iside = 0; iside < 2; iside++) {
599  nTRTHits_side[ibe][iside] = -1;
600  nTRTHitsW[ibe][iside] = 0;
601  }
602  std::fill(nTRTHitsW_perwheel[ibe], nTRTHitsW_perwheel[ibe] + 18, 0);
603  }
604 
605  int barrel_ec = 0;
606  int layer_or_wheel = 0;
607  int phi_module = 0;
608  int straw_layer = 0;
609  int straw = 0;
610  int nearest_straw_layer[2] = {100, 100};
611  int nearest_straw[2] = {0, 0};
612  int testLayer[2] = {100, 100};
613  float phi2D[2] = {-100, -100};
614 
615  for (TSOSItBeginTemp = TSOSItBegin0; TSOSItBeginTemp != TSOSItEnd; ++TSOSItBeginTemp) {
616  if ((*TSOSItBeginTemp) == nullptr) continue;
617 
618  if (! ((*TSOSItBeginTemp)->type(Trk::TrackStateOnSurface::Measurement)) ) continue;
619  const InDet::TRT_DriftCircleOnTrack *trtCircle = dynamic_cast<const InDet::TRT_DriftCircleOnTrack *>((*TSOSItBeginTemp)->measurementOnTrack());
620 
621  if (!trtCircle) continue;
622  const Trk::TrackParameters *aTrackParam = dynamic_cast<const Trk::TrackParameters *>((*TSOSItBeginTemp)->trackParameters());
623 
624  if (!aTrackParam) continue;
625  Identifier DCoTId = trtCircle->identify();
626  barrel_ec = m_pTRTHelper->barrel_ec(DCoTId);
627  int ibe = std::abs(barrel_ec) - 1;
628  layer_or_wheel = m_pTRTHelper->layer_or_wheel (DCoTId);
629  straw_layer = m_pTRTHelper->straw_layer(DCoTId);
630  straw = m_pTRTHelper->straw(DCoTId);
631 
632  // Restrict ourselves to the inner most TRT layers To get detector phi.
633  if (layer_or_wheel >= testLayer[ibe]) continue;
634  testLayer[ibe] = layer_or_wheel;
635 
636  if (straw_layer < nearest_straw_layer[ibe]) {
637  nearest_straw_layer[ibe] = straw_layer;
638  nearest_straw[ibe] = straw;
639  const InDetDD::TRT_BaseElement *circleElement = nullptr;
640  circleElement = trtCircle->detectorElement();
641  phi2D[ibe] = radToDegrees(circleElement->strawCenter(nearest_straw[ibe]).phi());
642  circleElement = nullptr;
643  }
644  }
645 
646  if (phi2D[0] == -999) {
647  ATH_MSG_DEBUG("Track did not go through inner layer of Barrel.");
648  } else {
649  ATH_MSG_VERBOSE("Track's closest approach is m_layer_or_wheel: " <<
650  testLayer[0] << " m_straw_layer: " <<
651  nearest_straw_layer[0] << " (in the Barrel).");
652  }
653 
654  if (phi2D[1] == -999) {
655  ATH_MSG_DEBUG("Track did not go through any inner layer of EndCap A or C.");
656  } else {
657  ATH_MSG_VERBOSE("Track's closest approach is m_layer_or_wheel: " <<
658  testLayer[1] << " m_straw_layer: " <<
659  nearest_straw_layer[1] << " (in the EndCaps).");
660  }
661 
662  bool trackfound[2][64];
663 
664  for (int i = 0; i < 2; i++) {
665  std::fill(trackfound[i], trackfound[i] + 64, false);
666  }
667 
668  for (TSOSItBegin = TSOSItBegin0; TSOSItBegin != TSOSItEnd; ++TSOSItBegin) {
669  // Select a TSOS which is non-empty, measurement type and contains both drift circle and track parameters informations
670  if ((*TSOSItBegin) == nullptr) continue;
671 
672  if ( !((*TSOSItBegin)->type(Trk::TrackStateOnSurface::Measurement)) ) continue;
673 
674  const InDet::TRT_DriftCircleOnTrack *trtCircle = dynamic_cast<const InDet::TRT_DriftCircleOnTrack *>((*TSOSItBegin)->measurementOnTrack());
675 
676  if (!trtCircle) continue;
677 
678  const Trk::TrackParameters *aTrackParam = dynamic_cast<const Trk::TrackParameters *>((*TSOSItBegin)->trackParameters());
679 
680  if (!aTrackParam) continue;
681 
682  Identifier DCoTId = trtCircle->identify();
683  barrel_ec = m_pTRTHelper->barrel_ec(DCoTId);
684  layer_or_wheel = m_pTRTHelper->layer_or_wheel(DCoTId);
685  phi_module = m_pTRTHelper->phi_module(DCoTId);
686  straw_layer = m_pTRTHelper->straw_layer(DCoTId);
687  straw = m_pTRTHelper->straw(DCoTId);
688  int ibe = std::abs(barrel_ec) - 1; // ibe = 0 (Barrel), ibe = 1 (Endcap)
689  int iside = barrel_ec > 0 ? 0 : 1; // iside = 0 (Side A), iside = 1 (Side C)
690  int thisStrawNumber[2] = {-1, -1};
691  int chip[2] = {0, 0};
692 
693  if (ibe == 0) {
694  thisStrawNumber[ibe] = strawNumber(straw, straw_layer, layer_or_wheel);
695 
696  if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] < s_Straw_max[ibe]) {
697  chip[ibe] = m_mat_chip_B.at(phi_module).at(thisStrawNumber[ibe]);
698  }
699  } else if (ibe == 1) {
700  thisStrawNumber[ibe] = strawNumberEndCap(straw, straw_layer, layer_or_wheel, phi_module, barrel_ec);
701 
702  if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] < s_Straw_max[ibe]) {
703  chip[ibe] = m_mat_chip_E.at(phi_module).at(thisStrawNumber[ibe]);
704  }
705  } else {
706  thisStrawNumber[ibe] = -1;
707  }
708 
709  if (thisStrawNumber[ibe] < 0 || thisStrawNumber[ibe] >= s_Straw_max[ibe]) continue;
710 
711  if (checkB[iside] == 0 && ibe == 0) {
712  nTracksB[iside]++;
713  checkB[iside] = 1;
714  }
715 
716  if (checkEC[iside] == 0 && ibe == 1) {
717  nTracksEC[iside]++;
718  checkEC[iside] = 1;
719  }
720 
721  if (checkEC_B[iside] == 0 && checkB[iside] == 1 && ibe == 1 ) {
722  nTracksEC_B[iside]++;
723  checkEC_B[iside] = 1;
724  }
725 
726  Identifier surfaceID;
727  const Trk::MeasurementBase *mesb = (*TSOSItBegin)->measurementOnTrack();
728  surfaceID = trtCircle->identify();
729  const bool isArgonStraw = ( Straw_Gastype( m_sumTool->getStatusHT(surfaceID, ctx) ) == GasType::Ar );
730  // Assume always Xe if m_ArgonXenonSplitter is not enabled, otherwise check the straw status (good is Xe, non-good is Ar)
731  float temp_locr = aTrackParam->parameters()[Trk::driftRadius];
732  TRTCond::RtRelation const *rtr = m_TRTCalDbTool->getRtRelation(surfaceID);
733  int iphi_module = -9999;
734 
735  if (iside == 0) iphi_module = phi_module;
736  else if (iside == 1) iphi_module = phi_module + 32;
737 
738  if (iphi_module >= 0 && iphi_module < 64) trackfound[ibe][iphi_module] = true;
739  else ATH_MSG_ERROR("Variable iphi_module is out of range!");
740 
741  if (((ibe == 0) && (temp_locr < m_DistToStraw)) ||
742  ((ibe == 1) && ((*TSOSItBegin)->type(Trk::TrackStateOnSurface::Measurement) ||
743  (*TSOSItBegin)->type(Trk::TrackStateOnSurface::Outlier) ||
744  (*TSOSItBegin)->type(Trk::TrackStateOnSurface::Hole)) &&
745  (temp_locr < m_DistToStraw))) {
746  if (m_idHelper->is_trt(DCoTId)) {
747  if (ibe == 0) {
748  hitontrack[ibe]++;
749  } else if (ibe == 1) {
750  hitontrack[ibe]++;
751  hitontrack_E_side[iside]++;
752  }
753  }
754  }
755  const InDet::TRT_DriftCircle *RawDriftCircle = dynamic_cast<const InDet::TRT_DriftCircle *>(trtCircle->prepRawData());
756  bool isTubeHit = (mesb->localCovariance()(Trk::locX, Trk::locX) > 1.0) ? 1 : 0;
757  if (RawDriftCircle) {
758  nTRTHits_side[ibe][iside]++;
759  double t0 = m_TRTCalDbTool->getT0(DCoTId, TRTCond::ExpandedIdentifier::STRAW);
760 
761  const bool driftTimeValid = RawDriftCircle->driftTimeValid();
762 
763  if (driftTimeValid) {
764  const float validRawDriftTime = RawDriftCircle->rawDriftTime();
765 
766  if (m_doExpert && m_doStraws) {
767  ValidRawDriftTimeonTrkS_x = thisStrawNumber[ibe];
768  ValidRawDriftTimeonTrkS_y = validRawDriftTime;
769  fill("TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkS_x, ValidRawDriftTimeonTrkS_y);
770  }
771 
772  if (m_doExpert && m_doChips) {
773  ValidRawDriftTimeonTrkC_x = chip[ibe] - 1;
774  ValidRawDriftTimeonTrkC_y = validRawDriftTime;
775  fill("TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkC_x, ValidRawDriftTimeonTrkC_y);
776  }
777  }
778 
779  if (m_doShift && m_doStraws) {
780  if (ibe == 0) {
781  if (isArgonStraw) {
782  DriftTimeonTrkDist_B_Ar = RawDriftCircle->rawDriftTime();
783  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B_Ar);
784  }
785  else {
786  DriftTimeonTrkDist_B = RawDriftCircle->rawDriftTime();
787  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B);
788  }
789  } else if (ibe == 1) {
790  if (isArgonStraw) {
791  DriftTimeonTrkDist_E_Ar = RawDriftCircle->rawDriftTime();
792  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E_Ar);
793  }
794  else {
795  DriftTimeonTrkDist_E = RawDriftCircle->rawDriftTime();
796  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E);
797  }
798  }
799  }
800 
801  float locR_err = 0.0;
802  const AmgSymMatrix(5)* b_err = aTrackParam->covariance();
803 
804  if (b_err) {
805  if (!Amg::hasPositiveDiagElems(*b_err)) {
806  ATH_MSG_WARNING("Some diagonal element(s) of the covariance matrix is (are) infinite or smaller than / too close to zero or above the covariance cutoff");
807  }
808  else {
809  locR_err = Amg::error(*b_err, Trk::locR);
810  }
811  } else {
812  ATH_MSG_ERROR("Track parameters have no covariance attached.");
813  }
814 
815  float loc_err = sqrt(Amg::error(trtCircle->localCovariance(), Trk::driftRadius));
816  float locR = aTrackParam->parameters()[Trk::driftRadius];
817  float loc = trtCircle->localParameters()[Trk::driftRadius];
818 
819  if (isTubeHit) {
820  bool isOK = false;
821  loc = m_drifttool->driftRadius(RawDriftCircle->rawDriftTime(), DCoTId, t0, isOK);
822 
823  if ((loc * locR) < 0) loc = -loc;
824  }
825 
826  // Calculate Residuals for hit
827  if (m_doShift && m_doStraws) {
828  bool pull_b_fill;
829  double pull_b = -999.;
830  const double diff_loc_err = (loc_err * loc_err * loc_err * loc_err) - (locR_err * locR_err * locR_err * locR_err);
831  if ( diff_loc_err > 0 ) {
832  pull_b = (loc - locR) / sqrt(diff_loc_err);
833  pull_b_fill = true;
834  }
835  else pull_b_fill = false;
836  const double thist0 = m_TRTCalDbTool->getT0(surfaceID);
837  const double trkdrifttime = (!rtr) ? 0 : rtr->drifttime(std::abs(locR));
838  const double timeresidual = RawDriftCircle->rawDriftTime() - thist0 - trkdrifttime;
839 
840  if (ibe == 0) {
841  if (!isTubeHit) {
842  if (pull_b_fill) {
843  Pull_Biased_Barrel = pull_b;
844  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_Barrel);
845  }
846  }
847 
848  if (isArgonStraw) {
849  Residual_B_Ar = loc - locR;
850  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar);
851  Residual_noTubeHits_B_Ar = loc - locR;
852  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar);
853 
854  if (cnst_is_pT_over_20GeV) {
855  Residual_B_Ar_20GeV = loc - locR;
856  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar_20GeV);
857  Residual_noTubeHits_B_Ar_20GeV = loc - locR;
858  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar_20GeV);
859  }
860  TimeResidual_B_Ar = timeresidual;
861  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B_Ar);
862  TimeResidual_noTubeHits_B_Ar = timeresidual;
863  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B_Ar);
864  } else {
865  Residual_B = loc - locR;
866  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B);
867  Residual_noTubeHits_B = loc - locR;
868  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B);
869  TimeResidual_B = timeresidual;
870  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B);
871  TimeResidual_noTubeHits_B = timeresidual;
872  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B);
873 
874  if (cnst_is_pT_over_20GeV) {
875  Residual_B_20GeV = loc - locR;
876  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_20GeV);
877  Residual_noTubeHits_B_20GeV = loc - locR;
878  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_20GeV);
879  }
880  }
881  } else if (ibe == 1) {
882  if (!isTubeHit) {
883  if (pull_b_fill) {
884  Pull_Biased_EndCap = pull_b;
885  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_EndCap);
886  }
887  }
888 
889  if (isArgonStraw) {
890  Residual_E_Ar = loc - locR;
891  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar);
892  Residual_noTubeHits_E_Ar = loc - locR;
893  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar);
894  TimeResidual_E_Ar = timeresidual;
895  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E_Ar);
896  TimeResidual_noTubeHits_E_Ar = timeresidual;
897  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E_Ar);
898 
899  if (cnst_is_pT_over_20GeV) {
900  Residual_E_Ar_20GeV = loc - locR;
901  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar_20GeV);
902  Residual_noTubeHits_E_Ar_20GeV = loc - locR;
903  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar_20GeV);
904  }
905  } else {
906  Residual_E = loc - locR;
907  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E);
908  Residual_noTubeHits_E = loc - locR;
909  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E);
910  TimeResidual_E = timeresidual;
911  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E);
912  TimeResidual_noTubeHits_E = timeresidual;
913  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E);
914 
915  if (cnst_is_pT_over_20GeV) {
916  Residual_E_20GeV = loc - locR;
917  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_20GeV);
918  Residual_noTubeHits_E_20GeV = loc - locR;
919  if (!isTubeHit) fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_20GeV);
920  }
921  }
922  }
923  }
924 
925  if (m_doShift) {
926  if (ibe == 0) {
927  if (isArgonStraw) {
928  WireToTrkPosition_B_Ar = locR;
929  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B_Ar);
930  } else {
931  WireToTrkPosition_B = locR;
932  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B);
933  }
934  } else if (ibe == 1) {
935  if (isArgonStraw) {
936  WireToTrkPosition_E_Ar = locR;
937  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E_Ar);
938  } else {
939  WireToTrkPosition_E = locR;
940  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E);
941  }
942  }
943  }
944 
945  const float LE = (RawDriftCircle->driftTimeBin()) * 3.125;
946  const float EP = timeCor;
947 
948  if (m_doShift && m_doStraws) {
949  if (ibe == 0) {
950  if (isArgonStraw) {
951  if (m_isCosmics) {
952  RtRelation_B_Ar_x = LE - EP - t0;
953  RtRelation_B_Ar_y = std::abs(locR);
954  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
955  } else {
956  RtRelation_B_Ar_x = LE - t0;
957  RtRelation_B_Ar_y = std::abs(locR);
958  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
959  }
960  } else {
961  if (m_isCosmics) {
962  RtRelation_B_x = LE - EP - t0;
963  RtRelation_B_y = std::abs(locR);
964  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
965  } else {
966  RtRelation_B_x = LE - t0;
967  RtRelation_B_y = std::abs(locR);
968  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
969  }
970  }
971  } else if (ibe == 1) {
972  if (isArgonStraw) {
973  if (m_isCosmics) {
974  RtRelation_E_Ar_x = LE - EP - t0;
975  RtRelation_E_Ar_y = std::abs(locR);
976  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
977  } else {
978  RtRelation_E_Ar_x = LE - t0;
979  RtRelation_E_Ar_y = std::abs(locR);
980  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
981  }
982  } else {
983  if (m_isCosmics) {
984  RtRelation_E_x = LE - EP - t0;
985  RtRelation_E_y = std::abs(locR);
986  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
987  } else {
988  RtRelation_E_x = LE - t0;
989  RtRelation_E_y = std::abs(locR);
990  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
991  }
992  }
993  }
994  }
995 
996  const int driftTimeBin = RawDriftCircle->driftTimeBin();
997  const int firstBinHigh = RawDriftCircle->firstBinHigh();
998  const int lastBinHigh = RawDriftCircle->lastBinHigh();
999  const int trailingEdge = RawDriftCircle->trailingEdge();
1000  float trailingEdgeScaled = (trailingEdge + 1) * 3.125;
1001 
1002  if (firstBinHigh || lastBinHigh || driftTimeBin > 0 || trailingEdge < 23) nTRTHitsW[ibe][iside]++;
1003 
1004  if ((trailingEdge < 23) &&
1005  !(RawDriftCircle->lastBinHigh()) &&
1006  !(RawDriftCircle->firstBinHigh())) {
1007 
1008  if (m_doExpert && m_doChips) {
1009  HitTronTMapC_x = chip[ibe] - 1;
1010  HitTronTMapC_y = trailingEdgeScaled;
1011  fill("TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTMapC_x, HitTronTMapC_y);
1012  }
1013 
1014  if (m_doExpert && m_doStraws) {
1015  HitTronTwEPCMapS_x = thisStrawNumber[ibe];
1016  HitTronTwEPCMapS_y = trailingEdgeScaled - timeCor;
1017  fill("TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapS_x, HitTronTwEPCMapS_y);
1018  }
1019 
1020  if (m_doExpert && m_doChips) {
1021  HitTronTwEPCMapC_x = chip[ibe] - 1;
1022  HitTronTwEPCMapC_y = trailingEdgeScaled - timeCor;
1023  fill("TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapC_x, HitTronTwEPCMapC_y);
1024  }
1025 
1026  if (m_doShift && m_doStraws) {
1027  if (RawDriftCircle->driftTimeValid()) {
1028  if (ibe == 0) {
1029  if (isArgonStraw) {
1030  TronTDist_B_Ar = trailingEdgeScaled;
1031  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B_Ar);
1032  AvgTroTDetPhi_B_Ar_x = phi2D[ibe];
1033  AvgTroTDetPhi_B_Ar_y = trailingEdgeScaled;
1034  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_Ar_x, AvgTroTDetPhi_B_Ar_y);
1035  } else {
1036  TronTDist_B = trailingEdgeScaled;
1037  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B);
1038  AvgTroTDetPhi_B_x = phi2D[ibe];
1039  AvgTroTDetPhi_B_y = trailingEdgeScaled;
1040  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_x, AvgTroTDetPhi_B_y);
1041  }
1042  } else if (ibe == 1) {
1043  if (isArgonStraw) {
1044  TronTDist_E_Ar = trailingEdgeScaled;
1045  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E_Ar);
1046  AvgTroTDetPhi_E_Ar_x = phi2D[ibe];
1047  AvgTroTDetPhi_E_Ar_y = trailingEdgeScaled;
1048  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_Ar_x, AvgTroTDetPhi_E_Ar_y);
1049  } else {
1050  TronTDist_E = trailingEdgeScaled;
1051  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E);
1052  AvgTroTDetPhi_E_x = phi2D[ibe];
1053  AvgTroTDetPhi_E_y = trailingEdgeScaled;
1054  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_x, AvgTroTDetPhi_E_y);
1055  }
1056  }
1057  }
1058  }
1059  }
1060  }
1061  }
1062 
1063  // ToDo: work on the part below
1064  for (int ibe = 0; ibe < 2; ibe++) {
1065  for (int i = 0; i < 64; i++)
1066  if (trackfound[ibe][i])
1067  ntrackstack[ibe][i]++;
1068 
1069  if (m_doShift) {
1070  if (ibe == 0) {
1071  if (hitontrack[ibe] >= m_minTRThits) {
1072  NumHoTDetPhi_B_x = phi2D[ibe];
1073  NumHoTDetPhi_B_y = hitontrack[ibe];
1074  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), NumHoTDetPhi_B_x, NumHoTDetPhi_B_y);
1075  }
1076  }
1077 
1078  if (ibe == 1) {
1079  if (hitontrack_E_side[0] >= m_minTRThits) {
1080  NumHoTDetPhi_E_x = phi2D[ibe];
1081  NumHoTDetPhi_E_y = hitontrack_E_side[0];
1082  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+"0", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1083  }
1084 
1085  if (hitontrack_E_side[1] >= m_minTRThits) {
1086  NumHoTDetPhi_E_x = phi2D[ibe];
1087  NumHoTDetPhi_E_y = hitontrack_E_side[1];
1088  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+"1", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1089  }
1090  }
1091  }
1092 
1093  if (phi2D[ibe] < 0) continue;
1094 
1095  if (m_doShift) {
1096  if (ibe == 0) {
1097  if (nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1] > 0) {
1098  NumTrksDetPhi_B = phi2D[ibe];
1099  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), NumTrksDetPhi_B);
1100  }
1101  } else if (ibe == 1) {
1102  if (nTRTHitsW[ibe][0] > 0) {
1103  NumTrksDetPhi_E = phi2D[ibe];
1104  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+"0", NumTrksDetPhi_E);
1105  }
1106 
1107  if (nTRTHitsW[ibe][1] > 0) {
1108  NumTrksDetPhi_E = phi2D[ibe];
1109  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+"1", NumTrksDetPhi_E);
1110  }
1111  }
1112  }
1113 
1114  if (ibe == 0) {
1115  if ((nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1]) > 0) {
1116  nTrksperLB_B++;
1117  }
1118  if (comTimeObject) {
1119  if (m_doShift && (phi2D[ibe] > 0) && (std::abs(timeCor) > 1e-8)) {
1120  EvtPhaseDetPhi_B_x = phi2D[ibe];
1121  EvtPhaseDetPhi_B_y = timeCor;
1122  fill("ShiftTRTTrackHistograms"+std::to_string(ibe), EvtPhaseDetPhi_B_x, EvtPhaseDetPhi_B_y);
1123  }
1124  }
1125  } else if (ibe == 1) {
1126  for (int iside = 0; iside < 2; iside++) {
1127  if (nTRTHitsW[ibe][iside] > 0) nTrksperLB_E[iside]++;
1128  if (comTimeObject) {
1129  if (nTRTHits_side[ibe][iside] > 5 && (std::abs(timeCor)
1130  > 1e-8)) {
1131  if (m_doShift) {
1132  EvtPhaseDetPhi_E_x = phi2D[ibe];
1133  EvtPhaseDetPhi_E_y = timeCor;
1134  fill("ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), EvtPhaseDetPhi_E_x, EvtPhaseDetPhi_E_y);
1135  }
1136  }
1137  }
1138  }
1139  }
1140  }
1141  }
1142 
1143  if (comTimeObject) {
1144  if (std::abs(timeCor) > 1e-8) {
1145  if (m_doShift) {
1146  EvtPhase = timeCor;
1147  fill("ShiftTRTTrackHistograms0", EvtPhase);
1148  }
1149 
1150  if (m_doShift && trigDecision) {
1151  std::vector<int> trigid;
1152  trigid.clear(); // Trigger ID
1153  // Get bits for trigger after veto
1154  std::vector<unsigned int> level1TAV = trigDecision->tav();
1155 
1156  for (unsigned int j = 0; j < 8 && j < level1TAV.size(); ++j) {
1157  for (unsigned int i = 0; i < 32; ++i) {
1158  if ((level1TAV[j] >> i) & 0x1) {
1159  trigid.push_back(i + (j % 8) * 32); // Found the ID
1160  }
1161  }
1162  }
1163 
1164  for (unsigned int j = 0; j < trigid.size(); ++j) {
1165  EvtPhaseVsTrig_x = timeCor;
1166  EvtPhaseVsTrig_y = trigid[j];
1167  fill("ShiftTRTTrackHistograms0", EvtPhaseVsTrig_x, EvtPhaseVsTrig_y);
1168  }
1169  }
1170  }
1171  }
1172 
1173  if (m_doShift) {
1174  Summary = 0;
1175  SummaryWeight = 1.;
1176  fill("SmryHistograms", SummaryWeight, Summary);
1177 
1178  if (m_doTracksMon) {
1179  Summary = 1;
1180  SummaryWeight = nTotalTracks;
1181  fill("SmryHistograms", SummaryWeight, Summary);
1182  Summary = 2;
1183  SummaryWeight = nTracksB[0];
1184  fill("SmryHistograms", SummaryWeight, Summary);
1185  Summary = 3;
1186  SummaryWeight = nTracksB[1];
1187  fill("SmryHistograms", SummaryWeight, Summary);
1188  Summary = 4;
1189  SummaryWeight = nTracksEC[0];
1190  fill("SmryHistograms", SummaryWeight, Summary);
1191  Summary = 5;
1192  SummaryWeight = nTracksEC[1];
1193  fill("SmryHistograms", SummaryWeight, Summary);
1194  Summary = 6;
1195  SummaryWeight = nTracksEC_B[0];
1196  fill("SmryHistograms", SummaryWeight, Summary);
1197  Summary = 7;
1198  SummaryWeight = nTracksEC_B[1];
1199  fill("SmryHistograms", SummaryWeight, Summary);
1200  }
1201 
1202  const unsigned int lumiBlock = eventInfo.lumiBlock();
1203  ATH_MSG_VERBOSE("This is lumiblock : " << lumiBlock);
1204  int lastLumiBlock = -99; // ToDo - last lumiblock calculation is not correct
1205  if ((int)lumiBlock != lastLumiBlock) {
1206  lastLumiBlock = lumiBlock;
1207  }
1208  float evtLumiBlock = 1.;
1209  float lumiBlockScale = (evtLumiBlock > 0) ? (1. / evtLumiBlock) : 0;
1210 
1211  if (m_doTracksMon && evtLumiBlock > 0) {
1212  NTrksperLB_x = lastLumiBlock;
1213  NTrksperLB_y = (float)nTrksperLB_B * lumiBlockScale;
1214  fill("ShiftTRTTrackHistograms0", NTrksperLB_x, NTrksperLB_y);
1215 
1216  for (int iside = 0; iside < 2; iside++) {
1217  NTrksperLB_x = lastLumiBlock;
1218  NTrksperLB_y = (float)nTrksperLB_E[iside] * lumiBlockScale;
1219  fill("ShiftTRTTrackHistograms1"+std::to_string(iside), NTrksperLB_x, NTrksperLB_y);
1220  }
1221 
1222  nTrksperLB_B = 0;
1223 
1224  for (int iside = 0; iside < 2; iside++) {
1225  nTrksperLB_E[iside] = 0;
1226  }
1227  }
1228  }
1229 
1230  ATH_MSG_DEBUG("end of event and lumi block");
1231  //number of events in lumiblock counter setted to zero since it is end of the run or the lumiblock
1232 
1233  return StatusCode::SUCCESS;
1234 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ GetEventInfo()

SG::ReadHandle< xAOD::EventInfo > AthMonitorAlgorithm::GetEventInfo ( const EventContext &  ctx) const
inherited

Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)

Parameters
ctxEventContext for the event
Returns
a SG::ReadHandle<xAOD::EventInfo>

Definition at line 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ getGroup()

const ToolHandle< GenericMonitoringTool > & AthMonitorAlgorithm::getGroup ( const std::string &  name) const
inherited

Get a specific monitoring tool from the tool handle array.

Finds a specific GenericMonitoringTool instance from the list of monitoring tools (a ToolHandleArray). Throws a FATAL warning if the object found is empty.

Parameters
namestring name of the desired tool
Returns
reference to the desired monitoring tool

Definition at line 164 of file AthMonitorAlgorithm.cxx.

164  {
165  // get the pointer to the tool, and check that it exists
166  auto idx = m_toolLookupMap.find(name);
167  if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
168  return m_tools[idx->second];
169  }
170  else {
171  // treat empty tool handle case as in Monitored::Group
172  if (m_toolLookupMap.empty()) {
173  return m_dummy;
174  }
175 
176  if (!isInitialized()) {
178  "It seems that the AthMonitorAlgorithm::initialize was not called "
179  "in derived class initialize method");
180  } else {
181  std::string available = std::accumulate(
182  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
183  [](const std::string& s, auto h) { return s + "," + h.first; });
184  ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
185  << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
186  << "your python configuration and c++ filling code. Note: your available groups are {"
187  << available << "}.");
188  }
189  }
190  return m_dummy;
191 }

◆ getTrigDecisionTool()

const ToolHandle< Trig::TrigDecisionTool > & AthMonitorAlgorithm::getTrigDecisionTool ( ) const
inherited

Get the trigger decision tool member.

The trigger decision tool is used to check whether a specific trigger is passed by an event.

Returns
m_trigDecTool

Definition at line 194 of file AthMonitorAlgorithm.cxx.

194  {
195  return m_trigDecTool;
196 }

◆ initialize()

StatusCode TRTMonitoringRun3ESD_Alg::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 78 of file TRTMonitoringRun3ESD_Alg.cxx.

78  {
79  using namespace Monitored;
80 
81  ATH_MSG_VERBOSE("Initializing TRT Monitoring");
82 
83  // Initialize superclass
85 
86  // Retrieve detector manager
87  ATH_CHECK( detStore()->retrieve(m_mgr, "TRT") );
88  // Get ID helper for TRT to access various detector components like straw, straw_layer, layer_or_wheel, phi_module, etc.
89  ATH_CHECK( detStore()->retrieve(m_pTRTHelper, "TRT_ID") );
90  ATH_CHECK( detStore()->retrieve(m_idHelper, "AtlasID") );
91 
92  // InDetTrackSelectionTools initialization:
93  ATH_CHECK( m_trackSelTool.retrieve() );
94 
95  if (m_doExpert) {
96  // Retrieve the TRT_Straw Status Service
97  if (m_sumTool.name().empty()) {
98  ATH_MSG_WARNING("TRT_StrawStatusTool not given.");
99  } else {
100  ATH_CHECK( m_sumTool.retrieve() );
101  }
102 
104 
105  if (m_sumTool.name() != "") {
106  ATH_MSG_VERBOSE("Trying " << m_sumTool << " isGood");
107  ATH_MSG_VERBOSE("TRT_StrawStatusTool reports status = " << m_sumTool->getStatus(ident, Gaudi::Hive::currentContext()));
108  }
109  } //If do expert
110 
111  // Retrieve TRT_StrawNeighbourService
112  if (m_TRTStrawNeighbourSvc.name().empty()) {
113  ATH_MSG_WARNING("TRT_StrawNeighbourSvc not given.");
114  } else {
115  if (m_TRTStrawNeighbourSvc.retrieve().isFailure()) {
116  ATH_MSG_FATAL("Could not get StrawNeighbourSvc.");
117  }
118  }
119 
120  // Get Track summary tool
121  if (m_TrackSummaryTool.retrieve().isFailure())
122  ATH_MSG_ERROR("Cannot get TrackSummaryTool");
123  else
124  ATH_MSG_DEBUG("Retrieved succesfully the track summary tool" << m_TrackSummaryTool);
125 
126  //Get TRTCalDbTool
127  if (m_TRTCalDbTool.name().empty()) {
128  ATH_MSG_WARNING("TRT_CalDbTool not given.");
129  } else {
130  if (m_TRTCalDbTool.retrieve().isFailure()) {
131  ATH_MSG_ERROR("Cannot get TRTCalDBTool.");
132  }
133  }
134 
135  ATH_CHECK(m_drifttool.retrieve());
136 
137  // Initialize arrays
138  // These arrays store information about each entry to the HitMap histograms
139 
140  if (true) {
141  //loop over straw hash index to create straw number mapping for TRTViewer
142  unsigned int maxHash = m_pTRTHelper->straw_layer_hash_max();
143 
144  for (int ibe = 0; ibe < 2; ibe++) { // ibe=0(barrel), ibe=1(endcap)
145  for (unsigned int index = 0; index < maxHash; index++) {
146  IdentifierHash idHash = index;
147  Identifier id = m_pTRTHelper->layer_id(idHash);
148  int idBarrelEndcap = m_pTRTHelper->barrel_ec(id);
149  int idLayerWheel = m_pTRTHelper->layer_or_wheel(id);
150  int idPhiModule = m_pTRTHelper->phi_module(id);
151  int idStrawLayer = m_pTRTHelper->straw_layer(id);
152  bool isBarrel = m_pTRTHelper->is_barrel(id);
153  int idSide;
154  int sectorflag = 0;
155  const InDetDD::TRT_BaseElement *element = nullptr;
156 
157  if (ibe == 0) { // barrel
158  idSide = idBarrelEndcap ? 1 : -1;
159 
160  if (isBarrel && (idBarrelEndcap == -1)) {
161  sectorflag = 1;
162  element = m_mgr->getBarrelElement(idSide, idLayerWheel, idPhiModule, idStrawLayer);
163  }
164  } else if (ibe == 1) { // endcap
165  idSide = idBarrelEndcap ? 1 : 0;
166 
167  if (!isBarrel && ((idBarrelEndcap == -2) || (idBarrelEndcap == 2))) {
168  sectorflag = 1;
169  element = m_mgr->getEndcapElement(idSide, idLayerWheel, idStrawLayer, idPhiModule);//, idStrawLayer_ec);
170  }
171  }
172 
173  if (sectorflag == 1) {
174  if (!element) continue;
175 
176  for (unsigned int istraw = 0; istraw < element->nStraws(); istraw++) {
177  std::vector<Identifier> neighbourIDs;
178  Identifier strawID = m_pTRTHelper->straw_id(id, int(istraw));
179  int i_chip, i_pad;
180  m_TRTStrawNeighbourSvc->getChip(strawID, i_chip);
181  m_TRTStrawNeighbourSvc->getPad(id, i_pad);
182 
183  if (ibe == 0) { //barrel
184  if (idLayerWheel == 1) i_chip += 21;
185 
186  if (idLayerWheel == 2) i_chip += 54;
187 
188  int tempStrawNumber = strawNumber(istraw, idStrawLayer, idLayerWheel);
189 
190  if (tempStrawNumber < 0 || tempStrawNumber > (s_Straw_max[ibe] - 1)) {
191  ATH_MSG_WARNING("Found tempStrawNumber = " << tempStrawNumber << " out of range.");
192  } else {
193  m_mat_chip_B.at(idPhiModule).at(tempStrawNumber) = i_chip;
194  m_mat_chip_B.at(idPhiModule + 32).at(tempStrawNumber) = i_chip;
195  }
196  } else if (ibe == 1) { //endcap
197  ++i_chip -= 104;
198  int tempStrawNumber = strawNumberEndCap(istraw, idStrawLayer, idLayerWheel, idPhiModule, idSide);
199 
200  if (tempStrawNumber < 0 || tempStrawNumber > (s_Straw_max[ibe] - 1)) {
201  ATH_MSG_WARNING("Found tempStrawNumber = " << tempStrawNumber << " out of range.");
202  } else {
203  m_mat_chip_E.at(idPhiModule).at(tempStrawNumber) = i_chip;
204  m_mat_chip_E.at(idPhiModule + 32).at(tempStrawNumber) = i_chip;
205  }
206  }
207  }
208  }
209  }
210  }
211  }
212 
213  // Initialization of VarHandleKeys
219 
220  return StatusCode::SUCCESS;
221 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::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< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ parseList()

StatusCode AthMonitorAlgorithm::parseList ( const std::string &  line,
std::vector< std::string > &  result 
) const
virtualinherited

Parse a string into a vector.

The input string is a single long string of all of the trigger names. It parses this string and turns it into a vector, where each element is one trigger or trigger category.

Parameters
lineThe input string.
resultThe parsed output vector of strings.
Returns
StatusCode

Definition at line 341 of file AthMonitorAlgorithm.cxx.

341  {
342  std::string item;
343  std::stringstream ss(line);
344 
345  ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
346 
347  while ( std::getline(ss, item, ',') ) {
348  std::stringstream iss(item); // remove whitespace
349  iss >> item;
350  result.push_back(item);
351  }
352 
353  return StatusCode::SUCCESS;
354 }

◆ radToDegrees()

float TRTMonitoringRun3ESD_Alg::radToDegrees ( float  radValue) const
private

Definition at line 369 of file TRTMonitoringRun3ESD_Alg.cxx.

369  {
370 //----------------------------------------------------------------------------------//
371  float degreeValue = radValue / M_PI * 180;
372 
373  if (degreeValue < 0) degreeValue += 360;
374 
375  return degreeValue;
376 }

◆ 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< Gaudi::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< Gaudi::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  }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ Straw_Gastype()

GasType TRTMonitoringRun3ESD_Alg::Straw_Gastype ( int  stat) const
inlineprivate

Definition at line 144 of file TRTMonitoringRun3ESD_Alg.h.

144  {
145  // getStatusHT returns enum {Undefined, Dead, Good, Xenon, Argon, Krypton}.
146  // Our representation of 'GasType' is 0:Xenon, 1:Argon, 2:Krypton
147  GasType Gas = Xe; // Xenon is default
148  if (m_ArgonXenonSplitter) {
149  // int stat=m_sumSvc->getStatusHT(TRT_Identifier);
150  if ( stat==2 || stat==3 ) { Gas = Xe; } // Xe
151  else if ( stat==1 || stat==4 ) { Gas = Ar; } // Ar
152  else if ( stat==5 ) { Gas = Kr; } // Kr
153  else if ( stat==6 ) { Gas = Xe; } // Emulate Ar (so treat as Xe here)
154  else if ( stat==7 ) { Gas = Xe; } // Emulate Kr (so treat as Xe here)
155  else { ATH_MSG_FATAL ("getStatusHT = " << stat << ", must be 'Good(2)||Xenon(3)' or 'Dead(1)||Argon(4)' or 'Krypton(5)!' or 6 or 7 for emulated types!");
156  throw std::exception();
157  }
158  }
159  return Gas;
160  }

◆ strawLayerNumber()

int TRTMonitoringRun3ESD_Alg::strawLayerNumber ( int  strawLayerNumber,
int  LayerNumber 
) const
private

Definition at line 225 of file TRTMonitoringRun3ESD_Alg.cxx.

225  {
226 //----------------------------------------------------------------------------------//
227  switch (LayerNumber) {
228  case 0:
229  return strawLayerNumber;
230 
231  case 1:
232  return strawLayerNumber + 19;
233 
234  case 2:
235  return strawLayerNumber + 43;
236 
237  default:
238  return strawLayerNumber;
239  }
240 }

◆ strawLayerNumber_reverse()

int TRTMonitoringRun3ESD_Alg::strawLayerNumber_reverse ( int  strawLayerNumInp,
int *  strawLayerNumber,
int *  LayerNumber 
) const
private

◆ strawNumber()

int TRTMonitoringRun3ESD_Alg::strawNumber ( int  strawNumber,
int  strawlayerNumber,
int  LayerNumber 
) const
private

Definition at line 243 of file TRTMonitoringRun3ESD_Alg.cxx.

243  {
244 //----------------------------------------------------------------------------------//
245  int addToStrawNumber = 0;
246  int addToStrawNumberNext = 0;
247  int i = 0;
248  const int numberOfStraws[75] = {
249  0,
250  15,
251  16, 16, 16, 16,
252  17, 17, 17, 17, 17,
253  18, 18, 18, 18, 18,
254  19, 19, 19,
255  18,
256  19,
257  20, 20, 20, 20, 20,
258  21, 21, 21, 21, 21,
259  22, 22, 22, 22, 22,
260  23, 23, 23, 23, 23,
261  24, 24,
262  23, 23,
263  24, 24, 24, 24,
264  25, 25, 25, 25, 25,
265  26, 26, 26, 26, 26,
266  27, 27, 27, 27, 27,
267  28, 28, 28, 28, 28,
268  29, 29, 29, 29,
269  28,
270  0
271  };
272 
273  do {
274  i++;
275  addToStrawNumber += numberOfStraws[i - 1];
276  addToStrawNumberNext = addToStrawNumber + numberOfStraws[i];
277  } while (strawLayerNumber(strawlayerNumber, LayerNumber) != i - 1);
278 
279  strawNumber = addToStrawNumberNext - strawNumber - 1;
280 
281  if (strawNumber < 0 || strawNumber > s_Straw_max[0] - 1) {
282  ATH_MSG_WARNING("strawNumber = " << strawNumber << " out of range. Will set to 0.");
283  strawNumber = 0;
284  }
285 
286  return strawNumber;
287 }

◆ strawNumber_reverse()

int TRTMonitoringRun3ESD_Alg::strawNumber_reverse ( int  inp_strawnumber,
int *  strawNumber,
int *  strawlayerNumber,
int *  LayerNumber 
) const
private

◆ strawNumberEndCap()

int TRTMonitoringRun3ESD_Alg::strawNumberEndCap ( int  strawNumber,
int  strawLayerNumber,
int  LayerNumber,
int  phi_stack,
int  side 
) const
private

Definition at line 291 of file TRTMonitoringRun3ESD_Alg.cxx.

291  {
292 //----------------------------------------------------------------------------------//
293  // Before perfoming map, corrections need to be perfomed.
294  // apply special rotations for endcap mappings
295  // for eca, rotate triplets by 180 for stacks 9-16, and 25-32.
296  static const int TripletOrientation[2][32] = {
297  {
298  1, 1, 1, 1, 1, 1, 1, 1,
299  0, 0, 0, 0, 0, 0, 0, 0,
300  1, 1, 1, 1, 1, 1, 1, 1,
301  0, 0, 0, 0, 0, 0, 0, 0
302  },
303  {
304  1, 1, 1, 1, 1, 1, 1, 1,
305  0, 0, 0, 0, 0, 0, 0, 0,
306  1, 1, 1, 1, 1, 1, 1, 1,
307  0, 0, 0, 0, 0, 0, 0, 0
308  }
309  };
310  int phi1 = -1;
311 
312  if (side == 2) phi1 = phi_stack, side = 1;
313  else if (side == -2) phi1 = 31 - phi_stack, side = 0;
314 
315  if (phi1 > -1) {
316  if (TripletOrientation[side][phi1]) {
317  // Change straw number from 0-23 in straw layer to 0-192
319 
321 
322  strawNumber = (192 - 1) * TripletOrientation[side][phi1] + strawNumber * (1 - 2 * TripletOrientation[side][phi1]); //actual rotation
323 
324  // Take strawNumber back to 0-23
326 
327  if (strawLayerNumber > 7) strawLayerNumber = int(strawNumber / 24) + 8;
328 
329  strawNumber = strawNumber % 24;
330  }
331 
332  // Finish rotation
333  // Flip straw in layer.
334 
335  if (side == 0) strawNumber = 23 - strawNumber;
336 
337  // Finish Flipping
338  }
339 
340  // Done with corrections
341  // Start mapping from athena identifiers to TRTViewer maps
342  int strawNumberNew = 0;
343 
344  if (LayerNumber < 6 && strawLayerNumber > 7) {
345  strawNumberNew = strawNumberNew + (384 * LayerNumber);
346  strawNumberNew = strawNumberNew + 192 + (strawLayerNumber % 8) + (strawNumber * 8);
347  } else if (LayerNumber < 6 && strawLayerNumber < 8) {
348  strawNumberNew = strawNumberNew + (384 * LayerNumber);
349  strawNumberNew = strawNumberNew + (strawLayerNumber % 8) + (strawNumber * 8);
350  } else if (LayerNumber > 5 && strawLayerNumber > 7) {
351  strawNumberNew = strawNumberNew + 2304 + 192 * (LayerNumber - 6);
352  strawNumberNew = strawNumberNew + 192 + (strawLayerNumber % 8) + (8 * strawNumber);
353  } else if (LayerNumber > 5 && strawLayerNumber < 8) {
354  strawNumberNew = strawNumberNew + 2304 + 192 * (LayerNumber - 6);
355  strawNumberNew = strawNumberNew + (strawLayerNumber % 8) + (8 * strawNumber);
356  }
357 
358  strawNumber = strawNumberNew;
359 
360  if (strawNumber < 0 || strawNumber > s_Straw_max[1] - 1) {
361  ATH_MSG_WARNING("strawNumber = " << strawNumber << " out of range. Will set to 0.");
362  strawNumber = 0;
363  }
364 
365  return strawNumber;
366 }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ trigChainsArePassed()

bool AthMonitorAlgorithm::trigChainsArePassed ( const std::vector< std::string > &  vTrigNames) const
inherited

Check whether triggers are passed.

For the event, use the trigger decision tool to check that at least one of the triggers listed in the supplied vector is passed.

Parameters
vTrigNamesList of trigger names.
Returns
If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.

Definition at line 199 of file AthMonitorAlgorithm.cxx.

199  {
200 
201 
202  // If no triggers were given, return true.
203  if (vTrigNames.empty()) return true;
204 
205 
206  // Trigger: Check if this Algorithm is being run as an Express Stream job.
207  // Events are entering the express stream are chosen randomly, and by chain,
208  // Hence an additional check should be aplied to see if the chain(s)
209  // monitored here are responsible for the event being selected for
210  // the express stream.
211 
212  const auto group = m_trigDecTool->getChainGroup(vTrigNames);
214  const auto passedBits = m_trigDecTool->isPassedBits(group);
215  bool expressPass = passedBits & TrigDefs::Express_passed; //bitwise AND
216  if(!expressPass) {
217  return false;
218  }
219  }
220 
221  // monitor the event if any of the chains in the chain group passes the event.
222  return group->isPassed();
223 
224 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::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  }

Member Data Documentation

◆ cfg

TRTMonitoringRun3ESD_Alg.cfg = MainServicesCfg(flags)

Definition at line 258 of file TRTMonitoringRun3ESD_Alg.py.

◆ Dynamic

TRTMonitoringRun3ESD_Alg.Dynamic

Definition at line 248 of file TRTMonitoringRun3ESD_Alg.py.

◆ Files

TRTMonitoringRun3ESD_Alg.Files

Definition at line 245 of file TRTMonitoringRun3ESD_Alg.py.

◆ flags

TRTMonitoringRun3ESD_Alg.flags = initConfigFlags()

Definition at line 244 of file TRTMonitoringRun3ESD_Alg.py.

◆ GeometryPixel

TRTMonitoringRun3ESD_Alg.GeometryPixel

Definition at line 249 of file TRTMonitoringRun3ESD_Alg.py.

◆ GeometrySCT

TRTMonitoringRun3ESD_Alg.GeometrySCT

Definition at line 250 of file TRTMonitoringRun3ESD_Alg.py.

◆ GeometryTRT

TRTMonitoringRun3ESD_Alg.GeometryTRT

Definition at line 251 of file TRTMonitoringRun3ESD_Alg.py.

◆ GlobalTag

TRTMonitoringRun3ESD_Alg.GlobalTag

Definition at line 252 of file TRTMonitoringRun3ESD_Alg.py.

◆ HISTFileName

TRTMonitoringRun3ESD_Alg.HISTFileName

Definition at line 247 of file TRTMonitoringRun3ESD_Alg.py.

◆ isMC

TRTMonitoringRun3ESD_Alg.isMC

Definition at line 246 of file TRTMonitoringRun3ESD_Alg.py.

◆ m_ArgonXenonSplitter

BooleanProperty TRTMonitoringRun3ESD_Alg::m_ArgonXenonSplitter {this, "doArgonXenonSeparation", true}
private

Definition at line 66 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_comTimeObjectKey

SG::ReadHandleKey<ComTime> TRTMonitoringRun3ESD_Alg::m_comTimeObjectKey {this, "ComTimeObjectName", "TRT_Phase", "Name of ComTime object"}
private

Definition at line 113 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 351 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"}
protectedinherited

DataType string pulled from the job option and converted to enum.

Definition at line 353 of file AthMonitorAlgorithm.h.

◆ m_defaultLBDuration

Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.}
protectedinherited

Default duration of one lumi block.

Definition at line 360 of file AthMonitorAlgorithm.h.

◆ m_detailLevel

Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0}
protectedinherited

Sets the level of detail used in the monitoring.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DistToStraw

float TRTMonitoringRun3ESD_Alg::m_DistToStraw
private

Definition at line 132 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_doChips

bool TRTMonitoringRun3ESD_Alg::m_doChips
private

Definition at line 125 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_doExpert

bool TRTMonitoringRun3ESD_Alg::m_doExpert
private

Definition at line 127 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_doShift

bool TRTMonitoringRun3ESD_Alg::m_doShift
private

Definition at line 126 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_doStraws

bool TRTMonitoringRun3ESD_Alg::m_doStraws
private

Definition at line 124 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_doTracksMon

bool TRTMonitoringRun3ESD_Alg::m_doTracksMon
private

Definition at line 123 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_DQFilterTools

ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}}
protectedinherited

Array of Data Quality filter tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

◆ m_drifttool

ToolHandle<ITRT_DriftFunctionTool> TRTMonitoringRun3ESD_Alg::m_drifttool
private

Definition at line 118 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers
privateinherited
Initial value:
{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 350 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"}
protectedinherited

Environment string pulled from the job option and converted to enum.

Definition at line 352 of file AthMonitorAlgorithm.h.

◆ m_EventBurstCut

int TRTMonitoringRun3ESD_Alg::m_EventBurstCut
private

Definition at line 162 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_EventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> AthMonitorAlgorithm::m_EventInfoKey {this,"EventInfoKey","EventInfo"}
protectedinherited

Key for retrieving EventInfo from StoreGate.

Definition at line 362 of file AthMonitorAlgorithm.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""}
protectedinherited

Internal Athena name for file.

Definition at line 358 of file AthMonitorAlgorithm.h.

◆ m_idHelper

const AtlasDetectorID* TRTMonitoringRun3ESD_Alg::m_idHelper
private

Definition at line 69 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_isCosmics

bool TRTMonitoringRun3ESD_Alg::m_isCosmics
private

Definition at line 133 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_lbDurationDataKey

SG::ReadCondHandleKey<LBDurationCondData> AthMonitorAlgorithm::m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
protectedinherited

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_lumiDataKey

SG::ReadCondHandleKey<LuminosityCondData> AthMonitorAlgorithm::m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
protectedinherited

Definition at line 343 of file AthMonitorAlgorithm.h.

◆ m_mat_chip_B

std::vector<std::vector<unsigned char> > TRTMonitoringRun3ESD_Alg::m_mat_chip_B {64, std::vector<unsigned char>(1642)}
private

Definition at line 129 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_mat_chip_E

std::vector<std::vector<unsigned char> > TRTMonitoringRun3ESD_Alg::m_mat_chip_E {64, std::vector<unsigned char>(3840)}
private

Definition at line 130 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_mgr

const InDetDD::TRT_DetectorManager* TRTMonitoringRun3ESD_Alg::m_mgr
private

Definition at line 121 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_min_pixel_hits

int TRTMonitoringRun3ESD_Alg::m_min_pixel_hits
private

Definition at line 136 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_min_pT

float TRTMonitoringRun3ESD_Alg::m_min_pT
private

Definition at line 141 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_min_sct_hits

int TRTMonitoringRun3ESD_Alg::m_min_sct_hits
private

Definition at line 137 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_min_si_hits

int TRTMonitoringRun3ESD_Alg::m_min_si_hits
private

Definition at line 135 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_min_trt_hits

int TRTMonitoringRun3ESD_Alg::m_min_trt_hits
private

Definition at line 138 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_minP

float TRTMonitoringRun3ESD_Alg::m_minP
private

Definition at line 140 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_minTRThits

int TRTMonitoringRun3ESD_Alg::m_minTRThits
private

Definition at line 139 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_pTRTHelper

const TRT_ID* TRTMonitoringRun3ESD_Alg::m_pTRTHelper
private

Definition at line 120 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_sumTool

ToolHandle<ITRT_StrawStatusSummaryTool> TRTMonitoringRun3ESD_Alg::m_sumTool
private

Definition at line 105 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_toolLookupMap

std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap
privateinherited

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

ToolHandleArray<GenericMonitoringTool> AthMonitorAlgorithm::m_tools {this,"GMTools",{}}
protectedinherited

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trackCollectionKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> TRTMonitoringRun3ESD_Alg::m_trackCollectionKey {this, "TrackParticleContainerKeys", "InDetTrackParticles", "Keys for TrackParticle Container"}
private

Definition at line 110 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_trackSelTool

ToolHandle<InDet::IInDetTrackSelectionTool> TRTMonitoringRun3ESD_Alg::m_trackSelTool
private

Definition at line 163 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_TrackSummaryTool

ToolHandle<Trk::ITrackSummaryTool> TRTMonitoringRun3ESD_Alg::m_TrackSummaryTool {this, "TrackSummaryTool", "InDetTrackSummaryTool", "Track summary tool name"}
private

Definition at line 117 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_trigDecisionKey

SG::ReadHandleKey<xAOD::TrigDecision> TRTMonitoringRun3ESD_Alg::m_trigDecisionKey {this, "TrigDecisionObjectName", "xTrigDecision", "Name of trigger decision object"}
private

Definition at line 114 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool {this, "TrigDecisionTool",""}
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 340 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""}
protectedinherited

Trigger chain string pulled from the job option and parsed into a vector.

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> AthMonitorAlgorithm::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
protectedinherited

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_TRT_BCIDCollectionKey

SG::ReadHandleKey<InDetTimeCollection> TRTMonitoringRun3ESD_Alg::m_TRT_BCIDCollectionKey {this, "TRTBCIDCollectionName", "TRT_BCID", "Name of TRT BCID collection"}
private

Definition at line 112 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_TRTCalDbTool

ToolHandle<ITRT_CalDbTool> TRTMonitoringRun3ESD_Alg::m_TRTCalDbTool
private

Definition at line 107 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_TRTStrawNeighbourSvc

ServiceHandle<ITRT_StrawNeighbourSvc> TRTMonitoringRun3ESD_Alg::m_TRTStrawNeighbourSvc
private

Definition at line 106 of file TRTMonitoringRun3ESD_Alg.h.

◆ m_useLumi

Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false}
protectedinherited

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames
protectedinherited

Vector of trigger chain names parsed from trigger chain string.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ m_xAODEventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> TRTMonitoringRun3ESD_Alg::m_xAODEventInfoKey {this, "xAODEventInfo", "EventInfo", "Name of EventInfo object"}
private

Definition at line 111 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_iChip_max

const int TRTMonitoringRun3ESD_Alg::s_iChip_max = {104, 240}
staticprivate

Definition at line 100 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_iStack_max

const int TRTMonitoringRun3ESD_Alg::s_iStack_max = {32, 64}
staticprivate

Definition at line 99 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_moduleNum

const int TRTMonitoringRun3ESD_Alg::s_moduleNum = {96, 64}
staticprivate

Definition at line 102 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_numberOfBarrelStacks

const int TRTMonitoringRun3ESD_Alg::s_numberOfBarrelStacks = 32
staticprivate

Definition at line 96 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_numberOfEndCapStacks

const int TRTMonitoringRun3ESD_Alg::s_numberOfEndCapStacks = 32
staticprivate

Definition at line 97 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_numberOfStacks

const int TRTMonitoringRun3ESD_Alg::s_numberOfStacks = {32, 32}
staticprivate

Definition at line 101 of file TRTMonitoringRun3ESD_Alg.h.

◆ s_Straw_max

const int TRTMonitoringRun3ESD_Alg::s_Straw_max = {1642, 3840}
staticprivate

Definition at line 98 of file TRTMonitoringRun3ESD_Alg.h.

◆ TRTMonitoringRun3Acc

def TRTMonitoringRun3ESD_Alg.TRTMonitoringRun3Acc = TRTMonitoringRun3ESD_AlgConfig(flags)

Definition at line 266 of file TRTMonitoringRun3ESD_Alg.py.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
TRTMonitoringRun3ESD_Alg::m_min_pixel_hits
int m_min_pixel_hits
Definition: TRTMonitoringRun3ESD_Alg.h:136
TRTMonitoringRun3ESD_Alg::m_minP
float m_minP
Definition: TRTMonitoringRun3ESD_Alg.h:140
CalculateHighPtTerm.pT
pT
Definition: ICHEP2016/CalculateHighPtTerm.py:57
TRT_ID::layer_id
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
Definition: TRT_ID.h:500
lastBinHigh
bool lastBinHigh(unsigned int m_word)
Definition: driftCircle.h:108
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
TRTMonitoringRun3ESD_Alg::strawNumberEndCap
int strawNumberEndCap(int strawNumber, int strawLayerNumber, int LayerNumber, int phi_stack, int side) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:291
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
InDet::TRT_DriftCircleOnTrack::prepRawData
virtual const TRT_DriftCircle * prepRawData() const override final
returns the PrepRawData - is a TRT_DriftCircle in this scope
Definition: TRT_DriftCircleOnTrack.h:202
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
Amg::hasPositiveDiagElems
bool hasPositiveDiagElems(const AmgSymMatrix(N) &mat)
Returns true if all diagonal elements of the covariance matrix are finite aka sane in the above defin...
Definition: EventPrimitivesCovarianceHelpers.h:96
AthMonitorAlgorithm::lbAverageLuminosity
virtual float lbAverageLuminosity(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1).
Definition: AthMonitorAlgorithm.cxx:255
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
TRTMonitoringRun3ESD_Alg::m_TRT_BCIDCollectionKey
SG::ReadHandleKey< InDetTimeCollection > m_TRT_BCIDCollectionKey
Definition: TRTMonitoringRun3ESD_Alg.h:112
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
Trk::locX
@ locX
Definition: ParamDefs.h:37
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
ComTime::getTime
double getTime() const
Definition: ComTime.h:44
collListGuids.line
string line
Definition: collListGuids.py:77
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
TRT_LoLumRawData::highLevel
virtual bool highLevel() const override final
Definition: TRT_LoLumRawData.h:128
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
TRT_LoLumRawData
Definition: TRT_LoLumRawData.h:25
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDetDD::TRT_DetectorManager::getBarrelElement
const TRT_BarrelElement * getBarrelElement(unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) const
Access Barrel Elements:---------------—(Fast)-------------------------—.
Definition: TRT_DetectorManager.cxx:103
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
TRT_ID::straw_layer_hash_max
size_type straw_layer_hash_max(void) const
Definition: TRT_ID.h:920
InDetDD::TRT_BaseElement::nStraws
unsigned int nStraws() const
Number of straws in the element.
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthMonitorAlgorithm::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
Definition: AthMonitorAlgorithm.h:362
M_PI
#define M_PI
Definition: ActiveFraction.h:11
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
InDetDD::TRT_BaseElement::strawCenter
const Amg::Vector3D & strawCenter(int straw) const
Straw Surface: Local -> global transform of the straw via integer.
Definition: TRT_BaseElement.cxx:143
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
xAOD::TrigDecision_v1::tav
const std::vector< uint32_t > & tav() const
Get the Trigger After Veto bits.
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
TRTMonitoringRun3ESD_Alg::m_min_si_hits
int m_min_si_hits
Definition: TRTMonitoringRun3ESD_Alg.h:135
xAOD::numberOfTRTHits
@ numberOfTRTHits
number of TRT hits [unit8_t].
Definition: TrackingPrimitives.h:276
cosmics
Definition: cosmics.py:1
Trk::locR
@ locR
Definition: ParamDefs.h:44
AtlasDetectorID::is_trt
bool is_trt(Identifier id) const
Definition: AtlasDetectorID.h:782
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRTMonitoringRun3ESD_Alg::m_DistToStraw
float m_DistToStraw
Definition: TRTMonitoringRun3ESD_Alg.h:132
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
InDet::TRT_DriftCircle::driftTimeBin
int driftTimeBin() const
returns the leading edge bin defined as in TRT_LoLumRawData to be the first 0-1 transition
MuonValidation_CreateSlides_config.Summary
list Summary
Definition: MuonValidation_CreateSlides_config.py:34
InDet::TRT_DriftCircleOnTrack
Definition: TRT_DriftCircleOnTrack.h:53
ComTime
Definition: ComTime.h:17
TRTMonitoringRun3ESD_Alg::radToDegrees
float radToDegrees(float radValue) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:369
TRTMonitoringRun3ESD_Alg::m_sumTool
ToolHandle< ITRT_StrawStatusSummaryTool > m_sumTool
Definition: TRTMonitoringRun3ESD_Alg.h:105
InDet::TRT_DriftCircleOnTrack::detectorElement
virtual const InDetDD::TRT_BaseElement * detectorElement() const override final
returns the detector element, assoicated with the PRD of this class
Definition: TRT_DriftCircleOnTrack.h:224
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
AmgSymMatrix
#define AmgSymMatrix(dim)
Definition: EventPrimitives.h:50
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:199
InDet::TRT_DriftCircle
Definition: TRT_DriftCircle.h:32
AthMonitorAlgorithm::Environment_t::user
@ user
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TRTMonitoringRun3ESD_Alg::m_pTRTHelper
const TRT_ID * m_pTRTHelper
Definition: TRTMonitoringRun3ESD_Alg.h:120
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
Trk::TrackStateOnSurface::Outlier
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
Definition: TrackStateOnSurface.h:122
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRT::Hit::side
@ side
Definition: HitInfo.h:83
TRTMonitoringRun3ESD_Alg::m_ArgonXenonSplitter
BooleanProperty m_ArgonXenonSplitter
Definition: TRTMonitoringRun3ESD_Alg.h:66
TRTMonitoringRun3ESD_Alg::m_mgr
const InDetDD::TRT_DetectorManager * m_mgr
Definition: TRTMonitoringRun3ESD_Alg.h:121
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
TRTCond::RtRelation
Definition: RtRelation.h:27
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
TRT_ID::straw
int straw(const Identifier &id) const
Definition: TRT_ID.h:902
TRTMonitoringRun3ESD_Alg::m_doStraws
bool m_doStraws
Definition: TRTMonitoringRun3ESD_Alg.h:124
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Trk::TrackStateOnSurface::Hole
@ Hole
A hole on the track - this is defined in the following way.
Definition: TrackStateOnSurface.h:128
lumiFormat.i
int i
Definition: lumiFormat.py:85
TRTMonitoringRun3ESD_Alg::Straw_Gastype
GasType Straw_Gastype(int stat) const
Definition: TRTMonitoringRun3ESD_Alg.h:144
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition: ReadCondHandle.h:287
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
TRTCond::RtRelation::drifttime
virtual float drifttime(float radius) const =0
drifttime for given radius
IDTPM::nTRTHits
float nTRTHits(const U &p)
Definition: TrackParametersHelper.h:446
Trk::theta
@ theta
Definition: ParamDefs.h:66
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TRTMonitoringRun3ESD_Alg::m_xAODEventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_xAODEventInfoKey
Definition: TRTMonitoringRun3ESD_Alg.h:111
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:53
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:111
python.CaloAddPedShiftConfig.str
str
Definition: CaloAddPedShiftConfig.py:42
python.LArMinBiasAlgConfig.int
int
Definition: LArMinBiasAlgConfig.py:59
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
TRTMonitoringRun3ESD_Alg::m_TRTStrawNeighbourSvc
ServiceHandle< ITRT_StrawNeighbourSvc > m_TRTStrawNeighbourSvc
Definition: TRTMonitoringRun3ESD_Alg.h:106
SignEnum::LE
@ LE
Definition: SignEnums.h:21
calibdata.exception
exception
Definition: calibdata.py:496
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
InDetRawDataCollection
Definition: InDetRawDataCollection.h:31
Side
Definition: WaferTree.h:36
TRTMonitoringRun3ESD_Alg::m_doTracksMon
bool m_doTracksMon
Definition: TRTMonitoringRun3ESD_Alg.h:123
TRTMonitoringRun3ESD_Alg::GasType
GasType
Definition: TRTMonitoringRun3ESD_Alg.h:67
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
IdentifiableContainerMT::end
const_iterator end() const
return const_iterator for end of container
Definition: IdentifiableContainerMT.h:239
TRTMonitoringRun3ESD_Alg::m_doExpert
bool m_doExpert
Definition: TRTMonitoringRun3ESD_Alg.h:127
TRTMonitoringRun3ESD_Alg::strawNumber
int strawNumber(int strawNumber, int strawlayerNumber, int LayerNumber) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:243
TRTMonitoringRun3ESD_Alg::m_isCosmics
bool m_isCosmics
Definition: TRTMonitoringRun3ESD_Alg.h:133
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:79
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Trk::ParametersBase
Definition: ParametersBase.h:55
IdentifiableContainerMT::begin
const_iterator begin() const
return const_iterator for first entry
Definition: IdentifiableContainerMT.h:233
AthMonitorAlgorithm::fill
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
InDet::TRT_DriftCircle::trailingEdge
int trailingEdge() const
returns the trailing edge bin
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
TRT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: TRT_ID.h:866
TRT_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
jobOption.theta
theta
Definition: jobOption.ParticleGun_fwd_sequence.py:13
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
beamspotman.stat
stat
Definition: beamspotman.py:266
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
Trk::MeasurementBase::localCovariance
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Definition: MeasurementBase.h:138
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
AthMonitorAlgorithm::DataType_t::cosmics
@ cosmics
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
firstBinHigh
bool firstBinHigh(unsigned int m_word)
Definition: driftCircle.h:104
InDetDD::TRT_DetectorManager::getEndcapElement
const TRT_EndcapElement * getEndcapElement(unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) const
Access Endcap Elements:---------------—(Fast)--------------------------—.
Definition: TRT_DetectorManager.cxx:119
Trk::MeasurementBase
Definition: MeasurementBase.h:58
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
AthMonitorAlgorithm::Environment_t::online
@ online
TRTMonitoringRun3ESD_Alg::m_idHelper
const AtlasDetectorID * m_idHelper
Definition: TRTMonitoringRun3ESD_Alg.h:69
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TRTMonitoringRun3ESD_Alg::fillTRTHighThreshold
StatusCode fillTRTHighThreshold(const xAOD::TrackParticleContainer &trackCollection, const xAOD::EventInfo &eventInfo, const EventContext &ctx) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:1237
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Amg::error
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Definition: EventPrimitivesHelpers.h:40
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
TRTMonitoringRun3ESD_Alg::m_trigDecisionKey
SG::ReadHandleKey< xAOD::TrigDecision > m_trigDecisionKey
Definition: TRTMonitoringRun3ESD_Alg.h:114
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
InDet::TRT_DriftCircle::lastBinHigh
bool lastBinHigh() const
returns true if the last bin is high
TRTMonitoringRun3ESD_Alg::m_minTRThits
int m_minTRThits
Definition: TRTMonitoringRun3ESD_Alg.h:139
item
Definition: ItemListSvc.h:43
WriteBchToCool.user
user
Definition: WriteBchToCool.py:76
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
columnar::ContainerId::eventInfo
@ eventInfo
xAOD::timeStamp
setEventNumber timeStamp
Definition: EventInfo_v1.cxx:128
Trk::MeasurementBase::localParameters
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Definition: MeasurementBase.h:132
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
TRTMonitoringRun3ESD_Alg::m_trackSelTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelTool
Definition: TRTMonitoringRun3ESD_Alg.h:163
DeMoScan.index
string index
Definition: DeMoScan.py:364
TRTMonitoringRun3ESD_Alg::Kr
@ Kr
Definition: TRTMonitoringRun3ESD_Alg.h:67
runIDAlign.accumulate
accumulate
Update flags based on parser line args.
Definition: runIDAlign.py:63
TRTMonitoringRun3ESD_Alg::m_mat_chip_E
std::vector< std::vector< unsigned char > > m_mat_chip_E
Definition: TRTMonitoringRun3ESD_Alg.h:130
TRT_ID::is_barrel
bool is_barrel(const Identifier &id) const
Test for barrel.
Definition: TRT_ID.h:857
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
TRTMonitoringRun3ESD_Alg::m_drifttool
ToolHandle< ITRT_DriftFunctionTool > m_drifttool
Definition: TRTMonitoringRun3ESD_Alg.h:118
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:152
TRTMonitoringRun3ESD_Alg::m_min_sct_hits
int m_min_sct_hits
Definition: TRTMonitoringRun3ESD_Alg.h:137
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
TRTMonitoringRun3ESD_Alg::m_mat_chip_B
std::vector< std::vector< unsigned char > > m_mat_chip_B
Definition: TRTMonitoringRun3ESD_Alg.h:129
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
python.LArCondContChannels.isBarrel
isBarrel
Definition: LArCondContChannels.py:659
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
InDet::TRT_DriftCircle::driftTimeValid
bool driftTimeValid() const
return true if the corrected drift time is OK
TRTMonitoringRun3ESD_Alg::m_TRTCalDbTool
ToolHandle< ITRT_CalDbTool > m_TRTCalDbTool
Definition: TRTMonitoringRun3ESD_Alg.h:107
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
TRTMonitoringRun3ESD_Alg::m_doChips
bool m_doChips
Definition: TRTMonitoringRun3ESD_Alg.h:125
TRTMonitoringRun3ESD_Alg::strawLayerNumber
int strawLayerNumber(int strawLayerNumber, int LayerNumber) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:225
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
InDet::TRT_DriftCircle::rawDriftTime
double rawDriftTime() const
returns the raw driftTime
InDet::TRT_DriftCircleOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override final
return the global position of this RIO_OnTrack
Definition: TRT_DriftCircleOnTrack.cxx:160
InDet::TRT_DriftCircle::getWord
unsigned int getWord() const
returns the TRT dataword
TRTMonitoringRun3ESD_Alg::m_min_trt_hits
int m_min_trt_hits
Definition: TRTMonitoringRun3ESD_Alg.h:138
AthMonitorAlgorithm::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Calculate the duration of the luminosity block (in seconds)
Definition: AthMonitorAlgorithm.cxx:324
TRTMonitoringRun3ESD_Alg::Xe
@ Xe
Definition: TRTMonitoringRun3ESD_Alg.h:67
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
TRTMonitoringRun3ESD_Alg::m_doShift
bool m_doShift
Definition: TRTMonitoringRun3ESD_Alg.h:126
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:30
TRTMonitoringRun3ESD_Alg::Ar
@ Ar
Definition: TRTMonitoringRun3ESD_Alg.h:67
trailingEdge
int trailingEdge(unsigned int m_word)
Definition: driftCircle.h:64
TRTMonitoringRun3ESD_Alg::m_min_pT
float m_min_pT
Definition: TRTMonitoringRun3ESD_Alg.h:141
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDet::TRT_DriftCircle::firstBinHigh
bool firstBinHigh() const
returns true if the first bin is high
xAOD::TrigDecision_v1
Interface to the raw trigger decision information of the event.
Definition: TrigDecision_v1.h:44
TRTMonitoringRun3ESD_Alg::fillTRTTracks
StatusCode fillTRTTracks(const EventContext &ctx, const xAOD::TrackParticleContainer &trackCollection, const xAOD::TrigDecision *trigDecision, const ComTime *comTimeObject, const xAOD::EventInfo &eventInfo) const
Definition: TRTMonitoringRun3ESD_Alg.cxx:414
Trk::TrackStateOnSurface::Measurement
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Definition: TrackStateOnSurface.h:101
TRTMonitoringRun3ESD_Alg::s_Straw_max
static const int s_Straw_max[2]
Definition: TRTMonitoringRun3ESD_Alg.h:98
TRTMonitoringRun3ESD_Alg::m_TrackSummaryTool
ToolHandle< Trk::ITrackSummaryTool > m_TrackSummaryTool
Definition: TRTMonitoringRun3ESD_Alg.h:117
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
fitman.k
k
Definition: fitman.py:528
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:52
TRTMonitoringRun3ESD_Alg::m_EventBurstCut
int m_EventBurstCut
Definition: TRTMonitoringRun3ESD_Alg.h:162
TRT_ID::straw_id
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
Definition: TRT_ID.h:581
TRTMonitoringRun3ESD_Alg::m_comTimeObjectKey
SG::ReadHandleKey< ComTime > m_comTimeObjectKey
Definition: TRTMonitoringRun3ESD_Alg.h:113
python.LArMinBiasAlgConfig.float
float
Definition: LArMinBiasAlgConfig.py:65
ServiceHandle< ICondSvc >
driftTimeBin
int driftTimeBin(unsigned int m_word)
Definition: driftCircle.h:50
collisions
Definition: collisions.py:1
Identifier
Definition: IdentifierFieldParser.cxx:14
TRTMonitoringRun3ESD_Alg::m_trackCollectionKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackCollectionKey
Definition: TRTMonitoringRun3ESD_Alg.h:110