#include <CaloMiscalibMapHcal.h>
Public Member Functions | |
virtual void | addCell (const DetId &cell, float scaling_factor) |
CaloMiscalibMapHcal () | |
const std::map< uint32_t, float > & | get () |
void | prefillMap () |
void | print () |
Private Attributes | |
std::map< uint32_t, float > | mapHcal_ |
HcalTopology | topology |
Definition at line 18 of file CaloMiscalibMapHcal.h.
CaloMiscalibMapHcal::CaloMiscalibMapHcal | ( | ) | [inline] |
Definition at line 20 of file CaloMiscalibMapHcal.h.
{ }
virtual void CaloMiscalibMapHcal::addCell | ( | const DetId & | cell, |
float | scaling_factor | ||
) | [inline, virtual] |
Implements CaloMiscalibMap.
Definition at line 49 of file CaloMiscalibMapHcal.h.
References mapHcal_, and DetId::rawId().
const std::map<uint32_t, float>& CaloMiscalibMapHcal::get | ( | void | ) | [inline] |
Definition at line 67 of file CaloMiscalibMapHcal.h.
References mapHcal_.
Referenced by HcalRecHitsMaker::init(), and HcalRecHitRecalib::produce().
{ return mapHcal_; }
void CaloMiscalibMapHcal::prefillMap | ( | ) | [inline] |
Definition at line 23 of file CaloMiscalibMapHcal.h.
References eta(), mapHcal_, phi, DetId::rawId(), topology, and HcalTopology::valid().
Referenced by HcalRecHitRecalib::HcalRecHitRecalib(), and HcalRecHitsMaker::init().
{ for (int det = 1; det < 5; det++) { for (int eta = -63; eta < 64; eta++) { for (int phi = 0; phi < 128; phi++) { for (int depth = 1; depth < 5; depth++) { try { HcalDetId hcaldetid ((HcalSubdetector) det, eta, phi, depth); if (topology.valid(hcaldetid)) // mapHcal_.setValue(hcaldetid.rawId(),1.0); { mapHcal_[hcaldetid.rawId()]=1.0; // std::cout << "Valid cell found: " << det << " " << eta << " " << phi << " " << depth << std::endl; } } catch (...) { } } } } } }
void CaloMiscalibMapHcal::print | ( | void | ) | [inline] |
Definition at line 55 of file CaloMiscalibMapHcal.h.
References mapHcal_.
Referenced by HcalRecHitRecalib::HcalRecHitRecalib().
std::map<uint32_t, float> CaloMiscalibMapHcal::mapHcal_ [private] |
Definition at line 73 of file CaloMiscalibMapHcal.h.
Referenced by addCell(), get(), prefillMap(), and print().
HcalTopology CaloMiscalibMapHcal::topology [private] |
Definition at line 74 of file CaloMiscalibMapHcal.h.
Referenced by prefillMap().