 |
ATLAS Offline Software
|
#include <TrigMuonMatching.h>
|
| TrigMuonMatching (const std::string &name) |
|
virtual | ~TrigMuonMatching () |
|
virtual StatusCode | initialize (void) override |
|
virtual Bool_t | match (const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override |
|
virtual Bool_t | matchL1 (const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override |
|
virtual Bool_t | matchL2SA (const xAOD::Muon *mu, const std::string &l1item, const std::string &chain, const double DelR=0.2) const override |
|
virtual Bool_t | matchL2CB (const xAOD::Muon *mu, const std::string &chain, const double DelR=0.2) const override |
|
virtual Double_t | minDelR (const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override |
|
virtual Double_t | minDelRL1 (const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override |
|
virtual Bool_t | matchDimuon (const xAOD::Muon *mu1, const xAOD::Muon *mu2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override |
|
virtual Bool_t | match (const double eta, const double phi, const std::string &chain, const double mindelR=0.1) const override |
|
virtual Bool_t | matchL1 (const double eta, const double phi, const std::string &l1item, const double DelR=0.2) const override |
|
virtual Bool_t | matchDimuon (const TLorentzVector &muon1, const TLorentzVector &muon2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override |
|
virtual Bool_t | isPassedRerun (const std::string &trigger) const override |
|
virtual StatusCode | sysInitialize () |
| Function initialising the tool in the correct way in Athena. More...
|
|
virtual void | print () const |
| Print the state of the tool. 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, V, H > &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 |
|
|
std::pair< bool, bool > | matchDimuon (const TLorentzVector &muon1, const TLorentzVector &muon2, const DimuonChainInfo &chainInfo, const double mindelR) |
|
double | dR (const double eta1, const double phi1, const double eta2, const double phi2) const |
|
int | getL1pt (const std::string &l1item) const |
|
void | tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) const |
|
Double_t | matchedTrackDetail (EFmuon &efMuonId, const EFmuon &usedEFMuonId, const double eta, const double phi, const double mindelR, const std::string &chainEventTrigger) const |
|
bool | decodeDimuonChain (DimuonChainInfo &chainInfo) |
|
bool | isEqual (const double x, const double y) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 20 of file TrigMuonMatching.h.
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
◆ StoreGateSvc_t
◆ TrigMuonMatching()
Trig::TrigMuonMatching::TrigMuonMatching |
( |
const std::string & |
name | ) |
|
◆ ~TrigMuonMatching()
Trig::TrigMuonMatching::~TrigMuonMatching |
( |
| ) |
|
|
virtual |
◆ beginEvent()
StatusCode asg::AsgMetadataTool::beginEvent |
( |
| ) |
|
|
protectedvirtualinherited |
Function called when a new events is loaded.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.
Definition at line 201 of file AsgMetadataTool.cxx.
204 return StatusCode::SUCCESS;
◆ beginInputFile()
StatusCode asg::AsgMetadataTool::beginInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
Function called when a new input file is opened.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.
Definition at line 185 of file AsgMetadataTool.cxx.
188 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ decodeDimuonChain()
bool Trig::TrigMuonMatching::decodeDimuonChain |
( |
DimuonChainInfo & |
chainInfo | ) |
|
|
private |
Definition at line 408 of file TrigMuonMatching.cxx.
413 chainInfo =
p->second;
416 std::vector<std::string>
tokens;
418 if (
tokens.size() < 2)
return false;
419 if (
tokens[0] !=
"HLT")
return false;
430 if(
tokens.size() != 3)
return false;
432 std::string high = std::string(
"HLT_" +
tokens[1]);
◆ detStore()
◆ dR()
double Trig::TrigMuonMatching::dR |
( |
const double |
eta1, |
|
|
const double |
phi1, |
|
|
const double |
eta2, |
|
|
const double |
phi2 |
|
) |
| const |
|
private |
Definition at line 282 of file TrigMuonMatching.cxx.
288 double dphi = fabs(phi1 - phi2) < TMath::Pi() ? fabs(phi1 - phi2) : 2*TMath:: \
289 Pi() - fabs(phi1 - phi2);
290 return sqrt(deta*deta + dphi*dphi);
◆ endInputFile()
StatusCode asg::AsgMetadataTool::endInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getL1pt()
int Trig::TrigMuonMatching::getL1pt |
( |
const std::string & |
l1item | ) |
const |
|
private |
Definition at line 294 of file TrigMuonMatching.cxx.
298 std::vector<std::string>
tokens;
304 }
else if ((
tokens.size() == 2 ) and (
tokens.at(0) ==
"L1")) {
308 ATH_MSG_ERROR(
"TrigMuonMatching::getL1pt : cannot parse " << l1item);
312 const size_t index =
pt.find(
"MU");
313 if (
index != std::string::npos) {
314 std::istringstream iss(
pt.substr(
index + 2));
317 ATH_MSG_ERROR(
"TrigMuonMatching::getL1pt : cannot parse " << l1item);
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ handle()
void asg::AsgMetadataTool::handle |
( |
const Incident & |
inc | ) |
|
|
protectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent.
Reimplemented in Trig::TrigDecisionTool.
Definition at line 135 of file AsgMetadataTool.cxx.
141 if( inc.type() == IncidentType::BeginInputFile ) {
145 throw std::runtime_error(
"Couldn't call beginInputFile()" );
147 }
else if( inc.type() == IncidentType::EndInputFile ) {
150 throw std::runtime_error(
"Couldn't call endInputFile()" );
152 }
else if( inc.type() == IncidentType::BeginEvent ) {
160 throw std::runtime_error(
"Couldn't call beginInputFile()" );
165 throw std::runtime_error(
"Couldn't call beginEvent()" );
168 #ifdef XAOD_STANDALONE
169 }
else if( inc.type() == IncidentType::MetaDataStop ) {
172 throw std::runtime_error(
"Couldn't call metaDataStop()" );
175 #endif // XAOD_STANDALONE
177 ATH_MSG_WARNING(
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
◆ initialize()
StatusCode Trig::TrigMuonMatching::initialize |
( |
void |
| ) |
|
|
overridevirtual |
◆ inputHandles()
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.
◆ inputMetaStore()
AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore |
( |
| ) |
const |
|
inherited |
Accessor for the input metadata store.
Definition at line 93 of file AsgMetadataTool.cxx.
95 #ifdef XAOD_STANDALONE
97 #else // XAOD_STANDALONE
99 #endif // XAOD_STANDALONE
◆ isEqual()
bool Trig::TrigMuonMatching::isEqual |
( |
const double |
x, |
|
|
const double |
y |
|
) |
| const |
|
private |
Definition at line 443 of file TrigMuonMatching.cxx.
446 if (fabs(
x -
y) < std::numeric_limits<float>::epsilon())
return true;
◆ isPassedRerun()
Bool_t Trig::TrigMuonMatching::isPassedRerun |
( |
const std::string & |
trigger | ) |
const |
|
overridevirtual |
◆ match() [1/2]
Bool_t Trig::TrigMuonMatching::match |
( |
const double |
eta, |
|
|
const double |
phi, |
|
|
const std::string & |
chain, |
|
|
const double |
mindelR = 0.1 |
|
) |
| const |
|
overridevirtual |
◆ match() [2/2]
◆ matchDimuon() [1/3]
std::pair< Bool_t, Bool_t > Trig::TrigMuonMatching::matchDimuon |
( |
const TLorentzVector & |
muon1, |
|
|
const TLorentzVector & |
muon2, |
|
|
const DimuonChainInfo & |
chainInfo, |
|
|
const double |
mindelR |
|
) |
| |
|
private |
Definition at line 252 of file TrigMuonMatching.cxx.
258 EFmuon trkId1, trkId2,
dummy;
265 if(trkId1.valid && trkId2.valid &&
266 isEqual(trkId1.pt, trkId2.pt) &&
267 isEqual(trkId1.eta, trkId2.eta) &&
268 isEqual(trkId1.phi, trkId2.phi)){
277 return std::pair<Bool_t, Bool_t> (trkId1.valid, trkId2.valid);
◆ matchDimuon() [2/3]
Bool_t Trig::TrigMuonMatching::matchDimuon |
( |
const TLorentzVector & |
muon1, |
|
|
const TLorentzVector & |
muon2, |
|
|
const std::string & |
chain, |
|
|
std::pair< Bool_t, Bool_t > & |
result1, |
|
|
std::pair< Bool_t, Bool_t > & |
result2, |
|
|
const Double_t & |
mindelR = 0.1 |
|
) |
| |
|
overridevirtual |
Implements Trig::ITrigMuonMatching.
Definition at line 214 of file TrigMuonMatching.cxx.
221 Double_t delmin = mindelR;
224 ATH_MSG_ERROR(
"TrigMuonMatching : Failed to decode chain " <<
chain <<
" matchDimuon can accept only chains named HLT_2muXX and HLT_muXX_mu8noL1.");
228 std::pair<Bool_t, Bool_t> rc12, rc21;
229 rc12 =
matchDimuon(muon1, muon2, chainInfo, delmin);
230 if(chainInfo.isSymmetric){
231 rc21.first = rc12.second; rc21.second = rc12.first;
235 rc21 =
matchDimuon(muon2, muon1, chainInfo, delmin);
238 result1.first = rc12.first; result1.second = rc21.second;
239 result2.first = rc21.first; result2.second = rc12.second;
◆ matchDimuon() [3/3]
Bool_t Trig::TrigMuonMatching::matchDimuon |
( |
const xAOD::Muon * |
mu1, |
|
|
const xAOD::Muon * |
mu2, |
|
|
const std::string & |
chain, |
|
|
std::pair< Bool_t, Bool_t > & |
result1, |
|
|
std::pair< Bool_t, Bool_t > & |
result2, |
|
|
const Double_t & |
mindelR = 0.1 |
|
) |
| |
|
overridevirtual |
◆ matchedTrackDetail()
Double_t Trig::TrigMuonMatching::matchedTrackDetail |
( |
EFmuon & |
efMuonId, |
|
|
const EFmuon & |
usedEFMuonId, |
|
|
const double |
eta, |
|
|
const double |
phi, |
|
|
const double |
mindelR, |
|
|
const std::string & |
chainEventTrigger |
|
) |
| const |
|
private |
Definition at line 340 of file TrigMuonMatching.cxx.
347 efMuonId.valid =
false;
348 Double_t drmin = mindelR;
350 const std::string eventTrigger = chainForEventTrigger;
353 auto fc = cg->features();
355 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
358 const std::vector< Trig::Feature<xAOD::MuonContainer> > MuFeatureContainers = fc.
get<
xAOD::MuonContainer>();
361 for(
auto mucont : MuFeatureContainers){
362 for(
auto mu : *mucont.cptr()){
368 isEqual(usedEFMuonId.phi,
mu->phi()))
continue;
370 Double_t
dr =
dR(eta,phi,
mu->eta(),
mu->phi());
373 efMuonId.pt =
mu->pt();
374 efMuonId.eta =
mu->eta();
375 efMuonId.phi =
mu->phi();
376 efMuonId.valid =
true;
◆ matchL1() [1/2]
Bool_t Trig::TrigMuonMatching::matchL1 |
( |
const double |
eta, |
|
|
const double |
phi, |
|
|
const std::string & |
l1item, |
|
|
const double |
DelR = 0.2 |
|
) |
| const |
|
overridevirtual |
◆ matchL1() [2/2]
◆ matchL2CB()
Implements Trig::ITrigMuonMatching.
Definition at line 191 of file TrigMuonMatching.cxx.
195 const std::string eventTrigger =
chain;
198 auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
199 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
202 const std::vector< Trig::Feature<xAOD::L2CombinedMuonContainer> > MuFeatureContainers = fc.
get<
xAOD::L2CombinedMuonContainer>(
"", TrigDefs::alsoDeactivateTEs);
205 for(
auto mucont : MuFeatureContainers){
206 for(
auto muon : *mucont.cptr()){
208 if(
dR < DelR)
return true;
◆ matchL2SA()
Bool_t Trig::TrigMuonMatching::matchL2SA |
( |
const xAOD::Muon * |
mu, |
|
|
const std::string & |
l1item, |
|
|
const std::string & |
chain, |
|
|
const double |
DelR = 0.2 |
|
) |
| const |
|
overridevirtual |
Implements Trig::ITrigMuonMatching.
Definition at line 148 of file TrigMuonMatching.cxx.
159 ATH_MSG_ERROR(
"TrigMuonMatching::matchL1 : could not retrieve LVL1MuonRoIs");
165 unsigned int ROI = 0;
166 for( ; muroi_itr != muroi_end; ++muroi_itr ) {
167 if(!((*muroi_itr)->thrValue() >=
threshold*1000))
continue;
168 ROI = (*muroi_itr)->getRoI();
169 const std::string eventTrigger =
chain;
172 auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
173 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
178 for(
auto mucont : MuFeatureContainers){
179 for(
auto muon : *mucont.cptr()){
180 if(
muon->roiNumber() == ROI){
182 if(
dR < DelR)
return true;
◆ metaDataStop()
StatusCode asg::AsgMetadataTool::metaDataStop |
( |
| ) |
|
|
protectedvirtualinherited |
◆ minDelR()
Double_t Trig::TrigMuonMatching::minDelR |
( |
const xAOD::Muon * |
mu, |
|
|
const std::string & |
chain, |
|
|
const double |
mindelR = 0.1 |
|
) |
| const |
|
overridevirtual |
◆ minDelRL1()
Double_t Trig::TrigMuonMatching::minDelRL1 |
( |
const xAOD::Muon * |
mu, |
|
|
const std::string & |
l1item, |
|
|
const double |
DelR = 0.2 |
|
) |
| const |
|
overridevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ outputHandles()
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.
◆ outputMetaStore()
AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore |
( |
| ) |
const |
|
inherited |
Accessor for the output metadata store.
Definition at line 102 of file AsgMetadataTool.cxx.
104 #ifdef XAOD_STANDALONE
106 #else // XAOD_STANDALONE
108 #endif // XAOD_STANDALONE
◆ print()
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ renounce()
◆ renounceArray()
◆ setUseIncidents()
void asg::AsgMetadataTool::setUseIncidents |
( |
const bool |
flag | ) |
|
|
inlineprotectedinherited |
◆ sysInitialize()
StatusCode asg::AsgMetadataTool::sysInitialize |
( |
| ) |
|
|
virtualinherited |
Function initialising the tool in the correct way in Athena.
This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.
Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.
Definition at line 115 of file AsgMetadataTool.cxx.
117 #ifndef XAOD_STANDALONE
124 incSvc->addListener(
this, IncidentType::BeginEvent, 0,
false );
129 #endif // not XAOD_STANDALONE
132 return StatusCode::SUCCESS;
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ tokenize()
void Trig::TrigMuonMatching::tokenize |
( |
const std::string & |
str, |
|
|
std::vector< std::string > & |
tokens, |
|
|
const std::string & |
delimiters |
|
) |
| const |
|
private |
Definition at line 324 of file TrigMuonMatching.cxx.
329 std::string::size_type lastPos =
str.find_first_not_of(delimiters, 0);
330 std::string::size_type
pos =
str.find_first_of(delimiters, lastPos);
332 while ((std::string::npos !=
pos) or (std::string::npos != lastPos)) {
334 lastPos =
str.find_first_not_of(delimiters,
pos);
335 pos =
str.find_first_of(delimiters, lastPos);
◆ updateVHKA()
◆ m_beginInputFileCalled
bool asg::AsgMetadataTool::m_beginInputFileCalled |
|
privateinherited |
Flag helping to discover when the tool misses the opening of the first input file.
Definition at line 126 of file AsgMetadataTool.h.
◆ m_detStore
◆ m_DimuonChainMap
std::map<std::string, DimuonChainInfo> Trig::TrigMuonMatching::m_DimuonChainMap |
|
private |
◆ m_evtStore
◆ m_inputMetaStore
◆ m_outputMetaStore
◆ m_trigDecTool
◆ m_useIncidents
bool asg::AsgMetadataTool::m_useIncidents |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
virtual Bool_t matchL1(const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override
virtual double phi() const
The azimuthal angle ( ) of the particle.
std::pair< std::string, std::string > thresholds
virtual double eta() const
The pseudorapidity ( ) of the particle.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const T * get(size_type n) const
Access an element, as an rvalue.
setEt setPhi setE277 setWeta2 eta1
#define ATH_MSG_VERBOSE(x)
bool isEqual(const double x, const double y) const
virtual void setOwner(IDataHandleHolder *o)=0
std::map< std::string, DimuonChainInfo > m_DimuonChainMap
double dR(const double eta1, const double phi1, const double eta2, const double phi2) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual Bool_t match(const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override
ToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Double_t matchedTrackDetail(EFmuon &efMuonId, const EFmuon &usedEFMuonId, const double eta, const double phi, const double mindelR, const std::string &chainEventTrigger) const
int getL1pt(const std::string &l1item) const
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual double pt() const
The transverse momentum ( ) of the particle.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual Bool_t matchDimuon(const xAOD::Muon *mu1, const xAOD::Muon *mu2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override
#define ATH_MSG_WARNING(x)
bool decodeDimuonChain(DimuonChainInfo &chainInfo)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
void tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.