2 #include <unordered_map> 93 size_t type = pfc.particleId();
98 histo.energy_->Fill(pfc.energy());
99 histo.pt_->Fill(pfc.pt());
100 histo.eta_->Fill(pfc.eta());
101 histo.phi_->Fill(pfc.phi());
102 histo.charge_->Fill(pfc.charge());
105 histo.vect_sum_pt_->Fill(
std::sqrt(ptx_tot * ptx_tot + pty_tot * pty_tot));
113 histos[0].type_ = ibook.
book1D(
"Type",
"Type", 10, -0.5, 9.5);
114 histos[0].vect_sum_pt_ = ibook.
book1D(
"PtVectSum",
"PtVectSum", 200, 0., 200.);
118 histo.energy_ = ibook.
book1D(
"Energy",
"Energy", 250, 0., 250.);
119 histo.pt_ = ibook.
book1D(
"Pt",
"Pt", 250, 0., 250.);
120 histo.eta_ = ibook.
book1D(
"Eta",
"Eta", 100, -5., 5.);
121 histo.phi_ = ibook.
book1D(
"Phi",
"Phi", 100, -4., 4.);
122 histo.charge_ = ibook.
book1D(
"Charge",
"Charge", 3, -1.5, 1.5);
133 descriptions.
add(
"ticlPFValidationDefault",
desc);
dqm::reco::MonitorElement * type_
dqm::reco::MonitorElement * energy_
virtual void setCurrentFolder(std::string const &fullpath)
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, Histograms_TICLPFValidation const &) const override
std::vector< l1t::PFCandidate > PFCandidateCollection
std::string to_string(const V &value)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms_TICLPFValidation &) const override
dqm::reco::MonitorElement * eta_
#define DEFINE_FWK_MODULE(type)
std::unordered_map< int, Histogram_TICLPFValidation > Histograms_TICLPFValidation
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidates_
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
dqm::reco::MonitorElement * charge_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~TICLPFValidation() override
dqm::reco::MonitorElement * vect_sum_pt_
TICLPFValidation(const edm::ParameterSet &)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
dqm::reco::MonitorElement * phi_
dqm::reco::MonitorElement * pt_