42 auto withPrefix([&prefix, &bname](
char const* vname) ->
char const* {
43 bname = prefix +
"_" + vname;
47 tree.Branch(withPrefix(
"n"), &
tower_n_, (prefix +
"_n/I").c_str());
48 tree.Branch(withPrefix(
"pt"), &
tower_pt_);
69 for (
auto tower_itr = towers.
begin(0); tower_itr != towers.
end(0); tower_itr++) {
const_iterator end(int bx) const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void fill(const edm::Event &e, const edm::EventSetup &es) final
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~HGCalTriggerNtupleHGCTowers() override
std::vector< int > tower_iPhi_
std::vector< int > tower_iEta_
std::vector< float > tower_energy_
std::vector< float > tower_etEm_
HGCalTriggerNtupleHGCTowers(const edm::ParameterSet &conf)
std::vector< float > tower_eta_
std::vector< float > tower_etHad_
std::vector< float > tower_phi_
ESHandle< TrackerGeometry > geometry
std::vector< float > tower_pt_
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator begin(int bx) const
edm::EDGetToken towers_token_
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final