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
virtual int pdgId() const
PDG identifier.
virtual float pt() const
transverse momentum
BPhysicsValidation(const edm::ParameterSet &)
virtual float phi() const
momentum azimuthal angle
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
ParticleMonitor(TString _name, const edm::ParameterSet &_p)
virtual float eta() const
momentum pseudorapidity
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 void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
void setCurrentFolder(const std::string &fullpath)
void FillDaughters(const reco::GenParticle *p)
void Fill(const reco::GenParticle *p, double weight)
virtual ~BPhysicsValidation()
virtual float mass() const
mass
std::vector< ParticleMonitor > daughters
virtual void analyze(edm::Event const &, edm::EventSetup const &) override