CMS 3D CMS Logo

DQMPFCandidateAnalyzer.h
Go to the documentation of this file.
1 #ifndef DQMPFCandidateAnalyzer_H
2 #define DQMPFCandidateAnalyzer_H
3 
19 #include <memory>
20 #include <fstream>
26 
34 
38 
40 
44 
49 
51 
52 #include <map>
53 #include <string>
54 
55 //namespace jetAnalysis {
56 //class TrackPropagatorToCalo;
57 //class StripSignalOverNoiseCalculator;
58 //}
59 
61 public:
64 
66  ~DQMPFCandidateAnalyzer() override;
67 
69  // void beginJob(void);
70  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
72  void analyze(const edm::Event&, const edm::EventSetup&) override;
73 
75  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
76 
77 private:
78  // ----------member data ---------------------------
79  static bool jetSortingRule(reco::Jet x, reco::Jet y) { return x.pt() > y.pt(); }
80 
81  //try to put one collection as start
82 
85 
91 
95  edm::InputTag METFilterMiniAODLabel2_; //needed for RECO and reRECO differntiation
97 
98  bool hbhenoifilterdecision; //we only care about HBHENoiseFilter here
99  int miniaodfilterindex; //-1 if not found/RECO, else put to a number >=0
100  //needed to decide which filterresults are supposed to be called
101  int miniaodfilterdec; //if RECO set to 0, if reRECO set to 1, else to -1
102 
105 
107 
108  bool isMiniAO_;
109 
110  // DCS filter
112 
114  std::vector<edm::ParameterSet> diagnosticsParameters_;
115 
116  double ptMinCand_; //pt min of candidates
117  // Smallest raw HCAL energy linked to the track
118  double hcalMin_;
119 
123 
126 
131 
136 
141 
147 
153 
154  //PFcandidate maps
155  std::vector<MonitorElement*> occupancyPFCand_, ptPFCand_, multiplicityPFCand_;
159  std::vector<double> etaMinPFCand_, etaMaxPFCand_;
160  std::vector<int> typePFCand_, countsPFCand_;
161 
162  //PFcandidate maps
165  std::vector<double> etaMinPFCandRECO_, etaMaxPFCandRECO_;
167 
168  int numPV_;
169  int verbose_;
170 
171  int LSBegin_;
172  int LSEnd_;
173 
176 
177  std::map<std::string, MonitorElement*> map_of_MEs;
178 
180 };
181 #endif
MonitorElement * m_HOverTrackPVsTrackP_EndCap
std::vector< int > typePFCand_
MonitorElement * m_HOverTrackPVsTrackPt_Barrel
std::vector< double > etaMinPFCandRECO_
void analyze(const edm::Event &, const edm::EventSetup &) override
Get the analysis.
std::vector< std::string > ptPFCand_name_puppiNolepWeight_
MonitorElement * m_HOverTrackP_Barrel_hPt_20_50
MonitorElement * m_HOverTrackPVsEta_hPt_20_50
std::vector< std::string > multiplicityPFCand_nameRECO_
std::vector< MonitorElement * > ptPFCand_puppiNolepWeight_
MonitorElement * m_HOverTrackP_trackPtVsEta
Base class for all types of Jets.
Definition: Jet.h:20
MonitorElement * m_HOverTrackPVsEta_hPt_10_20
std::vector< MonitorElement * > multiplicityPFCand_
edm::ParameterSet cleaningParameters_
DQMPFCandidateAnalyzer(const edm::ParameterSet &)
Constructor.
MonitorElement * m_HOverTrackP_Barrel_hPt_1_10
edm::EDGetTokenT< std::vector< pat::PackedCandidate > > pflowPackedToken_
std::vector< std::string > occupancyPFCand_name_
MonitorElement * m_HOverTrackPVsTrackP_Barrel
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Inizialize parameters for histo binning.
std::vector< int > typePFCandRECO_
MonitorElement * m_HOverTrackP_EndCap_hPt_50
std::vector< int > countsPFCandRECO_
edm::EDGetTokenT< bool > hbheNoiseFilterResultToken_
edm::EDGetTokenT< std::vector< reco::PFCandidate > > pflowToken_
MonitorElement * m_HOverTrackPVsEta_hPt_1_10
MonitorElement * mProfileIsoPFChHad_HadPtEndcap
MonitorElement * mProfileIsoPFChHad_HcalOccupancyEndcap
edm::InputTag hbheNoiseFilterResultTag_
MonitorElement * mProfileIsoPFChHad_EMPtCentral
std::vector< MonitorElement * > occupancyPFCand_
~DQMPFCandidateAnalyzer() override
Destructor.
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
std::vector< MonitorElement * > ptPFCand_
std::vector< double > etaMaxPFCandRECO_
std::vector< std::string > multiplicityPFCand_name_
std::vector< std::string > occupancyPFCand_nameRECO_
std::map< std::string, MonitorElement * > map_of_MEs
std::vector< double > etaMinPFCand_
MonitorElement * m_HOverTrackPVsTrackPt_EndCap
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken2_
std::vector< MonitorElement * > occupancyPFCand_puppiNolepWeight_
MonitorElement * mProfileIsoPFChHad_EcalOccupancyEndcap
HLTConfigProvider FilterhltConfig_
std::vector< std::string > occupancyPFCand_name_puppiNolepWeight_
MonitorElement * m_HOverTrackP_Barrel_hPt_10_20
std::vector< int > countsPFCand_
MonitorElement * m_HOverTrackP_EndCap_hPt_1_10
MonitorElement * mProfileIsoPFChHad_TrackPt
std::vector< std::string > ptPFCand_nameRECO_
MonitorElement * mProfileIsoPFChHad_HcalOccupancyCentral
MonitorElement * mProfileIsoPFChHad_TrackOccupancy
MonitorElement * m_HOverTrackP_Barrel_hPt_50
std::vector< MonitorElement * > occupancyPFCandRECO_
std::vector< MonitorElement * > ptPFCandRECO_
std::vector< MonitorElement * > multiplicityPFCandRECO_
MonitorElement * mProfileIsoPFChHad_EcalOccupancyCentral
JetMETDQMDCSFilter * DCSFilter_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Initialize run-based parameters.
MonitorElement * mProfileIsoPFChHad_EMPtEndcap
MonitorElement * m_HOverTrackPVsEta_hPt_50
std::vector< double > etaMaxPFCand_
MonitorElement * m_HOverTrackP_EndCap_hPt_10_20
MonitorElement * m_HOverTrackP_EndCap_hPt_20_50
static bool jetSortingRule(reco::Jet x, reco::Jet y)
std::vector< edm::ParameterSet > diagnosticsParameters_
Definition: Run.h:45
std::vector< std::string > ptPFCand_name_
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken_
MonitorElement * mProfileIsoPFChHad_HadPtCentral