21 virtual void clear()
override final;
39 "HGCalTriggerNtupleHGCClusters" );
53 tree.Branch(
"cl_n", &
cl_n_,
"cl_n/I");
54 tree.Branch(
"cl_pt", &
cl_pt_);
56 tree.Branch(
"cl_eta", &
cl_eta_);
57 tree.Branch(
"cl_phi", &
cl_phi_);
78 for(
auto cl_itr=clusters.
begin(0); cl_itr!=clusters.
end(0); cl_itr++)
82 cl_pt_.emplace_back(cl_itr->pt());
84 cl_eta_.emplace_back(cl_itr->eta());
85 cl_phi_.emplace_back(cl_itr->phi());
87 cl_ncells_.emplace_back(cl_itr->constituents().size());
89 cl_cells_.emplace_back(cl_itr->constituents().size());
90 std::transform(cl_itr->constituents_begin(), cl_itr->constituents_end(),
std::vector< float > cl_phi_
const_iterator end(int bx) const
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void fill(const edm::Event &e, const edm::EventSetup &es) override final
~HGCalTriggerNtupleHGCClusters()
std::vector< float > cl_pt_
std::vector< int > cl_layer_
std::vector< int > cl_ncells_
std::vector< std::vector< unsigned > > cl_cells_
virtual void clear() override final
ESHandle< TrackerGeometry > geometry
HGCalTriggerNtupleHGCClusters(const edm::ParameterSet &conf)
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::EDGetToken clusters_token_
virtual void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) override final
std::vector< float > cl_eta_
const_iterator begin(int bx) const
std::vector< float > cl_energy_