1 #ifndef BPhysicsValidation_H
2 #define BPhysicsValidation_H
59 pt = dqm.book1dHisto(
name+
"PT",
"P_{t} of the "+pname+
"s", 100, 0., 100,
"P_{t} (GeV)",
"Number of Events");
60 eta = dqm.book1dHisto(
name+
"ETA",
"#eta of the "+pname+
"s", 100, -5., 5.,
"#eta",
"Number of Events");
61 phi = dqm.book1dHisto(
name+
"PHI",
"#phi of the "+pname+
"s", 100, 0, 2*
TMath::Pi(),
"#phi",
"Number of Events");
62 mass = dqm.book1dHisto(
name+
"MASS",
"Mass of the "+pname+
"s", 100, mass_min, mass_max,
"Mass (GeV)",
"Number of Events");
void Configure(DQMStore::IBooker &i)
T getParameter(std::string const &) const
ParticleMonitor(std::string name_, const edm::ParameterSet &p_)
BPhysicsValidation(const edm::ParameterSet &)
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
virtual double phi() const final
momentum azimuthal angle
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
const edm::ParameterSet p
edm::InputTag genparticleCollection_
Abs< T >::type abs(const T &t)
virtual double mass() const final
mass
virtual void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
void setCurrentFolder(const std::string &fullpath)
void FillDaughters(const reco::GenParticle *p)
virtual int pdgId() const final
PDG identifier.
void Fill(const reco::GenParticle *p, double weight)
virtual ~BPhysicsValidation()
std::vector< ParticleMonitor > daughters
virtual double eta() const final
momentum pseudorapidity
virtual double pt() const final
transverse momentum
virtual void analyze(edm::Event const &, edm::EventSetup const &) override