47 HGCalTriggerNtupleHGCTriggerSums::HGCalTriggerNtupleHGCTriggerSums(
const edm::
ParameterSet& conf)
61 auto withPrefix([&prefix, &bname](
char const* vname) ->
char const* {
62 bname = prefix +
"_" + vname;
66 tree.Branch(withPrefix(
"n"), &
ts_n_, (prefix +
"_n/I").c_str());
67 tree.Branch(withPrefix(
"id"), &
ts_id_);
68 tree.Branch(withPrefix(
"subdet"), &
ts_subdet_);
69 tree.Branch(withPrefix(
"zside"), &
ts_side_);
70 tree.Branch(withPrefix(
"layer"), &
ts_layer_);
71 tree.Branch(withPrefix(
"wafer"), &
ts_wafer_);
73 tree.Branch(withPrefix(
"data"), &
ts_data_);
74 tree.Branch(withPrefix(
"pt"), &
ts_pt_);
75 tree.Branch(withPrefix(
"mipPt"), &
ts_mipPt_);
76 tree.Branch(withPrefix(
"energy"), &
ts_energy_);
77 tree.Branch(withPrefix(
"eta"), &
ts_eta_);
78 tree.Branch(withPrefix(
"phi"), &
ts_phi_);
79 tree.Branch(withPrefix(
"x"), &
ts_x_);
80 tree.Branch(withPrefix(
"y"), &
ts_y_);
81 tree.Branch(withPrefix(
"z"), &
ts_z_);
93 for (
auto ts_itr = trigger_sums.
begin(0); ts_itr != trigger_sums.
end(0); ts_itr++) {
94 if (ts_itr->pt() > 0) {
98 ts_id_.emplace_back(ts_itr->detId());
113 ts_data_.emplace_back(ts_itr->hwPt());
116 ts_pt_.emplace_back(ts_itr->pt());
118 ts_eta_.emplace_back(ts_itr->eta());
119 ts_phi_.emplace_back(ts_itr->phi());
120 ts_x_.emplace_back(ts_itr->position().x());
121 ts_y_.emplace_back(ts_itr->position().y());
122 ts_z_.emplace_back(ts_itr->position().z());
const_iterator end(int bx) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > ts_side_
std::vector< int > ts_wafertype_
void fill(const edm::Event &e, const HGCalTriggerNtupleEventSetup &es) final
std::vector< float > ts_phi_
std::vector< int > ts_panel_sector_
uint16_t *__restrict__ id
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ESHandle< HGCalTriggerGeometryBase > geometry
std::vector< float > ts_z_
std::vector< float > ts_eta_
~HGCalTriggerNtupleHGCTriggerSums() override
std::vector< int > ts_layer_
std::vector< float > ts_energy_
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
std::vector< float > ts_x_
std::vector< int > ts_panel_number_
std::vector< float > ts_mipPt_
std::vector< uint32_t > ts_data_
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ moduleId
T const * product() const
T getParameter(std::string const &) const
HGCalTriggerNtupleHGCTriggerSums(const edm::ParameterSet &conf)
std::vector< uint32_t > ts_id_
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< float > ts_y_
std::vector< int > ts_wafer_
const_iterator begin(int bx) const
std::vector< int > ts_subdet_
edm::EDGetToken trigger_sums_token_
std::vector< float > ts_pt_
HGCalTriggerTools triggerTools_