14 : genparticleCollection_(iPSet.getParameter<
edm::
InputTag>(
"genparticleCollection")),
17 mass_min(iPSet.getParameter<double>(
"massmin")),
18 mass_max(iPSet.getParameter<double>(
"massmax")) {
27 i.setCurrentFolder(
"Generator/BPhysics");
28 Nobj =
dqm.book1dHisto(
"NSpectrum" +
name,
"NSpectrum" +
name, 1, 0., 1,
"bin",
"Number of " +
name);
35 for (reco::GenParticleCollection::const_iterator iter =
genParticles->begin(); iter !=
genParticles->end(); ++iter) {
T getParameter(std::string const &) const
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
Abs< T >::type abs(const T &t)
BPhysicsSpectrum(const edm::ParameterSet &)
edm::InputTag genparticleCollection_
~BPhysicsSpectrum() override
std::vector< int > Particles
void analyze(edm::Event const &, edm::EventSetup const &) override