10 #include <unordered_map> 104 std::vector<reco::SuperCluster>
const& simPFClusters = *simPFClustersHandle;
111 for (
auto const& sc : simPFClusters) {
112 histos.at(0).simPFSuperClusterSize_->Fill((
float)sc.clustersSize());
113 histos.at(0).simPFSuperClusterEnergy_->Fill(sc.rawEnergy());
120 for (
auto const& pfc : simPFCandidates) {
126 histo.pfcandidateEnergy_->Fill(pfc.energy());
127 histo.pfcandidatePt_->Fill(pfc.pt());
128 histo.pfcandidateEta_->Fill(pfc.eta());
129 histo.pfcandidatePhi_->Fill(pfc.phi());
130 histo.pfcandidateElementsInBlocks_->Fill(pfc.elementsInBlocks().size());
133 histo.pfcandidate_vect_sum_pt_->Fill(
std::sqrt(ptx_tot * ptx_tot + pty_tot * pty_tot));
142 histos[
offset].pfcandidateType_ = ibook.
book1D(
"PFCandidateType",
"PFCandidateType", 10, 0, 10);
143 histos[
offset].pfcandidate_vect_sum_pt_ = ibook.
book1D(
"PFCandidatePtVectSum",
"PFCandidatePtVectSum", 200, 0., 200.);
147 histo.pfcandidateEnergy_ = ibook.
book1D(
"PFCandidateEnergy",
"PFCandidateEnergy", 250, 0., 250.);
148 histo.pfcandidatePt_ = ibook.
book1D(
"PFCandidatePt",
"PFCandidatePt", 250, 0., 250.);
149 histo.pfcandidateEta_ = ibook.
book1D(
"PFCandidateEta",
"PFCandidateEta", 100, -5., 5.);
150 histo.pfcandidatePhi_ = ibook.
book1D(
"PFCandidatePhi",
"PFCandidatePhi", 100, -4., 4.);
151 histo.pfcandidateElementsInBlocks_ = ibook.
book1D(
"PFCandidateElements",
"PFCandidateElements", 20, 0., 20.);
155 histos[0].simPFSuperClusterSize_ = ibook.
book1D(
"SimPFSuperClusterSize",
"SimPFSuperClusterSize", 40, 0., 40.);
156 histos[0].simPFSuperClusterEnergy_ =
157 ibook.
book1D(
"SimPFSuperClusterEnergy",
"SimPFSuperClusterEnergy", 250, 0., 500.);
168 descriptions.
add(
"caloparticlevalidationDefault",
desc);
std::unordered_map< int, Histogram_CaloParticleSingle > Histograms_CaloParticleValidation
dqm::reco::MonitorElement * simPFSuperClusterSize_
dqm::reco::MonitorElement * pfcandidateType_
CaloParticleValidation(const edm::ParameterSet &)
virtual void setCurrentFolder(std::string const &fullpath)
std::vector< l1t::PFCandidate > PFCandidateCollection
edm::EDGetTokenT< std::vector< reco::SuperCluster > > simPFClusters_
dqm::reco::MonitorElement * pfcandidatePt_
dqm::reco::MonitorElement * pfcandidateElementsInBlocks_
~CaloParticleValidation() override
static std::string to_string(const XMLCh *ch)
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, Histograms_CaloParticleValidation const &) const override
dqm::reco::MonitorElement * pfcandidateEnergy_
edm::EDGetTokenT< reco::PFCandidateCollection > simPFCandidates_
dqm::reco::MonitorElement * pfcandidate_vect_sum_pt_
dqm::reco::MonitorElement * pfcandidateEta_
#define DEFINE_FWK_MODULE(type)
dqm::reco::MonitorElement * simPFSuperClusterEnergy_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms_CaloParticleValidation &) const override
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
void add(std::string const &label, ParameterSetDescription const &psetDescription)
dqm::reco::MonitorElement * pfcandidatePhi_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)