CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HGCalTriggerNtupleHGCDigis Class Reference
Inheritance diagram for HGCalTriggerNtupleHGCDigis:
HGCalTriggerNtupleBase

Public Member Functions

void fill (const edm::Event &e, const edm::EventSetup &es) final
 
 HGCalTriggerNtupleHGCDigis (const edm::ParameterSet &conf)
 
void initialize (TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
 
 ~HGCalTriggerNtupleHGCDigis () override
 
- Public Member Functions inherited from HGCalTriggerNtupleBase
 HGCalTriggerNtupleBase (const edm::ParameterSet &conf)
 
virtual ~HGCalTriggerNtupleBase ()
 

Private Member Functions

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)
 

Private Attributes

edm::EDGetToken bh_token_
 
std::vector< std::vector< uint32_t > > bhdigi_data_
 
std::vector< float > bhdigi_eta_
 
std::vector< int > bhdigi_id_
 
std::vector< int > bhdigi_ieta_
 
std::vector< int > bhdigi_iphi_
 
std::vector< std::vector< int > > bhdigi_isadc_
 
std::vector< int > bhdigi_layer_
 
int bhdigi_n_
 
std::vector< float > bhdigi_phi_
 
std::vector< int > bhdigi_side_
 
std::vector< float > bhdigi_simenergy_
 
std::vector< int > bhdigi_subdet_
 
std::vector< float > bhdigi_z_
 
edm::EDGetToken ee_token_
 
edm::EDGetToken fh_token_
 
std::vector< int > hgcdigi_cell_
 
std::vector< int > hgcdigi_cellu_
 
std::vector< int > hgcdigi_cellv_
 
std::vector< std::vector< uint32_t > > hgcdigi_data_
 
std::vector< float > hgcdigi_eta_
 
std::vector< int > hgcdigi_id_
 
std::vector< std::vector< int > > hgcdigi_isadc_
 
std::vector< int > hgcdigi_layer_
 
int hgcdigi_n_
 
std::vector< float > hgcdigi_phi_
 
std::vector< int > hgcdigi_side_
 
std::vector< float > hgcdigi_simenergy_
 
std::vector< int > hgcdigi_subdet_
 
std::vector< int > hgcdigi_wafer_
 
std::vector< int > hgcdigi_wafertype_
 
std::vector< int > hgcdigi_waferu_
 
std::vector< int > hgcdigi_waferv_
 
std::vector< float > hgcdigi_z_
 
bool is_Simhit_comp_
 
edm::EDGetToken SimHits_inputbh_
 
edm::EDGetToken SimHits_inputee_
 
edm::EDGetToken SimHits_inputfh_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 
HGCalTriggerTools triggerTools_
 

Additional Inherited Members

Detailed Description

Definition at line 16 of file HGCalTriggerNtupleHGCDigis.cc.

Constructor & Destructor Documentation

◆ HGCalTriggerNtupleHGCDigis()

HGCalTriggerNtupleHGCDigis::HGCalTriggerNtupleHGCDigis ( const edm::ParameterSet conf)

Definition at line 76 of file HGCalTriggerNtupleHGCDigis.cc.

76  : HGCalTriggerNtupleBase(conf) {
77  is_Simhit_comp_ = conf.getParameter<bool>("isSimhitComp");
78 }

References is_Simhit_comp_.

◆ ~HGCalTriggerNtupleHGCDigis()

HGCalTriggerNtupleHGCDigis::~HGCalTriggerNtupleHGCDigis ( )
inlineoverride

Definition at line 19 of file HGCalTriggerNtupleHGCDigis.cc.

19 {};

Member Function Documentation

◆ clear()

void HGCalTriggerNtupleHGCDigis::clear ( void  )
finalprivatevirtual

Implements HGCalTriggerNtupleBase.

Definition at line 348 of file HGCalTriggerNtupleHGCDigis.cc.

348  {
349  hgcdigi_n_ = 0;
350  hgcdigi_id_.clear();
351  hgcdigi_subdet_.clear();
352  hgcdigi_side_.clear();
353  hgcdigi_layer_.clear();
354  hgcdigi_wafer_.clear();
355  hgcdigi_waferu_.clear();
356  hgcdigi_waferv_.clear();
357  hgcdigi_wafertype_.clear();
358  hgcdigi_cell_.clear();
359  hgcdigi_cellu_.clear();
360  hgcdigi_cellv_.clear();
361  hgcdigi_eta_.clear();
362  hgcdigi_phi_.clear();
363  hgcdigi_z_.clear();
364  hgcdigi_data_.clear();
365  hgcdigi_isadc_.clear();
366  if (is_Simhit_comp_)
367  hgcdigi_simenergy_.clear();
368 
369  bhdigi_n_ = 0;
370  bhdigi_id_.clear();
371  bhdigi_subdet_.clear();
372  bhdigi_side_.clear();
373  bhdigi_layer_.clear();
374  bhdigi_ieta_.clear();
375  bhdigi_iphi_.clear();
376  bhdigi_eta_.clear();
377  bhdigi_phi_.clear();
378  bhdigi_z_.clear();
379  bhdigi_data_.clear();
380  bhdigi_isadc_.clear();
381  if (is_Simhit_comp_)
382  bhdigi_simenergy_.clear();
383 }

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_, 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_, and is_Simhit_comp_.

Referenced by fill().

◆ fill()

void HGCalTriggerNtupleHGCDigis::fill ( const edm::Event e,
const edm::EventSetup es 
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 129 of file HGCalTriggerNtupleHGCDigis.cc.

129  {
131 
133  e.getByToken(ee_token_, ee_digis_h);
134  const HGCalDigiCollection& ee_digis = *ee_digis_h;
136  e.getByToken(fh_token_, fh_digis_h);
137  const HGCalDigiCollection& fh_digis = *fh_digis_h;
139  e.getByToken(bh_token_, bh_digis_h);
140  const HGCalDigiCollection& bh_digis = *bh_digis_h;
141 
143 
144  // sim hit association
145  std::unordered_map<uint32_t, double> simhits_ee;
146  std::unordered_map<uint32_t, double> simhits_fh;
147  std::unordered_map<uint32_t, double> simhits_bh;
148  if (is_Simhit_comp_)
149  simhits(e, simhits_ee, simhits_fh, simhits_bh);
150 
151  clear();
152  hgcdigi_n_ = ee_digis.size() + fh_digis.size();
153  hgcdigi_id_.reserve(hgcdigi_n_);
154  hgcdigi_subdet_.reserve(hgcdigi_n_);
155  hgcdigi_side_.reserve(hgcdigi_n_);
156  hgcdigi_layer_.reserve(hgcdigi_n_);
158  hgcdigi_eta_.reserve(hgcdigi_n_);
159  hgcdigi_phi_.reserve(hgcdigi_n_);
160  hgcdigi_z_.reserve(hgcdigi_n_);
161  hgcdigi_data_.reserve(hgcdigi_n_);
162  hgcdigi_isadc_.reserve(hgcdigi_n_);
164  hgcdigi_waferu_.reserve(hgcdigi_n_);
165  hgcdigi_waferv_.reserve(hgcdigi_n_);
166  hgcdigi_cellu_.reserve(hgcdigi_n_);
167  hgcdigi_cellv_.reserve(hgcdigi_n_);
168  } else {
169  hgcdigi_wafer_.reserve(hgcdigi_n_);
170  hgcdigi_cell_.reserve(hgcdigi_n_);
171  }
172  if (is_Simhit_comp_)
174 
175  bhdigi_n_ = bh_digis.size();
176  bhdigi_id_.reserve(bhdigi_n_);
177  bhdigi_subdet_.reserve(bhdigi_n_);
178  bhdigi_side_.reserve(bhdigi_n_);
179  bhdigi_layer_.reserve(bhdigi_n_);
180  bhdigi_ieta_.reserve(bhdigi_n_);
181  bhdigi_iphi_.reserve(bhdigi_n_);
182  bhdigi_eta_.reserve(bhdigi_n_);
183  bhdigi_phi_.reserve(bhdigi_n_);
184  bhdigi_z_.reserve(bhdigi_n_);
185  if (is_Simhit_comp_)
186  bhdigi_simenergy_.reserve(bhdigi_n_);
187 
188  for (const auto& digi : ee_digis) {
189  const DetId id(digi.id());
190  hgcdigi_id_.emplace_back(id.rawId());
191  hgcdigi_subdet_.emplace_back(id.subdetId());
192  hgcdigi_side_.emplace_back(triggerTools_.zside(id));
193  hgcdigi_layer_.emplace_back(triggerTools_.layerWithOffset(id));
194  GlobalPoint cellpos = triggerGeometry_->eeGeometry()->getPosition(id.rawId());
195  hgcdigi_eta_.emplace_back(cellpos.eta());
196  hgcdigi_phi_.emplace_back(cellpos.phi());
197  hgcdigi_z_.emplace_back(cellpos.z());
198  vector<uint32_t> hgcdigi_data(digi.size());
199  vector<int> hgcdigi_isadc(digi.size());
200  for (int i = 0; i < digi.size(); i++) {
201  hgcdigi_data[i] = digi[i].data();
202  hgcdigi_isadc[i] = !digi[i].mode();
203  }
204  hgcdigi_data_.emplace_back(hgcdigi_data);
205  hgcdigi_isadc_.emplace_back(hgcdigi_isadc);
207  const HGCSiliconDetId idv9(digi.id());
208  hgcdigi_waferu_.emplace_back(idv9.waferU());
209  hgcdigi_waferv_.emplace_back(idv9.waferV());
210  hgcdigi_wafertype_.emplace_back(idv9.type());
211  hgcdigi_cellu_.emplace_back(idv9.cellU());
212  hgcdigi_cellv_.emplace_back(idv9.cellV());
213  } else {
214  const HGCalDetId idv8(digi.id());
215  hgcdigi_wafer_.emplace_back(idv8.wafer());
216  hgcdigi_wafertype_.emplace_back(idv8.waferType());
217  hgcdigi_cell_.emplace_back(idv8.cell());
218  }
219  if (is_Simhit_comp_) {
220  double hit_energy = 0;
221  auto itr = simhits_ee.find(id);
222  if (itr != simhits_ee.end())
223  hit_energy = itr->second;
224  hgcdigi_simenergy_.emplace_back(hit_energy);
225  }
226  }
227 
228  for (const auto& digi : fh_digis) {
229  const DetId id(digi.id());
230  hgcdigi_id_.emplace_back(id.rawId());
231  hgcdigi_subdet_.emplace_back(id.subdetId());
232  hgcdigi_side_.emplace_back(triggerTools_.zside(id));
233  hgcdigi_layer_.emplace_back(triggerTools_.layerWithOffset(id));
234  GlobalPoint cellpos = triggerGeometry_->hsiGeometry()->getPosition(id.rawId());
235  hgcdigi_eta_.emplace_back(cellpos.eta());
236  hgcdigi_phi_.emplace_back(cellpos.phi());
237  hgcdigi_z_.emplace_back(cellpos.z());
238  vector<uint32_t> hgcdigi_data(digi.size());
239  vector<int> hgcdigi_isadc(digi.size());
240  for (int i = 0; i < digi.size(); i++) {
241  hgcdigi_data[i] = digi[i].data();
242  hgcdigi_isadc[i] = !digi[i].mode();
243  }
244  hgcdigi_data_.emplace_back(hgcdigi_data);
245  hgcdigi_isadc_.emplace_back(hgcdigi_isadc);
247  const HGCSiliconDetId idv9(digi.id());
248  hgcdigi_waferu_.emplace_back(idv9.waferU());
249  hgcdigi_waferv_.emplace_back(idv9.waferV());
250  hgcdigi_wafertype_.emplace_back(idv9.type());
251  hgcdigi_cellu_.emplace_back(idv9.cellU());
252  hgcdigi_cellv_.emplace_back(idv9.cellV());
253  } else {
254  const HGCalDetId idv8(digi.id());
255  hgcdigi_wafer_.emplace_back(idv8.wafer());
256  hgcdigi_wafertype_.emplace_back(idv8.waferType());
257  hgcdigi_cell_.emplace_back(idv8.cell());
258  }
259  if (is_Simhit_comp_) {
260  double hit_energy = 0;
261  auto itr = simhits_fh.find(id);
262  if (itr != simhits_fh.end())
263  hit_energy = itr->second;
264  hgcdigi_simenergy_.emplace_back(hit_energy);
265  }
266  }
267 
268  for (const auto& digi : bh_digis) {
269  const DetId id(digi.id());
270  bhdigi_id_.emplace_back(id.rawId());
271  bhdigi_subdet_.emplace_back(id.subdetId());
272  bhdigi_side_.emplace_back(triggerTools_.zside(id));
273  bhdigi_layer_.emplace_back(triggerTools_.layerWithOffset(id));
275  : triggerGeometry_->bhGeometry()->getPosition(id.rawId()));
276  bhdigi_eta_.emplace_back(cellpos.eta());
277  bhdigi_phi_.emplace_back(cellpos.phi());
278  bhdigi_z_.emplace_back(cellpos.z());
279  vector<uint32_t> bhdigi_data(digi.size());
280  vector<int> bhdigi_isadc(digi.size());
281  for (int i = 0; i < digi.size(); i++) {
282  bhdigi_data[i] = digi[i].data();
283  bhdigi_isadc[i] = !digi[i].mode();
284  }
285  bhdigi_data_.emplace_back(bhdigi_data);
286  bhdigi_isadc_.emplace_back(bhdigi_isadc);
288  const HGCScintillatorDetId idv9(digi.id());
289  bhdigi_ieta_.emplace_back(idv9.ietaAbs());
290  bhdigi_iphi_.emplace_back(idv9.iphi());
291  } else {
292  const HcalDetId idv8(digi.id());
293  bhdigi_ieta_.emplace_back(idv8.ieta());
294  bhdigi_iphi_.emplace_back(idv8.iphi());
295  }
296  if (is_Simhit_comp_) {
297  double hit_energy = 0;
298  auto itr = simhits_bh.find(id);
299  if (itr != simhits_bh.end())
300  hit_energy = itr->second;
301  bhdigi_simenergy_.emplace_back(hit_energy);
302  }
303  }
304 }

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(), 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(), PV3DBase< T, PVType, FrameType >::phi(), simhits(), edm::SortedCollection< T, SORT >::size(), triggerGeometry_, triggerTools_, PV3DBase< T, PVType, FrameType >::z(), and HGCalTriggerTools::zside().

◆ initialize()

void HGCalTriggerNtupleHGCDigis::initialize ( TTree &  tree,
const edm::ParameterSet conf,
edm::ConsumesCollector &&  collector 
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 80 of file HGCalTriggerNtupleHGCDigis.cc.

82  {
83  ee_token_ = collector.consumes<HGCalDigiCollection>(conf.getParameter<edm::InputTag>("HGCDigisEE"));
84  fh_token_ = collector.consumes<HGCalDigiCollection>(conf.getParameter<edm::InputTag>("HGCDigisFH"));
85  bh_token_ = collector.consumes<HGCalDigiCollection>(conf.getParameter<edm::InputTag>("HGCDigisBH"));
86  if (is_Simhit_comp_) {
90  }
91  tree.Branch("hgcdigi_n", &hgcdigi_n_, "hgcdigi_n/I");
92  tree.Branch("hgcdigi_id", &hgcdigi_id_);
93  tree.Branch("hgcdigi_subdet", &hgcdigi_subdet_);
94  tree.Branch("hgcdigi_zside", &hgcdigi_side_);
95  tree.Branch("hgcdigi_layer", &hgcdigi_layer_);
96  tree.Branch("hgcdigi_wafertype", &hgcdigi_wafertype_);
97  tree.Branch("hgcdigi_eta", &hgcdigi_eta_);
98  tree.Branch("hgcdigi_phi", &hgcdigi_phi_);
99  tree.Branch("hgcdigi_z", &hgcdigi_z_);
100  tree.Branch("hgcdigi_data", &hgcdigi_data_);
101  tree.Branch("hgcdigi_isadc", &hgcdigi_isadc_);
102  // V9 detid scheme
103  tree.Branch("hgcdigi_waferu", &hgcdigi_waferu_);
104  tree.Branch("hgcdigi_waferv", &hgcdigi_waferv_);
105  tree.Branch("hgcdigi_cellu", &hgcdigi_cellu_);
106  tree.Branch("hgcdigi_cellv", &hgcdigi_cellv_);
107  // V8 detid scheme
108  tree.Branch("hgcdigi_wafer", &hgcdigi_wafer_);
109  tree.Branch("hgcdigi_cell", &hgcdigi_cell_);
110  if (is_Simhit_comp_)
111  tree.Branch("hgcdigi_simenergy", &hgcdigi_simenergy_);
112 
113  tree.Branch("bhdigi_n", &bhdigi_n_, "bhdigi_n/I");
114  tree.Branch("bhdigi_id", &bhdigi_id_);
115  tree.Branch("bhdigi_subdet", &bhdigi_subdet_);
116  tree.Branch("bhdigi_zside", &bhdigi_side_);
117  tree.Branch("bhdigi_layer", &bhdigi_layer_);
118  tree.Branch("bhdigi_ieta", &bhdigi_ieta_);
119  tree.Branch("bhdigi_iphi", &bhdigi_iphi_);
120  tree.Branch("bhdigi_eta", &bhdigi_eta_);
121  tree.Branch("bhdigi_phi", &bhdigi_phi_);
122  tree.Branch("bhdigi_z", &bhdigi_z_);
123  tree.Branch("bhdigi_data", &bhdigi_data_);
124  tree.Branch("bhdigi_isadc", &bhdigi_isadc_);
125  if (is_Simhit_comp_)
126  tree.Branch("bhdigi_simenergy", &bhdigi_simenergy_);
127 }

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_, 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_, is_Simhit_comp_, SimHits_inputbh_, SimHits_inputee_, and SimHits_inputfh_.

◆ 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 306 of file HGCalTriggerNtupleHGCDigis.cc.

309  {
311  e.getByToken(SimHits_inputee_, ee_simhits_h);
312  const edm::PCaloHitContainer& ee_simhits = *ee_simhits_h;
314  e.getByToken(SimHits_inputfh_, fh_simhits_h);
315  const edm::PCaloHitContainer& fh_simhits = *fh_simhits_h;
317  e.getByToken(SimHits_inputbh_, bh_simhits_h);
318  const edm::PCaloHitContainer& bh_simhits = *bh_simhits_h;
319 
320  //EE
321  for (const auto& simhit : ee_simhits) {
323  if (id.rawId() == 0)
324  continue;
325  auto itr_insert = simhits_ee.emplace(id, 0.);
326  itr_insert.first->second += simhit.energy();
327  }
328  // FH
329  for (const auto& simhit : fh_simhits) {
331  if (id.rawId() == 0)
332  continue;
333  auto itr_insert = simhits_fh.emplace(id, 0.);
334  itr_insert.first->second += simhit.energy();
335  }
336  // BH
337  for (const auto& simhit : bh_simhits) {
338  DetId id =
341  if (id.rawId() == 0)
342  continue;
343  auto itr_insert = simhits_bh.emplace(id, 0.);
344  itr_insert.first->second += simhit.energy();
345  }
346 }

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().

Member Data Documentation

◆ bh_token_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::bh_token_
private

Definition at line 30 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by fill(), and initialize().

◆ bhdigi_data_

std::vector<std::vector<uint32_t> > HGCalTriggerNtupleHGCDigis::bhdigi_data_
private

Definition at line 67 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_eta_

std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_eta_
private

Definition at line 64 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_id_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_id_
private

Definition at line 58 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_ieta_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_ieta_
private

Definition at line 62 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_iphi_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_iphi_
private

Definition at line 63 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_isadc_

std::vector<std::vector<int> > HGCalTriggerNtupleHGCDigis::bhdigi_isadc_
private

Definition at line 68 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_layer_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_layer_
private

Definition at line 61 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_n_

int HGCalTriggerNtupleHGCDigis::bhdigi_n_
private

Definition at line 57 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_phi_

std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_phi_
private

Definition at line 65 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_side_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_side_
private

Definition at line 60 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_simenergy_

std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_simenergy_
private

Definition at line 69 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_subdet_

std::vector<int> HGCalTriggerNtupleHGCDigis::bhdigi_subdet_
private

Definition at line 59 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ bhdigi_z_

std::vector<float> HGCalTriggerNtupleHGCDigis::bhdigi_z_
private

Definition at line 66 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ ee_token_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::ee_token_
private

Definition at line 30 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by fill(), and initialize().

◆ fh_token_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::fh_token_
private

Definition at line 30 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by fill(), and initialize().

◆ hgcdigi_cell_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cell_
private

Definition at line 50 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_cellu_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cellu_
private

Definition at line 54 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_cellv_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_cellv_
private

Definition at line 55 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_data_

std::vector<std::vector<uint32_t> > HGCalTriggerNtupleHGCDigis::hgcdigi_data_
private

Definition at line 45 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_eta_

std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_eta_
private

Definition at line 42 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_id_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_id_
private

Definition at line 37 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_isadc_

std::vector<std::vector<int> > HGCalTriggerNtupleHGCDigis::hgcdigi_isadc_
private

Definition at line 46 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_layer_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_layer_
private

Definition at line 40 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_n_

int HGCalTriggerNtupleHGCDigis::hgcdigi_n_
private

Definition at line 36 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_phi_

std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_phi_
private

Definition at line 43 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_side_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_side_
private

Definition at line 39 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_simenergy_

std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_simenergy_
private

Definition at line 47 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_subdet_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_subdet_
private

Definition at line 38 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_wafer_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_wafer_
private

Definition at line 49 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_wafertype_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_wafertype_
private

Definition at line 41 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_waferu_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_waferu_
private

Definition at line 52 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_waferv_

std::vector<int> HGCalTriggerNtupleHGCDigis::hgcdigi_waferv_
private

Definition at line 53 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ hgcdigi_z_

std::vector<float> HGCalTriggerNtupleHGCDigis::hgcdigi_z_
private

Definition at line 44 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), and initialize().

◆ is_Simhit_comp_

bool HGCalTriggerNtupleHGCDigis::is_Simhit_comp_
private

Definition at line 31 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by clear(), fill(), HGCalTriggerNtupleHGCDigis(), and initialize().

◆ SimHits_inputbh_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::SimHits_inputbh_
private

Definition at line 32 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by initialize(), and simhits().

◆ SimHits_inputee_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::SimHits_inputee_
private

Definition at line 32 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by initialize(), and simhits().

◆ SimHits_inputfh_

edm::EDGetToken HGCalTriggerNtupleHGCDigis::SimHits_inputfh_
private

Definition at line 32 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by initialize(), and simhits().

◆ triggerGeometry_

edm::ESHandle<HGCalTriggerGeometryBase> HGCalTriggerNtupleHGCDigis::triggerGeometry_
private

Definition at line 71 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by fill(), and simhits().

◆ triggerTools_

HGCalTriggerTools HGCalTriggerNtupleHGCDigis::triggerTools_
private

Definition at line 34 of file HGCalTriggerNtupleHGCDigis.cc.

Referenced by fill(), and simhits().

HGCalTriggerNtupleHGCDigis::hgcdigi_subdet_
std::vector< int > hgcdigi_subdet_
Definition: HGCalTriggerNtupleHGCDigis.cc:38
HGCalTriggerGeometryBase::eeTopology
const HGCalTopology & eeTopology() const
Definition: HGCalTriggerGeometryBase.h:65
HGCalTriggerNtupleHGCDigis::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalTriggerNtupleHGCDigis.cc:34
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalTriggerNtupleHGCDigis::hgcdigi_side_
std::vector< int > hgcdigi_side_
Definition: HGCalTriggerNtupleHGCDigis.cc:39
mps_fire.i
i
Definition: mps_fire.py:355
HGCalTriggerGeometryBase::hsiGeometry
const HGCalGeometry * hsiGeometry() const
Definition: HGCalTriggerGeometryBase.h:57
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HGCalTriggerNtupleHGCDigis::clear
void clear() final
Definition: HGCalTriggerNtupleHGCDigis.cc:348
tree
Definition: tree.py:1
HGCalTriggerNtupleHGCDigis::bhdigi_id_
std::vector< int > bhdigi_id_
Definition: HGCalTriggerNtupleHGCDigis.cc:58
HGCalTriggerNtupleHGCDigis::simhits
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)
Definition: HGCalTriggerNtupleHGCDigis.cc:306
HGCalTriggerNtupleHGCDigis::hgcdigi_cellu_
std::vector< int > hgcdigi_cellu_
Definition: HGCalTriggerNtupleHGCDigis.cc:54
edm::SortedCollection
Definition: SortedCollection.h:49
edm::SortedCollection::size
size_type size() const
Definition: SortedCollection.h:215
HGCalTriggerNtupleHGCDigis::ee_token_
edm::EDGetToken ee_token_
Definition: HGCalTriggerNtupleHGCDigis.cc:30
HGCalTriggerNtupleHGCDigis::bhdigi_layer_
std::vector< int > bhdigi_layer_
Definition: HGCalTriggerNtupleHGCDigis.cc:61
edm::Handle
Definition: AssociativeIterator.h:50
HGCalTriggerNtupleHGCDigis::bhdigi_z_
std::vector< float > bhdigi_z_
Definition: HGCalTriggerNtupleHGCDigis.cc:66
HGCSiliconDetId
Definition: HGCSiliconDetId.h:22
HGCalTriggerNtupleHGCDigis::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalTriggerNtupleHGCDigis.cc:71
HGCalTriggerNtupleHGCDigis::hgcdigi_id_
std::vector< int > hgcdigi_id_
Definition: HGCalTriggerNtupleHGCDigis.cc:37
HGCalTriggerNtupleHGCDigis::bhdigi_iphi_
std::vector< int > bhdigi_iphi_
Definition: HGCalTriggerNtupleHGCDigis.cc:63
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
DetId
Definition: DetId.h:17
HGCalTriggerNtupleHGCDigis::SimHits_inputbh_
edm::EDGetToken SimHits_inputbh_
Definition: HGCalTriggerNtupleHGCDigis.cc:32
HGCalTriggerNtupleHGCDigis::is_Simhit_comp_
bool is_Simhit_comp_
Definition: HGCalTriggerNtupleHGCDigis.cc:31
HGCalTriggerNtupleBase::HGCalTriggerNtupleBase
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)
Definition: HGCalTriggerNtupleBase.h:12
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
HGCalTriggerNtupleHGCDigis::bhdigi_phi_
std::vector< float > bhdigi_phi_
Definition: HGCalTriggerNtupleHGCDigis.cc:65
HGCalTriggerNtupleHGCDigis::hgcdigi_phi_
std::vector< float > hgcdigi_phi_
Definition: HGCalTriggerNtupleHGCDigis.cc:43
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
HGCalTriggerNtupleHGCDigis::hgcdigi_waferv_
std::vector< int > hgcdigi_waferv_
Definition: HGCalTriggerNtupleHGCDigis.cc:53
HGCalTriggerNtupleHGCDigis::hgcdigi_z_
std::vector< float > hgcdigi_z_
Definition: HGCalTriggerNtupleHGCDigis.cc:44
HGCalTriggerTools::layerWithOffset
unsigned layerWithOffset(const DetId &) const
Definition: HGCalTriggerTools.cc:134
HGCalTriggerNtupleHGCDigis::hgcdigi_simenergy_
std::vector< float > hgcdigi_simenergy_
Definition: HGCalTriggerNtupleHGCDigis.cc:47
HGCalTriggerTools::zside
int zside(const DetId &) const
Definition: HGCalTriggerTools.cc:210
Point3DBase< float, GlobalTag >
HGCalTriggerNtupleHGCDigis::bhdigi_subdet_
std::vector< int > bhdigi_subdet_
Definition: HGCalTriggerNtupleHGCDigis.cc:59
HGCalTriggerNtupleHGCDigis::hgcdigi_wafer_
std::vector< int > hgcdigi_wafer_
Definition: HGCalTriggerNtupleHGCDigis.cc:49
HGCalTriggerNtupleHGCDigis::hgcdigi_wafertype_
std::vector< int > hgcdigi_wafertype_
Definition: HGCalTriggerNtupleHGCDigis.cc:41
HcalGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Definition: HcalGeometry.cc:178
HGCalTriggerNtupleHGCDigis::hgcdigi_eta_
std::vector< float > hgcdigi_eta_
Definition: HGCalTriggerNtupleHGCDigis.cc:42
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
HcalDetId
Definition: HcalDetId.h:12
HGCalTriggerNtupleHGCDigis::bhdigi_data_
std::vector< std::vector< uint32_t > > bhdigi_data_
Definition: HGCalTriggerNtupleHGCDigis.cc:67
HGCalTriggerNtupleHGCDigis::SimHits_inputfh_
edm::EDGetToken SimHits_inputfh_
Definition: HGCalTriggerNtupleHGCDigis.cc:32
HGCalTriggerNtupleHGCDigis::hgcdigi_cell_
std::vector< int > hgcdigi_cell_
Definition: HGCalTriggerNtupleHGCDigis.cc:50
HGCalTriggerNtupleHGCDigis::hgcdigi_waferu_
std::vector< int > hgcdigi_waferu_
Definition: HGCalTriggerNtupleHGCDigis.cc:52
HGCalTriggerGeometryBase::bhTopology
const HcalTopology & bhTopology() const
Definition: HGCalTriggerGeometryBase.h:67
HGCalTriggerNtupleHGCDigis::hgcdigi_isadc_
std::vector< std::vector< int > > hgcdigi_isadc_
Definition: HGCalTriggerNtupleHGCDigis.cc:46
HGCalTriggerGeometryBase::isV9Geometry
bool isV9Geometry() const
Definition: HGCalTriggerGeometryBase.h:30
HGCalGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Definition: HGCalGeometry.cc:192
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
HGCalTriggerTools::simToReco
DetId simToReco(const DetId &, const HGCalTopology &) const
Definition: HGCalTriggerTools.cc:346
get
#define get
HGCalTriggerNtupleHGCDigis::bhdigi_eta_
std::vector< float > bhdigi_eta_
Definition: HGCalTriggerNtupleHGCDigis.cc:64
HGCalTriggerNtupleHGCDigis::hgcdigi_n_
int hgcdigi_n_
Definition: HGCalTriggerNtupleHGCDigis.cc:36
HGCalTriggerNtupleHGCDigis::bhdigi_isadc_
std::vector< std::vector< int > > bhdigi_isadc_
Definition: HGCalTriggerNtupleHGCDigis.cc:68
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HGCalTriggerNtupleHGCDigis::bh_token_
edm::EDGetToken bh_token_
Definition: HGCalTriggerNtupleHGCDigis.cc:30
HGCalDetId
Definition: HGCalDetId.h:8
HGCalTriggerGeometryBase::eeGeometry
const HGCalGeometry * eeGeometry() const
Definition: HGCalTriggerGeometryBase.h:41
HGCalTriggerNtupleHGCDigis::bhdigi_side_
std::vector< int > bhdigi_side_
Definition: HGCalTriggerNtupleHGCDigis.cc:60
HGCalTriggerNtupleHGCDigis::hgcdigi_cellv_
std::vector< int > hgcdigi_cellv_
Definition: HGCalTriggerNtupleHGCDigis.cc:55
HGCScintillatorDetId
Definition: HGCScintillatorDetId.h:21
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
HGCalTriggerNtupleHGCDigis::bhdigi_ieta_
std::vector< int > bhdigi_ieta_
Definition: HGCalTriggerNtupleHGCDigis.cc:62
HGCalTriggerNtupleHGCDigis::bhdigi_n_
int bhdigi_n_
Definition: HGCalTriggerNtupleHGCDigis.cc:57
HGCalTriggerGeometryBase::hscGeometry
const HGCalGeometry * hscGeometry() const
Definition: HGCalTriggerGeometryBase.h:58
HGCalTriggerNtupleHGCDigis::hgcdigi_data_
std::vector< std::vector< uint32_t > > hgcdigi_data_
Definition: HGCalTriggerNtupleHGCDigis.cc:45
HGCalTriggerNtupleHGCDigis::hgcdigi_layer_
std::vector< int > hgcdigi_layer_
Definition: HGCalTriggerNtupleHGCDigis.cc:40
edm::InputTag
Definition: InputTag.h:15
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
HGCalTriggerGeometryBase::bhGeometry
const HcalGeometry * bhGeometry() const
Definition: HGCalTriggerGeometryBase.h:51
HGCalTriggerNtupleHGCDigis::SimHits_inputee_
edm::EDGetToken SimHits_inputee_
Definition: HGCalTriggerNtupleHGCDigis.cc:32
HGCalTriggerGeometryBase::fhTopology
const HGCalTopology & fhTopology() const
Definition: HGCalTriggerGeometryBase.h:66
HGCalTriggerNtupleHGCDigis::bhdigi_simenergy_
std::vector< float > bhdigi_simenergy_
Definition: HGCalTriggerNtupleHGCDigis.cc:69
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HGCalTriggerNtupleHGCDigis::fh_token_
edm::EDGetToken fh_token_
Definition: HGCalTriggerNtupleHGCDigis.cc:30
HGCalTriggerGeometryBase::hscTopology
const HGCalTopology & hscTopology() const
Definition: HGCalTriggerGeometryBase.h:69