ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Muon::MuonTruthSummaryTool Class Reference

Interface for tools calculating hit count summaries for track. More...

#include <MuonTruthSummaryTool.h>

Inheritance diagram for Muon::MuonTruthSummaryTool:
Collaboration diagram for Muon::MuonTruthSummaryTool:

Classes

struct  IdentifierHash
 

Public Member Functions

 MuonTruthSummaryTool (const std::string &t, const std::string &n, const IInterface *p)
 Constructor. More...
 
StatusCode initialize ()
 
StatusCode finalize ()
 
void clear ()
 clear tool More...
 
void init () const
 init truth More...
 
int getBarcode (const Identifier &id) const
 get the associated barcode for the identifier, return -1 if the channel was not hit by a muon More...
 
int getPdgId (int barcode) const
 get the associated pdgId for a given barcode More...
 
void add (const Identifier &id, int level) const
 add identifier More...
 
void add (const MuonSegment &seg, int level) const
 add segment More...
 
void add (const Trk::Track &track, int level) const
 add track More...
 
std::string printSummary ()
 print summary More...
 
void handle (const Incident &inc)
 
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 sysInitialize () override
 Perform system initialization for an algorithm. 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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 IAlgTool interface. More...
 

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

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void add (const std::vector< const Trk::MeasurementBase * > &measurements, int level) const
 add measurements More...
 
std::string printSummary (const std::unordered_set< Identifier, IdentifierHash > &truth, const std::unordered_set< Identifier, IdentifierHash > &found)
 
void fillChamberVariables (const Identifier &chamberId, const unsigned int numMissedHits)
 
void clearChamberVariables (const unsigned int level)
 
void initChamberVariables (const unsigned int levels)
 
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

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc
 
ServiceHandle< IMuonEDMHelperSvcm_edmHelperSvc
 
ServiceHandle< IIncidentSvc > m_incidentSvc
 
PublicToolHandle< MuonEDMPrinterToolm_printer
 
std::atomic< bool > m_wasInit
 
SG::ReadHandleKeyArray< PRD_MultiTruthCollectionm_TruthNames
 
std::unordered_map< int, int > m_pdgIdLookupFromBarcode ATLAS_THREAD_SAFE
 
std::unordered_map< Identifier, int, IdentifierHash > m_truthHits ATLAS_THREAD_SAFE
 
std::unordered_map< int, std::unordered_set< Identifier, IdentifierHash > > m_truthDataPerLevel ATLAS_THREAD_SAFE
 
std::unordered_map< int, unsigned int > m_lossesPerLevel
 
unsigned int m_truthHitsTotal ATLAS_THREAD_SAFE
 
std::recursive_mutex m_mutex
 
TTree * m_tree
 
ServiceHandle< ITHistSvc > m_thistSvc
 
bool m_writeTree
 
std::string m_treeName
 
std::string m_histStream
 
unsigned int m_level
 
int m_selectedPdgId
 
std::vector< unsigned int > m_numChambers
 
std::vector< std::vector< uint8_t > * > m_numMissedHits
 
std::vector< std::vector< uint8_t > * > m_missedHitTechnologyIndex
 
std::vector< std::vector< int > * > m_missedHitStationPhi
 
std::vector< std::vector< int > * > m_missedHitStationSector
 
std::vector< std::vector< int > * > m_missedHitStationEta
 
std::vector< std::vector< int > * > m_missedHitStationNameIndex
 
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
 

Detailed Description

Interface for tools calculating hit count summaries for track.

Definition at line 39 of file MuonTruthSummaryTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonTruthSummaryTool()

Muon::MuonTruthSummaryTool::MuonTruthSummaryTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor.

Definition at line 18 of file MuonTruthSummaryTool.cxx.

18  :
19  AthAlgTool(t, n, p),
20  m_incidentSvc("IncidentSvc", n),
21  m_wasInit(false),
22  m_truthHitsTotal(0),
23  m_tree(nullptr),
24  m_thistSvc("THistSvc", n),
25  m_writeTree(false),
26  m_level(0) {
27  declareInterface<IMuonTruthSummaryTool>(this);
28  declareProperty("WriteNtuple", m_writeTree);
29  declareProperty("NtupleTreeName", m_treeName = "MuonTruthSummaryTree");
30  declareProperty("HistStream", m_histStream = "Summary");
31  declareProperty("SelectedPdgId", m_selectedPdgId = 13, "Should be positive as absolute value is used");
32  }

Member Function Documentation

◆ add() [1/4]

void Muon::MuonTruthSummaryTool::add ( const Identifier id,
int  level 
) const
virtual

add identifier

Implements Muon::IMuonTruthSummaryTool.

Definition at line 123 of file MuonTruthSummaryTool.cxx.

123  {
124  init();
125  std::scoped_lock lock(m_mutex);
126  if (m_truthHits.count(id)) m_truthDataPerLevel[level].insert(id);
127  }

◆ add() [2/4]

void Muon::MuonTruthSummaryTool::add ( const MuonSegment seg,
int  level 
) const
virtual

add segment

Implements Muon::IMuonTruthSummaryTool.

Definition at line 129 of file MuonTruthSummaryTool.cxx.

129 { add(seg.containedMeasurements(), level); }

◆ add() [3/4]

void Muon::MuonTruthSummaryTool::add ( const std::vector< const Trk::MeasurementBase * > &  measurements,
int  level 
) const
private

add measurements

Definition at line 137 of file MuonTruthSummaryTool.cxx.

137  {
138  std::scoped_lock lock(m_mutex);
139  for (std::vector<const Trk::MeasurementBase*>::const_iterator it = measurements.begin(); it != measurements.end(); ++it) {
140  Identifier id = m_edmHelperSvc->getIdentifier(**it);
141  if (id.is_valid() && m_idHelperSvc->isMuon(id)) add(id, level);
142  }
143  }

◆ add() [4/4]

void Muon::MuonTruthSummaryTool::add ( const Trk::Track track,
int  level 
) const
virtual

add track

Implements Muon::IMuonTruthSummaryTool.

Definition at line 131 of file MuonTruthSummaryTool.cxx.

131  {
132  std::scoped_lock lock(m_mutex);
133  const DataVector<const Trk::MeasurementBase>* meas = track.measurementsOnTrack();
134  if (meas) add(meas->stdcont(), level);
135  }

◆ clear()

void Muon::MuonTruthSummaryTool::clear ( )
virtual

clear tool

Implements Muon::IMuonTruthSummaryTool.

Definition at line 77 of file MuonTruthSummaryTool.cxx.

77  {
78  std::scoped_lock lock(m_mutex);
79  m_wasInit = false;
80  m_truthHits.clear();
81  m_truthDataPerLevel.clear();
82  }

◆ clearChamberVariables()

void Muon::MuonTruthSummaryTool::clearChamberVariables ( const unsigned int  level)
private

Definition at line 260 of file MuonTruthSummaryTool.cxx.

260  {
261  std::scoped_lock lock(m_mutex);
262  ATH_MSG_DEBUG("clearChamberVariables: Level = " << level + 1);
263  m_numChambers[level] = 0;
264  m_numMissedHits[level]->clear();
266  m_missedHitStationPhi[level]->clear();
268  m_missedHitStationEta[level]->clear();
269  // m_missedHitR[level]->clear();
270  // m_missedHitZ[level]->clear();
271  // m_missedHitStationName[level]->clear();
273  }

◆ declareGaudiProperty() [1/4]

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

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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; }

◆ extraDeps_update_handler()

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

◆ fillChamberVariables()

void Muon::MuonTruthSummaryTool::fillChamberVariables ( const Identifier chamberId,
const unsigned int  numMissedHits 
)
private

Definition at line 275 of file MuonTruthSummaryTool.cxx.

275  {
276  std::scoped_lock lock(m_mutex);
277  ATH_MSG_DEBUG("fillChamberVariables: Level = " << (m_level + 1) << " \t chamber = " << m_idHelperSvc->toStringChamber(chamberId)
278  << " numMissedHits=" << numMissedHits);
279 
281  m_numMissedHits[m_level]->push_back(numMissedHits);
282  m_missedHitTechnologyIndex[m_level]->push_back(m_idHelperSvc->technologyIndex(chamberId));
283  m_missedHitStationPhi[m_level]->push_back(m_idHelperSvc->stationPhi(chamberId));
284  m_missedHitStationSector[m_level]->push_back(m_idHelperSvc->sector(chamberId));
285  m_missedHitStationEta[m_level]->push_back(m_idHelperSvc->stationEta(chamberId));
286  m_missedHitStationNameIndex[m_level]->push_back(m_idHelperSvc->stationIndex(chamberId));
287  }

◆ finalize()

StatusCode Muon::MuonTruthSummaryTool::finalize ( )

Definition at line 71 of file MuonTruthSummaryTool.cxx.

71  {
72  ATH_MSG_INFO("Of " << m_truthHitsTotal << " truth hits in total...");
73  for (auto level : m_lossesPerLevel) { ATH_MSG_INFO(level.second << " \ttruth hits lost at level :" << level.first); }
74  return StatusCode::SUCCESS;
75  }

◆ getBarcode()

int Muon::MuonTruthSummaryTool::getBarcode ( const Identifier id) const
virtual

get the associated barcode for the identifier, return -1 if the channel was not hit by a muon

Implements Muon::IMuonTruthSummaryTool.

Definition at line 115 of file MuonTruthSummaryTool.cxx.

115  { // FIXME barcode-based
116  init();
117  std::scoped_lock lock(m_mutex);
118  auto pos = m_truthHits.find(id);
119  if (pos == m_truthHits.end()) return -1;
120  return pos->second;
121  }

◆ getPdgId()

int Muon::MuonTruthSummaryTool::getPdgId ( int  barcode) const
virtual

get the associated pdgId for a given barcode

Implements Muon::IMuonTruthSummaryTool.

Definition at line 107 of file MuonTruthSummaryTool.cxx.

107  { // FIXME barcode-based
108  init();
109  std::scoped_lock lock(m_mutex);
110  auto pos = m_pdgIdLookupFromBarcode.find(barcode);
111  if (pos == m_pdgIdLookupFromBarcode.end()) return 0;
112  return pos->second;
113  }

◆ handle()

void Muon::MuonTruthSummaryTool::handle ( const Incident &  inc)

Definition at line 289 of file MuonTruthSummaryTool.cxx.

289  {
290  // Only clear cache for EndEvent incident
291  if (inc.type() == "EndEvent") {
293  clear();
294  }
295  }

◆ init()

void Muon::MuonTruthSummaryTool::init ( ) const
virtual

init truth

Implements Muon::IMuonTruthSummaryTool.

Definition at line 84 of file MuonTruthSummaryTool.cxx.

84  {
85  std::scoped_lock lock(m_mutex);
86  if (!m_wasInit) {
88  if (!col.isValid() || !col.isPresent()) continue;
89  ATH_MSG_DEBUG("PRD_MultiTruthCollection " << col.key() << " found");
90  PRD_MultiTruthCollection::const_iterator it = col->begin();
91  PRD_MultiTruthCollection::const_iterator it_end = col->end();
92  for (; it != it_end; ++it) {
93  const HepMcParticleLink& link = it->second;
94  if (link.cptr() && (std::abs(link.cptr()->pdg_id()) == m_selectedPdgId || std::abs(link.cptr()->pdg_id()) == 13)) {
95  int bc = HepMC::barcode(link); // FIXME barcode-based
96  m_truthHits[it->first] = bc; // FIXME barcode-based
97  m_pdgIdLookupFromBarcode[bc] = link.cptr()->pdg_id(); // FIXME barcode-based
98 
99  }
100  }
101  }
102  m_wasInit = true;
103  ATH_MSG_DEBUG(" Total collected muon truth hits " << m_truthHits.size());
104  }
105  }

◆ initChamberVariables()

void Muon::MuonTruthSummaryTool::initChamberVariables ( const unsigned int  levels)
private

Definition at line 206 of file MuonTruthSummaryTool.cxx.

206  {
207  std::scoped_lock lock(m_mutex);
208  if (!m_tree) {
209  ATH_MSG_WARNING("Trying to write ntuple, but tree is zero. Setting WriteNtuple to False");
210  m_writeTree = false;
211  }
212  m_numChambers.resize(levels);
213  m_numMissedHits.resize(levels);
214  m_missedHitTechnologyIndex.resize(levels);
215  m_missedHitStationPhi.resize(levels);
216  m_missedHitStationSector.resize(levels);
217  m_missedHitStationEta.resize(levels);
218  // m_missedHitR.resize(levels);
219  // m_missedHitZ.resize(levels);
220  // m_missedHitStationName.resize(levels);
221  m_missedHitStationNameIndex.resize(levels);
222 
223  for (unsigned int level = 0; level < levels; level++) {
224  m_numChambers[level] = 0;
225  m_numMissedHits[level] = new std::vector<uint8_t>;
226  m_missedHitTechnologyIndex[level] = new std::vector<uint8_t>;
227  m_missedHitStationPhi[level] = new std::vector<int>;
228  m_missedHitStationSector[level] = new std::vector<int>;
229  m_missedHitStationEta[level] = new std::vector<int>;
230  // m_missedHitR[level] = new std::vector<float>;
231  // m_missedHitZ[level] = new std::vector<float>;
232  // m_missedHitStationName[level] = new std::vector<std::string>;
233  m_missedHitStationNameIndex[level] = new std::vector<int>;
234 
235  std::string name = "numMissedHitsForLevel" + std::to_string(level);
236  std::string leafThing = name + std::string("/i");
237  // std::cout<<"m_numChambers["<<level<<"] = "<<m_numChambers[level]<<std::endl;
238  m_tree->Branch(name.c_str(), &m_numChambers[level], leafThing.c_str());
239  name = "numMissedHitsForLevel" + std::to_string(level);
240  m_tree->Branch(name.c_str(), &m_numMissedHits[level]);
241  name = "TechnologyIndexForLevel" + std::to_string(level);
242  m_tree->Branch(name.c_str(), &m_missedHitTechnologyIndex[level]);
243  name = "MissedHitStationPhiForLevel" + std::to_string(level);
244  m_tree->Branch(name.c_str(), &m_missedHitStationPhi[level]);
245  name = "MissedHitStationSectorForLevel" + std::to_string(level);
246  m_tree->Branch(name.c_str(), &m_missedHitStationSector[level]);
247  name = "MissedHitStationEtaForLevel" + std::to_string(level);
248  m_tree->Branch(name.c_str(), &(m_missedHitStationEta[level]));
249  // name = "MissedHitRForLevel"+std::to_string(level);
250  // m_tree->Branch(name.c_str(), &(m_missedHitR[level]));
251  // name = "MissedHitZForLevel"+std::to_string(level);
252  // m_tree->Branch(name.c_str(), &(m_missedHitZ[level]));
253  // name = "MissedHitStationName for level "+std::to_string(level);
254  // m_tree->Branch(name.c_str(), &m_missedHitStationName[level]);
255  name = "MissedHitStationNameIndexForLevel" + std::to_string(level);
256  m_tree->Branch(name.c_str(), &m_missedHitStationNameIndex[level]);
257  }
258  }

◆ initialize()

StatusCode Muon::MuonTruthSummaryTool::initialize ( )

Definition at line 34 of file MuonTruthSummaryTool.cxx.

34  {
35  ATH_MSG_VERBOSE("Initializing ...");
36  ATH_CHECK(m_idHelperSvc.retrieve());
37  ATH_CHECK(m_printer.retrieve());
38  ATH_CHECK(m_edmHelperSvc.retrieve());
39  ATH_CHECK(m_incidentSvc.retrieve());
40 
41  m_incidentSvc->addListener(this, std::string("EndEvent"));
42 
43  if (m_writeTree) {
44  ATH_CHECK(m_thistSvc.retrieve());
45 
46  m_tree = new TTree(m_treeName.c_str(), "Ntuple of MuonTruthSummary");
47  constexpr int NUM_LEVELS = 3; // Hardcoding to 3 levels for the moment.
48 
49  std::string treePathAndName("/");
50  treePathAndName += m_histStream;
51  treePathAndName += "/";
52  treePathAndName += m_treeName;
53 
54  ATH_CHECK(m_thistSvc->regTree(treePathAndName.c_str(), m_tree));
55  ATH_MSG_VERBOSE("Registered tree as " << treePathAndName);
56 
58  }
59  if (m_selectedPdgId < 0) {
60  ATH_MSG_WARNING("SelectedPdgId should be positive, taking the absolute value");
62  }
63 
64  if (m_idHelperSvc->hasMM()) m_TruthNames.emplace_back("MM_TruthMap");
65  if (m_idHelperSvc->hasSTGC()) m_TruthNames.emplace_back("STGC_TruthMap");
66  if (m_idHelperSvc->hasCSC()) m_TruthNames.emplace_back("CSC_TruthMap");
67  ATH_CHECK(m_TruthNames.initialize());
68  return StatusCode::SUCCESS;
69  }

◆ inputHandles()

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

◆ interfaceID()

static const InterfaceID& Muon::IMuonTruthSummaryTool::interfaceID ( )
inlinestaticinherited

IAlgTool interface.

Definition at line 22 of file IMuonTruthSummaryTool.h.

22  {
23  static const InterfaceID IID_IMuonTruthSummaryTool("Muon::IMuonTruthSummaryTool", 1, 0);
24  return IID_IMuonTruthSummaryTool;
25  }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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.

◆ printSummary() [1/2]

std::string Muon::MuonTruthSummaryTool::printSummary ( )
virtual

print summary

Implements Muon::IMuonTruthSummaryTool.

Definition at line 145 of file MuonTruthSummaryTool.cxx.

145  {
146  std::scoped_lock lock(m_mutex);
147  if (m_truthHits.empty()) return "Event without truth hits";
148  if (m_truthDataPerLevel.empty()) return "No hits added";
149  std::ostringstream sout;
150  sout << "Have " << m_truthHits.size() << " truth hits and " << m_truthDataPerLevel.size() << " levels filled." << std::endl;
151 
152  std::unordered_set<Identifier, IdentifierHash> truthHits;
153  for (auto it = m_truthHits.begin(); it != m_truthHits.end(); ++it) truthHits.insert(it->first);
154 
155  m_truthHitsTotal += truthHits.size();
156  sout << " Summarizing: truth hits " << truthHits.size() << " levels filled " << m_truthDataPerLevel.size() << std::endl;
157  for (auto& pair : m_truthDataPerLevel) {
158  m_level = pair.first - 1;
160  sout << " Comparing truth to level " << m_level << std::endl << printSummary(truthHits, pair.second);
161  m_lossesPerLevel[pair.first] += (truthHits.size() - pair.second.size());
162  }
163  if (m_writeTree) {
164  std::cout << "About to try to fill try tree " << m_tree->GetName() << std::endl;
165  std::cout << "m_numChambers size = " << m_numChambers.size() << ", val [0] = " << m_numChambers[0] << std::endl;
166 
167  m_tree->Fill();
168  }
169  return sout.str();
170  }

◆ printSummary() [2/2]

std::string Muon::MuonTruthSummaryTool::printSummary ( const std::unordered_set< Identifier, IdentifierHash > &  truth,
const std::unordered_set< Identifier, IdentifierHash > &  found 
)
private

Definition at line 172 of file MuonTruthSummaryTool.cxx.

173  {
174  std::scoped_lock lock(m_mutex);
175  std::ostringstream sout;
176  if (truth.size() != found.size()) {
177  sout << " Some truth hits not found: truth " << truth.size() << " found " << found.size() << std::endl;
178  std::set<Identifier> truthset(truth.begin(), truth.end());
179  std::set<Identifier> foundset(found.begin(), found.end());
180  std::vector<Identifier> result(truth.size() - found.size());
182  std::set_difference(truthset.begin(), truthset.end(), foundset.begin(), foundset.end(), result.begin());
183  result.resize(pos - result.begin());
184  int nmm = 0;
185  std::map<Identifier, unsigned int> chambers; // Store counts per chamber Id
186  unsigned int hitNum = 0;
187  for (std::vector<Identifier>::iterator it = result.begin(); it != result.end(); ++it) {
188  sout << hitNum++ << ":\t" << m_idHelperSvc->toString(*it) << std::endl;
189  if (m_idHelperSvc->isMM(*it)) ++nmm;
190  chambers[m_idHelperSvc->chamberId(*it)]++;
191  }
192  if (nmm > 4) sout << " possible missing MM segment : " << nmm << std::endl;
193 
194  sout << std::endl << "++++ Chamber summaries:" << std::endl;
195  for (auto chamber : chambers) {
196  sout << "Chamber " << m_idHelperSvc->toStringChamber(chamber.first) << "\t has " << chamber.second << " missing truth hits"
197  << std::endl;
198  if (m_writeTree) fillChamberVariables(chamber.first, chamber.second);
199  }
200  } else {
201  sout << " All hits found: truth " << truth.size() << " found " << found.size() << std::endl;
202  }
203  return sout.str();
204  }

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

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

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

◆ updateVHKA()

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

◆ ATLAS_THREAD_SAFE [1/4]

std::unordered_map<int, int> m_pdgIdLookupFromBarcode Muon::MuonTruthSummaryTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 108 of file MuonTruthSummaryTool.h.

◆ ATLAS_THREAD_SAFE [2/4]

std::unordered_map<Identifier, int, IdentifierHash> m_truthHits Muon::MuonTruthSummaryTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 110 of file MuonTruthSummaryTool.h.

◆ ATLAS_THREAD_SAFE [3/4]

std::unordered_map<int, std::unordered_set<Identifier, IdentifierHash> > m_truthDataPerLevel Muon::MuonTruthSummaryTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 113 of file MuonTruthSummaryTool.h.

◆ ATLAS_THREAD_SAFE [4/4]

unsigned int m_truthHitsTotal Muon::MuonTruthSummaryTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 115 of file MuonTruthSummaryTool.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_edmHelperSvc

ServiceHandle<IMuonEDMHelperSvc> Muon::MuonTruthSummaryTool::m_edmHelperSvc
private
Initial value:
{
this,
"edmHelper",
"Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
"Handle to the service providing the IMuonEDMHelperSvc interface",
}

Definition at line 89 of file MuonTruthSummaryTool.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_histStream

std::string Muon::MuonTruthSummaryTool::m_histStream
private

Definition at line 123 of file MuonTruthSummaryTool.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> Muon::MuonTruthSummaryTool::m_idHelperSvc
private
Initial value:
{
this,
"MuonIdHelperSvc",
"Muon::MuonIdHelperSvc/MuonIdHelperSvc",
}

Definition at line 84 of file MuonTruthSummaryTool.h.

◆ m_incidentSvc

ServiceHandle<IIncidentSvc> Muon::MuonTruthSummaryTool::m_incidentSvc
private

Definition at line 95 of file MuonTruthSummaryTool.h.

◆ m_level

unsigned int Muon::MuonTruthSummaryTool::m_level
private

Definition at line 124 of file MuonTruthSummaryTool.h.

◆ m_lossesPerLevel

std::unordered_map<int, unsigned int> Muon::MuonTruthSummaryTool::m_lossesPerLevel
private

Definition at line 114 of file MuonTruthSummaryTool.h.

◆ m_missedHitStationEta

std::vector<std::vector<int>*> Muon::MuonTruthSummaryTool::m_missedHitStationEta
private

Definition at line 132 of file MuonTruthSummaryTool.h.

◆ m_missedHitStationNameIndex

std::vector<std::vector<int>*> Muon::MuonTruthSummaryTool::m_missedHitStationNameIndex
private

Definition at line 136 of file MuonTruthSummaryTool.h.

◆ m_missedHitStationPhi

std::vector<std::vector<int>*> Muon::MuonTruthSummaryTool::m_missedHitStationPhi
private

Definition at line 130 of file MuonTruthSummaryTool.h.

◆ m_missedHitStationSector

std::vector<std::vector<int>*> Muon::MuonTruthSummaryTool::m_missedHitStationSector
private

Definition at line 131 of file MuonTruthSummaryTool.h.

◆ m_missedHitTechnologyIndex

std::vector<std::vector<uint8_t>*> Muon::MuonTruthSummaryTool::m_missedHitTechnologyIndex
private

Definition at line 129 of file MuonTruthSummaryTool.h.

◆ m_mutex

std::recursive_mutex Muon::MuonTruthSummaryTool::m_mutex
mutableprivate

Definition at line 117 of file MuonTruthSummaryTool.h.

◆ m_numChambers

std::vector<unsigned int> Muon::MuonTruthSummaryTool::m_numChambers
private

Definition at line 127 of file MuonTruthSummaryTool.h.

◆ m_numMissedHits

std::vector<std::vector<uint8_t>*> Muon::MuonTruthSummaryTool::m_numMissedHits
private

Definition at line 128 of file MuonTruthSummaryTool.h.

◆ m_printer

PublicToolHandle<MuonEDMPrinterTool> Muon::MuonTruthSummaryTool::m_printer
private
Initial value:
{
this,
"Printer",
"Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
}

Definition at line 97 of file MuonTruthSummaryTool.h.

◆ m_selectedPdgId

int Muon::MuonTruthSummaryTool::m_selectedPdgId
private

Definition at line 125 of file MuonTruthSummaryTool.h.

◆ m_thistSvc

ServiceHandle<ITHistSvc> Muon::MuonTruthSummaryTool::m_thistSvc
private

Definition at line 120 of file MuonTruthSummaryTool.h.

◆ m_tree

TTree* Muon::MuonTruthSummaryTool::m_tree
private

Definition at line 119 of file MuonTruthSummaryTool.h.

◆ m_treeName

std::string Muon::MuonTruthSummaryTool::m_treeName
private

Definition at line 122 of file MuonTruthSummaryTool.h.

◆ m_TruthNames

SG::ReadHandleKeyArray<PRD_MultiTruthCollection> Muon::MuonTruthSummaryTool::m_TruthNames
private
Initial value:
{
this, "TruthNames", {"RPC_TruthMap", "TGC_TruthMap", "MDT_TruthMap"}, "truth names"}

Definition at line 105 of file MuonTruthSummaryTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_wasInit

std::atomic<bool> Muon::MuonTruthSummaryTool::m_wasInit
mutableprivate

Definition at line 103 of file MuonTruthSummaryTool.h.

◆ m_writeTree

bool Muon::MuonTruthSummaryTool::m_writeTree
private

Definition at line 121 of file MuonTruthSummaryTool.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
get_generator_info.result
result
Definition: get_generator_info.py:21
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Muon::MuonTruthSummaryTool::m_numMissedHits
std::vector< std::vector< uint8_t > * > m_numMissedHits
Definition: MuonTruthSummaryTool.h:128
Muon::MuonTruthSummaryTool::printSummary
std::string printSummary()
print summary
Definition: MuonTruthSummaryTool.cxx:145
calibdata.chamber
chamber
Definition: calibdata.py:32
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Muon::MuonTruthSummaryTool::m_TruthNames
SG::ReadHandleKeyArray< PRD_MultiTruthCollection > m_TruthNames
Definition: MuonTruthSummaryTool.h:105
Muon::MuonTruthSummaryTool::m_level
unsigned int m_level
Definition: MuonTruthSummaryTool.h:124
skel.it
it
Definition: skel.GENtoEVGEN.py:396
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Muon::MuonTruthSummaryTool::m_missedHitStationPhi
std::vector< std::vector< int > * > m_missedHitStationPhi
Definition: MuonTruthSummaryTool.h:130
Muon::MuonTruthSummaryTool::m_numChambers
std::vector< unsigned int > m_numChambers
Definition: MuonTruthSummaryTool.h:127
Muon::MuonTruthSummaryTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonTruthSummaryTool.h:84
Muon::MuonTruthSummaryTool::m_mutex
std::recursive_mutex m_mutex
Definition: MuonTruthSummaryTool.h:117
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Muon::MuonTruthSummaryTool::m_printer
PublicToolHandle< MuonEDMPrinterTool > m_printer
Definition: MuonTruthSummaryTool.h:97
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
Muon::MuonTruthSummaryTool::m_writeTree
bool m_writeTree
Definition: MuonTruthSummaryTool.h:121
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
Muon::MuonTruthSummaryTool::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: MuonTruthSummaryTool.h:120
Muon::MuonTruthSummaryTool::clear
void clear()
clear tool
Definition: MuonTruthSummaryTool.cxx:77
Muon::MuonTruthSummaryTool::clearChamberVariables
void clearChamberVariables(const unsigned int level)
Definition: MuonTruthSummaryTool.cxx:260
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
Muon::MuonTruthSummaryTool::m_wasInit
std::atomic< bool > m_wasInit
Definition: MuonTruthSummaryTool.h:103
Muon::MuonTruthSummaryTool::init
void init() const
init truth
Definition: MuonTruthSummaryTool.cxx:84
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
DataVector< const Trk::MeasurementBase >
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Muon::MuonTruthSummaryTool::fillChamberVariables
void fillChamberVariables(const Identifier &chamberId, const unsigned int numMissedHits)
Definition: MuonTruthSummaryTool.cxx:275
Muon::MuonTruthSummaryTool::m_lossesPerLevel
std::unordered_map< int, unsigned int > m_lossesPerLevel
Definition: MuonTruthSummaryTool.h:114
TrigConf::MSGTC::NUM_LEVELS
@ NUM_LEVELS
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:30
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Muon::MuonTruthSummaryTool::m_selectedPdgId
int m_selectedPdgId
Definition: MuonTruthSummaryTool.h:125
Muon::MuonTruthSummaryTool::m_histStream
std::string m_histStream
Definition: MuonTruthSummaryTool.h:123
Muon::MuonTruthSummaryTool::initChamberVariables
void initChamberVariables(const unsigned int levels)
Definition: MuonTruthSummaryTool.cxx:206
query_example.col
col
Definition: query_example.py:7
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
DataVector::stdcont
const PtrVector & stdcont() const
Return the underlying std::vector of the container.
Muon::MuonTruthSummaryTool::add
void add(const Identifier &id, int level) const
add identifier
Definition: MuonTruthSummaryTool.cxx:123
a
TList * a
Definition: liststreamerinfos.cxx:10
Muon::MuonTruthSummaryTool::m_missedHitStationNameIndex
std::vector< std::vector< int > * > m_missedHitStationNameIndex
Definition: MuonTruthSummaryTool.h:136
h
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Muon::MuonTruthSummaryTool::m_edmHelperSvc
ServiceHandle< IMuonEDMHelperSvc > m_edmHelperSvc
Definition: MuonTruthSummaryTool.h:89
Muon::MuonTruthSummaryTool::m_missedHitStationEta
std::vector< std::vector< int > * > m_missedHitStationEta
Definition: MuonTruthSummaryTool.h:132
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
Muon::MuonTruthSummaryTool::m_missedHitTechnologyIndex
std::vector< std::vector< uint8_t > * > m_missedHitTechnologyIndex
Definition: MuonTruthSummaryTool.h:129
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Muon::MuonTruthSummaryTool::m_missedHitStationSector
std::vector< std::vector< int > * > m_missedHitStationSector
Definition: MuonTruthSummaryTool.h:131
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
Muon::MuonTruthSummaryTool::m_incidentSvc
ServiceHandle< IIncidentSvc > m_incidentSvc
Definition: MuonTruthSummaryTool.h:95
Muon::MuonTruthSummaryTool::m_treeName
std::string m_treeName
Definition: MuonTruthSummaryTool.h:122
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
Muon::MuonTruthSummaryTool::m_tree
TTree * m_tree
Definition: MuonTruthSummaryTool.h:119
Identifier
Definition: IdentifierFieldParser.cxx:14