11 #include "CLHEP/Units/defs.h"
12 #include "CLHEP/Units/PhysicalConstants.h"
17 genparticleCollection_(iPSet.getParameter<edm::
InputTag>(
"genparticleCollection")),
19 name(iPSet.getParameter< std::
string>(
"name")),
23 std::vector<std::string> daughterNames = iPSet.
getParameter< std::vector<std::string> >(
"daughters");
24 for (
unsigned int i=0;
i<daughterNames.size();
i++){
42 for (reco::GenParticleCollection::const_iterator
iter = genParticles->begin();
iter != genParticles->end(); ++
iter) {
51 int mpdgid=p->
pdgId();
54 int pdgid = dau->
pdgId();
void Configure(DQMStore::IBooker &i)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual int pdgId() const
PDG identifier.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
BPhysicsValidation(const edm::ParameterSet &)
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
edm::InputTag genparticleCollection_
Abs< T >::type abs(const T &t)
virtual void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
void FillDaughters(const reco::GenParticle *p)
void Fill(const reco::GenParticle *p, double weight)
virtual ~BPhysicsValidation()
std::vector< ParticleMonitor > daughters
virtual void analyze(edm::Event const &, edm::EventSetup const &) override