ATLAS Offline Software
Loading...
Searching...
No Matches
TrigBStoxAODTool Class Reference

#include <TrigBStoxAODTool.h>

Inheritance diagram for TrigBStoxAODTool:
Collaboration diagram for TrigBStoxAODTool:

Public Member Functions

 TrigBStoxAODTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~TrigBStoxAODTool ()
virtual StatusCode initialize ()
StatusCode convert (HLT::Navigation *nav)
StatusCode rewireNavigation (HLT::Navigation *nav)
StatusCode setTrigPassBits (HLT::Navigation *nav)
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef std::multimap< CLID, BStoXAODHelper::IHelper * > MM_CLID_IHELPER
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode classLabel2CLIDLabel (const std::vector< std::string > &property, const std::vector< std::string > &newProperty, std::vector< std::pair< CLID, std::string > > &decoded, std::vector< std::pair< CLID, std::string > > &decodedNewNames)
StatusCode findHelper (MM_CLID_IHELPER &helpers, CLID clid, std::string &label, MM_CLID_IHELPER::const_iterator &it)
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::vector< std::string > m_containersToConvert
std::vector< std::string > m_newContainers
std::vector< std::pair< CLID, std::string > > m_clid_labels
std::vector< std::pair< CLID, std::string > > m_clid_newLabels
ToolHandle< xAODMaker::ITauJetCnvToolm_tauJetTool
ToolHandle< xAODMaker::ICombinedMuonFeatureContainerCnvToolm_combMuonTool
ToolHandle< xAODMaker::IIsoMuonFeatureContainerCnvToolm_isoMuonTool
ToolHandle< ITrigMuonEFInfoToMuonCnvToolm_trigMuonTool
ToolHandle< xAODMaker::IJetCnvToolm_jetCnvTool
ToolHandle< xAODMaker::ITrigCaloClusterCnvToolm_trigCaloClusterTool
ToolHandle< xAODMaker::ITrigEMClusterCnvToolm_emClusterTool
ToolHandle< xAODMaker::ITrigBjetCnvToolm_bjetTool
ToolHandle< xAODMaker::ITrigEFBphysContainerCnvToolm_efBphysTool
ToolHandle< xAODMaker::ITrigL2BphysContainerCnvToolm_l2BphysTool
ToolHandle< xAODMaker::ITrigMissingETCnvToolm_trigMetTool
ToolHandle< xAODMaker::ITrigSpacePointCountsCnvToolm_trigSpacePtsTool
ToolHandle< xAODMaker::ITrigT2MbtsBitsCnvToolm_trigMbtsBitsTool
ToolHandle< xAODMaker::ITrigTrackCountsCnvToolm_trigTrackCtsTool
ToolHandle< xAODMaker::ITrigVertexCountsCnvToolm_trigVtxCtsTool
ToolHandle< xAODMaker::ITrackCollectionCnvToolm_trackCollectionTool {this, "TrackCollectionCnvTool","xAODMaker::TrackCollectionCnvTool/TrackCollectionCnvTool","Cnv of tracks"}
ToolHandle< xAODMaker::IRecTrackParticleContainerCnvToolm_recTrackParticleContTool {this, "TrackParticleContainerCnvTool","xAODMaker::RecTrackParticleContainerCnvTool/RecTrackParticleContainerCnvTool","Cnv of Rec::TrackParticles"}
ToolHandle< xAODMaker::IElectronCnvToolm_electronTool
ToolHandle< xAODMaker::IPhotonCnvToolm_photonTool
ToolHandle< xAODMaker::ICaloClusterCnvToolm_caloClusterTool
ToolHandle< xAODMaker::ITrigPassBitsCnvToolm_trigPassBitsTool
std::multimap< CLID, BStoXAODHelper::IHelper * > m_helpers
CLID m_CLID_xAODPhotonContainer
CLID m_CLID_xAODElectronContainer
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 64 of file TrigBStoxAODTool.h.

Member Typedef Documentation

◆ MM_CLID_IHELPER

Definition at line 80 of file TrigBStoxAODTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigBStoxAODTool()

TrigBStoxAODTool::TrigBStoxAODTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 366 of file TrigBStoxAODTool.cxx.

367 : AthAlgTool(type,name,parent),
368 m_tauJetTool( "xAODMaker::TauJetCnvTool/TauJetCnvTool",this),
369 m_combMuonTool( "xAODMaker::CombinedMuonFeatureContainerCnvTool/CombinedMuonFeatureContainerCnvTool",this),
370 m_isoMuonTool( "xAODMaker::IsoMuonFeatureContainerCnvTool/IsoMuonFeatureContainerCnvTool",this),
371 m_trigMuonTool( "TrigMuonEFInfoToMuonCnvTool/TrigMuonEFInfoToMuonCnvTool",this),
372 m_jetCnvTool( "xAODMaker::JetCnvTool/JetCnvTool",this),
373 m_trigCaloClusterTool( "xAODMaker::TrigCaloClusterCnvTool/TrigCaloClusterCnvTool",this),
374 m_emClusterTool( "xAODMaker::TrigEMClusterCnvTool/TrigEMClusterCnvTool",this),
375 m_bjetTool( "xAODMaker::TrigBjetCnvTool/TrigBjetCnvTool",this),
376 m_efBphysTool( "xAODMaker::TrigEFBphysContainerCnvTool/TrigEFBphysContainerCnvTool",this),
377 m_l2BphysTool( "xAODMaker::TrigL2BphysContainerCnvTool/TrigL2BphysContainerCnvTool",this),
378 m_trigMetTool( "xAODMaker::TrigMissingETCnvTool/TrigMissingETCnvTool",this),
379 m_trigSpacePtsTool("xAODMaker::TrigSpacePointCountsCnvTool/TrigSpacePointCountsCnvTool",this),
380 m_trigMbtsBitsTool("xAODMaker::TrigT2MbtsBitsCnvTool/TrigT2MbtsBitsCnvTool",this),
381 m_trigTrackCtsTool("xAODMaker::TrigTrackCountsCnvTool/TrigTrackCountsCnvTool",this),
382 m_trigVtxCtsTool( "xAODMaker::TrigVertexCountsCnvTool/TrigVertexCountsCnvTool",this),
383 m_electronTool( "xAODMaker::ElectronCnvTool/ElectronCnvTool", this ),
384 m_photonTool( "xAODMaker::PhotonCnvTool/PhotonCnvTool", this ),
385 m_caloClusterTool( "xAODMaker::CaloClusterCnvTool/CaloClusterCnvTool", this),
386 m_trigPassBitsTool( "xAODMaker::TrigPassBitsCnvTool/TrigPassBitsCnvTool", this )
387{
388 declareInterface<ITrigBStoxAODTool>( this );
389 declareProperty("ContainersToConvert",m_containersToConvert);
390 declareProperty("NewContainers", m_newContainers);
391
392 declareProperty("tauJetTool", m_tauJetTool);
393 declareProperty("combMuonTool", m_combMuonTool);
394 declareProperty("isoMuonTool", m_isoMuonTool);
395 declareProperty("trigMuonTool", m_trigMuonTool);
396 declareProperty("jetCnvTool", m_jetCnvTool);
397
398 declareProperty("trigCaloClusterTool", m_trigCaloClusterTool);
399 declareProperty("emClusterTool", m_emClusterTool);
400 declareProperty("bjetTool", m_bjetTool);
401 declareProperty("efBphysTool", m_efBphysTool);
402 declareProperty("l2BphysTool", m_l2BphysTool);
403
404 declareProperty("trigMetTool", m_trigMetTool);
405 declareProperty("trigSpacePtsTool", m_trigSpacePtsTool);
406 declareProperty("trigMbtsBitsTool", m_trigMbtsBitsTool);
407 declareProperty("trigTrackCtsTool", m_trigTrackCtsTool);
408 declareProperty("trigVtxCtsTool", m_trigVtxCtsTool);
409 declareProperty("electronTool", m_electronTool);
410 declareProperty("photonTool", m_photonTool);
411 declareProperty("caloClusterTool", m_caloClusterTool);
412 declareProperty("trigPassBitsTool", m_trigPassBitsTool);
413
414 m_CLID_xAODPhotonContainer = getCLID<xAOD::PhotonContainer>();
415 m_CLID_xAODElectronContainer = getCLID<xAOD::ElectronContainer>();
416}
AthAlgTool()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< xAODMaker::ITrigBjetCnvTool > m_bjetTool
ToolHandle< xAODMaker::IIsoMuonFeatureContainerCnvTool > m_isoMuonTool
ToolHandle< xAODMaker::ITrigEFBphysContainerCnvTool > m_efBphysTool
ToolHandle< xAODMaker::IElectronCnvTool > m_electronTool
ToolHandle< xAODMaker::ITrigL2BphysContainerCnvTool > m_l2BphysTool
ToolHandle< xAODMaker::ITrigT2MbtsBitsCnvTool > m_trigMbtsBitsTool
ToolHandle< ITrigMuonEFInfoToMuonCnvTool > m_trigMuonTool
ToolHandle< xAODMaker::ITrigCaloClusterCnvTool > m_trigCaloClusterTool
ToolHandle< xAODMaker::ITrigSpacePointCountsCnvTool > m_trigSpacePtsTool
std::vector< std::string > m_newContainers
ToolHandle< xAODMaker::ICombinedMuonFeatureContainerCnvTool > m_combMuonTool
ToolHandle< xAODMaker::ITrigTrackCountsCnvTool > m_trigTrackCtsTool
ToolHandle< xAODMaker::IJetCnvTool > m_jetCnvTool
ToolHandle< xAODMaker::ITrigMissingETCnvTool > m_trigMetTool
ToolHandle< xAODMaker::ITrigEMClusterCnvTool > m_emClusterTool
ToolHandle< xAODMaker::IPhotonCnvTool > m_photonTool
ToolHandle< xAODMaker::ICaloClusterCnvTool > m_caloClusterTool
ToolHandle< xAODMaker::ITrigPassBitsCnvTool > m_trigPassBitsTool
ToolHandle< xAODMaker::ITrigVertexCountsCnvTool > m_trigVtxCtsTool
std::vector< std::string > m_containersToConvert
ToolHandle< xAODMaker::ITauJetCnvTool > m_tauJetTool

◆ ~TrigBStoxAODTool()

TrigBStoxAODTool::~TrigBStoxAODTool ( )
virtual

Definition at line 418 of file TrigBStoxAODTool.cxx.

418 {
419 std::map<CLID,BStoXAODHelper::IHelper*>::iterator it;
420 for(it = m_helpers.begin();it!=m_helpers.end();++it){
421 delete it->second;
422 }
423}
std::multimap< CLID, BStoXAODHelper::IHelper * > m_helpers

Member Function Documentation

◆ classLabel2CLIDLabel()

StatusCode TrigBStoxAODTool::classLabel2CLIDLabel ( const std::vector< std::string > & property,
const std::vector< std::string > & newProperty,
std::vector< std::pair< CLID, std::string > > & decoded,
std::vector< std::pair< CLID, std::string > > & decodedNewNames )
private

Definition at line 693 of file TrigBStoxAODTool.cxx.

696 {
697 // translate Class names into CLID numbers
698 SmartIF<IClassIDSvc> clidSvc{service("ClassIDSvc")};
699 ATH_CHECK( clidSvc.isValid() );
700
701 if( property.size() != newProperty.size() ) {
702 ATH_MSG_ERROR("vector sizes of new and old SG labels are different: "
703 << newProperty.size() << " vs " << property.size() );
704 return StatusCode::FAILURE;
705 }
706
707 std::vector<std::string>::const_iterator it;
708 std::vector<std::string>::const_iterator itNew = newProperty.begin();
709 for ( it = property.begin(); it != property.end(); ++it, ++itNew ) {
710 CLID clid{0};
711 std::string label;
712 std::string label_new;
713 std::string type;
714
715 if ( it->find('#') != std::string::npos ) {
716 type = it->substr(0, it->find('#') );
717 label = it->substr(it->find('#')+1 );
718 } else {
719 type = *it;
720 label = "";
721 }
722
723 if ( itNew->find('#') != std::string::npos ) {
724 label_new = itNew->substr(itNew->find('#')+1 );
725 } else {
726 label_new = "";
727 }
728
729 if ( clidSvc->getIDOfTypeName(type, clid).isFailure() ) {
730 ATH_MSG_FATAL("Unable to get CLID for class: " << *it
731 << " check property");
732 return StatusCode::FAILURE;
733 }
734
735 ATH_MSG_DEBUG("Recognized CLID : " << type << " and label: " << label << ", new label will be: " << label_new);
736 decoded.push_back(std::make_pair(clid, label));
737 decodedNewNames.push_back(std::make_pair(clid, label_new));
738 }
739 return StatusCode::SUCCESS;
740}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_DEBUG(x)
uint32_t CLID
The Class ID type.
std::string label(const std::string &format, int i)
Definition label.h:19

◆ convert()

StatusCode TrigBStoxAODTool::convert ( HLT::Navigation * nav)
virtual

Implements ITrigBStoxAODTool.

Definition at line 592 of file TrigBStoxAODTool.cxx.

592 {
593 std::vector<std::pair<CLID,std::string> >::const_iterator clidlabel;
594 std::vector<std::pair<CLID,std::string> >::const_iterator clidNewLabel = m_clid_newLabels.begin();
595 for(clidlabel =m_clid_labels.begin();clidlabel!=m_clid_labels.end();++clidlabel, ++clidNewLabel){
596
597 HLTNavDetails::IHolder* holder = nav->getHolder(clidlabel->first,clidlabel->second);
598
599 if(!holder){
600 ATH_MSG_WARNING("couldn't find holder for " << clidlabel->first << " " << clidlabel->second);
601 continue;
602 }
603
604 ATH_MSG_VERBOSE("container corresponding to feature CLID " << clidlabel->first << " has CLID " << holder->containerClid());
605
606 std::multimap<CLID,BStoXAODHelper::IHelper*>::const_iterator hit;
607 hit = m_helpers.end();//find(holder->containerClid());
608
609 std::string clabel = clidlabel->second;
610 CHECK(findHelper( m_helpers, holder->containerClid(), clabel, hit ));
611
612 if(hit!=m_helpers.end()){
613 ATH_MSG_DEBUG("attempting convertion of clid " << holder->containerClid()
614 << " for label " << clidlabel->second << ", new label " << clidNewLabel->second);
615 CHECK(hit->second->help(clidlabel->second,clidNewLabel->second));//get aod container and convert
616 ATH_MSG_DEBUG("converted clid " << holder->containerClid() << " for label " << clidlabel->second);
617 }
618 else{
619 ATH_MSG_DEBUG("couldn't find converters for clid: " << clidlabel->first);
620 }
621 }
622 return StatusCode::SUCCESS;
623}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
virtual CLID containerClid() const =0
HLTNavDetails::Holder< T > * getHolder(uint16_t subTypeIndex) const
as above but does not create holder on demand (return 0 if not found)
std::vector< std::pair< CLID, std::string > > m_clid_newLabels
StatusCode findHelper(MM_CLID_IHELPER &helpers, CLID clid, std::string &label, MM_CLID_IHELPER::const_iterator &it)
std::vector< std::pair< CLID, std::string > > m_clid_labels

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

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

◆ evtStore()

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.

◆ 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

◆ findHelper()

StatusCode TrigBStoxAODTool::findHelper ( MM_CLID_IHELPER & helpers,
CLID clid,
std::string & label,
MM_CLID_IHELPER::const_iterator & it )
private

Definition at line 864 of file TrigBStoxAODTool.cxx.

864 {
865 auto myrange = helpers.equal_range(clid);
866 it = myrange.first;
867 //let's see how many there are converters corresponding to the same AOD input type
868 int distance = std::distance(myrange.first, myrange.second);
869 if (distance == 1) {
870 //default case, one-to-one relation of AOD and xAOD types
871 ATH_MSG_VERBOSE("helper to convert AOD CLID " << clid << " and label " << label << " found");
872 return StatusCode::SUCCESS;
873 } else if (distance == 2) {
874 //this is for the case when there is single AOD type converted to two different xAOD types,
875 //will treat this here separately. So far this only happens for egammaContainer->xAOD::ElectronContainer and
876 //egammaContainer->xAOD::PhotonContainer
877 for(;it!=myrange.second;++it) {
878 CLID myHelperxAODCLID = (*it).second->xAODContainerClid();
879 if((label == "egamma_Electrons" && myHelperxAODCLID == m_CLID_xAODElectronContainer) ||
880 (label == "egamma_Photons" && myHelperxAODCLID == m_CLID_xAODPhotonContainer)) {
881 ATH_MSG_VERBOSE("helper to convert AOD CLID " << clid << " and label " << label << " found");
882 return StatusCode::SUCCESS;
883 }
884 }
885 } else if( distance == 0) {
886 ATH_MSG_WARNING("there is no helper to convert AOD CLID " << clid << ", label " << label);
887 it = helpers.end();
888 return StatusCode::SUCCESS;
889 } else {
890 //this should not happen...
891 ATH_MSG_ERROR("found " << distance << " helpers to convert AOD type " << clid << " and label " << label
892 << ", probably you should accomodate for this change in the code above" );
893 return StatusCode::FAILURE;
894 }
895
896 //this point is not reached if everything is OK
897 return StatusCode::SUCCESS;
898
899} // MM_CLID_IHELPER::const_iterator findHelper( ... )
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space

◆ initialize()

StatusCode TrigBStoxAODTool::initialize ( )
virtual

Definition at line 425 of file TrigBStoxAODTool.cxx.

425 {
426
427 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
430 xAODMaker::ICombinedMuonFeatureContainerCnvTool>* >
432 new BStoXAODHelper::DefaultHelper<
435 xAODMaker::ICombinedMuonFeatureContainerCnvTool>(m_combMuonTool)) );
436
437 m_helpers.insert( std::pair<CLID,BStoXAODHelper::MuonHelper*>
439 new BStoXAODHelper::MuonHelper(m_trigMuonTool)) );
440
441 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
442 TrigCaloClusterContainer,
444 xAODMaker::ITrigCaloClusterCnvTool>* >
446 new BStoXAODHelper::DefaultHelper<
447 TrigCaloClusterContainer,
449 xAODMaker::ITrigCaloClusterCnvTool>(m_trigCaloClusterTool)) );
450
451 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
454 xAODMaker::ITrigEMClusterCnvTool>* >
456 new BStoXAODHelper::DefaultHelper<
459 xAODMaker::ITrigEMClusterCnvTool>(m_emClusterTool)) );
460
461 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
464 xAODMaker::ITrigEFBphysContainerCnvTool>* >
466 new BStoXAODHelper::DefaultHelper<
469 xAODMaker::ITrigEFBphysContainerCnvTool>(m_efBphysTool)) );
470
471 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
472 TrigL2BphysContainer,xAOD::TrigBphysContainer,xAODMaker::ITrigL2BphysContainerCnvTool>* >
474 new BStoXAODHelper::DefaultHelper<
475 TrigL2BphysContainer,xAOD::TrigBphysContainer,xAODMaker::ITrigL2BphysContainerCnvTool>(m_l2BphysTool)) );
476
477 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
478 JetCollection,xAOD::JetContainer,xAODMaker::IJetCnvTool>* >
480 new BStoXAODHelper::DefaultHelper<
481 JetCollection,xAOD::JetContainer,xAODMaker::IJetCnvTool>(m_jetCnvTool)) );
482
483 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
484 TrigMissingETContainer,xAOD::TrigMissingETContainer,xAODMaker::ITrigMissingETCnvTool>* >
486 new BStoXAODHelper::DefaultHelper<
487 TrigMissingETContainer,xAOD::TrigMissingETContainer,xAODMaker::ITrigMissingETCnvTool>(m_trigMetTool)) );
488
489 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
490 TrigSpacePointCountsCollection,xAOD::TrigSpacePointCountsContainer,xAODMaker::ITrigSpacePointCountsCnvTool>* >
492 new BStoXAODHelper::DefaultHelper<
494
495 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
496 TrigT2MbtsBitsContainer,xAOD::TrigT2MbtsBitsContainer,xAODMaker::ITrigT2MbtsBitsCnvTool>* >
498 new BStoXAODHelper::DefaultHelper<
499 TrigT2MbtsBitsContainer,xAOD::TrigT2MbtsBitsContainer,xAODMaker::ITrigT2MbtsBitsCnvTool>(m_trigMbtsBitsTool)) );
500
501 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
502 TrigTrackCountsCollection,xAOD::TrigTrackCountsContainer,xAODMaker::ITrigTrackCountsCnvTool>* >
503 (getCLID<TrigTrackCountsCollection>(),
504 new BStoXAODHelper::DefaultHelper<
506
507 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
508 TrigVertexCountsCollection,xAOD::TrigVertexCountsContainer,xAODMaker::ITrigVertexCountsCnvTool>* >
510 new BStoXAODHelper::DefaultHelper<
511 TrigVertexCountsCollection,xAOD::TrigVertexCountsContainer,xAODMaker::ITrigVertexCountsCnvTool>(m_trigVtxCtsTool)) );
512
513 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
514 TrackCollection,xAOD::TrackParticleContainer,xAODMaker::ITrackCollectionCnvTool>* >
516 new BStoXAODHelper::DefaultHelper<
517 TrackCollection,xAOD::TrackParticleContainer,xAODMaker::ITrackCollectionCnvTool>(m_trackCollectionTool)) );
518
519 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
520 Rec::TrackParticleContainer,xAOD::TrackParticleContainer,xAODMaker::IRecTrackParticleContainerCnvTool>* >
522 new BStoXAODHelper::DefaultHelper<
523 Rec::TrackParticleContainer,xAOD::TrackParticleContainer,xAODMaker::IRecTrackParticleContainerCnvTool>(m_recTrackParticleContTool)) );
524
525 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
526 Analysis::TauJetContainer,xAOD::TauJetContainer,xAODMaker::ITauJetCnvTool>* >
528 new BStoXAODHelper::DefaultHelper<
529 Analysis::TauJetContainer,xAOD::TauJetContainer,xAODMaker::ITauJetCnvTool>(m_tauJetTool)) );
530
531 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
532 CaloClusterContainer,xAOD::CaloClusterContainer,xAODMaker::ICaloClusterCnvTool>* >
534 new BStoXAODHelper::DefaultHelper<
535 CaloClusterContainer,xAOD::CaloClusterContainer,xAODMaker::ICaloClusterCnvTool>(m_caloClusterTool)) );
536
537 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
538 egammaContainer,xAOD::ElectronContainer,xAODMaker::IElectronCnvTool>* >
540 new BStoXAODHelper::DefaultHelper<
541 egammaContainer,xAOD::ElectronContainer,xAODMaker::IElectronCnvTool>(m_electronTool)) );
542
543 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
544 egammaContainer,xAOD::PhotonContainer,xAODMaker::IPhotonCnvTool>* >
546 new BStoXAODHelper::DefaultHelper<
547 egammaContainer,xAOD::PhotonContainer,xAODMaker::IPhotonCnvTool>(m_photonTool)) );
548
549 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
550 TrigPassBitsCollection,xAOD::TrigPassBitsContainer,xAODMaker::ITrigPassBitsCnvTool>* >
552 new BStoXAODHelper::DefaultHelper<
553 TrigPassBitsCollection,xAOD::TrigPassBitsContainer,xAODMaker::ITrigPassBitsCnvTool>(m_trigPassBitsTool)) );
554
555 m_helpers.insert( std::pair<CLID,BStoXAODHelper::DefaultHelper<
556 TrigEFBjetContainer,xAOD::BTaggingContainer,xAODMaker::ITrigBjetCnvTool>* >
558 new BStoXAODHelper::DefaultHelper<
559 TrigEFBjetContainer,xAOD::BTaggingContainer,xAODMaker::ITrigBjetCnvTool>(m_bjetTool)) );
560
561
562 std::multimap<CLID,BStoXAODHelper::IHelper*>::iterator it;
563 for(it = m_helpers.begin();it!=m_helpers.end();++it){
564 CHECK(it->second->initialize(this->msg(),*(evtStore())));
565 }
566
567 ATH_MSG_DEBUG("containers to convert: " << m_containersToConvert);
568 ATH_MSG_DEBUG("containers will be converted to: " << m_newContainers);
570 ATH_MSG_DEBUG("extracted class IDs (" << m_clid_labels.size() << " in total): " << m_clid_labels);
571
572 if(m_clid_labels.size() != m_clid_newLabels.size()) {
573 ATH_MSG_ERROR("number of new containers names (" << m_clid_newLabels.size()
574 << ") is not the same as the number of old containers names ("
575 << m_clid_newLabels.size() << ")");
576 return StatusCode::FAILURE;
577 }
578 ATH_MSG_DEBUG("CLID CLID, old label, new label:");
579 for(uint i=0; i<m_clid_labels.size(); i++) {
580 ATH_MSG_DEBUG(m_clid_labels[i].first << " " << m_clid_newLabels[i].first << ", "
581 << m_clid_labels[i].second << ", " << m_clid_newLabels[i].second );
582 if(m_clid_labels[i].second != m_clid_newLabels[i].second) {
583 ATH_MSG_VERBOSE("Run-1 " << m_clid_labels[i].first << " label " <<
584 m_clid_labels[i].second << " differs from the equivalent Run-2 label: "
585 << m_clid_newLabels[i].second);
586 }
587 }
588
589 return StatusCode::SUCCESS;
590}
CaloClusterContainer
Definition CaloTPCnv.cxx:21
JetCollection
unsigned int uint
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old TrigEMClusterContainer
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current TrigT2MbtsBitsContainer
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old TrigTrackCountsCollection
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old TrigSpacePointCountsCollection
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TrigVertexCountsCollection
Athena::TPCnvVers::Current TrigMissingETContainer
CombinedMuonFeatureContainer
Athena::TPCnvVers::Current TrigEFBphysContainer
TrigEFBjetContainer
Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TrigL2BphysContainer
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TrigPassBitsCollection
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode classLabel2CLIDLabel(const std::vector< std::string > &property, const std::vector< std::string > &newProperty, std::vector< std::pair< CLID, std::string > > &decoded, std::vector< std::pair< CLID, std::string > > &decodedNewNames)
ToolHandle< xAODMaker::ITrackCollectionCnvTool > m_trackCollectionTool
ToolHandle< xAODMaker::IRecTrackParticleContainerCnvTool > m_recTrackParticleContTool
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current egammaContainer
TrigVertexCountsContainer_v1 TrigVertexCountsContainer
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
BTaggingContainer_v1 BTaggingContainer
Definition of the current "BTagging container version".
TrigPassBitsContainer_v1 TrigPassBitsContainer
Define the latest version of the trig pass bits container class.
TrigMissingETContainer_v1 TrigMissingETContainer
DataVector of TrigMissingET - the current version.
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
TrigCaloClusterContainer_v1 TrigCaloClusterContainer
Define the latest version of the trigger calorimeter cluster container.
TrigSpacePointCountsContainer_v1 TrigSpacePointCountsContainer
TrigEMClusterContainer_v1 TrigEMClusterContainer
Define the latest version of the trigger EM cluster container.
TrigTrackCountsContainer_v1 TrigTrackCountsContainer
L2CombinedMuonContainer_v1 L2CombinedMuonContainer
Define the latest version of the muon CB container.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
TrigBphysContainer_v1 TrigBphysContainer

◆ 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()

const InterfaceID & ITrigBStoxAODTool::interfaceID ( )
inlinestaticinherited

Definition at line 25 of file ITrigBStoxAODTool.h.

25{ return IID_ITrigBStoxAODTool; }
static const InterfaceID IID_ITrigBStoxAODTool("ITrigBStoxAODTool", 1, 0)
Interface of Tool used by TrigBSExtraction to convert to xAOD.

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

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

◆ 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();
384 }
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)

◆ 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 {
366 }

◆ rewireNavigation()

StatusCode TrigBStoxAODTool::rewireNavigation ( HLT::Navigation * nav)
virtual

Implements ITrigBStoxAODTool.

Definition at line 625 of file TrigBStoxAODTool.cxx.

625 {
626 //we need to loop over all features of all TEs
627 //find the ones pointing to a AOD container that has been converted
628 //and change the holder they use to access the feature, i.e. changes CLID and subTypeIndex
629
630 std::vector<HLT::TriggerElement*>& allTEs = nav->getAllTEs();
631 //nav->getAll(allTEs,false); //false: also get inactive TEs
632 ATH_MSG_DEBUG("rewiring Navigation for xAOD. working on " << allTEs.size() << " TEs");
633 for(auto te : allTEs){
634 std::vector<HLT::TriggerElement::FeatureAccessHelper>& feats = te->getFeatureAccessHelpers();
635 for(auto& featacchelp : feats){
636 ATH_MSG_VERBOSE("this feature has CLID: " << featacchelp.getCLID());
637
638 HLTNavDetails::IHolder* oldholder = nav->getHolder(featacchelp.getCLID(),featacchelp.getIndex().subTypeIndex());
639
640 if(!oldholder){
641 ATH_MSG_WARNING("could not find old holder for CLID " << featacchelp.getCLID() << " and subTypeIndex: " << featacchelp.getIndex());
642 continue;
643 }
644
645 std::multimap<CLID,BStoXAODHelper::IHelper*>::const_iterator it = m_helpers.end();//find(oldholder->containerClid());
646 std::string old_label = oldholder->label();
647 CHECK(findHelper( m_helpers, oldholder->containerClid(), old_label, it));
648 if(it != m_helpers.end()){
649 ATH_MSG_VERBOSE("need to rewire this CLID from " << oldholder->typeClid() << "/"<< oldholder->containerClid() << " to " << it->second->xAODContainerClid());
650
651 bool iselement = (oldholder->typeClid()==it->second->AODElementClid());
652 bool iscontainer = (oldholder->typeClid()==it->second->AODContainerClid());
653
654 ATH_MSG_VERBOSE("old is element feature " << iselement << " or container feature: " << iscontainer);
655
656 if(!(iselement || iscontainer)){
657 ATH_MSG_WARNING("not clear what kind of feature we're dealing with. Skipping. Old holder is:" << *oldholder);
658 }
659
660 CLID newTypeClid = CLID_NULL;
661 if(iselement) newTypeClid = it->second->xAODElementClid();
662 if(iscontainer) newTypeClid = it->second->xAODContainerClid();
663
664 std::lock_guard<std::recursive_mutex> lock(nav->getMutex());
665 HLT::TrigHolderStructure& holderstorage = nav->getHolderStorage();
666
667 HLTNavDetails::IHolder* newholder = holderstorage.getHolder<HLTNavDetails::IHolder>(newTypeClid,oldholder->label());
668
669 if(!newholder){
670 ATH_MSG_WARNING("could not find new holder for xAOD clid " << newTypeClid << " and label " << oldholder->label());
671 continue;
672 }
673
674 ATH_MSG_VERBOSE("old holder: " << *oldholder);
675 ATH_MSG_VERBOSE("new holder: " << *newholder);
676 ATH_MSG_VERBOSE("changing CLID: " << featacchelp.getCLID() << " to " << newTypeClid);
677 ATH_MSG_VERBOSE("changing STI: " << featacchelp.getIndex().subTypeIndex() << " to " << newholder->subTypeIndex());
678
679 featacchelp.setCLIDandIndex(newTypeClid,newholder->subTypeIndex());
680 ATH_MSG_VERBOSE("clid is now: " << featacchelp.getCLID() << " sti: " << featacchelp.getIndex().subTypeIndex());
681 ATH_MSG_VERBOSE("TE is: " << *te);
682 } // end if(helper was found)
683 }//end feature loop
684 }//end TE loop
685
686
687 return StatusCode::SUCCESS;
688}
const std::string & label() const
returns the label of objects stores by this holder
Definition Holder.h:86
virtual CLID typeClid() const =0
returns the CLID of objects stores by this holder
uint16_t subTypeIndex() const
returns the index (short number used when linking object to the TE) of objects stores by this holder
Definition Holder.h:112
HolderType * getHolder(class_id_type clid, const std::variant< sub_index_type, std::string > &stiOrLabel) const
std::vector< TriggerElement * > & getAllTEs()
access needed by slimming tools.
std::recursive_mutex & getMutex()
TrigHolderStructure & getHolderStorage()

◆ setTrigPassBits()

StatusCode TrigBStoxAODTool::setTrigPassBits ( HLT::Navigation * nav)
virtual

Implements ITrigBStoxAODTool.

Definition at line 742 of file TrigBStoxAODTool.cxx.

742 {
743 //we need to loop over all features of all TEs
744 //find the ones pointing to a AOD container that has been converted
745 //extract the corresponding aod TrigPassBits container and set the same
746 //bits in xAOD::TrigPassBits
747
748 std::vector<HLT::TriggerElement*>& allTEs = nav->getAllTEs();
749
750 ATH_MSG_DEBUG("setting xAOD TrigPassBits. Working on " << allTEs.size() << " TEs");
751
752 for(auto te : allTEs){
753 std::vector<HLT::TriggerElement::FeatureAccessHelper>& feats = te->getFeatureAccessHelpers();
754 for(auto& featacchelp : feats){
755 ATH_MSG_VERBOSE("this feature has CLID: " << featacchelp.getCLID());
756
757 HLTNavDetails::IHolder* holder = nav->getHolder(featacchelp.getCLID(),featacchelp.getIndex().subTypeIndex());
758
759 if(!holder){
760 ATH_MSG_WARNING("could not find holder for CLID " << featacchelp.getCLID() << " and subTypeIndex: " << featacchelp.getIndex());
761 continue;
762 }
763
764 if(holder->label() == "passbits") {
765 ATH_MSG_VERBOSE( "skipping this feature, as this is the passbits object itself" );
766 continue;
767 }
768
769 std::multimap<CLID,BStoXAODHelper::IHelper*>::const_iterator it = m_helpers.end();//find(holder->containerClid());
770 std::string hlabel = holder->label();
771 CHECK(findHelper( m_helpers, holder->containerClid(), hlabel, it ));
772 if(it != m_helpers.end()){
773
774 ATH_MSG_DEBUG( "need to extract TrigPassBits for this AOD object " << holder->typeClid() << "/"<< holder->containerClid()
775 << ", label " << holder->label() << " corresponding to xAOD CLID " << it->second->xAODContainerClid() );
776
777 bool iselement = (holder->typeClid()==it->second->AODElementClid());
778 bool iscontainer = (holder->typeClid()==it->second->AODContainerClid());
779
780 ATH_MSG_VERBOSE("is element feature " << iselement << " or container feature: " << iscontainer);
781
782 if(!(iselement || iscontainer)){
783 ATH_MSG_WARNING("not clear what kind of feature we're dealing with. Skipping. The holder is:" << *holder);
784 }
785
786 ATH_MSG_VERBOSE("holder: " << *holder);
787
788 const TrigPassBitsCollection* bits_collection = evtStore()->template tryConstRetrieve<TrigPassBitsCollection>("HLT_TrigPassBitsCollection_passbits");
789 if(bits_collection != nullptr) {
790 ATH_MSG_DEBUG( "aod bits collection extracted of size " << bits_collection->size() );
791 //dump this to compare with the results from release 17
792 // for(uint i=0; i<bits_collection->size(); i++ ) {
793 // std::cout << "size of the TrigPassBits object " << i << " is " << bits_collection->at(i)->size() << std::endl;
794 // }
795 } else {
796 ATH_MSG_WARNING( "aod bits collection cannot be extracted" );
797 continue;
798 }
799
800
801 xAOD::TrigPassBitsContainer* xaod_bits_collection = evtStore()->template tryRetrieve<xAOD::TrigPassBitsContainer>("HLT_xAOD__TrigPassBitsContainer_passbits");
802 if(xaod_bits_collection != nullptr)
803 ATH_MSG_DEBUG( "xaod bits container extracted of size " << xaod_bits_collection->size() );
804 else {
805 ATH_MSG_WARNING( "xaod bits container cannot be extracted" );
806 continue;
807 }
808
809 const TrigPassBits* bits(0);
810 if ( nav->getFeature(te, bits, "passbits" ) ){
811 ATH_MSG_DEBUG( "TrigPassBits extracted for the container " << holder->label() );
812 if(bits!=nullptr) {
813 ATH_MSG_DEBUG( "it's size is " << bits->size() );
814 } else {
815 ATH_MSG_DEBUG( "it is nullptr" );
816 continue;
817 }
818 } else {
819 ATH_MSG_WARNING( "this TE has no associated TrigPassBits object" );
820 continue;
821 }
822 if(bits_collection != nullptr && xaod_bits_collection != nullptr && bits != nullptr) {
823 int bits_nr = -1;
824 for(uint i=0; i<bits_collection->size(); i++) {
825 if(bits == bits_collection->at(i)) {
826 bits_nr = i;
827 ATH_MSG_VERBOSE( "this is bits # " << bits_nr );
828 break;
829 }
830 }
831 if(bits_nr >= 0) {
832 xAOD::TrigPassBits* xaod_tpb = nullptr;
833 std::pair<CLID,std::string> pair = std::make_pair( featacchelp.getCLID(), holder->label() );
834 std::vector<std::pair<CLID,std::string> >::const_iterator it_new_label;
835 it_new_label = std::find(m_clid_newLabels.begin(), m_clid_newLabels.end(), pair);
836 std::string new_label = "";
837 if(it_new_label != m_clid_newLabels.end()) {
838 new_label = (*it_new_label).second;
839 ATH_MSG_DEBUG( "calling help_fillTrigPassBits for TE " << te << ", feature CLID " << featacchelp.getCLID()
840 << ", aod container " << holder->label() << ", new container name: " << new_label );
841 CHECK( it->second->help_fillTrigPassBits( holder->label(), new_label, bits_collection->at(bits_nr), xaod_tpb ) );
842 } else {
843 ATH_MSG_DEBUG( "new label was not found, presumably this container was not converted. Will not look for TrigPassBits" );
844 }
845
846 if(xaod_tpb != nullptr) {
847 xaod_bits_collection->at(bits_nr) = xaod_tpb;
848 ATH_MSG_VERBOSE( "after the conversion, size of xAOD::TrigPassBits is " << xaod_bits_collection->at(bits_nr)->size() );
849 }
850
851 } else {
852 ATH_MSG_WARNING( "TrigPassBits object was not identified within container!" );
853 }
854 }// if good aod and xaod passbits are available
855 } // if helper was found
856 }// feature loop
857 }// TE loop
858
859
860 return StatusCode::SUCCESS;
861}
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
bool getFeature(const TriggerElement *te, const T *&features, const std::string &label="", std::string &sourcelabel=::HLT::TrigNavStructure::m_unspecifiedLabel) const
TrigPassBits_v1 TrigPassBits
Define the latest version of the trigger pass bits class.

◆ 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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_bjetTool

ToolHandle<xAODMaker::ITrigBjetCnvTool> TrigBStoxAODTool::m_bjetTool
private

Definition at line 105 of file TrigBStoxAODTool.h.

◆ m_caloClusterTool

ToolHandle<xAODMaker::ICaloClusterCnvTool> TrigBStoxAODTool::m_caloClusterTool
private

Definition at line 129 of file TrigBStoxAODTool.h.

◆ m_clid_labels

std::vector<std::pair<CLID,std::string> > TrigBStoxAODTool::m_clid_labels
private

Definition at line 87 of file TrigBStoxAODTool.h.

◆ m_clid_newLabels

std::vector<std::pair<CLID,std::string> > TrigBStoxAODTool::m_clid_newLabels
private

Definition at line 88 of file TrigBStoxAODTool.h.

◆ m_CLID_xAODElectronContainer

CLID TrigBStoxAODTool::m_CLID_xAODElectronContainer
private

Definition at line 138 of file TrigBStoxAODTool.h.

◆ m_CLID_xAODPhotonContainer

CLID TrigBStoxAODTool::m_CLID_xAODPhotonContainer
private

Definition at line 137 of file TrigBStoxAODTool.h.

◆ m_combMuonTool

ToolHandle<xAODMaker::ICombinedMuonFeatureContainerCnvTool> TrigBStoxAODTool::m_combMuonTool
private

Definition at line 93 of file TrigBStoxAODTool.h.

◆ m_containersToConvert

std::vector<std::string> TrigBStoxAODTool::m_containersToConvert
private

Definition at line 84 of file TrigBStoxAODTool.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_efBphysTool

ToolHandle<xAODMaker::ITrigEFBphysContainerCnvTool> TrigBStoxAODTool::m_efBphysTool
private

Definition at line 108 of file TrigBStoxAODTool.h.

◆ m_electronTool

ToolHandle<xAODMaker::IElectronCnvTool> TrigBStoxAODTool::m_electronTool
private

Definition at line 125 of file TrigBStoxAODTool.h.

◆ m_emClusterTool

ToolHandle<xAODMaker::ITrigEMClusterCnvTool> TrigBStoxAODTool::m_emClusterTool
private

Definition at line 102 of file TrigBStoxAODTool.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_helpers

std::multimap<CLID,BStoXAODHelper::IHelper*> TrigBStoxAODTool::m_helpers
private

Definition at line 134 of file TrigBStoxAODTool.h.

◆ m_isoMuonTool

ToolHandle<xAODMaker::IIsoMuonFeatureContainerCnvTool> TrigBStoxAODTool::m_isoMuonTool
private

Definition at line 94 of file TrigBStoxAODTool.h.

◆ m_jetCnvTool

ToolHandle<xAODMaker::IJetCnvTool> TrigBStoxAODTool::m_jetCnvTool
private

Definition at line 98 of file TrigBStoxAODTool.h.

◆ m_l2BphysTool

ToolHandle<xAODMaker::ITrigL2BphysContainerCnvTool> TrigBStoxAODTool::m_l2BphysTool
private

Definition at line 109 of file TrigBStoxAODTool.h.

◆ m_newContainers

std::vector<std::string> TrigBStoxAODTool::m_newContainers
private

Definition at line 85 of file TrigBStoxAODTool.h.

◆ m_photonTool

ToolHandle<xAODMaker::IPhotonCnvTool> TrigBStoxAODTool::m_photonTool
private

Definition at line 126 of file TrigBStoxAODTool.h.

◆ m_recTrackParticleContTool

ToolHandle<xAODMaker::IRecTrackParticleContainerCnvTool> TrigBStoxAODTool::m_recTrackParticleContTool {this, "TrackParticleContainerCnvTool","xAODMaker::RecTrackParticleContainerCnvTool/RecTrackParticleContainerCnvTool","Cnv of Rec::TrackParticles"}
private

Definition at line 122 of file TrigBStoxAODTool.h.

122{this, "TrackParticleContainerCnvTool","xAODMaker::RecTrackParticleContainerCnvTool/RecTrackParticleContainerCnvTool","Cnv of Rec::TrackParticles"};

◆ m_tauJetTool

ToolHandle<xAODMaker::ITauJetCnvTool> TrigBStoxAODTool::m_tauJetTool
private

Definition at line 90 of file TrigBStoxAODTool.h.

◆ m_trackCollectionTool

ToolHandle<xAODMaker::ITrackCollectionCnvTool> TrigBStoxAODTool::m_trackCollectionTool {this, "TrackCollectionCnvTool","xAODMaker::TrackCollectionCnvTool/TrackCollectionCnvTool","Cnv of tracks"}
private

Definition at line 121 of file TrigBStoxAODTool.h.

121{this, "TrackCollectionCnvTool","xAODMaker::TrackCollectionCnvTool/TrackCollectionCnvTool","Cnv of tracks"};

◆ m_trigCaloClusterTool

ToolHandle<xAODMaker::ITrigCaloClusterCnvTool> TrigBStoxAODTool::m_trigCaloClusterTool
private

Definition at line 101 of file TrigBStoxAODTool.h.

◆ m_trigMbtsBitsTool

ToolHandle<xAODMaker::ITrigT2MbtsBitsCnvTool> TrigBStoxAODTool::m_trigMbtsBitsTool
private

Definition at line 116 of file TrigBStoxAODTool.h.

◆ m_trigMetTool

ToolHandle<xAODMaker::ITrigMissingETCnvTool> TrigBStoxAODTool::m_trigMetTool
private

Definition at line 112 of file TrigBStoxAODTool.h.

◆ m_trigMuonTool

ToolHandle<ITrigMuonEFInfoToMuonCnvTool> TrigBStoxAODTool::m_trigMuonTool
private

Definition at line 95 of file TrigBStoxAODTool.h.

◆ m_trigPassBitsTool

ToolHandle<xAODMaker::ITrigPassBitsCnvTool> TrigBStoxAODTool::m_trigPassBitsTool
private

Definition at line 132 of file TrigBStoxAODTool.h.

◆ m_trigSpacePtsTool

ToolHandle<xAODMaker::ITrigSpacePointCountsCnvTool> TrigBStoxAODTool::m_trigSpacePtsTool
private

Definition at line 115 of file TrigBStoxAODTool.h.

◆ m_trigTrackCtsTool

ToolHandle<xAODMaker::ITrigTrackCountsCnvTool> TrigBStoxAODTool::m_trigTrackCtsTool
private

Definition at line 117 of file TrigBStoxAODTool.h.

◆ m_trigVtxCtsTool

ToolHandle<xAODMaker::ITrigVertexCountsCnvTool> TrigBStoxAODTool::m_trigVtxCtsTool
private

Definition at line 118 of file TrigBStoxAODTool.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.


The documentation for this class was generated from the following files: