|
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 > &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 > &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...
|
|
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 196 of file AsgMetadataTool.cxx.
199 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, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.
Definition at line 180 of file AsgMetadataTool.cxx.
183 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 407 of file TrigMuonMatching.cxx.
412 chainInfo =
p->second;
415 std::vector<std::string>
tokens;
417 if (
tokens.size() < 2)
return false;
418 if (
tokens[0] !=
"HLT")
return false;
429 if(
tokens.size() != 3)
return false;
431 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 281 of file TrigMuonMatching.cxx.
287 double dphi = fabs(phi1 - phi2) < TMath::Pi() ? fabs(phi1 - phi2) : 2*TMath:: \
288 Pi() - fabs(phi1 - phi2);
289 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 293 of file TrigMuonMatching.cxx.
297 std::vector<std::string>
tokens;
303 }
else if ((
tokens.size() == 2 ) and (
tokens.at(0) ==
"L1")) {
307 ATH_MSG_ERROR(
"TrigMuonMatching::getL1pt : cannot parse " << l1item);
311 const size_t index =
pt.find(
"MU");
312 if (
index != std::string::npos) {
313 std::istringstream iss(
pt.substr(
index + 2));
316 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 130 of file AsgMetadataTool.cxx.
136 if( inc.type() == IncidentType::BeginInputFile ) {
140 throw std::runtime_error(
"Couldn't call beginInputFile()" );
142 }
else if( inc.type() == IncidentType::EndInputFile ) {
145 throw std::runtime_error(
"Couldn't call endInputFile()" );
147 }
else if( inc.type() == IncidentType::BeginEvent ) {
155 throw std::runtime_error(
"Couldn't call beginInputFile()" );
160 throw std::runtime_error(
"Couldn't call beginEvent()" );
163 #ifdef XAOD_STANDALONE
164 }
else if( inc.type() == IncidentType::MetaDataStop ) {
167 throw std::runtime_error(
"Couldn't call metaDataStop()" );
170 #endif // XAOD_STANDALONE
172 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 88 of file AsgMetadataTool.cxx.
90 #ifdef XAOD_STANDALONE
92 #else // XAOD_STANDALONE
94 #endif // XAOD_STANDALONE
◆ isEqual()
bool Trig::TrigMuonMatching::isEqual |
( |
const double |
x, |
|
|
const double |
y |
|
) |
| const |
|
private |
Definition at line 442 of file TrigMuonMatching.cxx.
445 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 251 of file TrigMuonMatching.cxx.
257 EFmuon trkId1, trkId2,
dummy;
264 if(trkId1.valid && trkId2.valid &&
265 isEqual(trkId1.pt, trkId2.pt) &&
266 isEqual(trkId1.eta, trkId2.eta) &&
267 isEqual(trkId1.phi, trkId2.phi)){
276 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 213 of file TrigMuonMatching.cxx.
220 Double_t delmin = mindelR;
223 ATH_MSG_ERROR(
"TrigMuonMatching : Failed to decode chain " <<
chain <<
" matchDimuon can accept only chains named HLT_2muXX and HLT_muXX_mu8noL1.");
227 std::pair<Bool_t, Bool_t> rc12, rc21;
228 rc12 =
matchDimuon(muon1, muon2, chainInfo, delmin);
229 if(chainInfo.isSymmetric){
230 rc21.first = rc12.second; rc21.second = rc12.first;
234 rc21 =
matchDimuon(muon2, muon1, chainInfo, delmin);
237 result1.first = rc12.first; result1.second = rc21.second;
238 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 339 of file TrigMuonMatching.cxx.
346 efMuonId.valid =
false;
347 Double_t drmin = mindelR;
349 const std::string eventTrigger = chainForEventTrigger;
352 auto fc = cg->features();
354 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
357 const std::vector< Trig::Feature<xAOD::MuonContainer> > MuFeatureContainers = fc.
get<
xAOD::MuonContainer>();
360 for(
auto mucont : MuFeatureContainers){
361 for(
auto mu : *mucont.cptr()){
367 isEqual(usedEFMuonId.phi,
mu->phi()))
continue;
369 Double_t
dr =
dR(eta,phi,
mu->eta(),
mu->phi());
372 efMuonId.pt =
mu->pt();
373 efMuonId.eta =
mu->eta();
374 efMuonId.phi =
mu->phi();
375 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 190 of file TrigMuonMatching.cxx.
194 const std::string eventTrigger =
chain;
197 auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
198 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
201 const std::vector< Trig::Feature<xAOD::L2CombinedMuonContainer> > MuFeatureContainers = fc.
get<
xAOD::L2CombinedMuonContainer>(
"", TrigDefs::alsoDeactivateTEs);
204 for(
auto mucont : MuFeatureContainers){
205 for(
auto muon : *mucont.cptr()){
207 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 147 of file TrigMuonMatching.cxx.
158 ATH_MSG_ERROR(
"TrigMuonMatching::matchL1 : could not retrieve LVL1MuonRoIs");
164 unsigned int ROI = 0;
165 for( ; muroi_itr != muroi_end; ++muroi_itr ) {
166 if(!((*muroi_itr)->thrValue() >=
threshold*1000))
continue;
167 ROI = (*muroi_itr)->getRoI();
168 const std::string eventTrigger =
chain;
171 auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
172 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
177 for(
auto mucont : MuFeatureContainers){
178 for(
auto muon : *mucont.cptr()){
179 if(
muon->roiNumber() == ROI){
181 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 97 of file AsgMetadataTool.cxx.
99 #ifdef XAOD_STANDALONE
101 #else // XAOD_STANDALONE
103 #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, 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 110 of file AsgMetadataTool.cxx.
112 #ifndef XAOD_STANDALONE
119 incSvc->addListener(
this, IncidentType::BeginEvent, 0,
false );
124 #endif // not XAOD_STANDALONE
127 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 323 of file TrigMuonMatching.cxx.
328 std::string::size_type lastPos =
str.find_first_not_of(delimiters, 0);
329 std::string::size_type
pos =
str.find_first_of(delimiters, lastPos);
331 while ((std::string::npos !=
pos) or (std::string::npos != lastPos)) {
333 lastPos =
str.find_first_not_of(delimiters,
pos);
334 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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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
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.
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.