|
|
Go to the documentation of this file.
40 inputPFlowLabel_tok_ = consumes<reco::PFCandidateCollection>(iConfig.
getParameter<
std::string>(
"InputPFlowLabel"));
43 if (!outputFile_.empty())
44 edm::LogInfo(
"OutputInfo") <<
" ParticleFLow Task histograms will be saved to '" << outputFile_.c_str() <<
"'";
46 edm::LogInfo(
"OutputInfo") <<
" ParticleFlow Task histograms will NOT be saved";
58 me[
"CandidateEt"] =
dbe_->
book1D(
"CandidateEt",
"CandidateEt", 1000, 0, 1000);
59 me[
"CandidateEta"] =
dbe_->
book1D(
"CandidateEta",
"CandidateEta", 200, -5, 5);
61 me[
"CandidateCharge"] =
dbe_->
book1D(
"CandidateCharge",
"CandidateCharge", 5, -2, 2);
62 me[
"PFCandidateType"] =
dbe_->
book1D(
"PFCandidateType",
"PFCandidateType", 10, 0, 10);
66 me[
"NumElements"] =
dbe_->
book1D(
"NumElements",
"NumElements", 25, 0, 25);
67 me[
"NumTrackElements"] =
dbe_->
book1D(
"NumTrackElements",
"NumTrackElements", 5, 0, 5);
68 me[
"NumPS1Elements"] =
dbe_->
book1D(
"NumPS1Elements",
"NumPS1Elements", 5, 0, 5);
69 me[
"NumPS2Elements"] =
dbe_->
book1D(
"NumPS2Elements",
"NumPS2Elements", 5, 0, 5);
70 me[
"NumECALElements"] =
dbe_->
book1D(
"NumECALElements",
"NumECALElements", 5, 0, 5);
71 me[
"NumHCALElements"] =
dbe_->
book1D(
"NumHCALElements",
"NumHCALElements", 5, 0, 5);
72 me[
"NumMuonElements"] =
dbe_->
book1D(
"NumMuonElements",
"NumMuonElements", 5, 0, 5);
76 me[
"TrackCharge"] =
dbe_->
book1D(
"TrackCharge",
"TrackCharge", 5, -2, 2);
77 me[
"TrackNumPoints"] =
dbe_->
book1D(
"TrackNumPoints",
"TrackNumPoints", 100, 0, 100);
78 me[
"TrackNumMeasurements"] =
dbe_->
book1D(
"TrackNumMeasurements",
"TrackNumMeasurements", 100, 0, 100);
79 me[
"TrackImpactParameter"] =
dbe_->
book1D(
"TrackImpactParameter",
"TrackImpactParameter", 1000, 0, 1);
96 iEvent.getByToken(inputPFlowLabel_tok_, pflow_hnd);
97 pflow_candidates = pflow_hnd.
product();
100 if (!pflow_candidates) {
101 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by ParticleFlow Task";
102 edm::LogInfo(
"OutputInfo") <<
" ParticleFlow Task cannot continue...!";
111 PFCandidateCollection::const_iterator
pf;
112 for (
pf = pflow_candidates->begin();
pf != pflow_candidates->end();
pf++) {
116 me[
"CandidateEt"]->Fill(particle->
et());
117 me[
"CandidateEta"]->Fill(particle->
eta());
118 me[
"CandidatePhi"]->Fill(particle->
phi());
119 me[
"CandidateCharge"]->Fill(particle->
charge());
120 me[
"CandidatePdgId"]->Fill(particle->
pdgId());
196 if (!outputFile_.empty() &&
dbe_)
T const * product() const
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
void setCurrentFolder(std::string const &fullpath) override
dqm::legacy::DQMStore * dbe_
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
double eta() const final
momentum pseudorapidity
virtual ParticleType particleId() const
int pdgId() const final
PDG identifier.
int charge() const final
electric charge
double et() const final
transverse energy
PFTester(const edm::ParameterSet &)
double phi() const final
momentum azimuthal angle
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
T getParameter(std::string const &) const
Particle reconstructed by the particle flow algorithm.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void analyze(const edm::Event &, const edm::EventSetup &) override