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

#include <MuonPrdSelectorAlg.h>

Inheritance diagram for MuonPrdSelectorAlg:
Collaboration diagram for MuonPrdSelectorAlg:

Public Member Functions

 MuonPrdSelectorAlg (const std::string &name, ISvcLocator *pSvcLocator)
 Athena algorithm constructor. More...
 
virtual StatusCode initialize ()
 Algorithm initialization: retrieves StoreGate/DetectorStore/MuonIdHelpers/MuonPrepDataContainers. More...
 
virtual StatusCode execute ()
 Retrieves and records containers, performs selection. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

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 print ()
 method for DEBUG purposes: prints the content of input and output MuonPrepDataContainer More...
 
StatusCode retrieveContainers ()
 retrieves input MuonPrepDataContainers from StoreGate More...
 
StatusCode recordContainers ()
 records output MuonPrepDataContainers to StoreGate More...
 
StatusCode performSelection ()
 checks if each hit in each collection passes a set of cuts these hits are written to new collections More...
 
StatusCode selectMDTs ()
 selects the hits from MDTcollections More...
 
StatusCode selectRPCs ()
 selects the hits from RPCcollections More...
 
StatusCode selectTGCs ()
 selects the hits from TGCcollections More...
 
StatusCode selectCSCs ()
 selects the hits from CSCcollections More...
 
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 {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
ToolHandle< IMuonIdCutToolm_muonIdCutTool {this,"MuonIdCutTool","MuonIdCutTool/MuonIdCutTool","defines the cuts"}
 
std::string m_inputContainer_mdt
 
std::string m_inputContainer_rpc
 
std::string m_inputContainer_tgc
 
std::string m_inputContainer_csc
 
std::string m_outputContainer_mdt
 
std::string m_outputContainer_rpc
 
std::string m_outputContainer_tgc
 
std::string m_outputContainer_csc
 
const Muon::MdtPrepDataContainerm_mdtPRDs_in
 
const Muon::RpcPrepDataContainerm_rpcPRDs_in
 
const Muon::TgcPrepDataContainerm_tgcPRDs_in
 
const Muon::CscStripPrepDataContainerm_cscPRDs_in
 
Muon::MdtPrepDataContainerm_mdtPRDs_out
 
Muon::RpcPrepDataContainerm_rpcPRDs_out
 
Muon::TgcPrepDataContainerm_tgcPRDs_out
 
Muon::CscStripPrepDataContainerm_cscPRDs_out
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 34 of file MuonPrdSelectorAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonPrdSelectorAlg()

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

Athena algorithm constructor.

Definition at line 10 of file MuonPrdSelectorAlg.cxx.

11  : AthAlgorithm(name,pSvcLocator),
12  m_mdtPRDs_in(nullptr), m_rpcPRDs_in(nullptr), m_tgcPRDs_in(nullptr), m_cscPRDs_in(nullptr),
13  m_mdtPRDs_out(nullptr), m_rpcPRDs_out(nullptr), m_tgcPRDs_out(nullptr), m_cscPRDs_out(nullptr)
14 {
15  declareProperty("MDT_PRDinputContainer" , m_inputContainer_mdt = "MDT_DriftCircles_unfiltered" );
16  declareProperty("MDT_PRDoutputContainer" , m_outputContainer_mdt = "MDT_DriftCircles" );
17 
18  declareProperty("RPC_PRDinputContainer" , m_inputContainer_rpc = "RPC_Measurements_unfiltered" );
19  declareProperty("RPC_PRDoutputContainer" , m_outputContainer_rpc = "RPC_Measurements" );
20 
21  declareProperty("TGC_PRDinputContainer" , m_inputContainer_tgc = "TGC_Measurements_unfiltered" );
22  declareProperty("TGC_PRDoutputContainer" , m_outputContainer_tgc = "TGC_Measurements" );
23 
24  declareProperty("CSC_PRDinputContainer" , m_inputContainer_csc = "CSC_Measurements_unfiltered" );
25  declareProperty("CSC_PRDoutputContainer" , m_outputContainer_csc = "CSC_Measurements" );
26 }

Member Function Documentation

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

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

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

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

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

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

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

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

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

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

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

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

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode MuonPrdSelectorAlg::execute ( )
virtual

Retrieves and records containers, performs selection.

Definition at line 78 of file MuonPrdSelectorAlg.cxx.

79 {
80  ATH_MSG_DEBUG( "execute() called" );
84  return StatusCode::SUCCESS;
85 }

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 50 of file AthAlgorithm.cxx.

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

◆ initialize()

StatusCode MuonPrdSelectorAlg::initialize ( )
virtual

Algorithm initialization: retrieves StoreGate/DetectorStore/MuonIdHelpers/MuonPrepDataContainers.

Definition at line 30 of file MuonPrdSelectorAlg.cxx.

31 {
32  ATH_MSG_DEBUG( "initialize() called" );
33 
34  ATH_CHECK( m_idHelperSvc.retrieve() );
35 
36  // retrieve test tool
37  ATH_CHECK( m_muonIdCutTool.retrieve() );
38 
39  try {
40  m_mdtPRDs_out = new Muon::MdtPrepDataContainer(m_idHelperSvc->mdtIdHelper().module_hash_max());
41  } catch(const std::bad_alloc&) {
42  ATH_MSG_FATAL( "Could not create a new MDT PrepRawData container!" );
43  return StatusCode::FAILURE;
44  }
45  m_mdtPRDs_out->addRef();
46 
47 
48 
49  try {
50  m_rpcPRDs_out = new Muon::RpcPrepDataContainer(m_idHelperSvc->rpcIdHelper().module_hash_max());
51  } catch(const std::bad_alloc&) {
52  ATH_MSG_FATAL( "Could not create a new RPC PrepRawData container!" );
53  return StatusCode::FAILURE;
54  }
55  m_rpcPRDs_out->addRef();
56 
57  try {
58  m_tgcPRDs_out = new Muon::TgcPrepDataContainer(m_idHelperSvc->tgcIdHelper().module_hash_max());
59  } catch(const std::bad_alloc&) {
60  ATH_MSG_FATAL( "Could not create a new TGC PrepRawData container!" );
61  return StatusCode::FAILURE;
62  }
63  m_tgcPRDs_out->addRef();
64 
65 
66  try {
67  m_cscPRDs_out = new Muon::CscStripPrepDataContainer(m_idHelperSvc->cscIdHelper().module_hash_max());
68  } catch(const std::bad_alloc&) {
69  ATH_MSG_FATAL( "Could not create a new CSC PrepRawData container!" );
70  return StatusCode::FAILURE;
71  }
72  m_cscPRDs_out->addRef();
73 
74 
75  return StatusCode::SUCCESS;
76 }

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ performSelection()

StatusCode MuonPrdSelectorAlg::performSelection ( )
private

checks if each hit in each collection passes a set of cuts these hits are written to new collections

Definition at line 151 of file MuonPrdSelectorAlg.cxx.

151  {
152  if( m_mdtPRDs_in ) ATH_CHECK( selectMDTs() );
153  if( m_rpcPRDs_in ) ATH_CHECK( selectRPCs() );
154  if( m_tgcPRDs_in ) ATH_CHECK( selectTGCs() );
155  if( m_cscPRDs_in ) ATH_CHECK( selectCSCs() );
156 
157  return StatusCode::SUCCESS;
158 }

◆ print()

void MuonPrdSelectorAlg::print ( )
private

method for DEBUG purposes: prints the content of input and output MuonPrepDataContainer

Definition at line 379 of file MuonPrdSelectorAlg.cxx.

379  {
382  unsigned int i_coll(0);
383  for( ; mdtColl!=last_mdtColl ; ++mdtColl, ++i_coll ){
384  Identifier ID = (*mdtColl)->identify() ;
385  ATH_MSG_DEBUG( "MDT IN Collection(" << std::setw(2) << i_coll << ") : " << ID );
386  }
387 
388  mdtColl = m_mdtPRDs_out->begin();
389  last_mdtColl = m_mdtPRDs_out->end();
390  i_coll = 0 ;
391  for( ; mdtColl!=last_mdtColl ; ++mdtColl, ++i_coll ){
392  Identifier ID = (*mdtColl)->identify() ;
393  ATH_MSG_DEBUG( "MDT OUT Collection(" << std::setw(2) << i_coll << ") : " << ID );
394  }
395 
398  i_coll = 0 ;
399  for( ; rpcColl!=last_rpcColl ; ++rpcColl, ++i_coll ){
400  Identifier ID = (*rpcColl)->identify() ;
401  ATH_MSG_DEBUG( "RPC IN Collection(" << std::setw(2) << i_coll << ") : " << ID );
402  }
403 
404  rpcColl = m_rpcPRDs_out->begin();
405  last_rpcColl = m_rpcPRDs_out->end();
406  i_coll = 0 ;
407  for( ; rpcColl!=last_rpcColl ; ++rpcColl, ++i_coll ){
408  Identifier ID = (*rpcColl)->identify() ;
409  ATH_MSG_DEBUG( "RPC OUT Collection(" << std::setw(2) << i_coll << ") : " << ID );
410  }
411 
412 
415  i_coll = 0 ;
416  for( ; tgcColl!=last_tgcColl ; ++tgcColl, ++i_coll ){
417  Identifier ID = (*tgcColl)->identify() ;
418  ATH_MSG_DEBUG( "TGC IN Collection(" << std::setw(2) << i_coll << ") : " << ID );
419  }
420 
421  tgcColl = m_tgcPRDs_out->begin();
422  last_tgcColl = m_tgcPRDs_out->end();
423  i_coll = 0 ;
424  for( ; tgcColl!=last_tgcColl ; ++tgcColl, ++i_coll ){
425  Identifier ID = (*tgcColl)->identify() ;
426  ATH_MSG_DEBUG( "TGC OUT Collection(" << std::setw(2) << i_coll << ") : " << ID );
427  }
428 
431  i_coll = 0 ;
432  for( ; cscColl!=last_cscColl ; ++cscColl, ++i_coll ){
433  Identifier ID = (*cscColl)->identify() ;
434  ATH_MSG_DEBUG( "CSC IN Collection(" << std::setw(2) << i_coll << ") : " << ID );
435  }
436 
437  cscColl = m_cscPRDs_out->begin();
438  last_cscColl = m_cscPRDs_out->end();
439  i_coll = 0 ;
440  for( ; cscColl!=last_cscColl ; ++cscColl, ++i_coll ){
441  Identifier ID = (*cscColl)->identify() ;
442  ATH_MSG_DEBUG( "CSC OUT Collection(" << std::setw(2) << i_coll << ") : " << ID );
443  }
444 
447  i_coll = 0;
448  if (evtStore()->retrieve(mdtCollection,lastColl) ==StatusCode::SUCCESS) {
449  for ( ; mdtCollection != lastColl ; ++mdtCollection ) {
450  ATH_MSG_DEBUG( "DIRECTLY FROM COLL (" <<std::setw(2) << i_coll << ") " << mdtCollection->identify() );
451  }
452  }
453 
454 }

◆ recordContainers()

StatusCode MuonPrdSelectorAlg::recordContainers ( )
private

records output MuonPrepDataContainers to StoreGate

Definition at line 136 of file MuonPrdSelectorAlg.cxx.

136  {
138  if( sc.isFailure() ) ATH_MSG_DEBUG( "Could not record MDT PRDs to output container " << m_outputContainer_mdt );
139 
141  if( sc.isFailure() ) ATH_MSG_DEBUG( "Could not record RPC PRDs to output container " << m_outputContainer_rpc );
142 
144  if( sc.isFailure() ) ATH_MSG_DEBUG( "Could not record TGC PRDs to output container " << m_outputContainer_tgc );
145 
147  if( sc.isFailure() ) ATH_MSG_DEBUG( "Could not record CSC PRDs to output container " << m_outputContainer_csc );
148  return sc;
149 }

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ retrieveContainers()

StatusCode MuonPrdSelectorAlg::retrieveContainers ( )
private

retrieves input MuonPrepDataContainers from StoreGate

Definition at line 87 of file MuonPrdSelectorAlg.cxx.

87  {
88  ATH_MSG_DEBUG( "retrieveContainers() called" );
89 
90  //resetting the inputcollections.
91  m_mdtPRDs_in = nullptr;
92  m_rpcPRDs_in = nullptr;
93  m_tgcPRDs_in = nullptr;
94  m_cscPRDs_in = nullptr;
95 
97  if( sc.isFailure() ) {
98  ATH_MSG_WARNING( "Could not retrieve MDT PRDs input container "
100  } else {
101  ATH_MSG_DEBUG( "Retrieved MDT PRDs input container " << m_inputContainer_mdt << " ( "
102  << m_mdtPRDs_in->size() << " ) " );
103  }
104 
105  sc = evtStore()->retrieve( m_rpcPRDs_in, m_inputContainer_rpc );
106  if( sc.isFailure() ) {
107  ATH_MSG_WARNING( "Could not retrieve RPC PRDs input container "
109  } else {
110  ATH_MSG_DEBUG( "Retrieved RPC PRDs input container " << m_inputContainer_rpc << " ( "
111  << m_rpcPRDs_in->size() << " ) " );
112  }
113 
114  sc = evtStore()->retrieve( m_tgcPRDs_in, m_inputContainer_tgc );
115  if( sc.isFailure() ) {
116  ATH_MSG_WARNING( "Could not retrieve TGC PRDs input container "
118  } else {
119  ATH_MSG_DEBUG( "Retrieved TGC PRDs input container " << m_inputContainer_tgc << " ( "
120  << m_tgcPRDs_in->size() << " ) " );
121  }
122 
123  sc = evtStore()->retrieve( m_cscPRDs_in, m_inputContainer_csc );
124  if( sc.isFailure() ) {
125  ATH_MSG_WARNING( "Could not retrieve CSC PRDs input container "
127  } else {
128  ATH_MSG_DEBUG( "Retrieved CSC PRDs input container " << m_inputContainer_csc << " ( "
129  << m_cscPRDs_in->size() << " ) " );
130  }
131 
132  return StatusCode::SUCCESS;
133 }

◆ selectCSCs()

StatusCode MuonPrdSelectorAlg::selectCSCs ( )
private

selects the hits from CSCcollections

Definition at line 325 of file MuonPrdSelectorAlg.cxx.

325  {
326  StatusCode sc = StatusCode::SUCCESS ;
327 
328  // Clearing the outputContainers
330 
331 
334 
335  unsigned int i_cscColl(0);
336 
337 
338  for( ; cscColl!=last_cscColl ; ++cscColl, ++i_cscColl ){ //for each collection
339 
340  Identifier ID = (*cscColl)->identify() ;
341  IdentifierHash hashID = (*cscColl)->identifyHash();
343  (cscPrdColl)->setIdentifier(ID);
344 
345  Muon::CscStripPrepDataCollection::const_iterator cscItr = (*cscColl)->begin();
346  Muon::CscStripPrepDataCollection::const_iterator cscEnd = (*cscColl)->end();
347  int i = 0;
348 
349  for(; cscItr != cscEnd; ++cscItr,i++ ) { //for each hit in the collection
350  Identifier hitID =(*cscItr)->identify();
351 
352  if (!m_muonIdCutTool->isCut(hitID)){ //write event to new collection
353 
354  cscPrdColl->push_back(new Muon::CscStripPrepData(**cscItr));
355  ATH_MSG_DEBUG( "Writing Event." );
356  }
357  else
358  ATH_MSG_DEBUG( "Rejecting Event." );
359  }
360 
361 
362  Identifier newID = (cscPrdColl)->identify();
363  ATH_MSG_DEBUG( "Adding New Collection to CSC list:" << newID );
364  if (StatusCode::SUCCESS != m_cscPRDs_out->addCollection(cscPrdColl,hashID )) {
365  ATH_MSG_ERROR( "Couldn't record CSC Collection with hashID=" << hashID
366  << " in StoreGate!" );
367  continue;
368  }
369  else{
370  ATH_MSG_DEBUG( " Added collection with hashID " << hashID
371  << " in StoreGate!" );
372 
373  }
374  }
375  return sc ;
376 }

◆ selectMDTs()

StatusCode MuonPrdSelectorAlg::selectMDTs ( )
private

selects the hits from MDTcollections

Definition at line 161 of file MuonPrdSelectorAlg.cxx.

161  {
162  StatusCode sc = StatusCode::SUCCESS ;
163 
164  // Clearing the outputContainers
166 
167 
170 
171  unsigned int i_mdtColl(0);
172 
173 
174  for( ; mdtColl!=last_mdtColl ; ++mdtColl, ++i_mdtColl ){ //for each collection
175 
176  Identifier ID = (*mdtColl)->identify() ;
177  IdentifierHash hashID = (*mdtColl)->identifyHash();
178  Muon::MdtPrepDataCollection * driftCircleColl = new Muon::MdtPrepDataCollection(hashID);
179  (driftCircleColl)->setIdentifier(ID);
180 
181  Muon::MdtPrepDataCollection::const_iterator mdtItr = (*mdtColl)->begin();
182  Muon::MdtPrepDataCollection::const_iterator mdtEnd = (*mdtColl)->end();
183  int i = 0;
184 
185  for(; mdtItr != mdtEnd; ++mdtItr,i++ ) { //for each hit in the collection
186  Identifier hitID =(*mdtItr)->identify();
187 
188  if (!m_muonIdCutTool->isCut(hitID)){ //write event to new collection
189 
190  driftCircleColl->push_back(new Muon::MdtPrepData(**mdtItr));
191  ATH_MSG_DEBUG( "Writing Event." );
192  }
193  else
194  ATH_MSG_DEBUG( "Rejecting Event." );
195 
196  }
197 
198 
199  Identifier newID = (driftCircleColl)->identify();
200  ATH_MSG_DEBUG( "Adding New Collection to MDT list:" << newID );
201  if (StatusCode::SUCCESS != m_mdtPRDs_out->addCollection(driftCircleColl,hashID )) {
202  ATH_MSG_ERROR( "Couldn't record MDT Drift Circle Collection with hash=" << hashID
203  << " in StoreGate!" );
204  continue;
205  }
206  else{
207  ATH_MSG_DEBUG( " Added collection with hashID " << hashID
208  << " in StoreGate!" );
209 
210  }
211  }
212  return sc ;
213 }

◆ selectRPCs()

StatusCode MuonPrdSelectorAlg::selectRPCs ( )
private

selects the hits from RPCcollections

Definition at line 216 of file MuonPrdSelectorAlg.cxx.

216  {
217  StatusCode sc = StatusCode::SUCCESS ;
218 
219  // Clearing the outputContainers
221 
222 
225 
226  unsigned int i_rpcColl(0);
227 
228 
229  for( ; rpcColl!=last_rpcColl ; ++rpcColl, ++i_rpcColl ){ //for each collection
230 
231  Identifier ID = (*rpcColl)->identify() ;
232  IdentifierHash hashID = (*rpcColl)->identifyHash();
233  Muon::RpcPrepDataCollection * rpcPrdColl = new Muon::RpcPrepDataCollection(hashID);
234  (rpcPrdColl)->setIdentifier(ID);
235 
236  Muon::RpcPrepDataCollection::const_iterator rpcItr = (*rpcColl)->begin();
237  Muon::RpcPrepDataCollection::const_iterator rpcEnd = (*rpcColl)->end();
238  int i = 0;
239 
240  for(; rpcItr != rpcEnd; ++rpcItr,i++ ) { //for each hit in the collection
241  Identifier hitID =(*rpcItr)->identify();
242 
243  if (!m_muonIdCutTool->isCut(hitID)){ //write event to new collection
244 
245  rpcPrdColl->push_back(new Muon::RpcPrepData(**rpcItr));
246  ATH_MSG_DEBUG( "Writing Event." );
247  }
248  else
249  ATH_MSG_DEBUG( "Rejecting Event." );
250 
251  }
252 
253 
254  Identifier newID = (rpcPrdColl)->identify();
255  ATH_MSG_DEBUG( "Adding New Collection to RPC list:" << newID );
256  if (StatusCode::SUCCESS != m_rpcPRDs_out->addCollection(rpcPrdColl,hashID )) {
257  ATH_MSG_ERROR( "Couldn't record RPC Drift Circle Collection with hashID=" << hashID
258  << " in StoreGate!" );
259  continue;
260  }
261  else{
262  ATH_MSG_DEBUG( " Added collection with hashID " << hashID
263  << " in StoreGate!" );
264 
265  }
266  }
267  return sc ;
268 }

◆ selectTGCs()

StatusCode MuonPrdSelectorAlg::selectTGCs ( )
private

selects the hits from TGCcollections

Definition at line 271 of file MuonPrdSelectorAlg.cxx.

271  {
272  StatusCode sc = StatusCode::SUCCESS ;
273 
274  // Clearing the outputContainers
276 
277 
280 
281  unsigned int i_tgcColl(0);
282 
283 
284  for( ; tgcColl!=last_tgcColl ; ++tgcColl, ++i_tgcColl ){ //for each collection
285 
286  Identifier ID = (*tgcColl)->identify() ;
287  IdentifierHash hashID = (*tgcColl)->identifyHash();
288  Muon::TgcPrepDataCollection * tgcPrdColl = new Muon::TgcPrepDataCollection(hashID);
289  (tgcPrdColl)->setIdentifier(ID);
290 
291  Muon::TgcPrepDataCollection::const_iterator tgcItr = (*tgcColl)->begin();
292  Muon::TgcPrepDataCollection::const_iterator tgcEnd = (*tgcColl)->end();
293  int i = 0;
294 
295  for(; tgcItr != tgcEnd; ++tgcItr,i++ ) { //for each hit in the collection
296  Identifier hitID =(*tgcItr)->identify();
297 
298  if (!m_muonIdCutTool->isCut(hitID)){ //write event to new collection
299 
300  tgcPrdColl->push_back(new Muon::TgcPrepData(**tgcItr));
301  ATH_MSG_DEBUG( "Writing Event." );
302  }
303  else
304  ATH_MSG_DEBUG( "Rejecting Event." );
305 
306  }
307 
308 
309  Identifier newID = (tgcPrdColl)->identify();
310  ATH_MSG_DEBUG( "Adding New Collection to TGC list:" << newID );
311  if (StatusCode::SUCCESS != m_tgcPRDs_out->addCollection(tgcPrdColl,hashID )) {
312  ATH_MSG_ERROR( "Couldn't record TGC Drift Circle Collection with hashID=" << hashID
313  << " in StoreGate!" );
314  continue;
315  }
316  else{
317  ATH_MSG_DEBUG( " Added collection with hashID " << hashID
318  << " in StoreGate!" );
319  }
320  }
321  return sc ;
322 }

◆ sysInitialize()

StatusCode AthAlgorithm::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< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

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

Handle START transition.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ m_cscPRDs_in

const Muon::CscStripPrepDataContainer* MuonPrdSelectorAlg::m_cscPRDs_in
private

Definition at line 72 of file MuonPrdSelectorAlg.h.

◆ m_cscPRDs_out

Muon::CscStripPrepDataContainer* MuonPrdSelectorAlg::m_cscPRDs_out
private

Definition at line 77 of file MuonPrdSelectorAlg.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MuonPrdSelectorAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 55 of file MuonPrdSelectorAlg.h.

◆ m_inputContainer_csc

std::string MuonPrdSelectorAlg::m_inputContainer_csc
private

Definition at line 62 of file MuonPrdSelectorAlg.h.

◆ m_inputContainer_mdt

std::string MuonPrdSelectorAlg::m_inputContainer_mdt
private

Definition at line 59 of file MuonPrdSelectorAlg.h.

◆ m_inputContainer_rpc

std::string MuonPrdSelectorAlg::m_inputContainer_rpc
private

Definition at line 60 of file MuonPrdSelectorAlg.h.

◆ m_inputContainer_tgc

std::string MuonPrdSelectorAlg::m_inputContainer_tgc
private

Definition at line 61 of file MuonPrdSelectorAlg.h.

◆ m_mdtPRDs_in

const Muon::MdtPrepDataContainer* MuonPrdSelectorAlg::m_mdtPRDs_in
private

Definition at line 69 of file MuonPrdSelectorAlg.h.

◆ m_mdtPRDs_out

Muon::MdtPrepDataContainer* MuonPrdSelectorAlg::m_mdtPRDs_out
private

Definition at line 74 of file MuonPrdSelectorAlg.h.

◆ m_muonIdCutTool

ToolHandle<IMuonIdCutTool> MuonPrdSelectorAlg::m_muonIdCutTool {this,"MuonIdCutTool","MuonIdCutTool/MuonIdCutTool","defines the cuts"}
private

Definition at line 57 of file MuonPrdSelectorAlg.h.

◆ m_outputContainer_csc

std::string MuonPrdSelectorAlg::m_outputContainer_csc
private

Definition at line 67 of file MuonPrdSelectorAlg.h.

◆ m_outputContainer_mdt

std::string MuonPrdSelectorAlg::m_outputContainer_mdt
private

Definition at line 64 of file MuonPrdSelectorAlg.h.

◆ m_outputContainer_rpc

std::string MuonPrdSelectorAlg::m_outputContainer_rpc
private

Definition at line 65 of file MuonPrdSelectorAlg.h.

◆ m_outputContainer_tgc

std::string MuonPrdSelectorAlg::m_outputContainer_tgc
private

Definition at line 66 of file MuonPrdSelectorAlg.h.

◆ m_rpcPRDs_in

const Muon::RpcPrepDataContainer* MuonPrdSelectorAlg::m_rpcPRDs_in
private

Definition at line 70 of file MuonPrdSelectorAlg.h.

◆ m_rpcPRDs_out

Muon::RpcPrepDataContainer* MuonPrdSelectorAlg::m_rpcPRDs_out
private

Definition at line 75 of file MuonPrdSelectorAlg.h.

◆ m_tgcPRDs_in

const Muon::TgcPrepDataContainer* MuonPrdSelectorAlg::m_tgcPRDs_in
private

Definition at line 71 of file MuonPrdSelectorAlg.h.

◆ m_tgcPRDs_out

Muon::TgcPrepDataContainer* MuonPrdSelectorAlg::m_tgcPRDs_out
private

Definition at line 76 of file MuonPrdSelectorAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
MuonPrdSelectorAlg::selectRPCs
StatusCode selectRPCs()
selects the hits from RPCcollections
Definition: MuonPrdSelectorAlg.cxx:216
MuonPrdSelectorAlg::selectCSCs
StatusCode selectCSCs()
selects the hits from CSCcollections
Definition: MuonPrdSelectorAlg.cxx:325
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
MuonPrdSelectorAlg::m_outputContainer_mdt
std::string m_outputContainer_mdt
Definition: MuonPrdSelectorAlg.h:64
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
MuonPrdSelectorAlg::performSelection
StatusCode performSelection()
checks if each hit in each collection passes a set of cuts these hits are written to new collections
Definition: MuonPrdSelectorAlg.cxx:151
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
IdentifiableContainerMT::addCollection
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
Definition: IdentifiableContainerMT.h:300
Muon::CscStripPrepDataCollection
MuonPrepDataCollection< CscStripPrepData > CscStripPrepDataCollection
Definition: MuonPrepDataCollection.h:111
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Muon::RpcPrepDataCollection
MuonPrepDataCollection< RpcPrepData > RpcPrepDataCollection
Definition: MuonPrepDataCollection.h:107
MuonPrdSelectorAlg::m_inputContainer_tgc
std::string m_inputContainer_tgc
Definition: MuonPrdSelectorAlg.h:61
Muon::MdtPrepDataCollection
MuonPrepDataCollection< MdtPrepData > MdtPrepDataCollection
Definition: MuonPrepDataCollection.h:106
Muon::MdtPrepDataContainer
MuonPrepDataContainerT< MdtPrepData > MdtPrepDataContainer
Definition: MuonPrepDataContainer.h:95
IdentifiableContainerMT::size
size_t size() const
Duplicate of fullSize for backwards compatability.
Definition: IdentifiableContainerMT.h:209
Muon::TgcPrepDataContainer
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer
Definition: MuonPrepDataContainer.h:97
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonPrdSelectorAlg::retrieveContainers
StatusCode retrieveContainers()
retrieves input MuonPrepDataContainers from StoreGate
Definition: MuonPrdSelectorAlg.cxx:87
MuonPrdSelectorAlg::m_inputContainer_rpc
std::string m_inputContainer_rpc
Definition: MuonPrdSelectorAlg.h:60
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
Muon::CscStripPrepData
Class representing the raw data of one CSC strip (for clusters look at Muon::CscPrepData).
Definition: CscStripPrepData.h:40
MuonPrdSelectorAlg::m_outputContainer_csc
std::string m_outputContainer_csc
Definition: MuonPrdSelectorAlg.h:67
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
MuonPrdSelectorAlg::m_muonIdCutTool
ToolHandle< IMuonIdCutTool > m_muonIdCutTool
Definition: MuonPrdSelectorAlg.h:57
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:92
MuonPrdSelectorAlg::m_inputContainer_mdt
std::string m_inputContainer_mdt
Definition: MuonPrdSelectorAlg.h:59
Muon::RpcPrepData
Class to represent RPC measurements.
Definition: RpcPrepData.h:35
MuonPrdSelectorAlg::m_cscPRDs_in
const Muon::CscStripPrepDataContainer * m_cscPRDs_in
Definition: MuonPrdSelectorAlg.h:72
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
MuonPrdSelectorAlg::m_mdtPRDs_in
const Muon::MdtPrepDataContainer * m_mdtPRDs_in
Definition: MuonPrdSelectorAlg.h:69
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
MuonPrdSelectorAlg::selectTGCs
StatusCode selectTGCs()
selects the hits from TGCcollections
Definition: MuonPrdSelectorAlg.cxx:271
MuonPrdSelectorAlg::m_outputContainer_rpc
std::string m_outputContainer_rpc
Definition: MuonPrdSelectorAlg.h:65
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:242
MuonPrdSelectorAlg::selectMDTs
StatusCode selectMDTs()
selects the hits from MDTcollections
Definition: MuonPrdSelectorAlg.cxx:161
MuonPrdSelectorAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonPrdSelectorAlg.h:55
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:82
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
IdentifiableContainerMT::begin
const_iterator begin() const
return const_iterator for first entry
Definition: IdentifiableContainerMT.h:236
Muon::CscStripPrepDataContainer
MuonPrepDataContainerT< CscStripPrepData > CscStripPrepDataContainer
Definition: MuonPrepDataContainer.h:99
Muon::MuonPrepDataCollection
Template to hold collections of MuonPrepRawData objects.
Definition: MuonPrepDataCollection.h:46
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
MuonPrdSelectorAlg::m_rpcPRDs_in
const Muon::RpcPrepDataContainer * m_rpcPRDs_in
Definition: MuonPrdSelectorAlg.h:70
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
MuonPrdSelectorAlg::m_mdtPRDs_out
Muon::MdtPrepDataContainer * m_mdtPRDs_out
Definition: MuonPrdSelectorAlg.h:74
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
MuonPrdSelectorAlg::m_cscPRDs_out
Muon::CscStripPrepDataContainer * m_cscPRDs_out
Definition: MuonPrdSelectorAlg.h:77
Muon::MdtPrepData
Class to represent measurements from the Monitored Drift Tubes.
Definition: MdtPrepData.h:37
MuonPrdSelectorAlg::m_tgcPRDs_out
Muon::TgcPrepDataContainer * m_tgcPRDs_out
Definition: MuonPrdSelectorAlg.h:76
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
Muon::RpcPrepDataContainer
MuonPrepDataContainerT< RpcPrepData > RpcPrepDataContainer
Definition: MuonPrepDataContainer.h:96
a
TList * a
Definition: liststreamerinfos.cxx:10
h
MuonPrdSelectorAlg::m_rpcPRDs_out
Muon::RpcPrepDataContainer * m_rpcPRDs_out
Definition: MuonPrdSelectorAlg.h:75
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Muon::TgcPrepData
Class to represent TGC measurements.
Definition: TgcPrepData.h:32
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
MuonPrdSelectorAlg::m_outputContainer_tgc
std::string m_outputContainer_tgc
Definition: MuonPrdSelectorAlg.h:66
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
MuonPrdSelectorAlg::recordContainers
StatusCode recordContainers()
records output MuonPrepDataContainers to StoreGate
Definition: MuonPrdSelectorAlg.cxx:136
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
Muon::TgcPrepDataCollection
MuonPrepDataCollection< TgcPrepData > TgcPrepDataCollection
Definition: MuonPrepDataCollection.h:108
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
IdentifierHash
Definition: IdentifierHash.h:38
SG::ConstIterator
Definition: SGIterator.h:163
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MuonPrdSelectorAlg::m_inputContainer_csc
std::string m_inputContainer_csc
Definition: MuonPrdSelectorAlg.h:62
IdentifiableContainerMT::cleanup
virtual void cleanup() override final
reset m_hashids and call IdentifiableCache's cleanup
Definition: IdentifiableContainerMT.h:312
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
MuonPrdSelectorAlg::m_tgcPRDs_in
const Muon::TgcPrepDataContainer * m_tgcPRDs_in
Definition: MuonPrdSelectorAlg.h:71