41 auto withPrefix([&prefix, &bname](
char const* vname) ->
char const* {
42 bname = prefix +
"_" + vname;
46 tree.Branch(withPrefix(
"n"), &
tower_n_, (prefix +
"_n/I").c_str());
47 tree.Branch(withPrefix(
"pt"), &
tower_pt_);
64 for (
auto tower_itr = towers.
begin(0); tower_itr != towers.
end(0); tower_itr++) {
const_iterator end(int bx) const
T getUntrackedParameter(std::string const &, T const &) const
void fill(const edm::Event &e, const HGCalTriggerNtupleEventSetup &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_
T getParameter(std::string const &) const
std::vector< float > tower_phi_
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