/
HLTEventAnalyzerRAW.h
90 lines (77 loc) · 2.95 KB
/
HLTEventAnalyzerRAW.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef HLTcore_HLTEventAnalyzerRAW_h
#define HLTcore_HLTEventAnalyzerRAW_h
/** \class HLTEventAnalyzerRAW
*
*
* This class is an EDAnalyzer analyzing the combined HLT information for RAW
*
*
* \author Martin Grunewald
*
*/
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/stream/EDAnalyzer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
namespace edm {
class ConfigurationDescriptions;
}
//
// class declaration
//
class HLTEventAnalyzerRAW : public edm::stream::EDAnalyzer< > {
public:
explicit HLTEventAnalyzerRAW(const edm::ParameterSet&);
virtual ~HLTEventAnalyzerRAW();
static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
virtual void endRun(edm::Run const &, edm::EventSetup const&) override;
virtual void beginRun(edm::Run const &, edm::EventSetup const&) override;
virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
virtual void analyzeTrigger(const edm::Event&, const edm::EventSetup&, const std::string& triggerName);
private:
/// module config parameters
const std::string processName_;
const std::string triggerName_;
const edm::InputTag triggerResultsTag_;
const edm::EDGetTokenT<edm::TriggerResults> triggerResultsToken_;
const edm::InputTag triggerEventWithRefsTag_;
const edm::EDGetTokenT<trigger::TriggerEventWithRefs> triggerEventWithRefsToken_;
/// additional class data memebers
edm::Handle<edm::TriggerResults> triggerResultsHandle_;
edm::Handle<trigger::TriggerEventWithRefs> triggerEventWithRefsHandle_;
HLTConfigProvider hltConfig_;
/// payload extracted from TriggerEventWithRefs
trigger::Vids photonIds_;
trigger::VRphoton photonRefs_;
trigger::Vids electronIds_;
trigger::VRelectron electronRefs_;
trigger::Vids muonIds_;
trigger::VRmuon muonRefs_;
trigger::Vids jetIds_;
trigger::VRjet jetRefs_;
trigger::Vids compositeIds_;
trigger::VRcomposite compositeRefs_;
trigger::Vids basemetIds_;
trigger::VRbasemet basemetRefs_;
trigger::Vids calometIds_;
trigger::VRcalomet calometRefs_;
trigger::Vids pixtrackIds_;
trigger::VRpixtrack pixtrackRefs_;
trigger::Vids l1emIds_;
trigger::VRl1em l1emRefs_;
trigger::Vids l1muonIds_;
trigger::VRl1muon l1muonRefs_;
trigger::Vids l1jetIds_;
trigger::VRl1jet l1jetRefs_;
trigger::Vids l1etmissIds_;
trigger::VRl1etmiss l1etmissRefs_;
trigger::Vids l1hfringsIds_;
trigger::VRl1hfrings l1hfringsRefs_;
trigger::Vids pfjetIds_;
trigger::VRpfjet pfjetRefs_;
trigger::Vids pftauIds_;
trigger::VRpftau pftauRefs_;
};
#endif