CMS 3D CMS Logo

DQMPFCandidateAnalyzer.h
Go to the documentation of this file.
1 #ifndef DQMPFCandidateAnalyzer_H
2 #define DQMPFCandidateAnalyzer_H
3 
4 
20 #include <memory>
21 #include <fstream>
30 
38 
42 
44 
48 
50 
55 
57 
58 #include <map>
59 #include <string>
60 
61 //namespace jetAnalysis {
62 //class TrackPropagatorToCalo;
63  //class StripSignalOverNoiseCalculator;
64 //}
65 
67  public:
68 
71 
73  ~DQMPFCandidateAnalyzer() override;
74 
76 // void beginJob(void);
77  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
79  void analyze(const edm::Event&, const edm::EventSetup&) override;
80 
81 
83  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
84 
86  void endRun(const edm::Run&, const edm::EventSetup&) override;
87 
88 
89  private:
90  // ----------member data ---------------------------
91  static bool jetSortingRule(reco::Jet x, reco::Jet y) {return x.pt() > y.pt();}
92 
93  //try to put one collection as start
94 
97 
103 
107  edm::InputTag METFilterMiniAODLabel2_;//needed for RECO and reRECO differntiation
109 
110  bool hbhenoifilterdecision;//we only care about HBHENoiseFilter here
111  int miniaodfilterindex;//-1 if not found/RECO, else put to a number >=0
112  //needed to decide which filterresults are supposed to be called
113  int miniaodfilterdec;//if RECO set to 0, if reRECO set to 1, else to -1
114 
117 
119 
120  bool isMiniAO_;
121 
122  // DCS filter
124 
126  std::vector<edm::ParameterSet> diagnosticsParameters_;
127 
128  double ptMinCand_;//pt min of candidates
129  // Smallest raw HCAL energy linked to the track
130  double hcalMin_;
131 
135 
138 
143 
148 
153 
159 
165 
166  //PFcandidate maps
167  std::vector<MonitorElement* >occupancyPFCand_,ptPFCand_,multiplicityPFCand_;
171  std::vector<double> etaMinPFCand_, etaMaxPFCand_;
172  std::vector<int> typePFCand_, countsPFCand_;
173 
174  //PFcandidate maps
177  std::vector<double> etaMinPFCandRECO_, etaMaxPFCandRECO_;
179 
180  int numPV_;
181  int verbose_;
182 
183  int LSBegin_;
184  int LSEnd_;
185 
188 
189  std::map< std::string,MonitorElement* >map_of_MEs;
190 
192 
193 };
194 #endif
MonitorElement * m_HOverTrackPVsTrackP_EndCap
std::vector< int > typePFCand_
std::vector< MonitorElement * > occupancyPFCand_puppiNolepWeight_
MonitorElement * m_HOverTrackPVsTrackPt_Barrel
void endRun(const edm::Run &, const edm::EventSetup &) override
Finish up a run.
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_
MonitorElement * m_HOverTrackP_trackPtVsEta
Base class for all types of Jets.
Definition: Jet.h:20
MonitorElement * m_HOverTrackPVsEta_hPt_10_20
edm::ParameterSet cleaningParameters_
DQMPFCandidateAnalyzer(const edm::ParameterSet &)
Constructor.
MonitorElement * m_HOverTrackP_Barrel_hPt_1_10
edm::EDGetTokenT< std::vector< pat::PackedCandidate > > pflowPackedToken_
double pt() const final
transverse momentum
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_
std::vector< MonitorElement * > multiplicityPFCandRECO_
edm::EDGetTokenT< std::vector< reco::PFCandidate > > pflowToken_
MonitorElement * m_HOverTrackPVsEta_hPt_1_10
MonitorElement * mProfileIsoPFChHad_HadPtEndcap
MonitorElement * mProfileIsoPFChHad_HcalOccupancyEndcap
std::vector< MonitorElement * > ptPFCandRECO_
MonitorElement * mProfileIsoPFChHad_EMPtCentral
std::vector< MonitorElement * > occupancyPFCandRECO_
~DQMPFCandidateAnalyzer() override
Destructor.
std::vector< MonitorElement * > occupancyPFCand_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
std::vector< double > etaMaxPFCandRECO_
std::vector< std::string > multiplicityPFCand_name_
std::vector< std::string > occupancyPFCand_nameRECO_
std::vector< double > etaMinPFCand_
std::map< std::string, MonitorElement * > map_of_MEs
MonitorElement * m_HOverTrackPVsTrackPt_EndCap
std::vector< MonitorElement * > ptPFCand_puppiNolepWeight_
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken2_
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
MonitorElement * mProfileIsoPFChHad_EcalOccupancyCentral
JetMETDQMDCSFilter * DCSFilter_
std::vector< MonitorElement * > multiplicityPFCand_
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_
std::vector< MonitorElement * > ptPFCand_
Definition: Run.h:45
std::vector< std::string > ptPFCand_name_
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken_
MonitorElement * mProfileIsoPFChHad_HadPtCentral