30 "HGCalTriggerNtupleGen" );
44 tree.Branch(
"gen_n", &
gen_n_,
"gen_n/I");
45 tree.Branch(
"gen_id", &
gen_id_);
48 tree.Branch(
"gen_pt", &
gen_pt_);
63 gen_n_ = gen_particles.size();
70 for(
const auto& particle : gen_particles)
72 gen_id_.emplace_back(particle.pdgId());
75 gen_pt_.emplace_back(particle.pt());
76 gen_eta_.emplace_back(particle.eta());
77 gen_phi_.emplace_back(particle.phi());
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< int > gen_id_
edm::EDGetToken gen_token_
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
std::vector< float > gen_energy_
std::vector< float > gen_eta_
std::vector< int > gen_status_
std::vector< float > gen_phi_
void fill(const edm::Event &, const edm::EventSetup &) final
std::vector< float > gen_pt_
#define DEFINE_EDM_PLUGIN(factory, type, name)
HGCalTriggerNtupleGen(const edm::ParameterSet &)