CMS 3D CMS Logo

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

#include <SiPixelStatusProducer.h>

Inheritance diagram for SiPixelStatusProducer:
edm::stream::EDProducer< edm::GlobalCache< SiPixelTopoCache >, edm::RunCache< SiPixelTopoFinder >, edm::LuminosityBlockSummaryCache< std::vector< SiPixelDetectorStatus > >, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void accumulate (edm::Event const &iEvent, edm::EventSetup const &iSetup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void beginRun (edm::Run const &, edm::EventSetup const &) final
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockSummary (edm::LuminosityBlock const &iLumi, edm::EventSetup const &, std::vector< SiPixelDetectorStatus > *siPixelDetectorStatusVtr) const final
 
 SiPixelStatusProducer (edm::ParameterSet const &iPSet, SiPixelTopoCache const *)
 
 ~SiPixelStatusProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< SiPixelTopoCache >, edm::RunCache< SiPixelTopoFinder >, edm::LuminosityBlockSummaryCache< std::vector< SiPixelDetectorStatus > >, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static std::shared_ptr< std::vector< SiPixelDetectorStatus > > globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< SiPixelTopoFinderglobalBeginRun (edm::Run const &iRun, edm::EventSetup const &iSetup, GlobalCache const *iCache)
 
static void globalEndJob (SiPixelTopoCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &iLumi, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > const *siPixelDetectorStatusVtr)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > *)
 
static void globalEndRun (edm::Run const &iRun, edm::EventSetup const &, RunContext const *iContext)
 
static std::unique_ptr< SiPixelTopoCacheinitializeGlobalCache (edm::ParameterSet const &iPSet)
 

Private Member Functions

virtual int indexROC (int irow, int icol, int nROCcolumns) final
 

Private Attributes

int beginLumi_
 
int beginRun_
 
int endLumi_
 
int endRun_
 
SiPixelDetectorStatus fDet_
 
std::vector< int > fDetIds_
 
std::map< int, std::vector< PixelFEDChannel > > fFEDerror25_
 
std::unordered_map< uint32_t, unsigned int > fFedIds_
 
edm::InputTag fPixelClusterLabel_
 
std::map< int, std::map< int, int > > fRocIds_
 
std::map< int, std::pair< int, int > > fSensorLayout_
 
std::map< int, std::pair< int, int > > fSensors_
 
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > fSiPixelClusterToken_
 
unsigned long int ftotalevents_
 
std::vector< edm::EDGetTokenT< PixelFEDChannelCollection > > theBadPixelFEDChannelsTokens_
 

Static Private Attributes

static const bool debug_ = false
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< SiPixelTopoCache >, edm::RunCache< SiPixelTopoFinder >, edm::LuminosityBlockSummaryCache< std::vector< SiPixelDetectorStatus > >, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 111 of file SiPixelStatusProducer.h.

Constructor & Destructor Documentation

◆ SiPixelStatusProducer()

SiPixelStatusProducer::SiPixelStatusProducer ( edm::ParameterSet const &  iPSet,
SiPixelTopoCache const *   
)

Definition at line 30 of file SiPixelStatusProducer.cc.

30  {
31  /* badPixelFEDChannelCollections */
32  std::vector<edm::InputTag> badPixelFEDChannelCollectionLabels =
33  iConfig.getParameter<edm::ParameterSet>("SiPixelStatusProducerParameters")
34  .getParameter<std::vector<edm::InputTag>>("badPixelFEDChannelCollections");
36  theBadPixelFEDChannelsTokens_.push_back(consumes<PixelFEDChannelCollection>(t));
37 
38  /* pixel clusters */
39  fPixelClusterLabel_ = iConfig.getParameter<edm::ParameterSet>("SiPixelStatusProducerParameters")
40  .getUntrackedParameter<edm::InputTag>("pixelClusterLabel");
41  fSiPixelClusterToken_ = consumes<edmNew::DetSetVector<SiPixelCluster>>(fPixelClusterLabel_);
42 
43  //debug_ = iConfig.getUntrackedParameter<bool>("debug");
44 
45  /* register products */
46  produces<SiPixelDetectorStatus, edm::Transition::EndLuminosityBlock>("siPixelStatus");
47 }

References HLT_FULL_cff::badPixelFEDChannelCollectionLabels, fPixelClusterLabel_, fSiPixelClusterToken_, edm::ParameterSet::getParameter(), submitPVValidationJobs::t, and theBadPixelFEDChannelsTokens_.

◆ ~SiPixelStatusProducer()

SiPixelStatusProducer::~SiPixelStatusProducer ( )
override

Definition at line 49 of file SiPixelStatusProducer.cc.

49 {}

Member Function Documentation

◆ accumulate()

void SiPixelStatusProducer::accumulate ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
final

Definition at line 87 of file SiPixelStatusProducer.cc.

87  {
88  edm::LogInfo("SiPixelStatusProducer") << "start cluster analyzer " << std::endl;
89 
90  /* count number of events for the current module instance in the luminosityBlock */
91  ftotalevents_++;
92 
93  /* ----------------------------------------------------------------------
94  -- Pixel cluster analysis
95  ----------------------------------------------------------------------*/
96 
98  if (!iEvent.getByToken(fSiPixelClusterToken_, hClusterColl)) {
99  edm::LogWarning("SiPixelStatusProducer")
100  << " edmNew::DetSetVector<SiPixelCluster> " << fPixelClusterLabel_ << " does not exist!" << std::endl;
101  return;
102  }
103 
104  iEvent.getByToken(fSiPixelClusterToken_, hClusterColl);
105 
106  if (hClusterColl.isValid()) {
107  for (const auto& clusters : *hClusterColl) { /*loop over different clusters in a clusters vector (module)*/
108  for (const auto& clu : clusters) { /*loop over cluster in a given detId (module)*/
109  int detid = clusters.detId();
110  int rowsperroc = fSensors_[detid].first;
111  int colsperroc = fSensors_[detid].second;
112 
113  //int nROCrows = fSensorLayout_[detid].first;
114  int nROCcolumns = fSensorLayout_[detid].second;
115 
116  int roc(-1);
117  std::map<int, int> rocIds_detid;
118  if (fRocIds_.find(detid) != fRocIds_.end()) {
119  rocIds_detid = fRocIds_[detid];
120  }
121 
122  /* A module is made with a few ROCs
123  Need to convert global row/column (on a module) to local row/column (on a ROC) */
124  const std::vector<SiPixelCluster::Pixel>& pixvector = clu.pixels();
125  for (unsigned int i = 0; i < pixvector.size(); ++i) {
126  int mr0 = pixvector[i].x; /* constant column direction is along x-axis */
127  int mc0 = pixvector[i].y; /* constant row direction is along y-axis */
128 
129  int irow = mr0 / rowsperroc;
130  int icol = mc0 / colsperroc;
131 
132  int key = indexROC(irow, icol, nROCcolumns);
133  if (rocIds_detid.find(key) != rocIds_detid.end()) {
134  roc = rocIds_detid[key];
135  }
136 
137  fDet_.fillDIGI(detid, roc);
138 
139  } /* loop over pixels in a cluster */
140 
141  } /* loop over cluster in a detId (module) */
142 
143  } /* loop over detId-grouped clusters in cluster detId-grouped clusters-vector* */
144 
145  } /* hClusterColl.isValid() */
146  else {
147  edm::LogWarning("SiPixelStatusProducer")
148  << " edmNew::DetSetVector<SiPixelCluster> " << fPixelClusterLabel_ << " is NOT Valid!" << std::endl;
149  }
150 
151  /*|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*/
152 
153  /* FEDerror25 per-ROC per-event */
154  edm::Handle<PixelFEDChannelCollection> pixelFEDChannelCollectionHandle;
155 
156  /* look over different resouces of tokens */
158  if (!iEvent.getByToken(tk, pixelFEDChannelCollectionHandle)) {
159  edm::LogWarning("SiPixelStatusProducer")
160  << " PixelFEDChannelCollection with index " << tk.index() << " does NOT exist!" << std::endl;
161  continue;
162  }
163 
164  iEvent.getByToken(tk, pixelFEDChannelCollectionHandle);
165  if (!pixelFEDChannelCollectionHandle.isValid()) {
166  edm::LogWarning("SiPixelStatusProducer")
167  << " PixelFEDChannelCollection with index " << tk.index() << " is NOT valid!" << std::endl;
168  continue;
169  }
170 
171  /* FEDerror channels for the current events */
172  std::map<int, std::vector<PixelFEDChannel>> tmpFEDerror25;
173  for (const auto& disabledChannels : *pixelFEDChannelCollectionHandle) {
174  /* loop over different PixelFED in a PixelFED vector (module) */
175  for (const auto& ch : disabledChannels) {
176  DetId detId = disabledChannels.detId();
177  int detid = detId.rawId();
178 
179  if (ftotalevents_ == 1) {
180  /* FEDerror25 channels for the "first" event in the lumi section (first for the current instance of the module) */
181  fFEDerror25_[detid].push_back(ch);
182  } else
183  tmpFEDerror25[detid].push_back(ch);
184 
185  } /* loop over different PixelFED in a PixelFED vector (different channel for a module) */
186 
187  } /* loop over different (different DetId) PixelFED vectors in PixelFEDChannelCollection */
188 
189  /* Compare the current FEDerror list with the first event's FEDerror list
190  * and save the common channels */
191  if (!tmpFEDerror25.empty() && !fFEDerror25_.empty()) {
192  std::map<int, std::vector<PixelFEDChannel>>::iterator itFEDerror25;
193  for (itFEDerror25 = fFEDerror25_.begin(); itFEDerror25 != fFEDerror25_.end(); itFEDerror25++) {
194  int detid = itFEDerror25->first;
195  if (tmpFEDerror25.find(detid) != tmpFEDerror25.end()) {
196  std::vector<PixelFEDChannel> chs = itFEDerror25->second;
197  std::vector<PixelFEDChannel> chs_tmp = tmpFEDerror25[detid];
198 
199  std::vector<PixelFEDChannel> chs_common;
200  for (unsigned int ich = 0; ich < chs.size(); ich++) {
201  PixelFEDChannel ch = chs[ich];
202  /* loop over the current FEDerror25 channels, save the common FED channels */
203  for (unsigned int ich_tmp = 0; ich_tmp < chs_tmp.size(); ich_tmp++) {
204  PixelFEDChannel ch_tmp = chs_tmp[ich_tmp];
205  if ((ch.fed == ch_tmp.fed) && (ch.link == ch_tmp.link)) { /* the same FED channel */
206  chs_common.push_back(ch);
207  break;
208  }
209  }
210  }
211  /* remove the full module from FEDerror25 list if no common channels are left */
212  if (chs_common.empty())
213  fFEDerror25_.erase(itFEDerror25);
214  /* otherwise replace with the common channels */
215  else {
216  fFEDerror25_[detid].clear();
217  fFEDerror25_[detid] = chs_common;
218  }
219  } else { /* remove the full module from FEDerror25 list if the module doesn't appear in the current event's FEDerror25 list */
220  fFEDerror25_.erase(itFEDerror25);
221  }
222 
223  } /* loop over modules that have FEDerror25 in the first event in the lumi section */
224 
225  } /* non-empty FEDerror lists */
226 
227  } /* look over different resouces of takens */
228 
229  /* Caveat
230  no per-event collection put into iEvent
231  If use produce() function and no collection is put into iEvent, produce() will not run in unScheduled mode
232  Now since CMSSW_10_1_X, the accumulate() function will run whatsoever in the unScheduled mode
233  Accumulate() is NOT available for releases BEFORE CMSSW_10_1_X */
234 }

References bsc_activity_cfg::clusters, fDet_, PixelFEDChannel::fed, fFEDerror25_, SiPixelDetectorStatus::fillDIGI(), fPixelClusterLabel_, fRocIds_, fSensorLayout_, fSensors_, fSiPixelClusterToken_, ftotalevents_, mps_fire::i, iEvent, indexROC(), edm::HandleBase::isValid(), crabWrapper::key, PixelFEDChannel::link, DetId::rawId(), PixelMapPlotter::roc, and theBadPixelFEDChannelsTokens_.

◆ beginLuminosityBlock()

void SiPixelStatusProducer::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
final

Definition at line 71 of file SiPixelStatusProducer.cc.

71  {
72  edm::LogInfo("SiPixelStatusProducer") << "beginlumi instance" << std::endl;
73 
74  /* initialize fDet_ with a set of modules(detIds) and clean the fFEDerror25_ */
76  for (unsigned int itDetId = 0; itDetId < fDetIds_.size(); ++itDetId) {
77  int detid = fDetIds_[itDetId];
78  int nrocs = fSensorLayout_[detid].first * fSensorLayout_[detid].second;
79 
80  fDet_.addModule(detid, nrocs);
81  }
82 
83  fFEDerror25_.clear();
84  ftotalevents_ = 0;
85 }

References SiPixelDetectorStatus::addModule(), fDet_, fDetIds_, fFEDerror25_, fSensorLayout_, ftotalevents_, and DeadROCCounter::nrocs.

◆ beginRun()

void SiPixelStatusProducer::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
final

Definition at line 53 of file SiPixelStatusProducer.cc.

53  {
54  /*Is it good to pass the objects stored in runCache to set class private members values *
55  or just call runCahche every time in the calss function?*/
56 
57  edm::LogInfo("SiPixelStatusProducer") << "beginRun: update the std::map for pixel geo/topo " << std::endl;
58  /* update the std::map for pixel geo/topo */
59  /* vector of all <int> detIds */
60  fDetIds_ = runCache()->getDetIds(); //getDetIds();
61  /* ROC size (number of row, number of columns for each det id) */
62  fSensors_ = runCache()->getSensors();
63  /* the roc layout on a module */
64  fSensorLayout_ = runCache()->getSensorLayout();
65  /* fedId as a function of detId */
66  fFedIds_ = runCache()->getFedIds();
67  /* map the index ROC to rocId */
68  fRocIds_ = runCache()->getRocIds();
69 }

References fDetIds_, fFedIds_, fRocIds_, fSensorLayout_, and fSensors_.

◆ endLuminosityBlock()

void SiPixelStatusProducer::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
final

Definition at line 236 of file SiPixelStatusProducer.cc.

236  {
237  /* set total number of events through ftotalevents_ */
239 
240  if (ftotalevents_ > 0) {
241  /* Add FEDerror25 information into SiPixelDetectorStatus fDet_ for FED channels stored in fFEDerror25_ */
242  if (!fFEDerror25_.empty()) { // non-empty FEDerror25
243  std::map<int, std::vector<PixelFEDChannel>>::iterator itFEDerror25;
244  for (itFEDerror25 = fFEDerror25_.begin(); itFEDerror25 != fFEDerror25_.end();
245  itFEDerror25++) { // loop over detIds
246  int detid = itFEDerror25->first;
247  std::vector<PixelFEDChannel> chs = itFEDerror25->second;
248  for (unsigned int ich = 0; ich < chs.size(); ich++) {
249  fDet_.fillFEDerror25(detid, chs[ich]);
250  }
251  } // loop over detIds
252  } // if non-empty FEDerror25
253 
254  } // only for non-zero events
255 }

References fDet_, fFEDerror25_, SiPixelDetectorStatus::fillFEDerror25(), ftotalevents_, and SiPixelDetectorStatus::setNevents().

◆ endLuminosityBlockSummary()

void SiPixelStatusProducer::endLuminosityBlockSummary ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  ,
std::vector< SiPixelDetectorStatus > *  siPixelDetectorStatusVtr 
) const
final

Definition at line 257 of file SiPixelStatusProducer.cc.

260  {
261  /*add the Stream's partial information to the full information*/
262 
263  /* only save for the lumi sections with NON-ZERO events */
264  if (ftotalevents_ > 0)
265  siPixelDetectorStatusVtr->push_back(fDet_);
266 }

References fDet_, and ftotalevents_.

◆ fillDescriptions()

static void SiPixelStatusProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 123 of file SiPixelStatusProducer.h.

123  {
125  {
127  psd0.addUntracked<edm::InputTag>("pixelClusterLabel", edm::InputTag("siPixelClusters", "", "RECO"));
128  psd0.add<std::vector<edm::InputTag>>("badPixelFEDChannelCollections",
129  {
130  edm::InputTag("siPixelDigis"),
131  });
132  desc.add<edm::ParameterSetDescription>("SiPixelStatusProducerParameters", psd0);
133  }
134  descriptions.add("siPixelStatusProducer", desc);
135  }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.

◆ globalBeginLuminosityBlockSummary()

static std::shared_ptr<std::vector<SiPixelDetectorStatus> > SiPixelStatusProducer::globalBeginLuminosityBlockSummary ( edm::LuminosityBlock const &  ,
edm::EventSetup const &  ,
LuminosityBlockContext const *   
)
inlinestatic

Definition at line 172 of file SiPixelStatusProducer.h.

173  {
174  return std::make_shared<std::vector<SiPixelDetectorStatus>>();
175  }

◆ globalBeginRun()

static std::shared_ptr<SiPixelTopoFinder> SiPixelStatusProducer::globalBeginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup,
GlobalCache const *  iCache 
)
inlinestatic

Definition at line 158 of file SiPixelStatusProducer.h.

160  {
161  edm::LogInfo("SiPixelStatusProducer") << "Global beginRun " << std::endl;
162  return iCache->getSiPixelTopoFinder(iSetup);
163  }

◆ globalEndJob()

static void SiPixelStatusProducer::globalEndJob ( SiPixelTopoCache const *  )
inlinestatic

Definition at line 169 of file SiPixelStatusProducer.h.

169  { /* Do nothing */
170  }

◆ globalEndLuminosityBlockProduce()

static void SiPixelStatusProducer::globalEndLuminosityBlockProduce ( edm::LuminosityBlock iLumi,
edm::EventSetup const &  ,
LuminosityBlockContext const *  iContext,
std::vector< SiPixelDetectorStatus > const *  siPixelDetectorStatusVtr 
)
inlinestatic

Definition at line 184 of file SiPixelStatusProducer.h.

187  {
188  edm::LogInfo("SiPixelStatusProducer") << "Global endlumi producer " << std::endl;
189 
190  // only save result for non-zero event lumi block
191  if (!siPixelDetectorStatusVtr->empty()) {
192  int lumi = iLumi.luminosityBlock();
193  int run = iLumi.run();
194 
195  SiPixelDetectorStatus siPixelDetectorStatus = SiPixelDetectorStatus();
196  for (unsigned int instance = 0; instance < siPixelDetectorStatusVtr->size(); instance++) {
197  siPixelDetectorStatus.updateDetectorStatus((*siPixelDetectorStatusVtr)[instance]);
198  }
199 
200  siPixelDetectorStatus.setRunRange(run, run);
201  siPixelDetectorStatus.setLSRange(lumi, lumi);
202 
203  if (debug_) {
204  std::string outTxt = Form("SiPixelDetectorStatus_Run%d_Lumi%d.txt", run, lumi);
205  std::ofstream outFile;
206  outFile.open(outTxt.c_str(), std::ios::app);
207  siPixelDetectorStatus.dumpToFile(outFile);
208  outFile.close();
209  }
210 
211  /* save result */
212  auto result = std::make_unique<SiPixelDetectorStatus>();
213  *result = siPixelDetectorStatus;
214 
215  iLumi.put(std::move(result), std::string("siPixelStatus"));
216  edm::LogInfo("SiPixelStatusProducer")
217  << " lumi-based data stored for run " << run << " lumi " << lumi << std::endl;
218  }
219  }

References debug_, SiPixelDetectorStatus::dumpToFile(), instance, edm::LuminosityBlockBase::luminosityBlock(), eostools::move(), L1TdeCSCTF_cfi::outFile, edm::LuminosityBlock::put(), mps_fire::result, writedatasetfile::run, edm::LuminosityBlockBase::run(), SiPixelDetectorStatus::setLSRange(), SiPixelDetectorStatus::setRunRange(), AlCaHLTBitMon_QueryRunRegistry::string, and SiPixelDetectorStatus::updateDetectorStatus().

◆ globalEndLuminosityBlockSummary()

static void SiPixelStatusProducer::globalEndLuminosityBlockSummary ( edm::LuminosityBlock const &  ,
edm::EventSetup const &  ,
LuminosityBlockContext const *  iContext,
std::vector< SiPixelDetectorStatus > *   
)
inlinestatic

Definition at line 177 of file SiPixelStatusProducer.h.

180  {
181  /* Do nothing */
182  }

◆ globalEndRun()

static void SiPixelStatusProducer::globalEndRun ( edm::Run const &  iRun,
edm::EventSetup const &  ,
RunContext const *  iContext 
)
inlinestatic

Definition at line 165 of file SiPixelStatusProducer.h.

165  {
166  /* Do nothing */
167  }

◆ indexROC()

int SiPixelStatusProducer::indexROC ( int  irow,
int  icol,
int  nROCcolumns 
)
finalprivatevirtual

Definition at line 269 of file SiPixelStatusProducer.cc.

269  {
270  return int(icol + irow * nROCcolumns);
271 
272  /* generate the folling roc index that is going to map with ROC id as
273  8 9 10 11 12 13 14 15
274  0 1 2 3 4 5 6 7 */
275 }

References createfilelist::int.

Referenced by accumulate().

◆ initializeGlobalCache()

static std::unique_ptr<SiPixelTopoCache> SiPixelStatusProducer::initializeGlobalCache ( edm::ParameterSet const &  iPSet)
inlinestatic

Definition at line 153 of file SiPixelStatusProducer.h.

153  {
154  edm::LogInfo("SiPixelStatusProducer") << "Init global Cache " << std::endl;
155  return std::make_unique<SiPixelTopoCache>(iPSet);
156  }

Member Data Documentation

◆ beginLumi_

int SiPixelStatusProducer::beginLumi_
private

Definition at line 255 of file SiPixelStatusProducer.h.

◆ beginRun_

int SiPixelStatusProducer::beginRun_
private

Definition at line 257 of file SiPixelStatusProducer.h.

◆ debug_

const bool SiPixelStatusProducer::debug_ = false
staticprivate

Definition at line 225 of file SiPixelStatusProducer.h.

Referenced by globalEndLuminosityBlockProduce().

◆ endLumi_

int SiPixelStatusProducer::endLumi_
private

Definition at line 256 of file SiPixelStatusProducer.h.

◆ endRun_

int SiPixelStatusProducer::endRun_
private

Definition at line 258 of file SiPixelStatusProducer.h.

◆ fDet_

SiPixelDetectorStatus SiPixelStatusProducer::fDet_
private

◆ fDetIds_

std::vector<int> SiPixelStatusProducer::fDetIds_
private

Definition at line 242 of file SiPixelStatusProducer.h.

Referenced by beginLuminosityBlock(), and beginRun().

◆ fFEDerror25_

std::map<int, std::vector<PixelFEDChannel> > SiPixelStatusProducer::fFEDerror25_
private

Definition at line 261 of file SiPixelStatusProducer.h.

Referenced by accumulate(), beginLuminosityBlock(), and endLuminosityBlock().

◆ fFedIds_

std::unordered_map<uint32_t, unsigned int> SiPixelStatusProducer::fFedIds_
private

Definition at line 248 of file SiPixelStatusProducer.h.

Referenced by beginRun().

◆ fPixelClusterLabel_

edm::InputTag SiPixelStatusProducer::fPixelClusterLabel_
private

Definition at line 227 of file SiPixelStatusProducer.h.

Referenced by accumulate(), and SiPixelStatusProducer().

◆ fRocIds_

std::map<int, std::map<int, int> > SiPixelStatusProducer::fRocIds_
private

Definition at line 250 of file SiPixelStatusProducer.h.

Referenced by accumulate(), and beginRun().

◆ fSensorLayout_

std::map<int, std::pair<int, int> > SiPixelStatusProducer::fSensorLayout_
private

Definition at line 246 of file SiPixelStatusProducer.h.

Referenced by accumulate(), beginLuminosityBlock(), and beginRun().

◆ fSensors_

std::map<int, std::pair<int, int> > SiPixelStatusProducer::fSensors_
private

Definition at line 244 of file SiPixelStatusProducer.h.

Referenced by accumulate(), and beginRun().

◆ fSiPixelClusterToken_

edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > SiPixelStatusProducer::fSiPixelClusterToken_
private

Definition at line 228 of file SiPixelStatusProducer.h.

Referenced by accumulate(), and SiPixelStatusProducer().

◆ ftotalevents_

unsigned long int SiPixelStatusProducer::ftotalevents_
private

◆ theBadPixelFEDChannelsTokens_

std::vector<edm::EDGetTokenT<PixelFEDChannelCollection> > SiPixelStatusProducer::theBadPixelFEDChannelsTokens_
private

Definition at line 229 of file SiPixelStatusProducer.h.

Referenced by accumulate(), and SiPixelStatusProducer().

SiPixelStatusProducer::fFEDerror25_
std::map< int, std::vector< PixelFEDChannel > > fFEDerror25_
Definition: SiPixelStatusProducer.h:261
SiPixelStatusProducer::ftotalevents_
unsigned long int ftotalevents_
Definition: SiPixelStatusProducer.h:253
mps_fire.i
i
Definition: mps_fire.py:428
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
PixelFEDChannel
Definition: PixelFEDChannel.h:6
SiPixelStatusProducer::theBadPixelFEDChannelsTokens_
std::vector< edm::EDGetTokenT< PixelFEDChannelCollection > > theBadPixelFEDChannelsTokens_
Definition: SiPixelStatusProducer.h:229
SiPixelStatusProducer::fSensors_
std::map< int, std::pair< int, int > > fSensors_
Definition: SiPixelStatusProducer.h:244
SiPixelStatusProducer::fSensorLayout_
std::map< int, std::pair< int, int > > fSensorLayout_
Definition: SiPixelStatusProducer.h:246
edm::EDGetTokenT
Definition: EDGetToken.h:33
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiPixelStatusProducer::fSiPixelClusterToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > fSiPixelClusterToken_
Definition: SiPixelStatusProducer.h:228
SiPixelDetectorStatus::setLSRange
void setLSRange(int ls0, int ls1)
Definition: SiPixelDetectorStatus.h:63
edm::LuminosityBlockBase::run
RunNumber_t run() const
Definition: LuminosityBlockBase.h:42
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::Handle
Definition: AssociativeIterator.h:50
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
SiPixelStatusProducer::fDetIds_
std::vector< int > fDetIds_
Definition: SiPixelStatusProducer.h:242
SiPixelStatusProducer::fRocIds_
std::map< int, std::map< int, int > > fRocIds_
Definition: SiPixelStatusProducer.h:250
SiPixelDetectorStatus
Definition: SiPixelDetectorStatus.h:11
SiPixelDetectorStatus::dumpToFile
void dumpToFile(std::ofstream &outFile)
Definition: SiPixelDetectorStatus.cc:85
SiPixelDetectorStatus::addModule
void addModule(int detid, int nrocs)
Definition: SiPixelDetectorStatus.cc:102
DetId
Definition: DetId.h:17
HLT_FULL_cff.badPixelFEDChannelCollectionLabels
badPixelFEDChannelCollectionLabels
Definition: HLT_FULL_cff.py:9507
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
SiPixelStatusProducer::fFedIds_
std::unordered_map< uint32_t, unsigned int > fFedIds_
Definition: SiPixelStatusProducer.h:248
edm::LuminosityBlockBase::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockBase.h:40
SiPixelStatusProducer::debug_
static const bool debug_
Definition: SiPixelStatusProducer.h:225
SiPixelDetectorStatus::fillDIGI
void fillDIGI(int detid, int roc)
Definition: SiPixelDetectorStatus.cc:114
PixelFEDChannel::link
unsigned int link
Definition: PixelFEDChannel.h:7
L1TdeCSCTF_cfi.outFile
outFile
Definition: L1TdeCSCTF_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelFEDChannel::fed
unsigned int fed
Definition: PixelFEDChannel.h:7
bsc_activity_cfg.clusters
clusters
Definition: bsc_activity_cfg.py:36
SiPixelDetectorStatus::fillFEDerror25
void fillFEDerror25(int detid, PixelFEDChannel ch)
Definition: SiPixelDetectorStatus.cc:120
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
edm::ParameterSet
Definition: ParameterSet.h:47
SiPixelDetectorStatus::setNevents
void setNevents(unsigned long int N)
Definition: SiPixelDetectorStatus.h:47
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::LuminosityBlock::put
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: LuminosityBlock.h:116
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
SiPixelDetectorStatus::updateDetectorStatus
void updateDetectorStatus(SiPixelDetectorStatus newData)
Definition: SiPixelDetectorStatus.cc:207
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiPixelStatusProducer::fPixelClusterLabel_
edm::InputTag fPixelClusterLabel_
Definition: SiPixelStatusProducer.h:227
DeadROCCounter.nrocs
nrocs
Definition: DeadROCCounter.py:57
SiPixelStatusProducer::indexROC
virtual int indexROC(int irow, int icol, int nROCcolumns) final
Definition: SiPixelStatusProducer.cc:269
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelDetectorStatus::setRunRange
void setRunRange(int run0, int run1)
Definition: SiPixelDetectorStatus.h:57
mps_fire.result
result
Definition: mps_fire.py:311
SiPixelStatusProducer::fDet_
SiPixelDetectorStatus fDet_
Definition: SiPixelStatusProducer.h:264
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
crabWrapper.key
key
Definition: crabWrapper.py:19
lumi
Definition: LumiSectionData.h:20
edm::InputTag
Definition: InputTag.h:15