CMS 3D CMS Logo

HGCalTriggerNtupleHGCDigis.cc
Go to the documentation of this file.
8 
11 
15 
17 public:
20  void initialize(TTree&, const edm::ParameterSet&, edm::ConsumesCollector&&) final;
21  void fill(const edm::Event& e, const edm::EventSetup& es) final;
22 
23 private:
24  void simhits(const edm::Event& e,
25  std::unordered_map<uint32_t, double>& simhits_ee,
26  std::unordered_map<uint32_t, double>& simhits_fh,
27  std::unordered_map<uint32_t, double>& simhits_bh);
28  void clear() final;
29 
33 
35 
37  std::vector<int> hgcdigi_id_;
38  std::vector<int> hgcdigi_subdet_;
39  std::vector<int> hgcdigi_side_;
40  std::vector<int> hgcdigi_layer_;
41  std::vector<int> hgcdigi_wafertype_;
42  std::vector<float> hgcdigi_eta_;
43  std::vector<float> hgcdigi_phi_;
44  std::vector<float> hgcdigi_z_;
45  std::vector<std::vector<uint32_t>> hgcdigi_data_;
46  std::vector<std::vector<int>> hgcdigi_isadc_;
47  std::vector<float> hgcdigi_simenergy_;
48  // V8 detid scheme
49  std::vector<int> hgcdigi_wafer_;
50  std::vector<int> hgcdigi_cell_;
51  // V9 detid scheme
52  std::vector<int> hgcdigi_waferu_;
53  std::vector<int> hgcdigi_waferv_;
54  std::vector<int> hgcdigi_cellu_;
55  std::vector<int> hgcdigi_cellv_;
56 
57  int bhdigi_n_;
58  std::vector<int> bhdigi_id_;
59  std::vector<int> bhdigi_subdet_;
60  std::vector<int> bhdigi_side_;
61  std::vector<int> bhdigi_layer_;
62  std::vector<int> bhdigi_ieta_;
63  std::vector<int> bhdigi_iphi_;
64  std::vector<float> bhdigi_eta_;
65  std::vector<float> bhdigi_phi_;
66  std::vector<float> bhdigi_z_;
67  std::vector<std::vector<uint32_t>> bhdigi_data_;
68  std::vector<std::vector<int>> bhdigi_isadc_;
69  std::vector<float> bhdigi_simenergy_;
70 
72 };
73 
75 
77  is_Simhit_comp_ = conf.getParameter<bool>("isSimhitComp");
78 }
79 
81  const edm::ParameterSet& conf,
82  edm::ConsumesCollector&& collector) {
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_) {
87  SimHits_inputee_ = collector.consumes<edm::PCaloHitContainer>(conf.getParameter<edm::InputTag>("eeSimHits"));
88  SimHits_inputfh_ = collector.consumes<edm::PCaloHitContainer>(conf.getParameter<edm::InputTag>("fhSimHits"));
89  SimHits_inputbh_ = collector.consumes<edm::PCaloHitContainer>(conf.getParameter<edm::InputTag>("bhSimHits"));
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 }
128 
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 }
305 
307  std::unordered_map<uint32_t, double>& simhits_ee,
308  std::unordered_map<uint32_t, double>& simhits_fh,
309  std::unordered_map<uint32_t, double>& simhits_bh) {
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 }
347 
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 }
HGCalTriggerTools.h
HGCalTriggerNtupleHGCDigis::hgcdigi_subdet_
std::vector< int > hgcdigi_subdet_
Definition: HGCalTriggerNtupleHGCDigis.cc:38
HGCalTriggerGeometryBase::eeTopology
const HGCalTopology & eeTopology() const
Definition: HGCalTriggerGeometryBase.h:65
HGCalTriggerGeometryBase
Definition: HGCalTriggerGeometryBase.h:19
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
ESHandle.h
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm
HLT enums.
Definition: AlignableModifier.h:19
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
ESHandle
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
watchdog.const
const
Definition: watchdog.py:83
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
ForwardSubdetector.h
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
HGCalTriggerNtupleBase
Definition: HGCalTriggerNtupleBase.h:10
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
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
HGCalTriggerGeometryBase.h
HGCalTriggerNtupleHGCDigis::bhdigi_phi_
std::vector< float > bhdigi_phi_
Definition: HGCalTriggerNtupleHGCDigis.cc:65
HGCalTriggerNtupleHGCDigis::hgcdigi_phi_
std::vector< float > hgcdigi_phi_
Definition: HGCalTriggerNtupleHGCDigis.cc:43
Event
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
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
HGCalTriggerNtupleHGCDigis::hgcdigi_wafer_
std::vector< int > hgcdigi_wafer_
Definition: HGCalTriggerNtupleHGCDigis.cc:49
CaloGeometryRecord.h
HGCalTriggerNtupleHGCDigis::hgcdigi_wafertype_
std::vector< int > hgcdigi_wafertype_
Definition: HGCalTriggerNtupleHGCDigis.cc:41
edm::ParameterSet
Definition: ParameterSet.h:36
HGCalTriggerNtupleHGCDigis::~HGCalTriggerNtupleHGCDigis
~HGCalTriggerNtupleHGCDigis() override
Definition: HGCalTriggerNtupleHGCDigis.cc:19
HcalGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Definition: HcalGeometry.cc:178
ParameterSet
Definition: Functions.h:16
HGCalTriggerNtupleHGCDigis::hgcdigi_eta_
std::vector< float > hgcdigi_eta_
Definition: HGCalTriggerNtupleHGCDigis.cc:42
edmplugin::PluginFactory
Definition: PluginFactory.h:34
HcalDetId.h
HGCalTriggerNtupleBase.h
PCaloHit.h
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
HGCDigiCollections.h
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
edm::EventSetup
Definition: EventSetup.h:57
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::initialize
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
Definition: HGCalTriggerNtupleHGCDigis.cc:80
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
EDGetToken
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
HGCalDetId.h
std
Definition: JetResolutionObject.h:76
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
CaloGeometry.h
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
HGCalTriggerNtupleHGCDigis::bhdigi_ieta_
std::vector< int > bhdigi_ieta_
Definition: HGCalTriggerNtupleHGCDigis.cc:62
PCaloHitContainer.h
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalTriggerNtupleHGCDigis::bhdigi_n_
int bhdigi_n_
Definition: HGCalTriggerNtupleHGCDigis.cc:57
HGCalTriggerNtupleHGCDigis::HGCalTriggerNtupleHGCDigis
HGCalTriggerNtupleHGCDigis(const edm::ParameterSet &conf)
Definition: HGCalTriggerNtupleHGCDigis.cc:76
HGCalTriggerGeometryBase::hscGeometry
const HGCalGeometry * hscGeometry() const
Definition: HGCalTriggerGeometryBase.h:58
HGCalTriggerNtupleHGCDigis::fill
void fill(const edm::Event &e, const edm::EventSetup &es) final
Definition: HGCalTriggerNtupleHGCDigis.cc:129
EventSetup
HGCalTriggerNtupleHGCDigis::hgcdigi_data_
std::vector< std::vector< uint32_t > > hgcdigi_data_
Definition: HGCalTriggerNtupleHGCDigis.cc:45
edm::Event
Definition: Event.h:73
HGCalTriggerNtupleHGCDigis::hgcdigi_layer_
std::vector< int > hgcdigi_layer_
Definition: HGCalTriggerNtupleHGCDigis.cc:40
HGCalTriggerNtupleHGCDigis
Definition: HGCalTriggerNtupleHGCDigis.cc:16
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
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