14 genparticleCollection_(iPSet.getParameter<
edm::
InputTag>(
"genparticleCollection")),
20 std::vector<std::string> daughterNames = iPSet.
getParameter< std::vector<std::string> >(
"daughters");
21 for (
unsigned int i=0;
i<daughterNames.size();
i++){
41 for (reco::GenParticleCollection::const_iterator iter = genParticles->begin(); iter != genParticles->end(); ++iter) {
51 int mpdgid=p->
pdgId();
void Configure(DQMStore::IBooker &i)
T getParameter(std::string const &) const
int pdgId() const final
PDG identifier.
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
BPhysicsValidation(const edm::ParameterSet &)
~BPhysicsValidation() override
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
MonitorElement * book1dHisto(std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
void setCurrentFolder(std::string const &fullpath)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::InputTag genparticleCollection_
Abs< T >::type abs(const T &t)
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
size_t numberOfDaughters() const override
number of daughters
void FillDaughters(const reco::GenParticle *p)
void Fill(const reco::GenParticle *p, double weight)
std::vector< ParticleMonitor > daughters
void analyze(edm::Event const &, edm::EventSetup const &) override