CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiStripLorentzAngleDQM Class Reference

#include <SiStripLorentzAngleDQM.h>

Inheritance diagram for SiStripLorentzAngleDQM:
SiStripBaseCondObjDQM

Public Member Functions

void fillMEsForDet (const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) override
 
void fillMEsForLayer (uint32_t selDetId_, const TrackerTopology *tTopo) override
 
void fillModMEs (const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
 
void fillSummaryMEs (const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es) override
 
void getActiveDetIds (const edm::EventSetup &eSetup) override
 
unsigned long long getCache (const edm::EventSetup &eSetup) override
 
void getConditionObject (const edm::EventSetup &eSetup) override
 
 SiStripLorentzAngleDQM (const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
 
 ~SiStripLorentzAngleDQM () override
 
- Public Member Functions inherited from SiStripBaseCondObjDQM
void analysis (const edm::EventSetup &eSetup_)
 
void analysisOnDemand (const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
 
void analysisOnDemand (const edm::EventSetup &eSetup_, const std::vector< uint32_t > &detIdsOnDemand)
 
void analysisOnDemand (const edm::EventSetup &eSetup_, std::string requestedSubDetector, uint32_t requestedSide, uint32_t requestedLayer)
 
virtual void end ()
 
std::vector< uint32_t > getCabledModules ()
 
void selectModules (std::vector< uint32_t > &detIds_, const TrackerTopology *tTopo)
 
 SiStripBaseCondObjDQM (const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
 
virtual ~SiStripBaseCondObjDQM ()
 

Private Attributes

edm::ESHandle< SiStripLorentzAnglelorentzangleHandle_
 

Additional Inherited Members

- Public Types inherited from SiStripBaseCondObjDQM
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Protected Member Functions inherited from SiStripBaseCondObjDQM
void fillTkMap (const uint32_t &detid, const float &value)
 
std::pair< std::string, uint32_t > getLayerNameAndId (const uint32_t &detId_, const TrackerTopology *tTopo)
 
void getModMEs (ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
 
std::vector< uint32_t > GetSameLayerDetId (const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
 
std::pair< std::string, uint32_t > getStringNameAndId (const uint32_t &detId_, const TrackerTopology *tTopo)
 
void getSummaryMEs (ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
 
- Protected Attributes inherited from SiStripBaseCondObjDQM
std::vector< uint32_t > activeDetIds
 
std::vector< uint32_t > all_DetIds
 
unsigned long long cacheID_current
 
unsigned long long cacheID_memory
 
std::string CondObj_fillId_
 
std::string CondObj_name_
 
const edm::EventSetupeSetup_
 
edm::ParameterSet fPSet_
 
bool GrandSummary_On_
 
bool HistoMaps_On_
 
edm::ParameterSet hPSet_
 
double maxValue
 
double minValue
 
bool Mod_On_
 
std::map< uint32_t, ModMEsModMEsMap_
 
SiStripDetInfoFileReaderreader
 
std::map< uint32_t, ModMEsSummaryMEsMap_
 
bool SummaryOnLayerLevel_On_
 
bool SummaryOnStringLevel_On_
 
std::unique_ptr< TkHistoMapTk_HM_
 
std::unique_ptr< TkHistoMapTk_HM_H
 
std::unique_ptr< TkHistoMapTk_HM_L
 
TrackerMaptkMap
 
std::vector< int > tkMapScaler
 

Detailed Description

Definition at line 9 of file SiStripLorentzAngleDQM.h.

Constructor & Destructor Documentation

SiStripLorentzAngleDQM::SiStripLorentzAngleDQM ( const edm::EventSetup eSetup,
edm::RunNumber_t  iRun,
edm::ParameterSet const &  hPSet,
edm::ParameterSet const &  fPSet 
)

Definition at line 9 of file SiStripLorentzAngleDQM.cc.

References edm::EventSetup::get(), SiStripBaseCondObjDQM::HistoMaps_On_, edm::ESHandle< T >::product(), and SiStripBaseCondObjDQM::Tk_HM_.

13  : SiStripBaseCondObjDQM(eSetup, iRun, hPSet, fPSet) {
14  // Build the Histo_TkMap:
15  if (HistoMaps_On_) {
16  edm::ESHandle<TkDetMap> tkDetMapHandle;
17  eSetup.get<TrackerTopologyRcd>().get(tkDetMapHandle);
18  Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMapHandle.product(), "SiStrip/Histo_Map", "LA_TkMap", 0.);
19  }
20 }
SiStripBaseCondObjDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
T get() const
Definition: EventSetup.h:73
T const * product() const
Definition: ESHandle.h:86
std::unique_ptr< TkHistoMap > Tk_HM_
SiStripLorentzAngleDQM::~SiStripLorentzAngleDQM ( )
override

Definition at line 24 of file SiStripLorentzAngleDQM.cc.

24 {}

Member Function Documentation

void SiStripLorentzAngleDQM::fillMEsForDet ( const ModMEs selModME_,
uint32_t  selDetId_,
const TrackerTopology tTopo 
)
inlineoverridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 21 of file SiStripLorentzAngleDQM.h.

References fillMEsForLayer(), and fillSummaryMEs().

21 {};
void SiStripLorentzAngleDQM::fillMEsForLayer ( uint32_t  selDetId_,
const TrackerTopology tTopo 
)
overridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 125 of file SiStripLorentzAngleDQM.cc.

References SiStripBaseCondObjDQM::activeDetIds, gather_cfg::cout, SiStripHistoId::createHistoLayer(), dqm::impl::MonitorElement::Fill(), SiStripBaseCondObjDQM::fillTkMap(), dqmdumpme::first, SiStripBaseCondObjDQM::fPSet_, SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripLorentzAngle::getLorentzAngle(), edm::ParameterSet::getParameter(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripBaseCondObjDQM::getSummaryMEs(), SiStripSubStructure::getTECDetectors(), SiStripSubStructure::getTIBDetectors(), SiStripSubStructure::getTIDDetectors(), SiStripSubStructure::getTOBDetectors(), SiStripBaseCondObjDQM::hidmanager, SiStripBaseCondObjDQM::HistoMaps_On_, SiStripBaseCondObjDQM::hPSet_, mps_fire::i, lorentzangleHandle_, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), SiStripBaseCondObjDQM::SummaryMEsMap_, SiStripBaseCondObjDQM::ModMEs::SummaryOfCumulDistr, SiStripBaseCondObjDQM::ModMEs::SummaryOfProfileDistr, SiStripBaseCondObjDQM::SummaryOnStringLevel_On_, StripSubdetector::TEC, StripSubdetector::TIB, TrackerTopology::tibIsExternalString(), TrackerTopology::tibIsInternalString(), TrackerTopology::tibLayer(), TrackerTopology::tibString(), StripSubdetector::TID, SiStripBaseCondObjDQM::Tk_HM_, StripSubdetector::TOB, TrackerTopology::tobLayer(), and TrackerTopology::tobRod().

Referenced by fillMEsForDet(), and fillSummaryMEs().

126  {
128 
129  std::string hSummaryOfProfile_description;
130  hSummaryOfProfile_description = hPSet_.getParameter<std::string>("SummaryOfProfile_description");
131 
132  std::string hSummary_name;
133 
134  int subDetId_ = DetId(selDetId_).subdetId();
135 
136  if (subDetId_ < 3 || subDetId_ > 6) {
137  edm::LogError("SiStripLorentzAngleDQM") << "[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such "
138  "subdetector type : "
139  << subDetId_ << " no folder set!" << std::endl;
140  return;
141  }
142 
143  std::vector<uint32_t> sameLayerDetIds_;
144  sameLayerDetIds_.clear();
145 
146  if (SummaryOnStringLevel_On_) { // FILLING FOR STRING LEVEL
147 
148  hSummary_name = hidmanager.createHistoLayer(
149  hSummaryOfProfile_description, "layer", getStringNameAndId(selDetId_, tTopo).first, "");
150  std::map<uint32_t, ModMEs>::iterator selMEsMapIter_ =
151  SummaryMEsMap_.find(getStringNameAndId(selDetId_, tTopo).second);
152 
153  ModMEs selME_;
154  if (selMEsMapIter_ != SummaryMEsMap_.end())
155  selME_ = selMEsMapIter_->second;
156 
157  getSummaryMEs(selME_, selDetId_, tTopo);
158 
159  // -----
160  sameLayerDetIds_.clear();
161 
162  switch (DetId(selDetId_).subdetId()) {
164  if (tTopo->tibIsInternalString(selDetId_)) {
166  activeDetIds, sameLayerDetIds_, tTopo, tTopo->tibLayer(selDetId_), 0, 1, tTopo->tibString(selDetId_));
167  }
168  if (tTopo->tibIsExternalString(selDetId_)) {
170  activeDetIds, sameLayerDetIds_, tTopo, tTopo->tibLayer(selDetId_), 0, 2, tTopo->tibString(selDetId_));
171  }
172  break;
174  SiStripSubStructure::getTIDDetectors(activeDetIds, sameLayerDetIds_, tTopo, 0, 0, 0, 0);
175  break;
178  activeDetIds, sameLayerDetIds_, tTopo, tTopo->tobLayer(selDetId_), 0, tTopo->tobRod(selDetId_));
179  break;
181  SiStripSubStructure::getTECDetectors(activeDetIds, sameLayerDetIds_, tTopo, 0, 0, 0, 0, 0, 0);
182  break;
183  }
184 
185  // -----
186 
187  for (unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
188  selME_.SummaryOfProfileDistr->Fill(i + 1, lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
189 
190  // Fill the Histo_TkMap+TkMap with the LA:
191  if (HistoMaps_On_)
192  Tk_HM_->fill(sameLayerDetIds_[i], lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
193 
194  std::cout << sameLayerDetIds_[i] << "\t" << lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i])
195  << std::endl;
196 
197  if (fPSet_.getParameter<bool>("TkMap_On") || hPSet_.getParameter<bool>("TkMap_On")) {
198  fillTkMap(sameLayerDetIds_[i], lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
199  }
200  }
201 
202  std::string hSummaryOfCumul_description;
203  hSummaryOfCumul_description = hPSet_.getParameter<std::string>("SummaryOfCumul_description");
204 
205  std::string hSummaryOfCumul_name;
206 
207  if (subDetId_ < 3 || subDetId_ > 6) {
208  edm::LogError("SiStripLorentzAngleDQM") << "[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such "
209  "subdetector type : "
210  << subDetId_ << " no folder set!" << std::endl;
211  return;
212  }
213 
214  hSummaryOfCumul_name = hidmanager.createHistoLayer(
215  hSummaryOfCumul_description, "layer", getStringNameAndId(selDetId_, tTopo).first, "");
216 
217  for (unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
218  selME_.SummaryOfCumulDistr->Fill(lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
219  }
220  } // FILLING FOR STRING LEVEL
221 
222  else { // FILLING FOR LAYER LEVEL
223 
224  std::map<uint32_t, ModMEs>::iterator selMEsMapIter_ =
225  SummaryMEsMap_.find(getLayerNameAndId(selDetId_, tTopo).second);
226 
227  ModMEs selME_;
228  if (selMEsMapIter_ != SummaryMEsMap_.end())
229  selME_ = selMEsMapIter_->second;
230 
231  getSummaryMEs(selME_, selDetId_, tTopo);
232 
233  if (hPSet_.getParameter<bool>("FillSummaryProfileAtLayerLevel")) {
234  hSummary_name = hidmanager.createHistoLayer(
235  hSummaryOfProfile_description, "layer", getLayerNameAndId(selDetId_, tTopo).first, "");
236 
237  // -----
238  sameLayerDetIds_.clear();
239 
240  sameLayerDetIds_ = GetSameLayerDetId(activeDetIds, selDetId_, tTopo);
241 
242  for (unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
243  selME_.SummaryOfProfileDistr->Fill(i + 1, lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
244 
245  // Fill the Histo_TkMap with LA:
246  if (HistoMaps_On_)
247  Tk_HM_->fill(sameLayerDetIds_[i], lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
248 
249  if (fPSet_.getParameter<bool>("TkMap_On") || hPSet_.getParameter<bool>("TkMap_On")) {
250  fillTkMap(sameLayerDetIds_[i], lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
251  }
252  }
253  } // if Fill ...
254 
255  if (hPSet_.getParameter<bool>("FillCumulativeSummaryAtLayerLevel")) {
256  std::string hSummaryOfCumul_description;
257  hSummaryOfCumul_description = hPSet_.getParameter<std::string>("SummaryOfCumul_description");
258 
259  std::string hSummaryOfCumul_name;
260 
261  if (subDetId_ < 3 || subDetId_ > 6) {
262  edm::LogError("SiStripLorentzAngleDQM") << "[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no "
263  "such subdetector type : "
264  << subDetId_ << " no folder set!" << std::endl;
265  return;
266  }
267 
268  hSummaryOfCumul_name = hidmanager.createHistoLayer(
269  hSummaryOfCumul_description, "layer", getLayerNameAndId(selDetId_, tTopo).first, "");
270 
271  for (unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
272  selME_.SummaryOfCumulDistr->Fill(lorentzangleHandle_->getLorentzAngle(sameLayerDetIds_[i]));
273  }
274  } // if Fill ...
275  } // FILLING FOR LAYER LEVEL
276 }
T getParameter(std::string const &) const
static constexpr auto TEC
void getTIBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tibDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t int_ext=0, uint32_t string=0)
unsigned int tibLayer(const DetId &id) const
unsigned int tibString(const DetId &id) const
edm::ESHandle< SiStripLorentzAngle > lorentzangleHandle_
void getTIDDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tidDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t ring=0, uint32_t ster=0)
void getTECDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tecDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t petal_bkw_frw=0, uint32_t petal=0, uint32_t ring=0, uint32_t ster=0)
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
bool tibIsExternalString(const DetId &id) const
float getLorentzAngle(const uint32_t &) const
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
static constexpr auto TOB
Definition: DetId.h:17
static constexpr auto TIB
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
std::vector< uint32_t > activeDetIds
void getTOBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tobDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t rod=0)
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
unsigned int tobRod(const DetId &id) const
bool tibIsInternalString(const DetId &id) const
static constexpr auto TID
std::unique_ptr< TkHistoMap > Tk_HM_
unsigned int tobLayer(const DetId &id) const
void SiStripLorentzAngleDQM::fillModMEs ( const std::vector< uint32_t > &  selectedDetIds,
const edm::EventSetup es 
)
inlineoverridevirtual

Reimplemented from SiStripBaseCondObjDQM.

Definition at line 20 of file SiStripLorentzAngleDQM.h.

20 {};
void SiStripLorentzAngleDQM::fillSummaryMEs ( const std::vector< uint32_t > &  selectedDetIds,
const edm::EventSetup es 
)
overridevirtual

Reimplemented from SiStripBaseCondObjDQM.

Definition at line 41 of file SiStripLorentzAngleDQM.cc.

References alignmentValidation::c1, fillMEsForLayer(), SiStripBaseCondObjDQM::fPSet_, edm::EventSetup::get(), SiStripBaseCondObjDQM::getLayerNameAndId(), edm::ParameterSet::getParameter(), SiStripBaseCondObjDQM::getStringNameAndId(), dqm::legacy::MonitorElement::getTH1(), dqm::legacy::MonitorElement::getTProfile(), SiStripBaseCondObjDQM::hPSet_, mps_fire::i, Skims_PA_cff::name, hfnoseParametersInitialization_cfi::name2, edm::ESHandle< T >::product(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), SiStripBaseCondObjDQM::SummaryMEsMap_, SiStripBaseCondObjDQM::ModMEs::SummaryOfCumulDistr, SiStripBaseCondObjDQM::ModMEs::SummaryOfProfileDistr, SiStripBaseCondObjDQM::SummaryOnLayerLevel_On_, and SiStripBaseCondObjDQM::SummaryOnStringLevel_On_.

Referenced by fillMEsForDet().

41  {
42  // Retrieve tracker topology from geometry
44  es.get<TrackerTopologyRcd>().get(tTopoHandle);
45  const TrackerTopology *const tTopo = tTopoHandle.product();
46 
47  // -----
48  // LA on layer-level : fill at once all detIds belonging to same layer when
49  // encountering first detID in the layer
50 
51  bool fillNext = true;
52  for (unsigned int i = 0; i < selectedDetIds.size(); i++) {
53  int subDetId_ = DetId(selectedDetIds[i]).subdetId();
54  if (subDetId_ < 3 || subDetId_ > 6) {
55  edm::LogError("SiStripLorentzAngle")
56  << "[SiStripLorentzAngle::fillSummaryMEs] WRONG INPUT : no such "
57  "subdetector type : "
58  << subDetId_ << " and detId " << selectedDetIds[i] << " therefore no filling!" << std::endl;
59  } else if (SummaryOnLayerLevel_On_) {
60  if (fillNext) {
61  fillMEsForLayer(/*SummaryMEsMap_,*/ selectedDetIds[i], tTopo);
62  }
63  if (getLayerNameAndId(selectedDetIds[i + 1], tTopo) == getLayerNameAndId(selectedDetIds[i], tTopo)) {
64  fillNext = false;
65  } else {
66  fillNext = true;
67  }
68  } else if (SummaryOnStringLevel_On_) {
69  if (fillNext) {
70  fillMEsForLayer(/*SummaryMEsMap_,*/ selectedDetIds[i], tTopo);
71  }
72  if (getStringNameAndId(selectedDetIds[i + 1], tTopo) == getStringNameAndId(selectedDetIds[i], tTopo)) {
73  fillNext = false;
74  } else {
75  fillNext = true;
76  }
77  }
78  }
79 
80  for (std::map<uint32_t, ModMEs>::iterator iter = SummaryMEsMap_.begin(); iter != SummaryMEsMap_.end(); iter++) {
81  ModMEs selME;
82  selME = iter->second;
83 
85  if (fPSet_.getParameter<bool>("OutputSummaryProfileAtLayerLevelAsImage")) {
86  TCanvas c1("c1");
87  selME.SummaryOfProfileDistr->getTProfile()->Draw();
88  std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
89  name += ".png";
90  c1.Print(name.c_str());
91  }
92 
93  if (fPSet_.getParameter<bool>("OutputCumulativeSummaryAtLayerLevelAsImage")) {
94  TCanvas c2("c2");
95  selME.SummaryOfCumulDistr->getTH1()->Draw();
96  std::string name2(selME.SummaryOfCumulDistr->getTH1()->GetTitle());
97  name2 += ".png";
98  c2.Print(name2.c_str());
99  }
100 
101  } else {
102  if (hPSet_.getParameter<bool>("FillSummaryProfileAtLayerLevel") &&
103  fPSet_.getParameter<bool>("OutputSummaryProfileAtLayerLevelAsImage")) {
104  TCanvas c1("c1");
105  selME.SummaryOfProfileDistr->getTProfile()->Draw();
106  std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
107  name += ".png";
108  c1.Print(name.c_str());
109  }
110 
111  if (hPSet_.getParameter<bool>("FillCumulativeSummaryAtLayerLevel") &&
112  fPSet_.getParameter<bool>("OutputCumulativeSummaryAtLayerLevelAsImage")) {
113  TCanvas c1("c1");
114  selME.SummaryOfCumulDistr->getTH1()->Draw();
115  std::string name(selME.SummaryOfCumulDistr->getTH1()->GetTitle());
116  name += ".png";
117  c1.Print(name.c_str());
118  }
119  }
120  }
121 }
T getParameter(std::string const &) const
std::map< uint32_t, ModMEs > SummaryMEsMap_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: DetId.h:17
void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo) override
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
T get() const
Definition: EventSetup.h:73
T const * product() const
Definition: ESHandle.h:86
void SiStripLorentzAngleDQM::getActiveDetIds ( const edm::EventSetup eSetup)
overridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 28 of file SiStripLorentzAngleDQM.cc.

References SiStripBaseCondObjDQM::activeDetIds, getConditionObject(), SiStripLorentzAngle::getLorentzAngles(), and lorentzangleHandle_.

28  {
29  getConditionObject(eSetup);
30 
31  std::map<uint32_t, float>::const_iterator LAMapIter_;
32  std::map<uint32_t, float> LAMap_ = lorentzangleHandle_->getLorentzAngles();
33 
34  for (LAMapIter_ = LAMap_.begin(); LAMapIter_ != LAMap_.end(); LAMapIter_++) {
35  activeDetIds.push_back((*LAMapIter_).first);
36  }
37 }
edm::ESHandle< SiStripLorentzAngle > lorentzangleHandle_
const std::map< unsigned int, float > & getLorentzAngles() const
void getConditionObject(const edm::EventSetup &eSetup) override
std::vector< uint32_t > activeDetIds
unsigned long long SiStripLorentzAngleDQM::getCache ( const edm::EventSetup eSetup)
inlineoverridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 27 of file SiStripLorentzAngleDQM.h.

References edm::EventSetup::get().

27  {
28  return eSetup.get<SiStripLorentzAngleRcd>().cacheIdentifier();
29  }
T get() const
Definition: EventSetup.h:73
void SiStripLorentzAngleDQM::getConditionObject ( const edm::EventSetup eSetup)
inlineoverridevirtual

Member Data Documentation

edm::ESHandle<SiStripLorentzAngle> SiStripLorentzAngleDQM::lorentzangleHandle_
private

Definition at line 37 of file SiStripLorentzAngleDQM.h.

Referenced by fillMEsForLayer(), getActiveDetIds(), and getConditionObject().