40 Run1BStoxAODTrigger::Run1BStoxAODTrigger()
45 m_histFile =
new TFile(
"hist.root",
"RECREATE");
47 throw std::runtime_error(
"unable to open file for writing, exiting");
51 m_HLT_EFBMuMuXFex_eta =
new TH1F(
"HLT_EFBMuMuXFex_eta",
"HLT_EFBMuMuXFex;#eta;No. of TrigEFBphys objects", 100, -4., 4. );
52 m_HLT_EFBMuMuXFex_mass =
new TH1F(
"HLT_EFBMuMuXFex_mass",
"HLT_EFBMuMuXFex;#M (GeV);No. of TrigEFBphys objects", 100, 0., 20. );
54 m_HLT_TrigTauJet =
new TH1F(
"HLT_TrigTauJet",
"HLT_TrigTauJet;p_{T} (GeV);Jets", 100, 0., 500. );
57 m_HLT_MuonEF_pt =
new TH1F(
"HLT_MuonEF_pt",
"HLT_MuonEF_pt;p_{T} (GeV);Muons", 100, 0., 100.);
76 for(
auto &trig : chainGroups->getListOfTriggers()) {
81 cout <<
"Trigger passed: " << trig << endl;
92 eventStore()->
retrieve( HLT_xAOD__TrigBphysContainer_EFBMuMuXFex,
"HLT_xAOD__TrigBphysContainer_EFBMuMuXFex" ).ignore();
93 cout <<
"size of HLT_xAOD__TrigBphysContainer_EFBMuMuXFex is " << HLT_xAOD__TrigBphysContainer_EFBMuMuXFex->
size() << endl;
95 for(TrigBphys_iter = HLT_xAOD__TrigBphysContainer_EFBMuMuXFex->
begin(); TrigBphys_iter != HLT_xAOD__TrigBphysContainer_EFBMuMuXFex->
end(); ++TrigBphys_iter) {
96 cout <<
"eta, mass = "<< (*TrigBphys_iter)->eta() <<
", "<< (*TrigBphys_iter)->mass() << endl;
104 eventStore()->
retrieve( HLT_xAOD__JetContainer_TrigTauJet,
"HLT_xAOD__JetContainer_TrigTauJet" ).ignore();
105 cout <<
"HLT_xAOD__JetContainer_TrigTauJet successfully retrieved - size is " << HLT_xAOD__JetContainer_TrigTauJet->
size() <<
" jets" << endl;
107 for(Jet_iter = HLT_xAOD__JetContainer_TrigTauJet->
begin(); Jet_iter != HLT_xAOD__JetContainer_TrigTauJet->
end(); ++Jet_iter) {
108 cout <<
"tau jet eta, pt: " << (*Jet_iter)->eta() <<
", " << (*Jet_iter)->pt() << endl;
116 eventStore()->
retrieve( HLT_xAOD__MuonContainer_MuonEFInfo,
"HLT_xAOD__MuonContainer_MuonEFInfo").ignore();
117 cout <<
"size of HLT_xAOD__MuonContainer_MuonEFInfo is " << HLT_xAOD__MuonContainer_MuonEFInfo->
size() << endl;
119 for(Muon_iter = HLT_xAOD__MuonContainer_MuonEFInfo->
begin(); Muon_iter!= HLT_xAOD__MuonContainer_MuonEFInfo->
end(); ++Muon_iter) {
120 cout <<
"muon n segments, pt: " << (*Muon_iter)->nMuonSegments() <<
", " << (*Muon_iter)->pt() << endl;
129 eventStore()->
retrieve( HLT_xAOD__TrigMissingETContainer_TrigEFMissingET,
"HLT_xAOD__TrigMissingETContainer_TrigEFMissingET" ).ignore();
131 cout <<
"Size of TrigMissingETContainer is " << HLT_xAOD__TrigMissingETContainer_TrigEFMissingET->
size() << endl;
132 for(TrigMissingET_iter = HLT_xAOD__TrigMissingETContainer_TrigEFMissingET->
begin(); TrigMissingET_iter != HLT_xAOD__TrigMissingETContainer_TrigEFMissingET->
end(); ++TrigMissingET_iter) {
133 Double_t ex = (*TrigMissingET_iter)->ex();
134 Double_t ey = (*TrigMissingET_iter)->ey();
135 Double_t
et = TMath::Sqrt(ex*ex + ey*ey);
136 cout <<
" missing et = " <<
et << endl;
141 eventStore()->
retrieve( HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_FEB,
"HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_FEB" ).ignore();
142 cout <<
"Size of TrigMissingETContainer is " << HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_FEB->
size() << endl;
143 for(TrigMissingET_iter = HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_FEB->
begin(); TrigMissingET_iter != HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_FEB->
end(); ++TrigMissingET_iter) {
144 Double_t ex = (*TrigMissingET_iter)->ex();
145 Double_t ey = (*TrigMissingET_iter)->ey();
146 Double_t
et = TMath::Sqrt(ex*ex + ey*ey);
147 cout <<
" missing et = " <<
et << endl;
152 eventStore()->
retrieve( HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl,
"HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl" ).ignore();
153 cout <<
"Size of TrigMissingETContainer is " << HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl->
size() << endl;
154 for(TrigMissingET_iter = HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl->
begin(); TrigMissingET_iter != HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl->
end(); ++TrigMissingET_iter) {
155 Double_t ex = (*TrigMissingET_iter)->ex();
156 Double_t ey = (*TrigMissingET_iter)->ey();
157 Double_t
et = TMath::Sqrt(ex*ex + ey*ey);
158 cout <<
" missing et = " <<
et << endl;
162 cout <<
" --- Event processing done --- \n" << endl;
172 cout <<
"L1 triggers passed: " <<
m_passed_l1 << endl;
174 cout <<
"START SUMMARY: Run1BStoxAODTrigger" << endl;
175 cout <<
"creating histogram with one bin per trigger, n of bins is " <<
m_trigger_counts.size() << endl;
178 cout <<
"histogram created" << endl;
179 int trigger_counter = 0;
181 cout << (*it).first <<
"\t" << (*it).second <<endl;
183 m_all_triggers->GetXaxis()->SetBinLabel( trigger_counter, ((*it).first).c_str() );
186 cout <<
"END SUMMARY : Run1BStoxAODTrigger" << endl;