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
 
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 19 of file MuonTruthSummaryTool.cxx.

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

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 124 of file MuonTruthSummaryTool.cxx.

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

◆ add() [2/4]

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

add segment

Implements Muon::IMuonTruthSummaryTool.

Definition at line 130 of file MuonTruthSummaryTool.cxx.

130 { 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 138 of file MuonTruthSummaryTool.cxx.

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

◆ add() [4/4]

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

add track

Implements Muon::IMuonTruthSummaryTool.

Definition at line 132 of file MuonTruthSummaryTool.cxx.

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

◆ clear()

void Muon::MuonTruthSummaryTool::clear ( )
virtual

clear tool

Implements Muon::IMuonTruthSummaryTool.

Definition at line 78 of file MuonTruthSummaryTool.cxx.

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

◆ clearChamberVariables()

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

Definition at line 261 of file MuonTruthSummaryTool.cxx.

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

◆ 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 276 of file MuonTruthSummaryTool.cxx.

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

◆ finalize()

StatusCode Muon::MuonTruthSummaryTool::finalize ( )

Definition at line 72 of file MuonTruthSummaryTool.cxx.

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

◆ 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 116 of file MuonTruthSummaryTool.cxx.

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

◆ getPdgId()

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

get the associated pdgId for a given barcode

Implements Muon::IMuonTruthSummaryTool.

Definition at line 108 of file MuonTruthSummaryTool.cxx.

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

◆ handle()

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

Definition at line 290 of file MuonTruthSummaryTool.cxx.

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

◆ init()

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

init truth

Implements Muon::IMuonTruthSummaryTool.

Definition at line 85 of file MuonTruthSummaryTool.cxx.

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

◆ initChamberVariables()

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

Definition at line 207 of file MuonTruthSummaryTool.cxx.

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

◆ initialize()

StatusCode Muon::MuonTruthSummaryTool::initialize ( )

Definition at line 35 of file MuonTruthSummaryTool.cxx.

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

◆ 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 146 of file MuonTruthSummaryTool.cxx.

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

◆ 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 173 of file MuonTruthSummaryTool.cxx.

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

◆ 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

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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
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:146
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:423
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
Muon::MuonTruthSummaryTool::clear
void clear()
clear tool
Definition: MuonTruthSummaryTool.cxx:78
Muon::MuonTruthSummaryTool::clearChamberVariables
void clearChamberVariables(const unsigned int level)
Definition: MuonTruthSummaryTool.cxx:261
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
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:85
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:276
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:192
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:207
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:124
a
TList * a
Definition: liststreamerinfos.cxx:10
Muon::MuonTruthSummaryTool::m_missedHitStationNameIndex
std::vector< std::vector< int > * > m_missedHitStationNameIndex
Definition: MuonTruthSummaryTool.h:136
Muon::MuonTruthSummaryTool::m_thistSvc
ITHistSvc * m_thistSvc
Definition: MuonTruthSummaryTool.h:120
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:616
Muon::MuonTruthSummaryTool::m_missedHitTechnologyIndex
std::vector< std::vector< uint8_t > * > m_missedHitTechnologyIndex
Definition: MuonTruthSummaryTool.h:129
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
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