14 : genparticleCollection_(iPSet.getParameter<edm::
InputTag>(
"genparticleCollection")),
17 particle(
name, iPSet) {
19 std::vector<std::string> daughterNames = iPSet.
getParameter<std::vector<std::string> >(
"daughters");
20 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();
54 int pdgid = dau->
pdgId();
void Configure(DQMStore::IBooker &i)
T getUntrackedParameter(std::string const &, T const &) const
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
BPhysicsValidation(const edm::ParameterSet &)
~BPhysicsValidation() override
size_t numberOfDaughters() const override
number of daughters
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
int pdgId() const final
PDG identifier.
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)
MonitorElement * book1dHisto(const std::string &name, const std::string &title, int n, double xmin, double xmax, const std::string &xaxis, const std::string &yaxis)
T getParameter(std::string const &) const
void FillDaughters(const reco::GenParticle *p)
void Fill(const reco::GenParticle *p, double weight)
std::vector< ParticleMonitor > daughters
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
void analyze(edm::Event const &, edm::EventSetup const &) override