CMS 3D CMS Logo

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

#include <SiStripCommissioningSource.h>

Inheritance diagram for SiStripCommissioningSource:
edm::EDAnalyzer edm::EDConsumerBase

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
typedef std::map< unsigned int, CommissioningTask * > TaskMap
 
typedef std::vector< CommissioningTask * > VecOfTasks
 
typedef std::vector< VecOfTasksVecOfVecOfTasks
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginRun (edm::Run const &, const edm::EventSetup &) override
 
void endJob () override
 
 SiStripCommissioningSource (const edm::ParameterSet &)
 
 SiStripCommissioningSource ()=delete
 
 ~SiStripCommissioningSource () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void clearCablingTasks ()
 
void clearTasks ()
 
void createCablingTasks ()
 
void createRunNumber ()
 
void createTask (const SiStripEventSummary *const, const edm::EventSetup &)
 
void createTasks (sistrip::RunType, const edm::EventSetup &)
 
void directory (std::stringstream &, uint32_t run_number=0)
 
DQMStore *const dqm (std::string method="") const
 
void fillCablingHistos (const SiStripEventSummary *const, const edm::DetSetVector< SiStripRawDigi > &)
 
void fillHistos (const SiStripEventSummary *const, const edm::DetSetVector< SiStripRawDigi > &, const edm::DetSetVector< SiStripRawDigi > &=edm::DetSetVector< SiStripRawDigi >(), const edmNew::DetSetVector< SiStripCluster > &=edmNew::DetSetVector< SiStripCluster >())
 
void remove ()
 

Private Attributes

std::string base_
 
bool cablingTask_
 
TaskMap cablingTasks_
 
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustersToken_
 
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiFineDelaySelectionToken_
 
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiReorderedToken_
 
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiScopeModeToken_
 
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiVirginRawToken_
 
DQMStoredqm_
 
SiStripFecCablingfecCabling_
 
SiStripFedCablingfedCabling_
 
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcdfedCablingToken_
 
std::string filename_
 
std::string inputClusterLabel_
 
std::string inputModuleLabel_
 
std::string inputModuleLabelAlt_
 
std::string inputModuleLabelSummary_
 
edm::EDGetTokenT< SiStripEventSummaryinputModuleSummaryToken_
 
bool isSpy_
 
edm::ESGetToken< SiStripNoises, SiStripNoisesRcdnoiseToken_
 
edm::ParameterSet parameters_
 
std::string partitionName_
 
edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcdpedestalToken_
 
uint32_t run_
 
sistrip::RunType task_
 
std::string taskConfigurable_
 
VecOfVecOfTasks tasks_
 
bool tasksExist_
 
int32_t time_
 
int updateFreq_
 
std::string view_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 34 of file SiStripCommissioningSource.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 40 of file SiStripCommissioningSource.h.

◆ MonitorElement

Definition at line 41 of file SiStripCommissioningSource.h.

◆ TaskMap

typedef std::map<unsigned int, CommissioningTask*> SiStripCommissioningSource::TaskMap

Map of task objects, identified through FedChanelId

Definition at line 37 of file SiStripCommissioningSource.h.

◆ VecOfTasks

Definition at line 38 of file SiStripCommissioningSource.h.

◆ VecOfVecOfTasks

Definition at line 39 of file SiStripCommissioningSource.h.

Constructor & Destructor Documentation

◆ SiStripCommissioningSource() [1/2]

SiStripCommissioningSource::SiStripCommissioningSource ( const edm::ParameterSet pset)

Definition at line 52 of file SiStripCommissioningSource.cc.

References sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, clustersToken_, digiFineDelaySelectionToken_, digiReorderedToken_, digiScopeModeToken_, digiVirginRawToken_, edm::EDConsumerBase::esConsumes(), inputClusterLabel_, inputModuleLabel_, inputModuleLabelAlt_, inputModuleLabelSummary_, inputModuleSummaryToken_, HLT_2022v12_cff::InputTag, isSpy_, LogTrace, sistrip::mlDqmSource_, sistrip::NOISE, noiseToken_, pedestalToken_, task_, and tasks_.

53  : dqm_(nullptr),
54  fedCablingToken_(esConsumes<edm::Transition::BeginRun>()),
55  fecCabling_(nullptr),
56  inputModuleLabel_(pset.getParameter<std::string>("InputModuleLabel")),
57  inputModuleLabelAlt_(pset.existsAs<std::string>("InputModuleLabelAlt")
58  ? pset.getParameter<std::string>("InputModuleLabelAlt")
59  : ""),
60  inputModuleLabelSummary_(pset.getParameter<std::string>("SummaryInputModuleLabel")),
62  pset.existsAs<std::string>("InputClusterLabel") ? pset.getParameter<std::string>("InputClusterLabel") : ""),
63  filename_(pset.getUntrackedParameter<std::string>("RootFileName", sistrip::dqmSourceFileName_)),
64  run_(0),
65  partitionName_(pset.existsAs<std::string>("PartitionName") ? pset.getParameter<std::string>("PartitionName")
66  : ""),
67  time_(0),
68  isSpy_(pset.existsAs<bool>("isSpy") ? pset.getParameter<bool>("isSpy") : false),
69  taskConfigurable_(pset.getUntrackedParameter<std::string>("CommissioningTask", "UNDEFINED")),
71  tasks_(),
72  cablingTasks_(),
73  tasksExist_(false),
74  cablingTask_(false),
75  updateFreq_(pset.getUntrackedParameter<int>("HistoUpdateFreq", 1)),
76  base_(""),
77  view_(pset.getUntrackedParameter<std::string>("View", "Default")),
78  parameters_(pset) {
79  inputModuleSummaryToken_ = consumes<SiStripEventSummary>(edm::InputTag(inputModuleLabelSummary_));
80  digiVirginRawToken_ = mayConsume<edm::DetSetVector<SiStripRawDigi> >(edm::InputTag(inputModuleLabel_, "VirginRaw"));
82  mayConsume<edm::DetSetVector<SiStripRawDigi> >(edm::InputTag(inputModuleLabel_, "FineDelaySelection"));
83  digiReorderedToken_ = mayConsume<edm::DetSetVector<SiStripRawDigi> >(edm::InputTag(inputModuleLabel_, "Reordered"));
85  if (not isSpy_)
86  digiScopeModeToken_ = mayConsume<edm::DetSetVector<SiStripRawDigi> >(edm::InputTag(inputModuleLabel_, "ScopeMode"));
87  else {
89  mayConsume<edm::DetSetVector<SiStripRawDigi> >(edm::InputTag(inputModuleLabelAlt_, "ScopeRawDigis"));
90  clustersToken_ = mayConsume<edmNew::DetSetVector<SiStripCluster> >(edm::InputTag(inputClusterLabel_));
91  }
93  LogTrace(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
94  << " Constructing object...";
95  tasks_.clear();
96  tasks_.resize(1024, VecOfTasks(96, static_cast<CommissioningTask*>(nullptr)));
97 
98  if (task_ == sistrip::NOISE) {
100  }
104  }
105 }
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiReorderedToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiVirginRawToken_
edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcd > pedestalToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustersToken_
static const char mlDqmSource_[]
#define LogTrace(id)
std::vector< CommissioningTask * > VecOfTasks
static const char dqmSourceFileName_[]
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiFineDelaySelectionToken_
edm::EDGetTokenT< SiStripEventSummary > inputModuleSummaryToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiScopeModeToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_

◆ SiStripCommissioningSource() [2/2]

SiStripCommissioningSource::SiStripCommissioningSource ( )
delete

Private default constructor.

◆ ~SiStripCommissioningSource()

SiStripCommissioningSource::~SiStripCommissioningSource ( )
override

Definition at line 109 of file SiStripCommissioningSource.cc.

References LogTrace, and sistrip::mlDqmSource_.

109  {
110  LogTrace(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
111  << " Destructing object...";
112 }
static const char mlDqmSource_[]
#define LogTrace(id)

Member Function Documentation

◆ analyze()

void SiStripCommissioningSource::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 288 of file SiStripCommissioningSource.cc.

References sistrip::APV_LATENCY, sistrip::APV_TIMING, cablingTask_, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, clustersToken_, createRunNumber(), createTask(), sistrip::DAQ_SCOPE_MODE, digiFineDelaySelectionToken_, digiReorderedToken_, digiScopeModeToken_, digiVirginRawToken_, sistrip::FAST_CABLING, sistrip::FED_CABLING, sistrip::FED_SCOPE_MODE, sistrip::FED_TIMING, sistrip::FED_VIRGIN_RAW, SiStripEnumsAndStrings::fedReadoutMode(), fillCablingHistos(), fillHistos(), sistrip::FINE_DELAY, inputClusterLabel_, inputModuleLabelAlt_, inputModuleSummaryToken_, isSpy_, edm::HandleBase::isValid(), sistrip::mlDqmSource_, sistrip::NOISE, sistrip::OPTO_SCAN, sistrip::PEDESTALS, sistrip::PEDS_FULL_NOISE, sistrip::PEDS_ONLY, run_, SiStripEnumsAndStrings::runType(), singleTopDQM_cfi::setup, contentValuesCheck::ss, edmLumisInFiles::summary, submitPVValidationJobs::t, task_, tasks_, tasksExist_, protons_cff::time, time_, sistrip::UNDEFINED_RUN_TYPE, sistrip::UNKNOWN_RUN_TYPE, updateFreq_, findQualityFiles::v, and sistrip::VPSP_SCAN.

288  {
289  // Retrieve commissioning information from "event summary"
291  // event.getByLabel( inputModuleLabelSummary_, summary );
292  event.getByToken(inputModuleSummaryToken_, summary);
293 
294  // Check if EventSummary has info attached
295  if ((summary->runType() == sistrip::UNDEFINED_RUN_TYPE || summary->runType() == sistrip::UNKNOWN_RUN_TYPE) &&
296  summary->nullParams()) {
297  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
298  << " Unknown/undefined RunType and NULL parameter values!"
299  << " It may be that the 'trigger FED' object was not found!";
300  }
301 
302  // Check if need to rebuild FED/FEC cabling objects for connection run
303  //cablingForConnectionRun( summary->runType() ); //@@ do not use!
304 
305  // Extract run number and forward to client
306  if (event.id().run() != run_) {
307  run_ = event.id().run();
308  createRunNumber();
309  }
310 
311  // Coarse event rate counter
312  if (!(event.id().event() % updateFreq_)) {
313  std::stringstream ss;
314  ss << "[SiStripCommissioningSource::" << __func__ << "]"
315  << " The last " << updateFreq_ << " events were processed at a rate of ";
316  if (time(nullptr) == time_) {
317  ss << ">" << updateFreq_ << " Hz";
318  } else {
319  ss << (updateFreq_ / (time(nullptr) - time_)) << " Hz";
320  }
321  edm::LogVerbatim(mlDqmSource_) << ss.str();
322  time_ = time(nullptr);
323  }
324 
325  // Create commissioning task objects
326  if (!tasksExist_) {
327  createTask(summary.product(), setup);
328  } else {
329  for (auto& v : tasks_) {
330  for (auto& t : v) {
331  t->eventSetup(&setup);
332  }
333  }
334  }
335 
336  // Retrieve raw digis with mode appropriate to task
340 
341  if (task_ == sistrip::DAQ_SCOPE_MODE) { // scop-mode runs
342  if (not isSpy_ and
343  summary->fedReadoutMode() == FED_VIRGIN_RAW) { // if the readout is virgin raw just take the VR digis
344  event.getByToken(digiVirginRawToken_, raw);
345  } else if (not isSpy_ and summary->fedReadoutMode() == FED_SCOPE_MODE) {
346  event.getByToken(digiScopeModeToken_, raw);
347  } else if (isSpy_) { // spy case take both re-ordered and scope mode
348  event.getByToken(digiScopeModeToken_, rawAlt);
349  event.getByToken(digiReorderedToken_, raw);
350  if (not inputClusterLabel_.empty())
351  event.getByToken(clustersToken_, cluster);
352  } else {
353  std::stringstream ss;
354  ss << "[SiStripCommissioningSource::" << __func__ << "]"
355  << " Requested DAQ_SCOPE_MODE but unknown FED"
356  << " readout mode retrieved from SiStripEventSummary: "
357  << SiStripEnumsAndStrings::fedReadoutMode(summary->fedReadoutMode());
358  edm::LogWarning(mlDqmSource_) << ss.str();
359  }
362  event.getByToken(digiScopeModeToken_, raw);
367  event.getByToken(digiVirginRawToken_, raw);
368  } else if (task_ == sistrip::APV_LATENCY || task_ == sistrip::FINE_DELAY) {
369  event.getByToken(digiFineDelaySelectionToken_, raw);
370  } else {
371  std::stringstream ss;
372  ss << "[SiStripCommissioningSource::" << __func__ << "]"
373  << " Unknown CommissioningTask: " << SiStripEnumsAndStrings::runType(task_)
374  << " Unable to establish FED readout mode and retrieve digi container!"
375  << " Check if SiStripEventSummary object is found/present in Event";
376  edm::LogWarning(mlDqmSource_) << ss.str();
377  return;
378  }
379 
380  // Check for NULL pointer to digi container
381  if (not raw.isValid()) {
382  std::stringstream ss;
383  ss << "[SiStripCommissioningSource::" << __func__ << "]" << std::endl
384  << " NULL pointer to DetSetVector!" << std::endl
385  << " Unable to fill histograms!";
386  edm::LogWarning(mlDqmSource_) << ss.str();
387  return;
388  }
389 
390  if (isSpy_ and not inputModuleLabelAlt_.empty() and not rawAlt.isValid()) {
391  std::stringstream ss;
392  ss << "[SiStripCommissioningSource::" << __func__ << "]" << std::endl
393  << " NULL pointer to DetSetVector!" << std::endl
394  << " Unable to fill histograms!";
395  edm::LogWarning(mlDqmSource_) << ss.str();
396  return;
397  }
398 
399  if (isSpy_ and not inputClusterLabel_.empty() and not cluster.isValid()) {
400  std::stringstream ss;
401  ss << "[SiStripCommissioningSource::" << __func__ << "]" << std::endl
402  << " NULL pointer to DetSetVector!" << std::endl
403  << " Unable to fill histograms!";
404  edm::LogWarning(mlDqmSource_) << ss.str();
405  return;
406  }
407 
408  if (!cablingTask_) {
409  fillHistos(summary.product(), *raw, *rawAlt, *cluster);
410  } else {
411  fillCablingHistos(summary.product(), *raw);
412  }
413 }
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiReorderedToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiVirginRawToken_
void createTask(const SiStripEventSummary *const, const edm::EventSetup &)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustersToken_
void fillHistos(const SiStripEventSummary *const, const edm::DetSetVector< SiStripRawDigi > &, const edm::DetSetVector< SiStripRawDigi > &=edm::DetSetVector< SiStripRawDigi >(), const edmNew::DetSetVector< SiStripCluster > &=edmNew::DetSetVector< SiStripCluster >())
static const char mlDqmSource_[]
static std::string runType(const sistrip::RunType &)
void fillCablingHistos(const SiStripEventSummary *const, const edm::DetSetVector< SiStripRawDigi > &)
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiFineDelaySelectionToken_
bool isValid() const
Definition: HandleBase.h:70
edm::EDGetTokenT< SiStripEventSummary > inputModuleSummaryToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiScopeModeToken_
Log< level::Warning, false > LogWarning
Definition: event.py:1
static std::string fedReadoutMode(const sistrip::FedReadoutMode &)

◆ beginRun()

void SiStripCommissioningSource::beginRun ( edm::Run const &  run,
const edm::EventSetup setup 
)
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 136 of file SiStripCommissioningSource.cc.

References base_, cablingTask_, clearCablingTasks(), clearTasks(), SiStripFecCabling::crates(), DeadROC_duringRun::dir, dqm(), dqm_, fecCabling_, fedCabling_, fedCablingToken_, SiStripFedCabling::fedIds(), LogDebug, LogTrace, sistrip::mlDqmSource_, Utilities::operator, singleTopDQM_cfi::setup, contentValuesCheck::ss, task_, tasksExist_, and sistrip::UNDEFINED_RUN_TYPE.

136  {
137  LogTrace(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
138  << " Configuring..." << std::endl;
139 
140  // ---------- DQM back-end interface ----------
141 
143  edm::LogInfo(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
144  << " DQMStore service: " << dqm_;
145  dqm(__func__);
146 
147  // ---------- Base directory ----------
148 
149  std::stringstream dir("");
150  base_ = dir.str();
151 
152  // ---------- FED and FEC cabling ----------
153 
154  const auto& fed_cabling = setup.getData(fedCablingToken_);
155  fedCabling_ = const_cast<SiStripFedCabling*>(&fed_cabling);
156  LogDebug(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
157  << "Initialized FED cabling. Number of FEDs is " << fedCabling_->fedIds().size();
158  fecCabling_ = new SiStripFecCabling(fed_cabling);
159  if (fecCabling_->crates().empty()) {
160  std::stringstream ss;
161  ss << "[SiStripCommissioningSource::" << __func__ << "]"
162  << " Empty std::vector returned by FEC cabling object!"
163  << " Check if database connection failed...";
164  edm::LogWarning(mlDqmSource_) << ss.str();
165  }
166 
167  // ---------- Reset ----------
168 
169  tasksExist_ = false;
171  cablingTask_ = false;
172 
173  remove();
174 
176  clearTasks();
177 }
static const char mlDqmSource_[]
#define LogTrace(id)
const std::vector< SiStripFecCrate > & crates() const
Log< level::Info, false > LogInfo
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
DQMStore *const dqm(std::string method="") const
Log< level::Warning, false > LogWarning
FedsConstIterRange fedIds() const
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
#define LogDebug(id)

◆ clearCablingTasks()

void SiStripCommissioningSource::clearCablingTasks ( )
private

Definition at line 1049 of file SiStripCommissioningSource.cc.

References cablingTasks_.

Referenced by beginRun().

1049  {
1050  if (cablingTasks_.empty()) {
1051  return;
1052  }
1053  for (TaskMap::iterator itask = cablingTasks_.begin(); itask != cablingTasks_.end(); itask++) {
1054  if (itask->second) {
1055  delete itask->second;
1056  }
1057  }
1058  cablingTasks_.clear();
1059 }

◆ clearTasks()

void SiStripCommissioningSource::clearTasks ( )
private

Definition at line 1063 of file SiStripCommissioningSource.cc.

References tasks_.

Referenced by beginRun().

1063  {
1064  if (tasks_.empty()) {
1065  return;
1066  }
1067  VecOfVecOfTasks::iterator ifed = tasks_.begin();
1068  for (; ifed != tasks_.end(); ifed++) {
1069  VecOfTasks::iterator ichan = ifed->begin();
1070  for (; ichan != ifed->end(); ichan++) {
1071  if (*ichan) {
1072  delete *ichan;
1073  *ichan = 0;
1074  }
1075  }
1076  ifed->resize(96, nullptr);
1077  }
1078  tasks_.resize(1024);
1079 }

◆ createCablingTasks()

void SiStripCommissioningSource::createCablingTasks ( )
private

Definition at line 776 of file SiStripCommissioningSource.cc.

References base_, cablingTasks_, getInfo::conn, SiStripFecCabling::crates(), TauDecayModes::dec, DeadROC_duringRun::dir, dqm(), fecCabling_, sistrip::FED_CABLING, crabWrapper::key, LogTrace, sistrip::mlDqmSource_, castor_dqm_sourceclient_file_cfg::path, SiStripEnumsAndStrings::runType(), dqm::implementation::DQMStore::setCurrentFolder(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, task_, sistrip::UNDEFINED_RUN_TYPE, and sistrip::UNKNOWN_RUN_TYPE.

Referenced by createTask().

776  {
777  // Iterate through FEC cabling and create commissioning task objects
778  uint16_t booked = 0;
779  for (std::vector<SiStripFecCrate>::const_iterator icrate = fecCabling_->crates().begin();
780  icrate != fecCabling_->crates().end();
781  icrate++) {
782  for (std::vector<SiStripFec>::const_iterator ifec = icrate->fecs().begin(); ifec != icrate->fecs().end(); ifec++) {
783  for (std::vector<SiStripRing>::const_iterator iring = ifec->rings().begin(); iring != ifec->rings().end();
784  iring++) {
785  for (std::vector<SiStripCcu>::const_iterator iccu = iring->ccus().begin(); iccu != iring->ccus().end();
786  iccu++) {
787  for (std::vector<SiStripModule>::const_iterator imodule = iccu->modules().begin();
788  imodule != iccu->modules().end();
789  imodule++) {
790  // Build FEC key
792  icrate->fecCrate(), ifec->fecSlot(), iring->fecRing(), iccu->ccuAddr(), imodule->ccuChan());
793 
794  // Check if FEC key is invalid
795  if (!path.isValid()) {
796  continue;
797  }
798 
799  // Set working directory prior to booking histograms
800  std::string dir = base_ + path.path();
802 
803  // Iterate through all APV pairs for this module
804  for (uint16_t ipair = 0; ipair < imodule->nApvPairs(); ipair++) {
805  // Retrieve active APV devices
806  SiStripModule::PairOfU16 apvs = imodule->activeApvPair(imodule->lldChannel(ipair));
807 
808  // Create connection object to hold all relevant info
809  FedChannelConnection conn(icrate->fecCrate(),
810  ifec->fecSlot(),
811  iring->fecRing(),
812  iccu->ccuAddr(),
813  imodule->ccuChan(),
814  apvs.first,
815  apvs.second,
816  imodule->dcuId(),
817  imodule->detId(),
818  imodule->nApvPairs());
819 
820  // Define key encoding control path
821  uint32_t key = SiStripFecKey(icrate->fecCrate(),
822  ifec->fecSlot(),
823  iring->fecRing(),
824  iccu->ccuAddr(),
825  imodule->ccuChan(),
826  imodule->lldChannel(ipair))
827  .key();
828 
829  // Check key is non zero
830  if (!key) {
831  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
832  << " Unexpected NULL value for FEC key!";
833  continue;
834  }
835 
836  // Create cabling task objects if not already existing
837  if (cablingTasks_.find(key) == cablingTasks_.end()) {
838  if (task_ == sistrip::FED_CABLING) {
840  } else if (task_ == sistrip::UNDEFINED_RUN_TYPE) {
841  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
842  << " Undefined CommissioningTask"
843  << " Unable to create FedCablingTask object!";
844  } else if (task_ == sistrip::UNKNOWN_RUN_TYPE) {
845  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
846  << " Unknown CommissioningTask"
847  << " Unable to create FedCablingTask object!";
848  } else {
850  << "[SiStripCommissioningSource::" << __func__ << "]"
851  << " Unexpected CommissioningTask: " << SiStripEnumsAndStrings::runType(task_)
852  << " Unable to create FedCablingTask object!";
853  }
854 
855  // Check if key is found and, if so, book histos and set update freq
856  if (cablingTasks_.find(key) != cablingTasks_.end()) {
857  if (cablingTasks_[key]) {
858  cablingTasks_[key]->bookHistograms();
859  cablingTasks_[key]->updateFreq(1); //@@ hardwired to update every event!!!
860  booked++;
861  std::stringstream ss;
862  ss << "[SiStripCommissioningSource::" << __func__ << "]"
863  << " Booking histograms for '" << cablingTasks_[key]->myName() << "' object with key 0x"
864  << std::hex << std::setfill('0') << std::setw(8) << key << std::dec << " in directory \"" << dir
865  << "\"";
866  LogTrace(mlDqmSource_) << ss.str();
867  } else {
868  std::stringstream ss;
869  ss << "[SiStripCommissioningSource::" << __func__ << "]"
870  << " NULL pointer to CommissioningTask for key 0x" << std::hex << std::setfill('0')
871  << std::setw(8) << key << std::dec << " in directory " << dir << " Unable to book histograms!";
872  edm::LogWarning(mlDqmSource_) << ss.str();
873  }
874  } else {
875  std::stringstream ss;
876  ss << "[SiStripCommissioningSource::" << __func__ << "]"
877  << " Unable to find CommissioningTask for key 0x" << std::hex << std::setfill('0') << std::setw(8)
878  << key << std::dec << " in directory " << dir << " Unable to book histograms!";
879  edm::LogWarning(mlDqmSource_) << ss.str();
880  }
881 
882  } else {
883  std::stringstream ss;
884  ss << "[SiStripCommissioningSource::" << __func__ << "]"
885  << " CommissioningTask object already exists for key 0x" << std::hex << std::setfill('0')
886  << std::setw(8) << key << std::dec << " in directory " << dir
887  << " Unable to create FedCablingTask object!";
888  edm::LogWarning(mlDqmSource_) << ss.str();
889  }
890 
891  } // loop through apv pairs
892  } // loop through modules
893  } // loop through ccus
894  } // loop through rings
895  } // loop through fecs
896  } // loop through crates
897 
898  edm::LogVerbatim(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
899  << " Created " << booked << " CommissioningTask objects and booked histograms";
900 }
Log< level::Info, true > LogVerbatim
void setCurrentFolder(std::string const &fullpath) override
Definition: DQMStore.h:646
static const char mlDqmSource_[]
#define LogTrace(id)
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
static std::string runType(const sistrip::RunType &)
Class containning control, module, detector and connection information, at the level of a FED channel...
const std::vector< SiStripFecCrate > & crates() const
DQMStore *const dqm(std::string method="") const
conn
Definition: getInfo.py:9
Log< level::Warning, false > LogWarning
std::pair< uint16_t, uint16_t > PairOfU16
Definition: SiStripModule.h:40

◆ createRunNumber()

void SiStripCommissioningSource::createRunNumber ( )
private

Definition at line 679 of file SiStripCommissioningSource.cc.

References base_, dqm::implementation::IBooker::bookString(), dqm(), sistrip::mlDqmSource_, sistrip::root_, writedatasetfile::run, run_, sistrip::runNumber_, sistrip::sep_, dqm::implementation::DQMStore::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

679  {
680  // Set commissioning task to default ("undefined") value
681  if (!run_) {
682  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
683  << " NULL run number!";
684  return;
685  }
686 
687  // Create MonitorElement that identifies run number
689  std::stringstream run;
690  run << run_;
692 }
static const char runNumber_[]
void setCurrentFolder(std::string const &fullpath) override
Definition: DQMStore.h:646
static const char mlDqmSource_[]
MonitorElement * bookString(TString const &name, TString const &value, FUNC onbooking=NOOP())
Definition: DQMStore.h:87
static const char sep_[]
DQMStore *const dqm(std::string method="") const
static const char root_[]
Log< level::Warning, false > LogWarning

◆ createTask()

void SiStripCommissioningSource::createTask ( const SiStripEventSummary * const  summary,
const edm::EventSetup setup 
)
private

Definition at line 696 of file SiStripCommissioningSource.cc.

References base_, dqm::implementation::IBooker::bookString(), cablingTask_, createCablingTasks(), createTasks(), dqm(), sistrip::FED_CABLING, LogTrace, sistrip::mlDqmSource_, sistrip::root_, SiStripEnumsAndStrings::runType(), sistrip::sep_, dqm::implementation::DQMStore::setCurrentFolder(), singleTopDQM_cfi::setup, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, edmLumisInFiles::summary, task_, taskConfigurable_, sistrip::taskId_, tasksExist_, sistrip::UNDEFINED_RUN_TYPE, and sistrip::UNKNOWN_RUN_TYPE.

Referenced by analyze().

696  {
697  // Set commissioning task to default ("undefined") value
699 
700  // Retrieve commissioning task from EventSummary
701  if (summary) {
702  task_ = summary->runType();
703  std::stringstream ss;
704  ss << "[SiStripCommissioningSource::" << __func__ << "]"
705  << " Identified CommissioningTask from EventSummary to be \"" << SiStripEnumsAndStrings::runType(task_) << "\"";
706  LogTrace(mlDqmSource_) << ss.str();
707  } else {
709  std::stringstream ss;
710  ss << "[SiStripCommissioningSource::" << __func__ << "]"
711  << " NULL pointer to SiStripEventSummary!"
712  << " Check SiStripEventSummary is found/present in Event";
713  edm::LogWarning(mlDqmSource_) << ss.str();
714  }
715 
716  // Override task with ParameterSet configurable (if defined)
718  if (configurable != sistrip::UNDEFINED_RUN_TYPE && configurable != sistrip::UNKNOWN_RUN_TYPE) {
719  std::stringstream ss;
720  ss << "[SiStripCommissioningSource::" << __func__ << "]"
721  << " Overriding CommissioningTask from EventSummary (\"" << SiStripEnumsAndStrings::runType(task_)
722  << "\") with value retrieved from .cfg file (\"" << SiStripEnumsAndStrings::runType(configurable) << "\")!";
723  LogTrace(mlDqmSource_) << ss.str();
724  task_ = configurable;
725  }
726 
727  // Create ME (std::string) that identifies commissioning task
730  dqm()->bookString(std::string(sistrip::taskId_) + sistrip::sep_ + task_str, task_str);
731 
732  // Check commissioning task is known / defined
734  std::stringstream ss;
735  ss << "[SiStripCommissioningSource::" << __func__ << "]"
736  << " Unexpected CommissioningTask found (" << static_cast<uint16_t>(task_) << ") \""
738  << " Unexpected value found in SiStripEventSummary and/or cfg file"
739  << " If SiStripEventSummary is not present in Event,"
740  << " check 'CommissioningTask' configurable in cfg file";
741  edm::LogWarning(mlDqmSource_) << ss.str();
742  return;
743  } else {
744  std::stringstream ss;
745  ss << "[SiStripCommissioningSource::" << __func__ << "]"
746  << " Identified CommissioningTask to be \"" << SiStripEnumsAndStrings::runType(task_) << "\"";
747  LogTrace(mlDqmSource_) << ss.str();
748  }
749 
750  // Check if commissioning task is FED cabling
751  if (task_ == sistrip::FED_CABLING) {
752  cablingTask_ = true;
753  } else {
754  cablingTask_ = false;
755  }
756 
757  std::stringstream ss;
758  ss << "[SiStripCommissioningSource::" << __func__ << "]"
759  << " CommissioningTask: " << SiStripEnumsAndStrings::runType(summary->runType());
760  LogTrace(mlDqmSource_) << ss.str();
761 
762  edm::LogVerbatim(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
763  << " Creating CommissioningTask objects and booking histograms...";
764  if (cablingTask_) {
766  } else {
768  }
769  edm::LogVerbatim(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
770  << " Finished booking histograms!";
771  tasksExist_ = true;
772 }
Log< level::Info, true > LogVerbatim
void setCurrentFolder(std::string const &fullpath) override
Definition: DQMStore.h:646
static const char mlDqmSource_[]
void createTasks(sistrip::RunType, const edm::EventSetup &)
#define LogTrace(id)
MonitorElement * bookString(TString const &name, TString const &value, FUNC onbooking=NOOP())
Definition: DQMStore.h:87
static std::string runType(const sistrip::RunType &)
static const char sep_[]
static const char taskId_[]
DQMStore *const dqm(std::string method="") const
static const char root_[]
Log< level::Warning, false > LogWarning

◆ createTasks()

void SiStripCommissioningSource::createTasks ( sistrip::RunType  run_type,
const edm::EventSetup setup 
)
private

Definition at line 904 of file SiStripCommissioningSource.cc.

References sistrip::APV_LATENCY, sistrip::APV_TIMING, base_, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, sistrip::DAQ_SCOPE_MODE, TauDecayModes::dec, sistrip::detectorView_, DeadROC_duringRun::dir, sistrip::dir_, dqm(), sistrip::FAST_CABLING, SiStripFedKey::feChan(), sistrip::FED_TIMING, fedCabling_, SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), SiStripFedKey::feUnit(), filename_, sistrip::FINE_DELAY, sistrip::invalid_, sistrip::mlDqmSource_, sistrip::NOISE, noiseToken_, sistrip::OPTO_SCAN, or, parameters_, sistrip::PEDESTALS, pedestalToken_, sistrip::PEDS_FULL_NOISE, sistrip::PEDS_ONLY, sistrip::root_, run_, dqm::implementation::DQMStore::setCurrentFolder(), singleTopDQM_cfi::setup, contentValuesCheck::ss, task_, tasks_, sistrip::UNDEFINED_RUN_TYPE, updateFreq_, view_, and sistrip::VPSP_SCAN.

Referenced by createTask().

904  {
905  uint16_t booked = 0;
906 
907  // latency has partition-level histos, so treat separately
908  if (task_ == sistrip::APV_LATENCY) {
909  for (uint16_t partition = 0; partition < 4; ++partition) {
910  // make a task for every partition; tracker-wide histo is shared
911  tasks_[0][partition] = new LatencyTask(
912  dqm(),
915  tasks_[0][partition]->eventSetup(&setup);
916  tasks_[0][partition]->bookHistograms();
917  tasks_[0][partition]->updateFreq(updateFreq_);
918  booked++;
919  }
920 
921  // fine-delay has 1 histo for the whole tracker, so treat separately
922  } else if (task_ == sistrip::FINE_DELAY) {
923  tasks_[0][0] = new FineDelayTask(dqm(), FedChannelConnection());
924  tasks_[0][0]->eventSetup(&setup);
925  tasks_[0][0]->bookHistograms();
926  tasks_[0][0]->updateFreq(updateFreq_);
927  booked++;
928 
929  } else { // now do any other task
930 
931  // Iterate through FED ids and channels
932  for (auto ifed = fedCabling_->fedIds().begin(); ifed != fedCabling_->fedIds().end(); ++ifed) {
933  // Iterate through connected FED channels
934  auto conns = fedCabling_->fedConnections(*ifed);
935  for (auto iconn = conns.begin(); iconn != conns.end(); ++iconn) {
936  // Create FEC key
937  SiStripFecKey fec_key(
938  iconn->fecCrate(), iconn->fecSlot(), iconn->fecRing(), iconn->ccuAddr(), iconn->ccuChan());
939  // Create FED key and check if non-zero
940  SiStripFedKey fed_key(
941  iconn->fedId(), SiStripFedKey::feUnit(iconn->fedCh()), SiStripFedKey::feChan(iconn->fedCh()));
942  if (!iconn->isConnected()) {
943  continue;
944  }
945 
946  // define the view in which to work and paths for histograms
947  // currently FecView (control view) and FedView (readout view)
948  // DetView (detector view) implementation has started
949  // Set working directory prior to booking histograms
950  std::stringstream dir;
951  dir << base_;
952  if (view_ == "Default") { // default
953  if (run_type == sistrip::FAST_CABLING) {
954  dir << fed_key.path(); // cabling in fed view
955  } else {
956  dir << fec_key.path(); // all other runs in control view
957  }
958  } else if (view_ == "FecView") {
959  dir << fec_key.path();
960  } else if (view_ == "FedView") {
961  dir << fed_key.path();
962  } else if (view_ == "DetView") {
963  // currently just by detid from the connection, which is empty...
965  } else {
966  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
967  << " Invalid view " << view_ << std::endl
968  << " Histograms will end up all in the top directory.";
969  } // end if view_ == ...
970  dqm()->setCurrentFolder(dir.str());
971 
972  // Create commissioning task objects
973  if (!tasks_[iconn->fedId()][iconn->fedCh()]) {
974  if (task_ == sistrip::FAST_CABLING) {
975  tasks_[iconn->fedId()][iconn->fedCh()] = new FastFedCablingTask(dqm(), *iconn);
976  } else if (task_ == sistrip::APV_TIMING) {
977  tasks_[iconn->fedId()][iconn->fedCh()] = new ApvTimingTask(dqm(), *iconn);
978  } else if (task_ == sistrip::FED_TIMING) {
979  tasks_[iconn->fedId()][iconn->fedCh()] = new FedTimingTask(dqm(), *iconn);
980  } else if (task_ == sistrip::OPTO_SCAN) {
981  tasks_[iconn->fedId()][iconn->fedCh()] = new OptoScanTask(dqm(), *iconn);
982  } else if (task_ == sistrip::VPSP_SCAN) {
983  tasks_[iconn->fedId()][iconn->fedCh()] = new VpspScanTask(dqm(), *iconn);
984  } else if (task_ == sistrip::PEDESTALS) {
985  tasks_[iconn->fedId()][iconn->fedCh()] = new PedestalsTask(dqm(), *iconn);
986  } else if (task_ == sistrip::PEDS_ONLY) {
987  tasks_[iconn->fedId()][iconn->fedCh()] = new PedsOnlyTask(dqm(), *iconn);
988  } else if (task_ == sistrip::NOISE) {
989  tasks_[iconn->fedId()][iconn->fedCh()] = new NoiseTask(dqm(), *iconn, pedestalToken_, noiseToken_);
990  } else if (task_ == sistrip::PEDS_FULL_NOISE) {
991  tasks_[iconn->fedId()][iconn->fedCh()] = new PedsFullNoiseTask(dqm(), *iconn, parameters_);
992  } else if (task_ == sistrip::DAQ_SCOPE_MODE) {
993  tasks_[iconn->fedId()][iconn->fedCh()] = new DaqScopeModeTask(dqm(), *iconn, parameters_);
995  tasks_[iconn->fedId()][iconn->fedCh()] =
996  new CalibrationScanTask(dqm(), *iconn, task_, filename_.c_str(), run_, setup.getData(pedestalToken_));
998  tasks_[iconn->fedId()][iconn->fedCh()] =
999  new CalibrationTask(dqm(), *iconn, task_, filename_.c_str(), run_, setup.getData(pedestalToken_));
1000  } else if (task_ == sistrip::UNDEFINED_RUN_TYPE) {
1001  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
1002  << " Undefined CommissioningTask"
1003  << " Unable to create CommissioningTask object!";
1004  } else {
1005  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
1006  << " Unknown CommissioningTask"
1007  << " Unable to create CommissioningTask object!";
1008  }
1009 
1010  // Check if fed_key is found and, if so, book histos and set update freq
1011  if (tasks_[iconn->fedId()][iconn->fedCh()]) {
1012  tasks_[iconn->fedId()][iconn->fedCh()]->eventSetup(&setup);
1013 
1016  tasks_[iconn->fedId()][iconn->fedCh()]->bookHistograms();
1017  else {
1019  static_cast<CalibrationScanTask*>(tasks_[iconn->fedId()][iconn->fedCh()])->setCurrentFolder(dir.str());
1021  static_cast<CalibrationTask*>(tasks_[iconn->fedId()][iconn->fedCh()])->setCurrentFolder(dir.str());
1022  }
1023  tasks_[iconn->fedId()][iconn->fedCh()]->updateFreq(updateFreq_);
1024  booked++;
1025  } else {
1026  std::stringstream ss;
1027  ss << "[SiStripCommissioningSource::" << __func__ << "]"
1028  << " NULL pointer to CommissioningTask for key 0x" << std::hex << std::setfill('0') << std::setw(8)
1029  << fed_key.key() << std::dec << " in directory " << dir.str() << " Unable to book histograms!";
1030  edm::LogWarning(mlDqmSource_) << ss.str();
1031  }
1032  } else {
1033  std::stringstream ss;
1034  ss << "[SiStripCommissioningSource::" << __func__ << "]"
1035  << " CommissioningTask object already exists for key 0x" << std::hex << std::setfill('0') << std::setw(8)
1036  << fed_key.key() << std::dec << " in directory " << dir.str()
1037  << " Unable to create CommissioningTask object!";
1038  edm::LogWarning(mlDqmSource_) << ss.str();
1039  }
1040  } // loop over fed channels
1041  } // loop over feds
1042  } // end other tasks
1043  edm::LogVerbatim(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
1044  << " Created " << booked << " CommissioningTask objects and booked histograms";
1045 }
Log< level::Info, true > LogVerbatim
const uint16_t & feChan() const
edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcd > pedestalToken_
static const char dir_[]
const uint16_t & feUnit() const
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
void setCurrentFolder(std::string const &fullpath) override
Definition: DQMStore.h:646
static const char mlDqmSource_[]
static const char detectorView_[]
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
Class containning control, module, detector and connection information, at the level of a FED channel...
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
static const uint16_t invalid_
Definition: Constants.h:16
DQMStore *const dqm(std::string method="") const
static const char root_[]
Log< level::Warning, false > LogWarning
FedsConstIterRange fedIds() const
ConnsConstIterRange fedConnections(uint16_t fed_id) const
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_

◆ directory()

void SiStripCommissioningSource::directory ( std::stringstream &  dir,
uint32_t  run_number = 0 
)
private

Definition at line 1089 of file SiStripCommissioningSource.cc.

References DeadROC_duringRun::dir, hcalSimParameters_cfi::he, contentValuesCheck::run_number, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

Referenced by endJob().

1089  {
1090  // Get details about host
1091  char hn[256];
1092  gethostname(hn, sizeof(hn));
1093  struct hostent* he;
1094  he = gethostbyname(hn);
1095 
1096  // Extract host name and ip
1097  std::string host_name;
1098  std::string host_ip;
1099  if (he) {
1100  host_name = std::string(he->h_name);
1101  host_ip = std::string(inet_ntoa(*(struct in_addr*)(he->h_addr)));
1102  } else {
1103  host_name = "unknown.cern.ch";
1104  host_ip = "255.255.255.255";
1105  }
1106 
1107  // Reformat IP address
1109  std::stringstream ip;
1110  //for ( uint16_t ii = 0; ii < 4; ++ii ) {
1111  while (pos != std::string::npos) {
1112  std::string::size_type tmp = host_ip.find('.', pos);
1113  if (tmp != std::string::npos) {
1114  ip << std::setw(3) << std::setfill('0') << host_ip.substr(pos, tmp - pos) << ".";
1115  pos = tmp + 1; // skip the delimiter "."
1116  } else {
1117  ip << std::setw(3) << std::setfill('0') << host_ip.substr(pos);
1118  pos = std::string::npos;
1119  }
1120  }
1121 
1122  // Get pid
1123  pid_t pid = getpid();
1124 
1125  // Construct string
1126  if (run_number) {
1127  dir << std::setw(8) << std::setfill('0') << run_number << "_";
1128  }
1129  dir << ip.str() << "_" << std::setw(5) << std::setfill('0') << pid;
1130 }
uint16_t size_type
tmp
align.sh
Definition: createJobs.py:716

◆ dqm()

SiStripCommissioningSource::DQMStore *const SiStripCommissioningSource::dqm ( std::string  method = "") const
private

Definition at line 116 of file SiStripCommissioningSource.cc.

References dqm_, AlcaSiPixelAliHarvester0T_cff::method, sistrip::mlDqmSource_, and contentValuesCheck::ss.

Referenced by beginRun(), createCablingTasks(), createRunNumber(), createTask(), createTasks(), and endJob().

116  {
117  if (!dqm_) {
118  std::stringstream ss;
119  if (!method.empty()) {
120  ss << "[SiStripCommissioningSource::" << method << "]" << std::endl;
121  } else {
122  ss << "[SiStripCommissioningSource]" << std::endl;
123  }
124  ss << " NULL pointer to DQMStore";
125  edm::LogWarning(mlDqmSource_) << ss.str();
126  return nullptr;
127  } else {
128  return dqm_;
129  }
130 }
static const char mlDqmSource_[]
Log< level::Warning, false > LogWarning

◆ endJob()

void SiStripCommissioningSource::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 181 of file SiStripCommissioningSource.cc.

References sistrip::APV_LATENCY, cablingTasks_, sistrip::DAQ_SCOPE_MODE, DeadROC_duringRun::dir, directory(), dqm(), fecCabling_, fedCabling_, SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), filename_, sistrip::FINE_DELAY, LogTrace, sistrip::mlDqmSource_, Skims_PA_cff::name, partitionName_, run_, dqm::implementation::DQMStore::save(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, task_, and tasks_.

181  {
182  LogTrace(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
183  << " Halting..." << std::endl;
184 
185  // ---------- Update histograms ----------
186  // Cabling task
187  for (TaskMap::iterator itask = cablingTasks_.begin(); itask != cablingTasks_.end(); itask++) {
188  if (itask->second) {
189  itask->second->updateHistograms();
190  }
191  }
192 
193  if (task_ == sistrip::APV_LATENCY) {
194  for (uint16_t partition = 0; partition < 4; ++partition) {
195  tasks_[0][partition]->updateHistograms();
196  }
197  } else if (task_ == sistrip::FINE_DELAY) {
198  tasks_[0][0]->updateHistograms();
199  } else {
200  // All tasks except cabling
201  uint16_t fed_id = 0;
202  uint16_t fed_ch = 0;
203  auto ifed = fedCabling_->fedIds().begin();
204  for (; ifed != fedCabling_->fedIds().end(); ifed++) {
205  auto conns = fedCabling_->fedConnections(*ifed);
206  for (auto iconn = conns.begin(); iconn != conns.end(); iconn++) {
207  if (!iconn->isConnected()) {
208  continue;
209  }
210  fed_id = iconn->fedId();
211  fed_ch = iconn->fedCh();
212  if (tasks_[fed_id][fed_ch]) {
213  tasks_[fed_id][fed_ch]->updateHistograms();
214  delete tasks_[fed_id][fed_ch];
215  }
216  }
217  }
218  }
219  // ---------- Save histos to root file ----------
220 
221  // Strip filename of ".root" extension
223  if (filename_.find(".root", 0) == std::string::npos) {
224  name = filename_;
225  } else {
226  name = filename_.substr(0, filename_.find(".root", 0));
227  }
228 
229  // Retrieve SCRATCH directory
230  std::string scratch = "SCRATCH"; //@@ remove trailing slash!!!
231  std::string dir = "";
232  if (std::getenv(scratch.c_str()) != nullptr) {
233  dir = std::getenv(scratch.c_str());
234  }
235 
236  // Add directory path
237  std::stringstream ss;
238  if (!dir.empty()) {
239  ss << dir << "/";
240  } else {
241  ss << "/tmp/";
242  }
243 
244  // Add filename with run number, host ip, pid and .root extension
245  ss << name << "_";
246  if (task_ == sistrip::DAQ_SCOPE_MODE and not partitionName_.empty()) // only for spy-runs
247  ss << partitionName_ << "_";
248 
249  directory(ss, run_);
250  ss << ".root";
251 
252  // Save file with appropriate filename (if run number is known)
253  if (!filename_.empty()) {
254  if (run_ != 0) {
255  dqm()->save(ss.str());
256  } else {
257  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
258  << " NULL value for RunNumber! No root file saved!";
259  }
260  } else {
261  edm::LogWarning(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
262  << " NULL value for filename! No root file saved!";
263  }
264 
265  LogTrace(mlDqmSource_) << "[SiStripCommissioningSource::" << __func__ << "]"
266  << " Saved all histograms to file \"" << ss.str() << "\"";
267 
268  // ---------- Delete histograms ----------
269  // Remove all MonitorElements in "SiStrip" dir and below
270  // remove();
271 
272  // Delete histogram objects
273  // clearCablingTasks();
274  // clearTasks();
275 
276  // ---------- Delete cabling ----------
277  if (fedCabling_) {
278  fedCabling_ = nullptr;
279  }
280  if (fecCabling_) {
281  delete fecCabling_;
282  fecCabling_ = nullptr;
283  }
284 }
static const char mlDqmSource_[]
#define LogTrace(id)
void directory(std::stringstream &, uint32_t run_number=0)
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
Definition: DQMStore.cc:784
DQMStore *const dqm(std::string method="") const
Log< level::Warning, false > LogWarning
FedsConstIterRange fedIds() const
ConnsConstIterRange fedConnections(uint16_t fed_id) const

◆ fillCablingHistos()

void SiStripCommissioningSource::fillCablingHistos ( const SiStripEventSummary * const  summary,
const edm::DetSetVector< SiStripRawDigi > &  raw 
)
private

Definition at line 417 of file SiStripCommissioningSource.cc.

References PDRates::average, cablingTasks_, sistrip::CCU_CHAN, ewkTauDQM_cfi::channels, TauDecayModes::dec, edm::DetSetVector< T >::end(), fecCabling_, fedCabling_, SiStripFedCabling::fedIds(), edm::DetSetVector< T >::find(), cuy::ii, sistrip::invalid_, findQualityFiles::jj, SiStripKey::key(), LogTrace, sistrip::mlDqmSource_, sistrip::mlTest_, SiStripFecCabling::module(), callgraph::module, submitPVValidationJobs::params, castor_dqm_sourceclient_file_cfg::path, contentValuesCheck::ss, edmLumisInFiles::summary, and createJobs::tmp.

Referenced by analyze().

418  {
419  // Create FEC key using DCU id and LLD channel from SiStripEventSummary
420  const SiStripModule& module = fecCabling_->module(summary->dcuId());
421  uint16_t lld_channel = (summary->deviceId() & 0x3) + 1;
422  SiStripFecKey key_object(module.key().fecCrate(),
423  module.key().fecSlot(),
424  module.key().fecRing(),
425  module.key().ccuAddr(),
426  module.key().ccuChan(),
427  lld_channel);
428  uint32_t fec_key = key_object.key();
429  std::stringstream sss;
430  sss << "[SiStripCommissioningSource::" << __func__ << "]"
431  << " Found DcuId 0x" << std::hex << std::setw(8) << std::setfill('0') << summary->dcuId() << std::dec
432  << " with Crate/FEC/Ring/CCU/Module/LLD: " << module.key().fecCrate() << "/" << module.key().fecSlot() << "/"
433  << module.key().fecRing() << "/" << module.key().ccuAddr() << "/" << module.key().ccuChan() << "/" << lld_channel;
434  edm::LogWarning(mlDqmSource_) << sss.str();
435 
436  //LogTrace(mlTest_) << "TEST : " << key_object;
437 
438  // Check on whether DCU id is found
439  if (key_object.isInvalid(sistrip::CCU_CHAN)) {
440  std::stringstream ss;
441  ss << "[SiStripCommissioningSource::" << __func__ << "]"
442  << " DcuId 0x" << std::hex << std::setw(8) << std::setfill('0') << summary->dcuId() << std::dec
443  << " in 'DAQ register' field not found in cabling map!"
444  << " (NULL values returned for FEC path)";
445  edm::LogWarning(mlDqmSource_) << ss.str();
446  return;
447  }
448 
449  // Iterate through FED ids
450  for (auto ifed = fedCabling_->fedIds().begin(); ifed != fedCabling_->fedIds().end(); ifed++) {
451  // Check if FedId is non-zero
452  if (*ifed == sistrip::invalid_) {
453  continue;
454  }
455 
456  // Container to hold median signal level for FED cabling task
457  std::map<uint16_t, float> medians;
458  medians.clear();
459  std::map<uint16_t, float> medians1;
460  medians1.clear();
461 
462  // Iterate through FED channels
463  for (uint16_t ichan = 0; ichan < 96; ichan++) {
464  // Retrieve digis for given FED key
465  uint32_t fed_key = ((*ifed & sistrip::invalid_) << 16) | (ichan & sistrip::invalid_);
466 
467  std::vector<edm::DetSet<SiStripRawDigi> >::const_iterator digis = raw.find(fed_key);
468  if (digis != raw.end()) {
469  if (digis->data.empty()) {
470  continue;
471  }
472 
473  Averages ave;
474  for (uint16_t idigi = 0; idigi < digis->data.size(); idigi++) {
475  ave.add(static_cast<uint32_t>(digis->data[idigi].adc()));
476  }
478  ave.calc(params);
479  medians[ichan] = params.median_; // Store median signal level
480  medians1[ichan] = digis->data[0].adc();
481  }
482 
483  } // fed channel loop
484 
485  // Calculate mean and spread on all (median) signal levels
486  Averages average;
487  std::map<uint16_t, float>::const_iterator ii = medians.begin();
488  for (; ii != medians.end(); ii++) {
489  average.add(ii->second);
490  }
492  average.calc(tmp);
493 
494  std::stringstream ss;
495  ss << "FED Averages:" << std::endl
496  << " nChans: " << medians.size() << std::endl
497  << " num/mean/median/rms/max/min: " << tmp.num_ << "/" << tmp.mean_ << "/" << tmp.median_ << "/" << tmp.rms_
498  << "/" << tmp.max_ << "/" << tmp.min_ << std::endl;
499  LogTrace(mlDqmSource_) << ss.str();
500 
501  // Calculate mean and spread on "filtered" data
502  Averages truncated;
503  std::map<uint16_t, float>::const_iterator jj = medians.begin();
504  for (; jj != medians.end(); jj++) {
505  if (jj->second < tmp.median_ + tmp.rms_) {
506  truncated.add(jj->second);
507  }
508  }
510  truncated.calc(params);
511 
512  std::stringstream ss1;
513  ss1 << "Truncated Averages:" << std::endl
514  << " nChans: " << medians.size() << std::endl
515  << " num/mean/median/rms/max/min: " << params.num_ << "/" << params.mean_ << "/" << params.median_ << "/"
516  << params.rms_ << "/" << params.max_ << "/" << params.min_ << std::endl;
517  LogTrace(mlDqmSource_) << ss1.str();
518 
519  // Identify channels with signal
520  std::stringstream ss2;
521  std::stringstream ss3;
522  std::map<uint16_t, float> channels;
523  std::map<uint16_t, float>::const_iterator ichan = medians.begin();
524  for (; ichan != medians.end(); ichan++) {
525  if (ichan->second > 200.) {
526  LogTrace(mlTest_) << "TEST FOUND SIGNAL HIGH: " << *ifed << " " << ichan->first << " " << ichan->second;
527  channels[ichan->first] = ichan->second;
528  }
529  ss2 //<< ichan->first << "/"
530  << ichan->second << " ";
531  ss3 //<< ichan->first << "/"
532  << medians1[ichan->first] << " ";
533  }
534 
535  ss2 << std::endl;
536  ss3 << std::endl;
537  LogTrace(mlTest_) << "DUMP for FED " << *ifed << ": " << ss2.str();
538  LogTrace(mlTest_) << "FIRST ADC VAL " << *ifed << ": " << ss3.str();
539 
540  // Fill cabling histograms
541  if (cablingTasks_.find(fec_key) != cablingTasks_.end()) {
542  if (!channels.empty()) {
543  cablingTasks_[fec_key]->fillHistograms(*summary, *ifed, channels);
544  SiStripFecKey path(fec_key);
545  std::stringstream ss;
546  ss << "[SiStripCommissioningSource::" << __func__ << "]"
547  << " Filled histogram for '" << cablingTasks_[fec_key]->myName() << "' object with FecKey: 0x" << std::hex
548  << std::setfill('0') << std::setw(8) << fec_key << std::dec
549  << " and Crate/FEC/ring/CCU/module/LLDchan: " << path.fecCrate() << "/" << path.fecSlot() << "/"
550  << path.fecRing() << "/" << path.ccuAddr() << "/" << path.ccuChan() << "/" << path.channel();
551  LogTrace(mlDqmSource_) << ss.str();
552  }
553  } else {
554  SiStripFecKey path(fec_key);
555  std::stringstream ss;
556  ss << "[SiStripCommissioningSource::" << __func__ << "]"
557  << " Unable to find CommissioningTask object with FecKey: 0x" << std::hex << std::setfill('0') << std::setw(8)
558  << fec_key << std::dec << " and Crate/FEC/ring/CCU/module/LLDchan: " << path.fecCrate() << "/"
559  << path.fecSlot() << "/" << path.fecRing() << "/" << path.ccuAddr() << "/" << path.ccuChan() << "/"
560  << path.channel();
561  edm::LogWarning(mlDqmSource_) << ss.str();
562  }
563 
564  } // fed id loop
565 }
Device and connection information at the level of a front-end module.
Definition: SiStripModule.h:24
iterator find(det_id_type id)
Definition: DetSetVector.h:264
const SiStripModule & module(const FedChannelConnection &conn) const
static const char mlDqmSource_[]
#define LogTrace(id)
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
const uint32_t & key() const
Definition: SiStripKey.h:120
static const char mlTest_[]
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:325
ii
Definition: cuy.py:589
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning
tmp
align.sh
Definition: createJobs.py:716
FedsConstIterRange fedIds() const

◆ fillHistos()

void SiStripCommissioningSource::fillHistos ( const SiStripEventSummary * const  summary,
const edm::DetSetVector< SiStripRawDigi > &  raw,
const edm::DetSetVector< SiStripRawDigi > &  rawAlt = edm::DetSetVector<SiStripRawDigi>(),
const edmNew::DetSetVector< SiStripCluster > &  clusters = edmNew::DetSetVector<SiStripCluster>() 
)
private

Definition at line 569 of file SiStripCommissioningSource.cc.

References sistrip::APV_LATENCY, bsc_activity_cfg::clusters, TauDecayModes::dec, edm::DetSetVector< T >::empty(), edm::DetSetVector< T >::end(), fedCabling_, SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), edm::DetSetVector< T >::find(), sistrip::FINE_DELAY, sistrip::invalid_, sistrip::mlDqmSource_, or, contentValuesCheck::ss, edmLumisInFiles::summary, task_, tasks_, and sistrip::valid_.

Referenced by analyze().

572  {
573  // Iterate through FED ids and channels
574  std::vector<uint16_t> stripOnClusters;
575  auto ifed = fedCabling_->fedIds().begin();
576  for (; ifed != fedCabling_->fedIds().end(); ifed++) {
577  // Iterate through connected FED channels
578  auto conns = fedCabling_->fedConnections(*ifed);
579  for (auto iconn = conns.begin(); iconn != conns.end(); iconn++) {
580  if (!(iconn->fedId()) || iconn->fedId() > sistrip::valid_) {
581  continue;
582  }
583  if (!iconn->isConnected()) {
584  continue;
585  }
586 
587  // Create FED key and check if non-zero
588  // note: the key is not computed using the same formula as in commissioning histograms.
589  // beware that changes here must match changes in raw2digi and in SiStripFineDelayHit
590  uint32_t fed_key = ((iconn->fedId() & sistrip::invalid_) << 16) | (iconn->fedCh() & sistrip::invalid_);
591  // Retrieve digis for given FED key and check if found
592  std::vector<edm::DetSet<SiStripRawDigi> >::const_iterator digis = raw.find(fed_key);
593 
594  // only for spy data-taking --> tick measurement
595  std::vector<edm::DetSet<SiStripRawDigi> >::const_iterator digisAlt;
596  if (not rawAlt.empty()) {
597  digisAlt = rawAlt.find(fed_key);
598  if (digisAlt == rawAlt.end())
599  continue;
600  }
601 
602  // find the strips belonging to the clusters connected to this APV pair
603  stripOnClusters.clear();
604  if (not clusters.empty()) {
605  for (edmNew::DetSetVector<SiStripCluster>::const_iterator DSViter = clusters.begin(); DSViter != clusters.end();
606  DSViter++) {
607  if (DSViter->id() != iconn->detId())
608  continue; // select clusters on this module
609  for (edmNew::DetSet<SiStripCluster>::const_iterator DSiter = DSViter->begin(); DSiter != DSViter->end();
610  DSiter++) { // loop on the clusters
611  if (DSiter->firstStrip() >= iconn->apvPairNumber() * 256 and
612  DSiter->firstStrip() < (1 + iconn->apvPairNumber()) * 256) { // found the right APV
613  for (size_t istrip = 0; istrip < DSiter->amplitudes().size(); istrip++) {
614  stripOnClusters.push_back(DSiter->firstStrip() + istrip - iconn->apvPairNumber() * 256);
615  }
616  }
617  }
618  }
619  }
620 
621  if (digis != raw.end()) {
622  // tasks involving tracking have partition-level histos, so treat separately
623  if (task_ == sistrip::APV_LATENCY) {
624  if (tasks_[0][iconn->fecCrate() - 1]) {
625  tasks_[0][iconn->fecCrate() - 1]->fillHistograms(*summary, *digis);
626  } else {
627  std::stringstream ss;
628  ss << "[SiStripCommissioningSource::" << __func__ << "]"
629  << " Unable to find CommissioningTask for FEC crate " << iconn->fecCrate()
630  << ". Unable to fill histograms!";
631  edm::LogWarning(mlDqmSource_) << ss.str();
632  }
633  } else if (task_ == sistrip::FINE_DELAY) {
634  if (tasks_[0][0]) {
635  tasks_[0][0]->fillHistograms(*summary, *digis);
636  } else {
637  std::stringstream ss;
638  ss << "[SiStripCommissioningSource::" << __func__ << "]"
639  << " Unable to find global CommissioningTask for FineDelay. Unable to fill histograms!";
640  edm::LogWarning(mlDqmSource_) << ss.str();
641  }
642  } else {
643  if (tasks_[iconn->fedId()][iconn->fedCh()]) {
644  if (not rawAlt.empty() or digisAlt == rawAlt.end())
645  tasks_[iconn->fedId()][iconn->fedCh()]->fillHistograms(*summary, *digis);
646  else { // for spy-data
647  if (stripOnClusters.empty())
648  tasks_[iconn->fedId()][iconn->fedCh()]->fillHistograms(*summary, *digis, *digisAlt);
649  else {
650  tasks_[iconn->fedId()][iconn->fedCh()]->fillHistograms(*summary, *digis, *digisAlt, stripOnClusters);
651  }
652  }
653  } else {
654  std::stringstream ss;
655  ss << "[SiStripCommissioningSource::" << __func__ << "]"
656  << " Unable to find CommissioningTask object with FED key " << std::hex << std::setfill('0')
657  << std::setw(8) << fed_key << std::dec << " and FED id/ch " << iconn->fedId() << "/" << iconn->fedCh()
658  << " Unable to fill histograms!";
659  edm::LogWarning(mlDqmSource_) << ss.str();
660  }
661  }
662  } else {
663  // issue a warning only for standard runs, as latency and fine delay only deliver
664  // pseudo zero-suppressed data
666  std::stringstream ss;
667  ss << "[SiStripCommissioningSource::" << __func__ << "]"
668  << " Unable to find any DetSet containing digis for FED key " << std::hex << std::setfill('0')
669  << std::setw(8) << fed_key << std::dec << " and FED id/ch " << iconn->fedId() << "/" << iconn->fedCh();
670  edm::LogWarning(mlDqmSource_) << ss.str();
671  }
672  }
673  } // fed channel loop
674  } // fed id loop
675 }
iterator find(det_id_type id)
Definition: DetSetVector.h:264
static const char mlDqmSource_[]
data_type const * const_iterator
Definition: DetSetNew.h:31
bool empty() const
Return true if we contain no DetSets.
Definition: DetSetVector.h:254
static const uint16_t valid_
Definition: Constants.h:17
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:325
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning
FedsConstIterRange fedIds() const
ConnsConstIterRange fedConnections(uint16_t fed_id) const

◆ remove()

void SiStripCommissioningSource::remove ( )
private

Definition at line 1083 of file SiStripCommissioningSource.cc.

1083  {
1084  // TODO: remove no longer supported in DQMStore.
1085 }

Member Data Documentation

◆ base_

std::string SiStripCommissioningSource::base_
private

◆ cablingTask_

bool SiStripCommissioningSource::cablingTask_
private

Flag to indicate whether task is FED cabling or not.

Definition at line 153 of file SiStripCommissioningSource.h.

Referenced by analyze(), beginRun(), and createTask().

◆ cablingTasks_

TaskMap SiStripCommissioningSource::cablingTasks_
private

Map of cabling task objects (indexed using FEC key).

Definition at line 147 of file SiStripCommissioningSource.h.

Referenced by clearCablingTasks(), createCablingTasks(), endJob(), and fillCablingHistos().

◆ clustersToken_

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > SiStripCommissioningSource::clustersToken_
private

Definition at line 112 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ digiFineDelaySelectionToken_

edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi> > SiStripCommissioningSource::digiFineDelaySelectionToken_
private

Definition at line 111 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ digiReorderedToken_

edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi> > SiStripCommissioningSource::digiReorderedToken_
private

Definition at line 109 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ digiScopeModeToken_

edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi> > SiStripCommissioningSource::digiScopeModeToken_
private

Definition at line 110 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ digiVirginRawToken_

edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi> > SiStripCommissioningSource::digiVirginRawToken_
private

Definition at line 108 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ dqm_

DQMStore* SiStripCommissioningSource::dqm_
private

Interface to Data Quality Monitoring framework.

Definition at line 97 of file SiStripCommissioningSource.h.

Referenced by beginRun(), and dqm().

◆ fecCabling_

SiStripFecCabling* SiStripCommissioningSource::fecCabling_
private

◆ fedCabling_

SiStripFedCabling* SiStripCommissioningSource::fedCabling_
private

◆ fedCablingToken_

edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> SiStripCommissioningSource::fedCablingToken_
private

Definition at line 100 of file SiStripCommissioningSource.h.

Referenced by beginRun().

◆ filename_

std::string SiStripCommissioningSource::filename_
private

Filename of output root file containing source histos.

Definition at line 121 of file SiStripCommissioningSource.h.

Referenced by createTasks(), and endJob().

◆ inputClusterLabel_

std::string SiStripCommissioningSource::inputClusterLabel_
private

Definition at line 118 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ inputModuleLabel_

std::string SiStripCommissioningSource::inputModuleLabel_
private

Name of digi input module.

Definition at line 115 of file SiStripCommissioningSource.h.

Referenced by SiStripCommissioningSource().

◆ inputModuleLabelAlt_

std::string SiStripCommissioningSource::inputModuleLabelAlt_
private

Definition at line 116 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ inputModuleLabelSummary_

std::string SiStripCommissioningSource::inputModuleLabelSummary_
private

Definition at line 117 of file SiStripCommissioningSource.h.

Referenced by SiStripCommissioningSource().

◆ inputModuleSummaryToken_

edm::EDGetTokenT<SiStripEventSummary> SiStripCommissioningSource::inputModuleSummaryToken_
private

Definition at line 107 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ isSpy_

bool SiStripCommissioningSource::isSpy_
private

Is this a spy run ?

Definition at line 133 of file SiStripCommissioningSource.h.

Referenced by analyze(), and SiStripCommissioningSource().

◆ noiseToken_

edm::ESGetToken<SiStripNoises, SiStripNoisesRcd> SiStripCommissioningSource::noiseToken_
private

Definition at line 168 of file SiStripCommissioningSource.h.

Referenced by createTasks(), and SiStripCommissioningSource().

◆ parameters_

edm::ParameterSet SiStripCommissioningSource::parameters_
private

◆ partitionName_

std::string SiStripCommissioningSource::partitionName_
private

Partition name used for root files in spy

Definition at line 127 of file SiStripCommissioningSource.h.

Referenced by endJob().

◆ pedestalToken_

edm::ESGetToken<SiStripPedestals, SiStripPedestalsRcd> SiStripCommissioningSource::pedestalToken_
private

Definition at line 167 of file SiStripCommissioningSource.h.

Referenced by createTasks(), and SiStripCommissioningSource().

◆ run_

uint32_t SiStripCommissioningSource::run_
private

Run number used for naming of root file.

Definition at line 124 of file SiStripCommissioningSource.h.

Referenced by analyze(), createRunNumber(), createTasks(), and endJob().

◆ task_

sistrip::RunType SiStripCommissioningSource::task_
private

Identifies commissioning task.

Definition at line 141 of file SiStripCommissioningSource.h.

Referenced by analyze(), beginRun(), createCablingTasks(), createTask(), createTasks(), endJob(), fillHistos(), and SiStripCommissioningSource().

◆ taskConfigurable_

std::string SiStripCommissioningSource::taskConfigurable_
private

Identifies commissioning task read from cfg file.

Definition at line 138 of file SiStripCommissioningSource.h.

Referenced by createTask().

◆ tasks_

VecOfVecOfTasks SiStripCommissioningSource::tasks_
private

Vector of vector of task objects (indexed using FED id.ch.

Definition at line 144 of file SiStripCommissioningSource.h.

Referenced by analyze(), clearTasks(), createTasks(), endJob(), fillHistos(), and SiStripCommissioningSource().

◆ tasksExist_

bool SiStripCommissioningSource::tasksExist_
private

Flag to indicate whether histo objects exist or not.

Definition at line 150 of file SiStripCommissioningSource.h.

Referenced by analyze(), beginRun(), and createTask().

◆ time_

int32_t SiStripCommissioningSource::time_
private

Record of time used to calculate event rate.

Definition at line 130 of file SiStripCommissioningSource.h.

Referenced by analyze().

◆ updateFreq_

int SiStripCommissioningSource::updateFreq_
private

Update frequency for histograms (ignored for cabling).

Definition at line 156 of file SiStripCommissioningSource.h.

Referenced by analyze(), and createTasks().

◆ view_

std::string SiStripCommissioningSource::view_
private

flag for choosing the organizational 'view' the DQM histogram tree

Definition at line 162 of file SiStripCommissioningSource.h.

Referenced by createTasks().