|
ATLAS Offline Software
|
Go to the documentation of this file.
13 m_tmt.setTypeAndName(
"Trig::MatchingTool/MyMatchingTool");
15 return StatusCode::SUCCESS;
37 std::vector<const xAOD::IParticle*> myParticles;
45 res =
m_tmt->match(myParticles,
"HLT_e17_lhloose",0.07 );
52 for(
uint j = 0; j < muons->
size(); j++) {
55 myParticles.push_back(muons->
at(j));
56 res =
m_tmt->match(myParticles,
"HLT_e17_lhloose_mu14");
63 for(
uint j = 0; j < taus->
size(); j++) {
66 myParticles.push_back(taus->
at(j));
67 res =
m_tmt->match(myParticles,
"HLT_e17_lhmedium_iloose_tau25_medium1_tracktwo");
68 m_matches[
"HLT_e17_lhmedium_iloose_tau25_medium1_tracktwo"] +=
res;
69 ATH_MSG_INFO(
"HLT_e17_lhmedium_iloose_tau25_medium1_tracktwo = " <<
res);
77 for(
auto muon : *muons) {
85 for(
uint j = 0; j < taus->
size(); j++) {
86 res =
m_tmt->match(*taus->
at(j),
"HLT_tau25_loose1_ptonly");
99 myParticles.push_back(
electrons->at(j) );
100 res =
m_tmt->match(myParticles,
"HLT_2e17_lhloose", 0.07);
107 return StatusCode::SUCCESS;
112 TFile
f1(
"TestMatchingToolAlg.results.root",
"RECREATE");
114 TH1D*
h =
new TH1D(
t.first.c_str(),
t.first.c_str(),1,0,1);
115 h->SetBinContent(1,
t.second);
119 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::pair< std::vector< unsigned int >, bool > res
#define CHECK(...)
Evaluate an expression and check for errors.
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.