ATLAS Offline Software
ComponentFactoryPreloader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 //
8 // includes
9 //
10 
12 
15 
67 #include <METUtilities/METMaker.h>
100 
101 //
102 // method implementations
103 //
104 
105 namespace CP
106 {
108  {
109  using namespace asg::msgComponentConfig;
110  ANA_CHECK_SET_TYPE (bool);
111 
112  asg::msgComponentConfig::setMsgLevel (MSG::DEBUG);
113 
114  ANA_MSG_INFO ("preloading component factories");
115 
116  ANA_CHECK (asg::registerAlgorithmFactory<GRLSelectorAlg>("GRLSelectorAlg"));
117  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgLeptonTrackSelectionAlg>("CP::AsgLeptonTrackSelectionAlg"));
118  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgSelectionAlg>("CP::AsgSelectionAlg"));
119  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgShallowCopyAlg>("CP::AsgShallowCopyAlg"));
120  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgUnionPreselectionAlg>("CP::AsgUnionPreselectionAlg"));
121  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgUnionSelectionAlg>("CP::AsgUnionSelectionAlg"));
122  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgViewFromSelectionAlg>("CP::AsgViewFromSelectionAlg"));
123  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgxAODMetNTupleMakerAlg>("CP::AsgxAODMetNTupleMakerAlg"));
124  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgxAODNTupleMakerAlg>("CP::AsgxAODNTupleMakerAlg"));
125  ANA_CHECK (asg::registerAlgorithmFactory<CP::AsgEnergyDecoratorAlg>("CP::AsgEnergyDecoratorAlg"));
126  ANA_CHECK (asg::registerAlgorithmFactory<CP::BootstrapGeneratorAlg>("CP::BootstrapGeneratorAlg"));
127  ANA_CHECK (asg::registerAlgorithmFactory<CP::EgammaCalibrationAndSmearingAlg>("CP::EgammaCalibrationAndSmearingAlg"));
128  ANA_CHECK (asg::registerAlgorithmFactory<CP::EgammaIsolationCorrectionAlg>("CP::EgammaIsolationCorrectionAlg"));
129  ANA_CHECK (asg::registerAlgorithmFactory<CP::EgammaIsolationSelectionAlg>("CP::EgammaIsolationSelectionAlg"));
130  ANA_CHECK (asg::registerAlgorithmFactory<CP::PhotonExtraVariablesAlg>("CP::PhotonExtraVariablesAlg"));
131  ANA_CHECK (asg::registerAlgorithmFactory<CP::EventFlagSelectionAlg>("CP::EventFlagSelectionAlg"));
132  ANA_CHECK (asg::registerAlgorithmFactory<CP::EventStatusSelectionAlg>("CP::EventStatusSelectionAlg"));
133  ANA_CHECK (asg::registerAlgorithmFactory<CP::JetCalibrationAlg>("CP::JetCalibrationAlg"));
134  ANA_CHECK (asg::registerAlgorithmFactory<CP::JetDecoratorAlg>("CP::JetDecoratorAlg"));
135  ANA_CHECK (asg::registerAlgorithmFactory<CP::JetGhostMuonAssociationAlg>("CP::JetGhostMuonAssociationAlg"));
136  ANA_CHECK (asg::registerAlgorithmFactory<CP::JetUncertaintiesAlg>("CP::JetUncertaintiesAlg"));
137  ANA_CHECK (asg::registerAlgorithmFactory<CP::MetBuilderAlg>("CP::MetBuilderAlg"));
138  ANA_CHECK (asg::registerAlgorithmFactory<CP::MetMakerAlg>("CP::MetMakerAlg"));
139  ANA_CHECK (asg::registerAlgorithmFactory<CP::MetSignificanceAlg>("CP::MetSignificanceAlg"));
140  ANA_CHECK (asg::registerAlgorithmFactory<CP::MissingETPlusTransverseMassSelectorAlg>("CP::MissingETPlusTransverseMassSelectorAlg"));
141  ANA_CHECK (asg::registerAlgorithmFactory<CP::MissingETSelectorAlg>("CP::MissingETSelectorAlg"));
142  ANA_CHECK (asg::registerAlgorithmFactory<CP::MuonCalibrationAndSmearingAlg>("CP::MuonCalibrationAndSmearingAlg"));
143  ANA_CHECK (asg::registerAlgorithmFactory<CP::MuonIsolationAlg>("CP::MuonIsolationAlg"));
144  ANA_CHECK (asg::registerAlgorithmFactory<CP::MuonSelectionAlgV2>("CP::MuonSelectionAlgV2"));
145  ANA_CHECK (asg::registerAlgorithmFactory<CP::NObjectPtSelectorAlg>("CP::NObjectPtSelectorAlg"));
146  ANA_CHECK (asg::registerAlgorithmFactory<CP::ObjectCutFlowHistAlg>("CP::ObjectCutFlowHistAlg"));
147  ANA_CHECK (asg::registerAlgorithmFactory<CP::OverlapRemovalAlg>("CP::OverlapRemovalAlg"));
148  ANA_CHECK (asg::registerAlgorithmFactory<CP::PhotonOriginCorrectionAlg>("CP::PhotonOriginCorrectionAlg"));
149  ANA_CHECK (asg::registerAlgorithmFactory<CP::PileupReweightingAlg> ("CP::PileupReweightingAlg"));
150  ANA_CHECK (asg::registerAlgorithmFactory<CP::SaveFilterAlg>("CP::SaveFilterAlg"));
151  ANA_CHECK (asg::registerAlgorithmFactory<CP::SystObjectLinkerAlg>("CP::SystObjectLinkerAlg"));
152  ANA_CHECK (asg::registerAlgorithmFactory<CP::TauSmearingAlg>("CP::TauSmearingAlg"));
153  ANA_CHECK (asg::registerAlgorithmFactory<CP::DiTauMassCalculatorAlg>("CP::DiTauMassCalculatorAlg"));
154  ANA_CHECK (asg::registerAlgorithmFactory<CP::TransverseMassSelectorAlg>("CP::TransverseMassSelectorAlg"));
155  ANA_CHECK (asg::registerAlgorithmFactory<CP::TreeFillerAlg>("CP::TreeFillerAlg"));
156  ANA_CHECK (asg::registerAlgorithmFactory<CP::TreeMakerAlg>("CP::TreeMakerAlg"));
157  ANA_CHECK (asg::registerAlgorithmFactory<CP::TrigEventSelectionAlg>("CP::TrigEventSelectionAlg"));
158  ANA_CHECK (asg::registerAlgorithmFactory<CP::TrigGlobalEfficiencyAlg>("CP::TrigGlobalEfficiencyAlg"));
159  ANA_CHECK (asg::registerAlgorithmFactory<CP::VertexSelectionAlg>("CP::VertexSelectionAlg"));
160  ANA_CHECK (asg::registerAlgorithmFactory<CP::IOStatsAlg>("CP::IOStatsAlg"));
161 
162  ANA_CHECK (asg::registerToolFactory<AsgDeadHVCellRemovalTool> ("AsgDeadHVCellRemovalTool"));
163  ANA_CHECK (asg::registerToolFactory<BTaggingSelectionTool> ("BTaggingSelectionTool"));
164  ANA_CHECK (asg::registerToolFactory<GoodRunsListSelectionTool> ("GoodRunsListSelectionTool"));
165  ANA_CHECK (asg::registerToolFactory<JetCalibrationTool> ("JetCalibrationTool"));
166  ANA_CHECK (asg::registerToolFactory<JetUncertaintiesTool> ("JetUncertaintiesTool"));
167  ANA_CHECK (asg::registerToolFactory<TauCombinedTES> ("TauCombinedTES"));
168  ANA_CHECK (asg::registerToolFactory<TrigGlobalEfficiencyCorrectionTool> ("TrigGlobalEfficiencyCorrectionTool"));
169  ANA_CHECK (asg::registerToolFactory<egammaMVACalibTool> ("egammaMVACalibTool"));
170  ANA_CHECK (asg::registerToolFactory<CP::AsgFlagSelectionTool> ("CP::AsgFlagSelectionTool"));
171  ANA_CHECK (asg::registerToolFactory<CP::AsgPtEtaSelectionTool> ("CP::AsgPtEtaSelectionTool"));
172  ANA_CHECK (asg::registerToolFactory<CP::EgammaIsGoodOQSelectionTool> ("CP::EgammaIsGoodOQSelectionTool"));
173  ANA_CHECK (asg::registerToolFactory<CP::EgammaCalibrationAndSmearingTool> ("CP::EgammaCalibrationAndSmearingTool"));
174  ANA_CHECK (asg::registerToolFactory<CP::IsolationCorrectionTool> ("CP::IsolationCorrectionTool"));
175  ANA_CHECK (asg::registerToolFactory<CP::IsolationSelectionTool> ("CP::IsolationSelectionTool"));
176  ANA_CHECK (asg::registerToolFactory<CP::MuonCalibIntSagittaTool> ("CP::MuonCalibIntSagittaTool"));
177  ANA_CHECK (asg::registerToolFactory<CP::MuonCalibIntScaleSmearTool> ("CP::MuonCalibIntScaleSmearTool"));
178  ANA_CHECK (asg::registerToolFactory<CP::MuonCalibTool> ("CP::MuonCalibTool"));
179  ANA_CHECK (asg::registerToolFactory<CP::MuonSelectionTool> ("CP::MuonSelectionTool"));
180  ANA_CHECK (asg::registerToolFactory<CP::NNJvtSelectionTool> ("CP::NNJvtSelectionTool"));
181  ANA_CHECK (asg::registerToolFactory<CP::PileupReweightingTool> ("CP::PileupReweightingTool"));
182  ANA_CHECK (asg::registerToolFactory<JetPileupTag::JetVertexNNTagger> ("JetPileupTag::JetVertexNNTagger"));
183  ANA_CHECK (asg::registerToolFactory<ORUtils::DeltaROverlapTool> ("ORUtils::DeltaROverlapTool"));
184  ANA_CHECK (asg::registerToolFactory<ORUtils::EleJetOverlapTool> ("ORUtils::EleJetOverlapTool"));
185  ANA_CHECK (asg::registerToolFactory<ORUtils::EleMuSharedTrkOverlapTool> ("ORUtils::EleMuSharedTrkOverlapTool"));
186  ANA_CHECK (asg::registerToolFactory<ORUtils::MuJetOverlapTool> ("ORUtils::MuJetOverlapTool"));
187  ANA_CHECK (asg::registerToolFactory<ORUtils::OverlapRemovalTool> ("ORUtils::OverlapRemovalTool"));
188  ANA_CHECK (asg::registerToolFactory<TauAnalysisTools::CommonSmearingTool> ("TauAnalysisTools::CommonSmearingTool"));
189  ANA_CHECK (asg::registerToolFactory<TauAnalysisTools::TauSelectionTool> ("TauAnalysisTools::TauSelectionTool"));
190  ANA_CHECK (asg::registerToolFactory<TauAnalysisTools::TauSmearingTool> ("TauAnalysisTools::TauSmearingTool"));
191  ANA_CHECK (asg::registerToolFactory<DiTauMassTools::MissingMassToolV2> ("DiTauMassTools::MissingMassToolV2"));
192  ANA_CHECK (asg::registerToolFactory<Trig::DRScoringTool> ("Trig::DRScoringTool"));
193  ANA_CHECK (asg::registerToolFactory<Trig::MatchFromCompositeTool> ("Trig::MatchFromCompositeTool"));
194  ANA_CHECK (asg::registerToolFactory<Trig::TrigDecisionTool> ("Trig::TrigDecisionTool"));
195  ANA_CHECK (asg::registerToolFactory<TrigConf::xAODConfigTool> ("TrigConf::xAODConfigTool"));
196  ANA_CHECK (asg::registerToolFactory<met::METMaker> ("met::METMaker"));
197  ANA_CHECK (asg::registerToolFactory<met::METSignificance> ("met::METSignificance"));
198 
199  ANA_CHECK (asg::registerServiceFactory<egammaMVASvc> ("egammaMVASvc"));
200  ANA_CHECK (asg::registerServiceFactory<CP::SystematicsSvc> ("CP::SystematicsSvc"));
201  ANA_CHECK (asg::registerServiceFactory<CP::SelectionNameSvc> ("CP::SelectionNameSvc"));
202 
203  return true;
204  }
205 }
MuonSelectionAlg.h
EleJetOverlapTool.h
TrigEventSelectionAlg.h
ObjectCutFlowHistAlg.h
MuJetOverlapTool.h
xAODConfigTool.h
AsgxAODNTupleMakerAlg.h
AsgxAODMetNTupleMakerAlg.h
AsgEnergyDecoratorAlg.h
NNJvtSelectionTool.h
BootstrapGeneratorAlg.h
EgammaIsolationCorrectionAlg.h
CP::preloadComponentFactories
bool preloadComponentFactories()
Definition: ComponentFactoryPreloader.cxx:107
MuonIsolationAlg.h
TauSmearingAlg.h
JetVertexNNTagger.h
EleMuSharedTrkOverlapTool.h
AsgViewFromSelectionAlg.h
MetMakerAlg.h
IsolationCorrectionTool.h
MetSignificanceAlg.h
TrigDecisionTool.h
AsgUnionPreselectionAlg.h
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
TrigGlobalEfficiencyCorrectionTool.h
MissingETSelectorAlg.h
JetUncertaintiesAlg.h
MissingETPlusTransverseMassSelectorAlg.h
MatchFromCompositeTool.h
SaveFilterAlg.h
JetGhostMuonAssociationAlg.h
DiTauMassCalculatorAlg.h
AsgPtEtaSelectionTool.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
NObjectPtSelectorAlg.h
EventFlagSelectionAlg.h
PileupReweightingTool.h
PhotonOriginCorrectionAlg.h
SystObjectLinkerAlg.h
AsgFlagSelectionTool.h
JetCalibrationTool.h
JetDecoratorAlg.h
IsolationSelectionTool.h
OverlapRemovalAlg.h
TauSmearingTool.h
MuonCalibrationAndSmearingAlg.h
EgammaIsolationSelectionAlg.h
VertexSelectionAlg.h
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:290
AsgDeadHVCellRemovalTool.h
BTaggingSelectionTool.h
MetBuilderAlg.h
OverlapRemovalTool.h
MuonSelectionTool.h
METSignificance.h
egammaMVACalibTool.h
TreeFillerAlg.h
TauCombinedTES.h
AsgUnionSelectionAlg.h
AsgShallowCopyAlg.h
GoodRunsListSelectionTool.h
MuonCalibIntSagittaTool.h
MuonCalibIntScaleSmearTool.h
ComponentFactoryPreloader.h
DRScoringTool.h
DeltaROverlapTool.h
TauSelectionTool.h
MissingMassToolV2.h
TransverseMassSelectorAlg.h
CommonSmearingTool.h
IOStatsAlg.h
METMaker.h
TreeMakerAlg.h
egammaMVASvc.h
EgammaCalibrationAndSmearingAlg.h
MuonCalibTool.h
PhotonExtraVariablesAlg.h
ANA_CHECK_SET_TYPE
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:314
GRLSelectorAlg.h
DEBUG
#define DEBUG
Definition: page_access.h:11
AsgLeptonTrackSelectionAlg.h
SystematicsSvc.h
JetCalibrationAlg.h
EventStatusSelectionAlg.h
PileupReweightingAlg.h
EgammaIsGoodOQSelectionTool.h
AsgComponentFactories.h
TrigGlobalEfficiencyAlg.h
EgammaCalibrationAndSmearingTool.h
AsgSelectionAlg.h
MessageCheckAsgTools.h
JetUncertaintiesTool.h
SelectionNameSvc.h