CMS 3D CMS Logo

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

#include <SiStripBackPlaneCorrectionDQM.h>

Inheritance diagram for SiStripBackPlaneCorrectionDQM:
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
 
 SiStripBackPlaneCorrectionDQM (const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
 
 ~SiStripBackPlaneCorrectionDQM () 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< SiStripBackPlaneCorrectionbpcorrectionHandle_
 

Additional Inherited Members

- 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 11 of file SiStripBackPlaneCorrectionDQM.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file SiStripBackPlaneCorrectionDQM.cc.

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

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

Definition at line 25 of file SiStripBackPlaneCorrectionDQM.cc.

25 {}

Member Function Documentation

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

Implements SiStripBaseCondObjDQM.

Definition at line 25 of file SiStripBackPlaneCorrectionDQM.h.

References fillMEsForLayer(), and fillSummaryMEs().

25 {};
void SiStripBackPlaneCorrectionDQM::fillMEsForLayer ( uint32_t  selDetId_,
const TrackerTopology tTopo 
)
overridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 133 of file SiStripBackPlaneCorrectionDQM.cc.

References SiStripBaseCondObjDQM::activeDetIds, bpcorrectionHandle_, gather_cfg::cout, SiStripHistoId::createHistoLayer(), MonitorElement::Fill(), SiStripBaseCondObjDQM::fillTkMap(), plotBeamSpotDB::first, SiStripBaseCondObjDQM::fPSet_, SiStripBackPlaneCorrection::getBackPlaneCorrection(), SiStripBaseCondObjDQM::getLayerNameAndId(), 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, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, SiStripBaseCondObjDQM::SummaryMEsMap_, SiStripBaseCondObjDQM::ModMEs::SummaryOfCumulDistr, SiStripBaseCondObjDQM::ModMEs::SummaryOfProfileDistr, SiStripBaseCondObjDQM::SummaryOnStringLevel_On_, TrackerTopology::tibIsExternalString(), TrackerTopology::tibIsInternalString(), TrackerTopology::tibLayer(), TrackerTopology::tibString(), SiStripBaseCondObjDQM::Tk_HM_, TrackerTopology::tobLayer(), and TrackerTopology::tobRod().

Referenced by fillMEsForDet(), and fillSummaryMEs().

133  {
134 
136 
137 
138  std::string hSummaryOfProfile_description;
139  hSummaryOfProfile_description = hPSet_.getParameter<std::string>("SummaryOfProfile_description");
140 
141  std::string hSummary_name;
142 
143  int subDetId_ = ((selDetId_>>25)&0x7);
144 
145  if( subDetId_<3 || subDetId_>6 ){
146  edm::LogError("SiStripBackPlaneCorrectionDQM")
147  << "[SiStripBackPlaneCorrectionDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
148  << subDetId_ << " no folder set!"
149  << std::endl;
150  return;
151  }
152 
153  uint32_t selSubDetId_ = ((selDetId_>>25)&0x7);
154 
155  std::vector<uint32_t> sameLayerDetIds_;
156  sameLayerDetIds_.clear();
157 
158  if (SummaryOnStringLevel_On_) { //FILLING FOR STRING LEVEL
159 
160  hSummary_name = hidmanager.createHistoLayer(hSummaryOfProfile_description, "layer", getStringNameAndId(selDetId_,tTopo).first, "") ;
161  std::map<uint32_t, ModMEs>::iterator selMEsMapIter_ = SummaryMEsMap_.find(getStringNameAndId(selDetId_,tTopo).second);
162 
163  ModMEs selME_;
164  if ( selMEsMapIter_ != SummaryMEsMap_.end())
165  selME_ =selMEsMapIter_->second;
166 
167  getSummaryMEs(selME_,selDetId_,tTopo);
168 
169  // -----
170  sameLayerDetIds_.clear();
171 
172  if(selSubDetId_==3){ // TIB
173  if(tTopo->tibIsInternalString(selDetId_)){
174  SiStripSubStructure::getTIBDetectors(activeDetIds, sameLayerDetIds_, tTopo, tTopo->tibLayer(selDetId_),0,1,tTopo->tibString(selDetId_));
175  }
176  if(tTopo->tibIsExternalString(selDetId_)){
177  SiStripSubStructure::getTIBDetectors(activeDetIds, sameLayerDetIds_, tTopo, tTopo->tibLayer(selDetId_),0,2,tTopo->tibString(selDetId_));
178  }
179  }
180  else if(selSubDetId_==4){ // TID
181  SiStripSubStructure::getTIDDetectors(activeDetIds, sameLayerDetIds_, tTopo, 0,0,0,0);
182  }
183  else if(selSubDetId_==5){ // TOB
184  SiStripSubStructure::getTOBDetectors(activeDetIds, sameLayerDetIds_, tTopo, tTopo->tobLayer(selDetId_),0,tTopo->tobRod(selDetId_));
185  }
186  else if(selSubDetId_==6){ // TEC
187  SiStripSubStructure::getTECDetectors(activeDetIds, sameLayerDetIds_, tTopo, 0,0,0,0,0,0);
188  }
189 
190  // -----
191 
192  for(unsigned int i=0;i< sameLayerDetIds_.size(); i++){
193  selME_.SummaryOfProfileDistr->Fill(i+1,bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
194 
195  // Fill the Histo_TkMap+TkMap with the BP:
196  if(HistoMaps_On_ ) Tk_HM_->fill(sameLayerDetIds_[i], bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
197 
198  std::cout<<sameLayerDetIds_[i]<<"\t"<<bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i])<<std::endl;
199 
200  if(fPSet_.getParameter<bool>("TkMap_On") || hPSet_.getParameter<bool>("TkMap_On")){
201  fillTkMap(sameLayerDetIds_[i], bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
202  }
203 
204  }
205 
206  std::string hSummaryOfCumul_description;
207  hSummaryOfCumul_description = hPSet_.getParameter<std::string>("SummaryOfCumul_description");
208 
209  std::string hSummaryOfCumul_name;
210 
211  if( subDetId_<3 || subDetId_>6 ){
212  edm::LogError("SiStripBackPlaneCorrectionDQM")
213  << "[SiStripBackPlaneCorrectionDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
214  << subDetId_ << " no folder set!"
215  << std::endl;
216  return;
217  }
218 
219  hSummaryOfCumul_name = hidmanager.createHistoLayer(hSummaryOfCumul_description, "layer", getStringNameAndId(selDetId_,tTopo).first, "") ;
220 
221  for(unsigned int i=0;i< sameLayerDetIds_.size(); i++){
222  selME_.SummaryOfCumulDistr->Fill(bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
223  }
224  } //FILLING FOR STRING LEVEL
225 
226 
227  else { //FILLING FOR LAYER LEVEL
228 
229  std::map<uint32_t, ModMEs>::iterator selMEsMapIter_ = SummaryMEsMap_.find(getLayerNameAndId(selDetId_,tTopo).second);
230 
231  ModMEs selME_;
232  if ( selMEsMapIter_ != SummaryMEsMap_.end())
233  selME_ =selMEsMapIter_->second;
234 
235  getSummaryMEs(selME_,selDetId_,tTopo);
236 
237  if(hPSet_.getParameter<bool>("FillSummaryProfileAtLayerLevel")){
238 
239  hSummary_name = hidmanager.createHistoLayer(hSummaryOfProfile_description, "layer", getLayerNameAndId(selDetId_,tTopo).first, "") ;
240 
241  // -----
242  sameLayerDetIds_.clear();
243 
244  sameLayerDetIds_=GetSameLayerDetId(activeDetIds,selDetId_,tTopo);
245 
246  for(unsigned int i=0;i< sameLayerDetIds_.size(); i++){
247  selME_.SummaryOfProfileDistr->Fill(i+1,bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
248 
249  // Fill the Histo_TkMap with BP:
250  if(HistoMaps_On_ ) Tk_HM_->fill(sameLayerDetIds_[i], bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
251 
252  if(fPSet_.getParameter<bool>("TkMap_On") || hPSet_.getParameter<bool>("TkMap_On")){
253  fillTkMap(sameLayerDetIds_[i], bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
254 
255  }
256 
257  }
258  }//if Fill ...
259 
260  if(hPSet_.getParameter<bool>("FillCumulativeSummaryAtLayerLevel")){
261 
262  std::string hSummaryOfCumul_description;
263  hSummaryOfCumul_description = hPSet_.getParameter<std::string>("SummaryOfCumul_description");
264 
265  std::string hSummaryOfCumul_name;
266 
267  if( subDetId_<3 || subDetId_>6 ){
268  edm::LogError("SiStripBackPlaneCorrectionDQM")
269  << "[SiStripBackPlaneCorrectionDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
270  << subDetId_ << " no folder set!"
271  << std::endl;
272  return;
273  }
274 
275  hSummaryOfCumul_name = hidmanager.createHistoLayer(hSummaryOfCumul_description, "layer", getLayerNameAndId(selDetId_,tTopo).first, "") ;
276 
277  for(unsigned int i=0;i< sameLayerDetIds_.size(); i++){
278  selME_.SummaryOfCumulDistr->Fill(bpcorrectionHandle_->getBackPlaneCorrection(sameLayerDetIds_[i]));
279  }
280  }//if Fill ...
281  } //FILLING FOR LAYER LEVEL
282 
283 }
T getParameter(std::string const &) const
edm::ESHandle< SiStripBackPlaneCorrection > bpcorrectionHandle_
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
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
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
float getBackPlaneCorrection(const uint32_t &) const
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
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
std::unique_ptr< TkHistoMap > Tk_HM_
unsigned int tobLayer(const DetId &id) const
void SiStripBackPlaneCorrectionDQM::fillModMEs ( const std::vector< uint32_t > &  selectedDetIds,
const edm::EventSetup es 
)
inlineoverridevirtual

Reimplemented from SiStripBaseCondObjDQM.

Definition at line 24 of file SiStripBackPlaneCorrectionDQM.h.

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

Reimplemented from SiStripBaseCondObjDQM.

Definition at line 48 of file SiStripBackPlaneCorrectionDQM.cc.

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

Referenced by fillMEsForDet().

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

Implements SiStripBaseCondObjDQM.

Definition at line 30 of file SiStripBackPlaneCorrectionDQM.cc.

References SiStripBaseCondObjDQM::activeDetIds, bpcorrectionHandle_, SiStripBackPlaneCorrection::getBackPlaneCorrections(), and getConditionObject().

30  {
31 
32  getConditionObject(eSetup);
33 
34  std::map<uint32_t,float>::const_iterator BPMapIter_;
35  std::map<uint32_t,float> BPMap_ = bpcorrectionHandle_->getBackPlaneCorrections();
36 
37  for( BPMapIter_ = BPMap_.begin();
38  BPMapIter_!= BPMap_.end(); BPMapIter_++){
39 
40  activeDetIds.push_back((*BPMapIter_).first);
41  }
42 
43 }
edm::ESHandle< SiStripBackPlaneCorrection > bpcorrectionHandle_
const std::map< unsigned int, float > & getBackPlaneCorrections() const
void getConditionObject(const edm::EventSetup &eSetup) override
std::vector< uint32_t > activeDetIds
unsigned long long SiStripBackPlaneCorrectionDQM::getCache ( const edm::EventSetup eSetup)
inlineoverridevirtual

Implements SiStripBaseCondObjDQM.

Definition at line 30 of file SiStripBackPlaneCorrectionDQM.h.

References edm::EventSetup::get().

30 { return eSetup.get<SiStripBackPlaneCorrectionRcd>().cacheIdentifier();}
T get() const
Definition: EventSetup.h:63
void SiStripBackPlaneCorrectionDQM::getConditionObject ( const edm::EventSetup eSetup)
inlineoverridevirtual

Member Data Documentation

edm::ESHandle<SiStripBackPlaneCorrection> SiStripBackPlaneCorrectionDQM::bpcorrectionHandle_
private