Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-16 06:15:44

0001 #ifndef HLTcore_HLTEventAnalyzerRAW_h
0002 #define HLTcore_HLTEventAnalyzerRAW_h
0003 
0004 /** \class HLTEventAnalyzerRAW
0005  *
0006  *
0007  *  This class is an EDAnalyzer analyzing the combined HLT information for RAW
0008  *
0009  *
0010  *  \author Martin Grunewald
0011  *
0012  */
0013 
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "FWCore/Framework/interface/stream/EDAnalyzer.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0018 #include "DataFormats/Common/interface/TriggerResults.h"
0019 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0020 namespace edm {
0021   class ConfigurationDescriptions;
0022 }
0023 
0024 //
0025 // class declaration
0026 //
0027 class HLTEventAnalyzerRAW : public edm::stream::EDAnalyzer<> {
0028 public:
0029   explicit HLTEventAnalyzerRAW(const edm::ParameterSet &);
0030   ~HLTEventAnalyzerRAW() override;
0031   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0032 
0033   void endRun(edm::Run const &, edm::EventSetup const &) override;
0034   void beginRun(edm::Run const &, edm::EventSetup const &) override;
0035   void analyze(const edm::Event &, const edm::EventSetup &) override;
0036   virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName);
0037 
0038 private:
0039   /// module config parameters
0040   const std::string processName_;
0041   const std::string triggerName_;
0042   const edm::InputTag triggerResultsTag_;
0043   const edm::EDGetTokenT<edm::TriggerResults> triggerResultsToken_;
0044   const edm::InputTag triggerEventWithRefsTag_;
0045   const edm::EDGetTokenT<trigger::TriggerEventWithRefs> triggerEventWithRefsToken_;
0046 
0047   /// additional class data memebers
0048   edm::Handle<edm::TriggerResults> triggerResultsHandle_;
0049   edm::Handle<trigger::TriggerEventWithRefs> triggerEventWithRefsHandle_;
0050   HLTConfigProvider hltConfig_;
0051 
0052   /// payload extracted from TriggerEventWithRefs
0053 
0054   trigger::Vids photonIds_;
0055   trigger::VRphoton photonRefs_;
0056   trigger::Vids electronIds_;
0057   trigger::VRelectron electronRefs_;
0058   trigger::Vids muonIds_;
0059   trigger::VRmuon muonRefs_;
0060   trigger::Vids jetIds_;
0061   trigger::VRjet jetRefs_;
0062   trigger::Vids compositeIds_;
0063   trigger::VRcomposite compositeRefs_;
0064   trigger::Vids basemetIds_;
0065   trigger::VRbasemet basemetRefs_;
0066   trigger::Vids calometIds_;
0067   trigger::VRcalomet calometRefs_;
0068   trigger::Vids pixtrackIds_;
0069   trigger::VRpixtrack pixtrackRefs_;
0070 
0071   trigger::Vids l1emIds_;
0072   trigger::VRl1em l1emRefs_;
0073   trigger::Vids l1muonIds_;
0074   trigger::VRl1muon l1muonRefs_;
0075   trigger::Vids l1jetIds_;
0076   trigger::VRl1jet l1jetRefs_;
0077   trigger::Vids l1etmissIds_;
0078   trigger::VRl1etmiss l1etmissRefs_;
0079   trigger::Vids l1hfringsIds_;
0080   trigger::VRl1hfrings l1hfringsRefs_;
0081 
0082   trigger::Vids l1tmuonIds_;
0083   trigger::VRl1tmuon l1tmuonRefs_;
0084   trigger::Vids l1tmuonShowerIds_;
0085   trigger::VRl1tmuonShower l1tmuonShowerRefs_;
0086   trigger::Vids l1tegammaIds_;
0087   trigger::VRl1tegamma l1tegammaRefs_;
0088   trigger::Vids l1tjetIds_;
0089   trigger::VRl1tjet l1tjetRefs_;
0090   trigger::Vids l1ttauIds_;
0091   trigger::VRl1ttau l1ttauRefs_;
0092   trigger::Vids l1tetsumIds_;
0093   trigger::VRl1tetsum l1tetsumRefs_;
0094 
0095   /* Phase-2 */
0096   trigger::Vids l1ttkmuIds_;
0097   trigger::VRl1ttkmuon l1ttkmuRefs_;
0098   trigger::Vids l1ttkeleIds_;
0099   trigger::VRl1ttkele l1ttkeleRefs_;
0100   trigger::Vids l1ttkemIds_;
0101   trigger::VRl1ttkem l1ttkemRefs_;
0102   trigger::Vids l1tpfjetIds_;
0103   trigger::VRl1tpfjet l1tpfjetRefs_;
0104   trigger::Vids l1tpftauIds_;
0105   trigger::VRl1tpftau l1tpftauRefs_;
0106   trigger::Vids l1thpspftauIds_;
0107   trigger::VRl1thpspftau l1thpspftauRefs_;
0108   trigger::Vids l1tpftrackIds_;
0109   trigger::VRl1tpftrack l1tpftrackRefs_;
0110 
0111   trigger::Vids pfjetIds_;
0112   trigger::VRpfjet pfjetRefs_;
0113   trigger::Vids pftauIds_;
0114   trigger::VRpftau pftauRefs_;
0115   trigger::Vids pfmetIds_;
0116   trigger::VRpfmet pfmetRefs_;
0117 };
0118 #endif