CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerSummaryProducerAOD.h
Go to the documentation of this file.
1 #ifndef HLTcore_TriggerSummaryProducerAOD_h
2 #define HLTcore_TriggerSummaryProducerAOD_h
3 
21 
25 
30 
46 
47 #include <map>
48 #include <set>
49 #include <string>
50 #include <vector>
51 
52 namespace edm {
53  class EventSetup;
54 }
55 
56 namespace edm {
58 }
59 
60 //
61 // class declaration
62 //
63 
65 
66  public:
69  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
70  virtual void produce(edm::Event&, const edm::EventSetup&);
71  virtual void endJob();
72 
73  // additional
74 
75  template <typename C>
77 
78  template <typename T>
79  void fillTriggerObject(const T& );
82  void fillTriggerObject(const reco::CaloMET& );
83  void fillTriggerObject(const reco::MET& );
84 
85  template <typename C>
86  void fillFilterObjectMembers(const edm::Event&, const edm::InputTag& tag, const trigger::Vids &, const std::vector<edm::Ref<C> >&);
87 
88  template <typename C>
89  void fillFilterObjectMember(const int&, const int&, const edm::Ref<C>&);
90  void fillFilterObjectMember(const int&, const int&, const edm::Ref<l1extra::L1HFRingsCollection>&);
91  void fillFilterObjectMember(const int&, const int&, const edm::Ref<l1extra::L1EtMissParticleCollection>&);
92  void fillFilterObjectMember(const int&, const int&, const edm::Ref<reco::CaloMETCollection>&);
93  void fillFilterObjectMember(const int&, const int&, const edm::Ref<reco::METCollection>&);
94 
95  private:
98 
100  struct OrderInputTag {
102  OrderInputTag(bool ignoreProcess): ignoreProcess_(ignoreProcess) { };
103  inline bool operator()(const edm::InputTag& l, const edm::InputTag& r) const {
104  int c = l.label().compare(r.label());
105  if(0==c) {
106  if(ignoreProcess_) {
107  return l.instance()<r.instance();
108  }
109  c = l.instance().compare(r.instance());
110  if(0==c) {
111  return l.process()<r.process();
112  }
113  }
114  return c < 0;
115  };
116  };
117  typedef std::set<edm::InputTag,OrderInputTag> InputTagSet;
118 
122 
126 
129  std::vector<std::string> tags_;
131  std::map<edm::ProductID,unsigned int> offset_;
132 
137 
139  std::vector<bool> maskFilters_;
140 
157 };
158 #endif
edm::GetterOfProducts< l1extra::L1JetParticleCollection > getL1JetParticleCollection_
edm::GetterOfProducts< reco::IsolatedPixelTrackCandidateCollection > getIsolatedPixelTrackCandidateCollection_
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::GetterOfProducts< reco::RecoEcalCandidateCollection > getRecoEcalCandidateCollection_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::GetterOfProducts< l1extra::L1MuonParticleCollection > getL1MuonParticleCollection_
trigger::TriggerObjectCollection toc_
trigger object collection
edm::GetterOfProducts< reco::PFTauCollection > getPFTauCollection_
std::vector< bool > maskFilters_
packing decision
edm::GetterOfProducts< reco::METCollection > getMETCollection_
std::set< edm::InputTag, OrderInputTag > InputTagSet
edm::GetterOfProducts< reco::CaloJetCollection > getCaloJetCollection_
void fillFilterObjectMember(const int &, const int &, const edm::Ref< C > &)
edm::GetterOfProducts< l1extra::L1EtMissParticleCollection > getL1EtMissParticleCollection_
std::vector< std::string > tags_
edm::GetterOfProducts< reco::PFJetCollection > getPFJetCollection_
edm::GetterOfProducts< reco::RecoChargedCandidateCollection > getRecoChargedCandidateCollection_
TriggerSummaryProducerAOD(const edm::ParameterSet &)
Definition: MET.h:32
edm::GetterOfProducts< l1extra::L1HFRingsCollection > getL1HFRingsCollection_
bool operator()(const edm::InputTag &l, const edm::InputTag &r) const
std::map< edm::ProductID, unsigned int > offset_
global map for indices into toc_: offset per input L3 collection
void fillFilterObjectMembers(const edm::Event &, const edm::InputTag &tag, const trigger::Vids &, const std::vector< edm::Ref< C > > &)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:81
std::vector< size_type > Keys
edm::GetterOfProducts< reco::CaloMETCollection > getCaloMETCollection_
std::string const & label() const
Definition: InputTag.h:42
std::string const & process() const
Definition: InputTag.h:46
edm::GetterOfProducts< reco::ElectronCollection > getElectronCollection_
InputTagSet collectionTagsEvent_
list of L3 collection tags
edm::GetterOfProducts< reco::CompositeCandidateCollection > getCompositeCandidateCollection_
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefs > getTriggerFilterObjectWithRefs_
std::string pn_
process name
void fillTriggerObjectCollections(const edm::Event &, edm::GetterOfProducts< C > &)
InputTagSet filterTagsEvent_
list of L3 filter tags
long double T
std::string const & instance() const
Definition: InputTag.h:43
std::vector< int > Vids
edm::GetterOfProducts< l1extra::L1EmParticleCollection > getL1EmParticleCollection_