|
|
|
void | clear () final |
|
void | simhits (const edm::Event &e, std::unordered_map< uint32_t, double > &simhits_ee, std::unordered_map< uint32_t, double > &simhits_fh, std::unordered_map< uint32_t, double > &simhits_bh) |
|
◆ HGCalTriggerNtupleHGCDigis()
HGCalTriggerNtupleHGCDigis::HGCalTriggerNtupleHGCDigis |
( |
const edm::ParameterSet & |
conf | ) |
|
◆ ~HGCalTriggerNtupleHGCDigis()
HGCalTriggerNtupleHGCDigis::~HGCalTriggerNtupleHGCDigis |
( |
| ) |
|
|
inlineoverride |
◆ clear()
void HGCalTriggerNtupleHGCDigis::clear |
( |
void |
| ) |
|
|
finalprivatevirtual |
Implements HGCalTriggerNtupleBase.
Definition at line 376 of file HGCalTriggerNtupleHGCDigis.cc.
References bhdigi_data_, bhdigi_eta_, bhdigi_id_, bhdigi_ieta_, bhdigi_iphi_, bhdigi_isadc_, bhdigi_layer_, bhdigi_n_, bhdigi_phi_, bhdigi_side_, bhdigi_simenergy_, bhdigi_subdet_, bhdigi_z_, digiBXselect_, hgcdigi_cell_, hgcdigi_cellu_, hgcdigi_cellv_, hgcdigi_data_, hgcdigi_eta_, hgcdigi_id_, hgcdigi_isadc_, hgcdigi_layer_, hgcdigi_n_, hgcdigi_phi_, hgcdigi_side_, hgcdigi_simenergy_, hgcdigi_subdet_, hgcdigi_wafer_, hgcdigi_wafertype_, hgcdigi_waferu_, hgcdigi_waferv_, hgcdigi_z_, mps_fire::i, and is_Simhit_comp_.
Referenced by fill().
◆ fill()
Implements HGCalTriggerNtupleBase.
Definition at line 163 of file HGCalTriggerNtupleHGCDigis.cc.
179 std::unordered_map<uint32_t, double> simhits_ee;
180 std::unordered_map<uint32_t, double> simhits_fh;
181 std::unordered_map<uint32_t, double> simhits_bh;
183 simhits(
e, simhits_ee, simhits_fh, simhits_bh);
228 for (
const auto& digi : ee_digis) {
256 double hit_energy = 0;
257 auto itr = simhits_ee.find(
id);
258 if (
itr != simhits_ee.end())
259 hit_energy =
itr->second;
264 for (
const auto& digi : fh_digis) {
292 double hit_energy = 0;
293 auto itr = simhits_fh.find(
id);
294 if (
itr != simhits_fh.end())
295 hit_energy =
itr->second;
300 for (
const auto& digi : bh_digis) {
325 double hit_energy = 0;
326 auto itr = simhits_bh.find(
id);
327 if (
itr != simhits_bh.end())
328 hit_energy =
itr->second;
References bh_token_, bhdigi_data_, bhdigi_eta_, bhdigi_id_, bhdigi_ieta_, bhdigi_iphi_, bhdigi_isadc_, bhdigi_layer_, bhdigi_n_, bhdigi_phi_, bhdigi_side_, bhdigi_simenergy_, bhdigi_subdet_, bhdigi_z_, HGCalTriggerGeometryBase::bhGeometry(), clear(), data, digiBXselect_, MillePedeFileConverter_cfg::e, ee_token_, HGCalTriggerGeometryBase::eeGeometry(), PV3DBase< T, PVType, FrameType >::eta(), HGCalTriggerTools::eventSetup(), fh_token_, edm::EventSetup::get(), get, HcalGeometry::getPosition(), HGCalGeometry::getPosition(), hgcdigi_cell_, hgcdigi_cellu_, hgcdigi_cellv_, hgcdigi_data_, hgcdigi_eta_, hgcdigi_id_, hgcdigi_isadc_, hgcdigi_layer_, hgcdigi_n_, hgcdigi_phi_, hgcdigi_side_, hgcdigi_simenergy_, hgcdigi_subdet_, hgcdigi_wafer_, hgcdigi_wafertype_, hgcdigi_waferu_, hgcdigi_waferv_, hgcdigi_z_, HGCalTriggerGeometryBase::hscGeometry(), HGCalTriggerGeometryBase::hsiGeometry(), mps_fire::i, triggerObjects_cff::id, is_Simhit_comp_, HGCalTriggerGeometryBase::isV9Geometry(), HGCalTriggerTools::layerWithOffset(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, PV3DBase< T, PVType, FrameType >::phi(), simhits(), edm::SortedCollection< T, SORT >::size(), triggerGeometry_, triggerTools_, PV3DBase< T, PVType, FrameType >::z(), and HGCalTriggerTools::zside().
◆ initialize()
Implements HGCalTriggerNtupleBase.
Definition at line 97 of file HGCalTriggerNtupleHGCDigis.cc.
124 auto withBX([&bname](
char const* vname,
unsigned int bx) ->
char const* {
126 return bname.c_str();
References bh_token_, bhdigi_data_, bhdigi_eta_, bhdigi_id_, bhdigi_ieta_, bhdigi_iphi_, bhdigi_isadc_, bhdigi_layer_, bhdigi_n_, bhdigi_phi_, bhdigi_side_, bhdigi_simenergy_, bhdigi_subdet_, bhdigi_z_, l1GtPatternGenerator_cfi::bx, digiBXselect_, ee_token_, fh_token_, edm::ParameterSet::getParameter(), hgcdigi_cell_, hgcdigi_cellu_, hgcdigi_cellv_, hgcdigi_data_, hgcdigi_eta_, hgcdigi_id_, hgcdigi_isadc_, hgcdigi_layer_, hgcdigi_n_, hgcdigi_phi_, hgcdigi_side_, hgcdigi_simenergy_, hgcdigi_subdet_, hgcdigi_wafer_, hgcdigi_wafertype_, hgcdigi_waferu_, hgcdigi_waferv_, hgcdigi_z_, mps_fire::i, is_Simhit_comp_, SimHits_inputbh_, SimHits_inputee_, SimHits_inputfh_, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ simhits()
void HGCalTriggerNtupleHGCDigis::simhits |
( |
const edm::Event & |
e, |
|
|
std::unordered_map< uint32_t, double > & |
simhits_ee, |
|
|
std::unordered_map< uint32_t, double > & |
simhits_fh, |
|
|
std::unordered_map< uint32_t, double > & |
simhits_bh |
|
) |
| |
|
private |
Definition at line 334 of file HGCalTriggerNtupleHGCDigis.cc.
349 for (
const auto& simhit : ee_simhits) {
353 auto itr_insert = simhits_ee.emplace(
id, 0.);
354 itr_insert.first->second += simhit.energy();
357 for (
const auto& simhit : fh_simhits) {
361 auto itr_insert = simhits_fh.emplace(
id, 0.);
362 itr_insert.first->second += simhit.energy();
365 for (
const auto& simhit : bh_simhits) {
371 auto itr_insert = simhits_bh.emplace(
id, 0.);
372 itr_insert.first->second += simhit.energy();
References HGCalTriggerGeometryBase::bhTopology(), MillePedeFileConverter_cfg::e, HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), HGCalTriggerGeometryBase::hscTopology(), HGCalTriggerGeometryBase::isV9Geometry(), SimHits_inputbh_, SimHits_inputee_, SimHits_inputfh_, HGCalTriggerTools::simToReco(), triggerGeometry_, and triggerTools_.
Referenced by fill().
◆ bh_token_
◆ bhdigi_data_
std::vector<std::vector<uint32_t> > HGCalTriggerNtupleHGCDigis::bhdigi_data_ |
|
private |
◆ bhdigi_eta_
std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_eta_ |
|
private |
◆ bhdigi_id_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_id_ |
|
private |
◆ bhdigi_ieta_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_ieta_ |
|
private |
◆ bhdigi_iphi_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_iphi_ |
|
private |
◆ bhdigi_isadc_
std::vector<std::vector<int> > HGCalTriggerNtupleHGCDigis::bhdigi_isadc_ |
|
private |
◆ bhdigi_layer_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_layer_ |
|
private |
◆ bhdigi_n_
int HGCalTriggerNtupleHGCDigis::bhdigi_n_ |
|
private |
◆ bhdigi_phi_
std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_phi_ |
|
private |
◆ bhdigi_side_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_side_ |
|
private |
◆ bhdigi_simenergy_
std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_simenergy_ |
|
private |
◆ bhdigi_subdet_
std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_subdet_ |
|
private |
◆ bhdigi_z_
std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_z_ |
|
private |
◆ digiBXselect_
std::vector<unsigned int> HGCalTriggerNtupleHGCDigis::digiBXselect_ |
|
private |
◆ ee_token_
◆ fh_token_
◆ hgcdigi_cell_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cell_ |
|
private |
◆ hgcdigi_cellu_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cellu_ |
|
private |
◆ hgcdigi_cellv_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cellv_ |
|
private |
◆ hgcdigi_data_
std::vector<std::vector<uint32_t> > HGCalTriggerNtupleHGCDigis::hgcdigi_data_ |
|
private |
◆ hgcdigi_eta_
std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_eta_ |
|
private |
◆ hgcdigi_id_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_id_ |
|
private |
◆ hgcdigi_isadc_
std::vector<std::vector<int> > HGCalTriggerNtupleHGCDigis::hgcdigi_isadc_ |
|
private |
◆ hgcdigi_layer_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_layer_ |
|
private |
◆ hgcdigi_n_
int HGCalTriggerNtupleHGCDigis::hgcdigi_n_ |
|
private |
◆ hgcdigi_phi_
std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_phi_ |
|
private |
◆ hgcdigi_side_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_side_ |
|
private |
◆ hgcdigi_simenergy_
std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_simenergy_ |
|
private |
◆ hgcdigi_subdet_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_subdet_ |
|
private |
◆ hgcdigi_wafer_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_wafer_ |
|
private |
◆ hgcdigi_wafertype_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_wafertype_ |
|
private |
◆ hgcdigi_waferu_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_waferu_ |
|
private |
◆ hgcdigi_waferv_
std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_waferv_ |
|
private |
◆ hgcdigi_z_
std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_z_ |
|
private |
◆ is_Simhit_comp_
bool HGCalTriggerNtupleHGCDigis::is_Simhit_comp_ |
|
private |
◆ kDigiSize_
constexpr unsigned HGCalTriggerNtupleHGCDigis::kDigiSize_ = 5 |
|
staticconstexprprivate |
◆ SimHits_inputbh_
◆ SimHits_inputee_
◆ SimHits_inputfh_
◆ triggerGeometry_
◆ triggerTools_
std::vector< int > hgcdigi_subdet_
const HGCalTopology & eeTopology() const
HGCalTriggerTools triggerTools_
std::vector< int > hgcdigi_side_
const HGCalGeometry * hsiGeometry() const
std::vector< int > bhdigi_id_
void simhits(const edm::Event &e, std::unordered_map< uint32_t, double > &simhits_ee, std::unordered_map< uint32_t, double > &simhits_fh, std::unordered_map< uint32_t, double > &simhits_bh)
std::vector< int > hgcdigi_cellu_
edm::EDGetToken ee_token_
std::vector< unsigned int > digiBXselect_
std::vector< int > bhdigi_layer_
std::vector< float > bhdigi_z_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
std::vector< int > hgcdigi_id_
std::vector< int > bhdigi_iphi_
edm::EDGetToken SimHits_inputbh_
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)
std::vector< float > bhdigi_phi_
std::vector< float > hgcdigi_phi_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< int > hgcdigi_waferv_
std::vector< float > hgcdigi_z_
std::vector< float > hgcdigi_simenergy_
std::vector< int > bhdigi_subdet_
std::vector< int > hgcdigi_wafer_
std::vector< int > hgcdigi_wafertype_
GlobalPoint getPosition(const DetId &id) const
std::vector< float > hgcdigi_eta_
std::vector< std::vector< uint32_t > > bhdigi_data_
edm::EDGetToken SimHits_inputfh_
std::vector< int > hgcdigi_cell_
std::vector< int > hgcdigi_waferu_
const HcalTopology & bhTopology() const
std::vector< std::vector< int > > hgcdigi_isadc_
bool isV9Geometry() const
GlobalPoint getPosition(const DetId &id) const
std::vector< std::pair< float, float > >::iterator itr
std::vector< float > bhdigi_eta_
std::vector< std::vector< int > > bhdigi_isadc_
edm::EDGetToken bh_token_
const HGCalGeometry * eeGeometry() const
std::vector< int > bhdigi_side_
def unique(seq, keepstr=True)
std::vector< int > hgcdigi_cellv_
std::vector< PCaloHit > PCaloHitContainer
T getParameter(std::string const &) const
std::vector< int > bhdigi_ieta_
char data[epos_bytes_allocation]
const HGCalGeometry * hscGeometry() const
std::vector< std::vector< uint32_t > > hgcdigi_data_
std::vector< int > hgcdigi_layer_
Geom::Phi< T > phi() const
const HcalGeometry * bhGeometry() const
static constexpr unsigned kDigiSize_
edm::EDGetToken SimHits_inputee_
const HGCalTopology & fhTopology() const
std::vector< float > bhdigi_simenergy_
edm::EDGetToken fh_token_
const HGCalTopology & hscTopology() const