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
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
BPhysicsValidation(const edm::ParameterSet &)
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 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) ...
virtual int pdgId() const final
PDG identifier.
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()
std::vector< ParticleMonitor > daughters
virtual void analyze(edm::Event const &, edm::EventSetup const &) override