13 m_tmt.setTypeAndName(
"Trig::MatchingTool/MyMatchingTool");
15 return StatusCode::SUCCESS;
32 if(electrons)
ATH_MSG_INFO(
"Offline Electron container size " << electrons->size());
37 std::vector<const xAOD::IParticle*> myParticles;
42 for(
uint i = 0; i< electrons->size(); i++) {
44 myParticles.push_back( electrons->at(i) );
45 res =
m_tmt->match(myParticles,
"HLT_e17_lhloose",0.07 );
52 for(
uint j = 0; j < muons->
size(); j++) {
54 myParticles.push_back(electrons->at(i));
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++) {
65 myParticles.push_back(electrons->at(i));
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) {
78 res =
m_tmt->match(*muon,
"HLT_mu18");
85 for(
uint j = 0; j <
taus->size(); j++) {
86 res =
m_tmt->match(*
taus->at(j),
"HLT_tau25_loose1_ptonly");
95 for(
uint i = 0; i< electrons->size(); i++) {
96 for(
uint j = i+1; j < electrons->size(); j++) {
98 myParticles.push_back( electrons->at(i) );
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;
#define CHECK(...)
Evaluate an expression and check for errors.
std::pair< std::vector< unsigned int >, bool > res
ServiceHandle< StoreGateSvc > & evtStore()
Header file for AthHistogramAlgorithm.
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.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.