CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
SiStripCMMonitorPlugin Class Reference

#include <DQM/SiStripMonitorHardware/plugins/SiStripCMMonitor.cc>

Inheritance diagram for SiStripCMMonitorPlugin:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

struct  Statistics
 

Public Member Functions

 SiStripCMMonitorPlugin (const edm::ParameterSet &)
 
 ~SiStripCMMonitorPlugin () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void fillMaps (uint32_t aDetId, unsigned short aChInModule, std::pair< uint16_t, uint16_t > aMedians)
 
void updateCabling (const edm::EventSetup &eventSetup)
 

Private Attributes

const SiStripFedCablingcabling_
 
uint32_t cablingCacheId_
 
CMHistograms cmHists_
 
std::map< unsigned int, StatisticsCommonModes_
 
std::map< unsigned int, StatisticsCommonModesAPV0minusAPV1_
 
bool doTkHistoMap_
 
edm::EventNumber_t evt_
 
std::vector< unsigned int > fedIdVec_
 
bool fillAllDetailedHistograms_
 
bool fillWithEvtNum_
 
bool fillWithLocalEvtNum_
 
std::string folderName_
 
std::pair< uint16_t, uint16_t > prevMedians_ [FEDNumbering::MAXSiStripFEDID+1][sistrip::FEDCH_PER_FED]
 
unsigned int printDebug_
 
edm::InputTag rawDataTag_
 
edm::EDGetTokenT< FEDRawDataCollectionrawDataToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, 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
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Description: DQM source application to monitor common mode for SiStrip data

Definition at line 61 of file SiStripCMMonitor.cc.

Constructor & Destructor Documentation

◆ SiStripCMMonitorPlugin()

SiStripCMMonitorPlugin::SiStripCMMonitorPlugin ( const edm::ParameterSet iConfig)
explicit

Definition at line 115 of file SiStripCMMonitor.cc.

116  : rawDataTag_(iConfig.getUntrackedParameter<edm::InputTag>("RawDataTag", edm::InputTag("source", ""))),
117  folderName_(
118  iConfig.getUntrackedParameter<std::string>("HistogramFolderName", "SiStrip/ReadoutView/CMMonitoring")),
119  fedIdVec_(iConfig.getUntrackedParameter<std::vector<unsigned int> >("FedIdVec")),
120  fillAllDetailedHistograms_(iConfig.getUntrackedParameter<bool>("FillAllDetailedHistograms", false)),
121  fillWithEvtNum_(iConfig.getUntrackedParameter<bool>("FillWithEventNumber", false)),
122  fillWithLocalEvtNum_(iConfig.getUntrackedParameter<bool>("FillWithLocalEventNumber", false)),
123  printDebug_(iConfig.getUntrackedParameter<unsigned int>("PrintDebugMessages", 1)),
124  cablingCacheId_(0)
125 
126 {
127  rawDataToken_ = consumes<FEDRawDataCollection>(rawDataTag_);
128  //print config to debug log
129  std::ostringstream debugStream;
130  if (printDebug_ > 1) {
131  debugStream << "[SiStripCMMonitorPlugin]Configuration for SiStripCMMonitorPlugin: " << std::endl
132  << "[SiStripCMMonitorPlugin]\tRawDataTag: " << rawDataTag_ << std::endl
133  << "[SiStripCMMonitorPlugin]\tHistogramFolderName: " << folderName_ << std::endl
134  << "[SiStripCMMonitorPlugin]\tFillAllDetailedHistograms? "
135  << (fillAllDetailedHistograms_ ? "yes" : "no") << std::endl
136  << "[SiStripCMMonitorPlugin]\tFillWithEventNumber?" << (fillWithEvtNum_ ? "yes" : "no") << std::endl
137  << "[SiStripCMMonitorPlugin]\tPrintDebugMessages? " << (printDebug_ ? "yes" : "no") << std::endl;
138  }
139 
140  std::ostringstream* pDebugStream = (printDebug_ > 1 ? &debugStream : nullptr);
141 
142  cmHists_.initialise(iConfig, pDebugStream);
143 
144  doTkHistoMap_ = cmHists_.tkHistoMapEnabled();
145 
146  CommonModes_.clear();
148 
150  for (unsigned int iCh(0); iCh < sistrip::FEDCH_PER_FED; iCh++) {
151  prevMedians_[fedId][iCh] = std::pair<uint16_t, uint16_t>(0, 0);
152  }
153  }
154 
155  if (printDebug_)
156  LogTrace("SiStripMonitorHardware") << debugStream.str();
157 
158  evt_ = 0;
159 }

References cmHists_, CommonModes_, CommonModesAPV0minusAPV1_, doTkHistoMap_, evt_, sistrip::FEDCH_PER_FED, l1tstage2_dqm_sourceclient-live_cfg::fedId, fillAllDetailedHistograms_, fillWithEvtNum_, folderName_, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, prevMedians_, printDebug_, rawDataTag_, and rawDataToken_.

◆ ~SiStripCMMonitorPlugin()

SiStripCMMonitorPlugin::~SiStripCMMonitorPlugin ( )
override

Definition at line 161 of file SiStripCMMonitor.cc.

161 {}

Member Function Documentation

◆ analyze()

void SiStripCMMonitorPlugin::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 183 of file SiStripCMMonitor.cc.

183  {
184  //Retrieve tracker topology from geometry
185  edm::ESHandle<TrackerTopology> tTopoHandle;
186  iSetup.get<TrackerTopologyRcd>().get(tTopoHandle);
187  const TrackerTopology* const tTopo = tTopoHandle.product();
188 
189  //static bool firstEvent = true;
190  //static bool isBeingFilled = false;
191  //update cabling
192  updateCabling(iSetup);
193 
194  //get raw data
195  edm::Handle<FEDRawDataCollection> rawDataCollectionHandle;
196  iEvent.getByToken(rawDataToken_, rawDataCollectionHandle);
197  const FEDRawDataCollection& rawDataCollection = *rawDataCollectionHandle;
198 
199  //FED errors
200  FEDErrors lFedErrors;
201 
202  //loop over siStrip FED IDs
204  fedId++) { //loop over FED IDs
205  const FEDRawData& fedData = rawDataCollection.FEDData(fedId);
206 
207  //create an object to fill all errors
208  lFedErrors.initialiseFED(fedId, cabling_, tTopo);
209 
210  //Do detailed check
211  //first check if data exists
212  bool lDataExist = lFedErrors.checkDataPresent(fedData);
213  if (!lDataExist) {
214  continue;
215  }
216 
217  std::unique_ptr<const sistrip::FEDBuffer> buffer;
218 
219  if (!lFedErrors.fillFatalFEDErrors(fedData, 0)) {
220  continue;
221  } else {
222  //need to construct full object to go any further
223  const auto st_buffer = sistrip::preconstructCheckFEDBuffer(fedData, true);
224  if (sistrip::FEDBufferStatusCode::SUCCESS != st_buffer) {
225  throw cms::Exception("FEDBuffer") << st_buffer << " (check debug output for more details)";
226  }
227  auto tmp_buffer = std::make_unique<sistrip::FEDBuffer>(fedData, true);
228  tmp_buffer->findChannels();
229  buffer = std::move(tmp_buffer); // const now
230  bool channelLengthsOK = buffer->checkChannelLengthsMatchBufferLength();
231  bool channelPacketCodesOK = buffer->checkChannelPacketCodes();
232  bool feLengthsOK = buffer->checkFEUnitLengths();
233  if (!channelLengthsOK || !channelPacketCodesOK || !feLengthsOK) {
234  continue;
235  }
236  }
237 
238  std::ostringstream infoStream;
239 
240  if (printDebug_ > 1) {
241  infoStream << " --- Processing FED #" << fedId << std::endl;
242  }
243 
244  std::vector<CMHistograms::CMvalues> values;
245 
246  for (unsigned int iCh = 0; iCh < sistrip::FEDCH_PER_FED; iCh++) { //loop on channels
247 
248  const FedChannelConnection& lConnection = cabling_->fedConnection(fedId, iCh);
249  bool connected = lConnection.isConnected();
250 
251  //std::cout << "FedID " << fedId << ", ch " << iCh << ", nAPVPairs " << lConnection.nApvPairs() << " apvPairNumber " << lConnection.apvPairNumber() << std::endl;
252 
253  if (!connected) {
254  continue;
255  }
256 
257  uint32_t lDetId = lConnection.detId();
258  unsigned short nChInModule = lConnection.nApvPairs();
259 
260  if (!lDetId || lDetId == sistrip::invalid32_)
261  continue;
262 
263  bool lFailUnpackerChannelCheck = !buffer->channelGood(iCh, true) && connected;
264 
265  if (lFailUnpackerChannelCheck) {
266  continue;
267  }
268 
269  //short lAPVPair = lConnection.apvPairNumber();
270  //short lSubDet = DetId(lDetId).subdetId();
271 
272  // if (firstEvent){
273  // infoStream << "Subdet " << lSubDet << ", " ;
274  // if (lSubDet == 3) {
275  //
276  // infoStream << "TIB layer " << tTopo->tibLayer(lDetId) << ", fedID " << fedId << ", channel " << iCh << std::endl;
277  // }
278  // else if (lSubDet == 4) {
279  //
280  // infoStream << "TID side " << tTopo->tibSide(lDetId) << " wheel " << tTopo->tibWheel(lDetId) << ", ring " << tTopo->tibRing(lDetId) << ", fedID " << fedId << ", channel " << iCh << std::endl;
281  // }
282  // else if (lSubDet == 5) {
283  //
284  // infoStream << "TOB side " << tTopo->tibRod(lDetId)[0] << " layer " << tTopo->tibLayer(lDetId) << ", rod " << tTopo->tibRodNumber(lDetId) << ", fedID " << fedId << ", channel " << iCh << std::endl;
285  // }
286  // else if (lSubDet == 6) {
287  //
288  // infoStream << "TEC side " << tTopo->tibSide(lDetId) << " wheel " << tTopo->tibWheel(lDetId) << ", petal " << tTopo->tibPetalNumber(lDetId) << ", ring " << tTopo->tibRing(lDetId) << ", fedID " << fedId << ", channel " << iCh << std::endl;
289  // }
290  // isBeingFilled=true;
291  // }
292 
293  std::ostringstream lMode;
294  lMode << buffer->readoutMode();
295  if (evt_ == 0 && printDebug_ > 1)
296  std::cout << "Readout mode: " << lMode.str() << std::endl;
297 
298  const sistrip::FEDChannel& lChannel = buffer->channel(iCh);
299  std::pair<uint16_t, uint16_t> medians = std::pair<uint16_t, uint16_t>(0, 0);
300 
301  if (lMode.str().find("Zero suppressed") != lMode.str().npos && lMode.str().find("lite") == lMode.str().npos)
302  medians = std::pair<uint16_t, uint16_t>(lChannel.cmMedian(0), lChannel.cmMedian(1));
303 
304  CMHistograms::CMvalues lVal;
305  lVal.ChannelID = iCh;
306  lVal.Medians = std::pair<uint16_t, uint16_t>(medians.first, medians.second);
307  lVal.PreviousMedians = prevMedians_[fedId][iCh];
308 
309  // if (medians.second-medians.first > 26){
310  // std::ostringstream info;
311  // if (medians.second-medians.first > 44) info << " --- Second bump: event " << iEvent.id().event() << ", FED/Channel " << fedId << "/" << iCh << ", delta=" << medians.second-medians.first << std::endl;
312  // else info << " --- First bump: event " << iEvent.id().event() << ", FED/Channel " << fedId << "/" << iCh << ", delta=" << medians.second-medians.first << std::endl;
313  // edm::LogVerbatim("SiStripMonitorHardware") << info.str();
314  // }
315 
316  if (printDebug_ > 1) {
317  if (lChannel.length() > 7) {
318  infoStream << "Medians for channel #" << iCh << " (length " << lChannel.length() << "): " << medians.first
319  << ", " << medians.second << std::endl;
320  }
321  }
322 
323  values.push_back(lVal);
324 
325  //if (iEvent.id().event() > 1000)
326  fillMaps(lDetId, nChInModule, medians);
327 
328  prevMedians_[fedId][iCh] = std::pair<uint16_t, uint16_t>(medians.first, medians.second);
329 
330  } //loop on channels
331 
332  float lTime = 0;
333  if (fillWithEvtNum_) {
334  // casting from unsigned long long to a float here
335  // doing it explicitely
336  lTime = static_cast<float>(iEvent.id().event());
337  } else {
338  if (fillWithLocalEvtNum_) {
339  // casting from unsigned long long to a float here
340  // doing it explicitely
341  lTime = static_cast<float>(evt_);
342  } else {
343  lTime = iEvent.orbitNumber() / 11223.;
344  }
345  }
346 
347  cmHists_.fillHistograms(values, lTime, fedId);
348 
349  //if (printDebug_ > 0 && isBeingFilled && firstEvent) edm::LogVerbatim("SiStripMonitorHardware") << infoStream.str();
350 
351  } //loop on FEDs
352 
353  //if (isBeingFilled)
354  //firstEvent = false;
355 
356  evt_++;
357 
358 } //analyze method

References edmScanValgrind::buffer, cabling_, cmHists_, sistrip::FEDChannel::cmMedian(), gather_cfg::cout, FedChannelConnection::detId(), evt_, Exception, sistrip::FEDCH_PER_FED, SiStripFedCabling::fedConnection(), FEDRawDataCollection::FEDData(), l1tstage2_dqm_sourceclient-live_cfg::fedId, fillMaps(), fillWithEvtNum_, fillWithLocalEvtNum_, edm::EventSetup::get(), get, iEvent, sistrip::invalid32_, FedChannelConnection::isConnected(), sistrip::FEDChannel::length(), FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, eostools::move(), FedChannelConnection::nApvPairs(), sistrip::preconstructCheckFEDBuffer(), prevMedians_, printDebug_, edm::ESHandle< T >::product(), rawDataToken_, sistrip::SUCCESS, updateCabling(), and contentValuesCheck::values.

◆ bookHistograms()

void SiStripCMMonitorPlugin::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 167 of file SiStripCMMonitor.cc.

169  {
170  ibooker.setCurrentFolder(folderName_);
171 
172  edm::ESHandle<TkDetMap> tkDetMapHandle;
173  eSetup.get<TrackerTopologyRcd>().get(tkDetMapHandle);
174  const TkDetMap* tkDetMap = tkDetMapHandle.product();
175 
176  cmHists_.bookTopLevelHistograms(ibooker, tkDetMap);
177 
179  cmHists_.bookAllFEDHistograms(ibooker);
180 }

References cmHists_, fillAllDetailedHistograms_, folderName_, edm::EventSetup::get(), get, edm::ESHandle< T >::product(), and dqm::implementation::NavigatorBase::setCurrentFolder().

◆ fillMaps()

void SiStripCMMonitorPlugin::fillMaps ( uint32_t  aDetId,
unsigned short  aChInModule,
std::pair< uint16_t, uint16_t >  aMedians 
)
private

Definition at line 431 of file SiStripCMMonitor.cc.

433  {
434  if (doTkHistoMap_) { //if TkHistMap is enabled
435  std::pair<std::map<unsigned int, Statistics>::iterator, bool> alreadyThere[2];
436 
437  Statistics lStat;
438  lStat.Mean = (aMedians.first + aMedians.second) * 1. / (2 * aChInModule);
439  lStat.Rms = (aMedians.first + aMedians.second) * (aMedians.first + aMedians.second) * 1. / (4 * aChInModule);
440  lStat.Counter = 1. / aChInModule;
441 
442  alreadyThere[0] = CommonModes_.insert(std::pair<unsigned int, Statistics>(aDetId, lStat));
443  if (!alreadyThere[0].second) {
444  ((alreadyThere[0].first)->second).Mean += (aMedians.first + aMedians.second) * 1. / (2 * aChInModule);
445  ((alreadyThere[0].first)->second).Rms +=
446  (aMedians.first + aMedians.second) * (aMedians.first + aMedians.second) * 1. / (4 * aChInModule);
447  ((alreadyThere[0].first)->second).Counter += 1. / aChInModule;
448  }
449 
450  lStat.Mean = (aMedians.first - aMedians.second) * 1. / aChInModule;
451  lStat.Rms = (aMedians.first - aMedians.second) * (aMedians.first - aMedians.second) * 1. / aChInModule;
452  lStat.Counter = 1. / aChInModule;
453 
454  alreadyThere[1] = CommonModesAPV0minusAPV1_.insert(std::pair<unsigned int, Statistics>(aDetId, lStat));
455  if (!alreadyThere[1].second) {
456  ((alreadyThere[1].first)->second).Mean += (aMedians.first - aMedians.second) * 1. / aChInModule;
457  ((alreadyThere[1].first)->second).Rms +=
458  (aMedians.first - aMedians.second) * (aMedians.first - aMedians.second) * 1. / aChInModule;
459  ((alreadyThere[1].first)->second).Counter += 1. / aChInModule;
460  }
461  }
462 }

References CommonModes_, CommonModesAPV0minusAPV1_, SiStripCMMonitorPlugin::Statistics::Counter, doTkHistoMap_, SiStripCMMonitorPlugin::Statistics::Mean, SiStripCMMonitorPlugin::Statistics::Rms, and edm::second().

Referenced by analyze().

◆ updateCabling()

void SiStripCMMonitorPlugin::updateCabling ( const edm::EventSetup eventSetup)
private

Definition at line 421 of file SiStripCMMonitor.cc.

421  {
422  uint32_t currentCacheId = eventSetup.get<SiStripFedCablingRcd>().cacheIdentifier();
423  if (cablingCacheId_ != currentCacheId) {
424  edm::ESHandle<SiStripFedCabling> cablingHandle;
425  eventSetup.get<SiStripFedCablingRcd>().get(cablingHandle);
426  cabling_ = cablingHandle.product();
427  cablingCacheId_ = currentCacheId;
428  }
429 }

References cabling_, cablingCacheId_, edm::EventSetup::get(), get, and edm::ESHandle< T >::product().

Referenced by analyze().

Member Data Documentation

◆ cabling_

const SiStripFedCabling* SiStripCMMonitorPlugin::cabling_
private

Definition at line 96 of file SiStripCMMonitor.cc.

Referenced by analyze(), and updateCabling().

◆ cablingCacheId_

uint32_t SiStripCMMonitorPlugin::cablingCacheId_
private

Definition at line 95 of file SiStripCMMonitor.cc.

Referenced by updateCabling().

◆ cmHists_

CMHistograms SiStripCMMonitorPlugin::cmHists_
private

Definition at line 101 of file SiStripCMMonitor.cc.

Referenced by analyze(), bookHistograms(), and SiStripCMMonitorPlugin().

◆ CommonModes_

std::map<unsigned int, Statistics> SiStripCMMonitorPlugin::CommonModes_
private

Definition at line 103 of file SiStripCMMonitor.cc.

Referenced by fillMaps(), and SiStripCMMonitorPlugin().

◆ CommonModesAPV0minusAPV1_

std::map<unsigned int, Statistics> SiStripCMMonitorPlugin::CommonModesAPV0minusAPV1_
private

Definition at line 104 of file SiStripCMMonitor.cc.

Referenced by fillMaps(), and SiStripCMMonitorPlugin().

◆ doTkHistoMap_

bool SiStripCMMonitorPlugin::doTkHistoMap_
private

Definition at line 99 of file SiStripCMMonitor.cc.

Referenced by fillMaps(), and SiStripCMMonitorPlugin().

◆ evt_

edm::EventNumber_t SiStripCMMonitorPlugin::evt_
private

Definition at line 108 of file SiStripCMMonitor.cc.

Referenced by analyze(), and SiStripCMMonitorPlugin().

◆ fedIdVec_

std::vector<unsigned int> SiStripCMMonitorPlugin::fedIdVec_
private

Definition at line 86 of file SiStripCMMonitor.cc.

◆ fillAllDetailedHistograms_

bool SiStripCMMonitorPlugin::fillAllDetailedHistograms_
private

Definition at line 88 of file SiStripCMMonitor.cc.

Referenced by bookHistograms(), and SiStripCMMonitorPlugin().

◆ fillWithEvtNum_

bool SiStripCMMonitorPlugin::fillWithEvtNum_
private

Definition at line 90 of file SiStripCMMonitor.cc.

Referenced by analyze(), and SiStripCMMonitorPlugin().

◆ fillWithLocalEvtNum_

bool SiStripCMMonitorPlugin::fillWithLocalEvtNum_
private

Definition at line 91 of file SiStripCMMonitor.cc.

Referenced by analyze().

◆ folderName_

std::string SiStripCMMonitorPlugin::folderName_
private

Definition at line 84 of file SiStripCMMonitor.cc.

Referenced by bookHistograms(), and SiStripCMMonitorPlugin().

◆ prevMedians_

std::pair<uint16_t, uint16_t> SiStripCMMonitorPlugin::prevMedians_[FEDNumbering::MAXSiStripFEDID+1][sistrip::FEDCH_PER_FED]
private

Definition at line 106 of file SiStripCMMonitor.cc.

Referenced by analyze(), and SiStripCMMonitorPlugin().

◆ printDebug_

unsigned int SiStripCMMonitorPlugin::printDebug_
private

Definition at line 93 of file SiStripCMMonitor.cc.

Referenced by analyze(), and SiStripCMMonitorPlugin().

◆ rawDataTag_

edm::InputTag SiStripCMMonitorPlugin::rawDataTag_
private

Definition at line 81 of file SiStripCMMonitor.cc.

Referenced by SiStripCMMonitorPlugin().

◆ rawDataToken_

edm::EDGetTokenT<FEDRawDataCollection> SiStripCMMonitorPlugin::rawDataToken_
private

Definition at line 82 of file SiStripCMMonitor.cc.

Referenced by analyze(), and SiStripCMMonitorPlugin().

FedChannelConnection::nApvPairs
const uint16_t & nApvPairs() const
Definition: FedChannelConnection.h:214
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
SiStripCMMonitorPlugin::prevMedians_
std::pair< uint16_t, uint16_t > prevMedians_[FEDNumbering::MAXSiStripFEDID+1][sistrip::FEDCH_PER_FED]
Definition: SiStripCMMonitor.cc:106
SiStripCMMonitorPlugin::fedIdVec_
std::vector< unsigned int > fedIdVec_
Definition: SiStripCMMonitor.cc:86
SiStripCMMonitorPlugin::folderName_
std::string folderName_
Definition: SiStripCMMonitor.cc:84
SiStripCMMonitorPlugin::cablingCacheId_
uint32_t cablingCacheId_
Definition: SiStripCMMonitor.cc:95
sistrip::invalid32_
static const uint32_t invalid32_
Definition: Constants.h:15
SiStripCMMonitorPlugin::fillWithEvtNum_
bool fillWithEvtNum_
Definition: SiStripCMMonitor.cc:90
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
TrackerTopology
Definition: TrackerTopology.h:16
SiStripCMMonitorPlugin::updateCabling
void updateCabling(const edm::EventSetup &eventSetup)
Definition: SiStripCMMonitor.cc:421
gather_cfg.cout
cout
Definition: gather_cfg.py:144
SiStripCMMonitorPlugin::printDebug_
unsigned int printDebug_
Definition: SiStripCMMonitor.cc:93
SiStripCMMonitorPlugin::fillAllDetailedHistograms_
bool fillAllDetailedHistograms_
Definition: SiStripCMMonitor.cc:88
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
SiStripFedCabling::fedConnection
FedChannelConnection fedConnection(uint16_t fed_id, uint16_t fed_ch) const
Definition: SiStripFedCabling.cc:171
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
SiStripCMMonitorPlugin::CommonModesAPV0minusAPV1_
std::map< unsigned int, Statistics > CommonModesAPV0minusAPV1_
Definition: SiStripCMMonitor.cc:104
edm::Handle
Definition: AssociativeIterator.h:50
SiStripCMMonitorPlugin::doTkHistoMap_
bool doTkHistoMap_
Definition: SiStripCMMonitor.cc:99
FEDRawData
Definition: FEDRawData.h:19
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
SiStripFedCablingRcd
Definition: SiStripCondDataRecords.h:22
SiStripCMMonitorPlugin::cabling_
const SiStripFedCabling * cabling_
Definition: SiStripCMMonitor.cc:96
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
edm::ESHandle< TrackerTopology >
sistrip::FEDChannel::cmMedian
uint16_t cmMedian(const uint8_t apvIndex) const
Definition: SiStripFEDBufferComponents.h:1567
TkDetMap
Definition: TkDetMap.h:175
SiStripCMMonitorPlugin::cmHists_
CMHistograms cmHists_
Definition: SiStripCMMonitor.cc:101
FEDRawDataCollection::FEDData
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Definition: FEDRawDataCollection.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition: FedChannelConnection.h:26
FedChannelConnection::isConnected
bool isConnected() const
Definition: FedChannelConnection.h:196
FEDNumbering::MAXSiStripFEDID
Definition: FEDNumbering.h:30
FedChannelConnection::detId
const uint32_t & detId() const
Definition: FedChannelConnection.h:212
SiStripCMMonitorPlugin::fillWithLocalEvtNum_
bool fillWithLocalEvtNum_
Definition: SiStripCMMonitor.cc:91
sistrip::FEDChannel::length
uint16_t length() const
Definition: SiStripFEDBufferComponents.h:1563
iEvent
int iEvent
Definition: GenABIO.cc:224
sistrip::FEDBufferStatusCode::SUCCESS
SiStripCMMonitorPlugin::rawDataToken_
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
Definition: SiStripCMMonitor.cc:82
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
get
#define get
sistrip::preconstructCheckFEDBuffer
FEDBufferStatusCode preconstructCheckFEDBuffer(const FEDRawData &fedBuffer, bool allowBadBuffer=false)
Definition: SiStripFEDBuffer.h:131
SiStripCMMonitorPlugin::fillMaps
void fillMaps(uint32_t aDetId, unsigned short aChInModule, std::pair< uint16_t, uint16_t > aMedians)
Definition: SiStripCMMonitor.cc:431
eostools.move
def move(src, dest)
Definition: eostools.py:511
SiStripCMMonitorPlugin::rawDataTag_
edm::InputTag rawDataTag_
Definition: SiStripCMMonitor.cc:81
SiStripCMMonitorPlugin::CommonModes_
std::map< unsigned int, Statistics > CommonModes_
Definition: SiStripCMMonitor.cc:103
Exception
Definition: hltDiff.cc:246
SiStripCMMonitorPlugin::evt_
edm::EventNumber_t evt_
Definition: SiStripCMMonitor.cc:108
sistrip::FEDCH_PER_FED
static const uint16_t FEDCH_PER_FED
Definition: ConstantsForHardwareSystems.h:30
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
sistrip::FEDChannel
Definition: SiStripFEDBufferComponents.h:616
edm::InputTag
Definition: InputTag.h:15
FEDNumbering::MINSiStripFEDID
Definition: FEDNumbering.h:29