CMS 3D CMS Logo

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

#include <ApvTimingHistosUsingDb.h>

Inheritance diagram for ApvTimingHistosUsingDb:
CommissioningHistosUsingDb ApvTimingHistograms CommissioningHistograms CommissioningHistograms

Public Member Functions

 ApvTimingHistosUsingDb (const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const)
 
void uploadConfigurations () override
 
 ~ApvTimingHistosUsingDb () override
 
- Public Member Functions inherited from CommissioningHistosUsingDb
 CommissioningHistosUsingDb (SiStripConfigDb *const, sistrip::RunType=sistrip::UNDEFINED_RUN_TYPE)
 
void configure (const edm::ParameterSet &, const edm::EventSetup &) override
 
bool doUploadAnal () const
 
void doUploadAnal (bool)
 
bool doUploadConf () const
 
void doUploadConf (bool)
 
void uploadToConfigDb ()
 
 ~CommissioningHistosUsingDb () override
 
- Public Member Functions inherited from CommissioningHistograms
 CommissioningHistograms ()
 
 CommissioningHistograms (const edm::ParameterSet &pset, DQMStore *const, const sistrip::RunType &)
 
void createCollations (const std::vector< std::string > &)
 
virtual void createSummaryHisto (const sistrip::Monitorable &, const sistrip::Presentation &, const std::string &top_level_dir, const sistrip::Granularity &)
 
void extractHistograms (const std::vector< std::string > &)
 
virtual void printAnalyses ()
 
virtual void printSummary ()
 
void remove (std::string pattern="")
 
void save (std::string &filename, uint32_t run_number=0, std::string partitionName="")
 
virtual ~CommissioningHistograms ()
 
- Public Member Functions inherited from ApvTimingHistograms
 ApvTimingHistograms (const edm::ParameterSet &pset, DQMStore *)
 
void histoAnalysis (bool debug) override
 
 ~ApvTimingHistograms () override
 

Private Member Functions

void create (SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
 
bool update (SiStripConfigDb::DeviceDescriptionsRange)
 
void update (SiStripConfigDb::FedDescriptionsRange)
 

Private Attributes

bool allowSelectiveUpload_
 
bool skipFecUpdate_
 
bool skipFedUpdate_
 

Additional Inherited Members

- Public Types inherited from CommissioningHistograms
typedef std::map< uint32_t, CommissioningAnalysis * > Analyses
 
typedef Analyses::iterator Analysis
 
typedef dqm::harvesting::DQMStore DQMStore
 
typedef SummaryPlotFactory< CommissioningAnalysis * > Factory
 
typedef std::map< uint32_t, uint32_t > FedToFecMap
 
typedef std::vector< Histo * > Histos
 
typedef std::map< uint32_t, HistosHistosMap
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Static Public Member Functions inherited from CommissioningHistograms
static void copyCustomInformation (DQMStore *const, const std::vector< std::string > &)
 
static uint32_t runNumber (DQMStore *const, const std::vector< std::string > &)
 
static sistrip::RunType runType (DQMStore *const, const std::vector< std::string > &)
 
- Protected Member Functions inherited from CommissioningHistosUsingDb
virtual void addDcuDetIds ()
 
void buildDetInfo ()
 
SiStripFedCabling *const cabling () const
 
virtual void createAnalyses (SiStripConfigDb::AnalysisDescriptionsV &)
 
SiStripConfigDb *const db () const
 
std::pair< std::string, DetInfodetInfo (const SiStripFecKey &)
 
bool deviceIsPresent (const SiStripFecKey &)
 
void uploadAnalyses ()
 
- Protected Member Functions inherited from CommissioningHistograms
DQMStore *const bei () const
 
void clearHistosMap ()
 
Analysesdata (bool getMaskedData=false)
 
Factory *const factory ()
 
TH1 * histogram (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory, const uint32_t &xbins, const float &xlow=1. *sistrip::invalid_, const float &xhigh=1. *sistrip::invalid_)
 
const HistosMaphistos () const
 
const FedToFecMapmapping () const
 
void printHistosMap ()
 
const edm::ParameterSetpset () const
 
const sistrip::RunTypetask () const
 
- Protected Attributes inherited from CommissioningHistograms
std::unique_ptr< Factoryfactory_
 

Detailed Description

Definition at line 8 of file ApvTimingHistosUsingDb.h.

Constructor & Destructor Documentation

◆ ApvTimingHistosUsingDb()

ApvTimingHistosUsingDb::ApvTimingHistosUsingDb ( const edm::ParameterSet pset,
DQMStore bei,
SiStripConfigDb * const  db 
)

Definition at line 14 of file ApvTimingHistosUsingDb.cc.

17  ApvTimingHistograms(pset.getParameter<edm::ParameterSet>("ApvTimingParameters"), bei) {
18  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
19  << " Constructing object...";
20  skipFecUpdate_ = this->pset().getParameter<bool>("SkipFecUpdate");
21  skipFedUpdate_ = this->pset().getParameter<bool>("SkipFedUpdate");
22  if (skipFecUpdate_)
23  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
24  << " Skipping update of FEC parameters.";
25  if (skipFedUpdate_)
26  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
27  << " Skipping update of FED parameters.";
28 
30  this->pset().existsAs<bool>("doSelectiveUpload") ? this->pset().getParameter<bool>("doSelectiveUpload") : false;
32  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
33  << " Enabling selective update of FED parameters.";
34 }

References allowSelectiveUpload_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), LogTrace, sistrip::mlDqmClient_, CommissioningHistograms::pset(), skipFecUpdate_, and skipFedUpdate_.

◆ ~ApvTimingHistosUsingDb()

ApvTimingHistosUsingDb::~ApvTimingHistosUsingDb ( )
override

Definition at line 38 of file ApvTimingHistosUsingDb.cc.

38  {
39  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
40  << " Destructing object...";
41 }

References LogTrace, and sistrip::mlDqmClient_.

Member Function Documentation

◆ create()

void ApvTimingHistosUsingDb::create ( SiStripConfigDb::AnalysisDescriptionsV desc,
Analysis  analysis 
)
overrideprivatevirtual

Reimplemented from CommissioningHistosUsingDb.

Definition at line 317 of file ApvTimingHistosUsingDb.cc.

317  {
318  ApvTimingAnalysis* anal = dynamic_cast<ApvTimingAnalysis*>(analysis->second);
319  if (!anal) {
320  return;
321  }
322 
323  SiStripFecKey fec_key(anal->fecKey());
324  SiStripFedKey fed_key(anal->fedKey());
325 
326  for (uint16_t iapv = 0; iapv < 2; ++iapv) {
327  // std::stringstream ss;
328  // if ( anal->isValid() ) { ss << " TEST VALID "; }
329  // else { ss << " TEST INVALID "; }
330  // ss << std::hex << anal->fecKey() << std::dec << " "
331  // << anal->base() << " "
332  // << anal->peak() << " "
333  // << anal->height() << " "
334  // << ( anal->base() + anal->height() * ApvTimingAnalysis::frameFindingThreshold_ ) << " "
335  // << anal->frameFindingThreshold();
336  // edm::LogError("TEST") << ss.str();
337 
338  // Create description
339  TimingAnalysisDescription* tmp;
340  tmp = new TimingAnalysisDescription(anal->time(),
341  anal->refTime(),
342  anal->delay(),
343  anal->height(),
344  anal->base(),
345  anal->peak(),
346  anal->frameFindingThreshold(),
347  anal->optimumSamplingPoint(),
349  true, //@@ APV timing analysis (not FED timing)
350  fec_key.fecCrate(),
351  fec_key.fecSlot(),
352  fec_key.fecRing(),
353  fec_key.ccuAddr(),
354  fec_key.ccuChan(),
355  SiStripFecKey::i2cAddr(fec_key.lldChan(), !iapv),
356  db()->dbParams().partitions().begin()->second.partitionName(),
357  db()->dbParams().partitions().begin()->second.runNumber(),
358  anal->isValid(),
359  "",
360  fed_key.fedId(),
361  fed_key.feUnit(),
362  fed_key.feChan(),
363  fed_key.fedApv());
364 
365  // Add comments
366  typedef std::vector<std::string> Strings;
367  Strings errors = anal->getErrorCodes();
368  Strings::const_iterator istr = errors.begin();
369  Strings::const_iterator jstr = errors.end();
370  for (; istr != jstr; ++istr) {
371  tmp->addComments(*istr);
372  }
373 
374  // Store description
375  desc.push_back(tmp);
376  }
377 }

References conversion_template_cfg::anal, CommissioningHistosUsingDb::db(), SiStripConfigDb::dbParams(), SiStripFecKey::i2cAddr(), SiStripDbParams::partitions(), ApvTimingAnalysis::tickMarkHeightThreshold_, and createJobs::tmp.

◆ update() [1/2]

bool ApvTimingHistosUsingDb::update ( SiStripConfigDb::DeviceDescriptionsRange  devices)
private

Definition at line 110 of file ApvTimingHistosUsingDb.cc.

110  {
111  // Iterate through devices and update device descriptions
112  uint16_t updated = 0;
113  std::vector<SiStripFecKey> invalid;
114  SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
115 
116  for (idevice = devices.begin(); idevice != devices.end(); idevice++) {
117  // Check device type
118  if ((*idevice)->getDeviceType() != PLL) {
119  continue;
120  }
121 
122  // Cast to retrieve appropriate description object
123  pllDescription* desc = dynamic_cast<pllDescription*>(*idevice);
124  if (!desc) {
125  continue;
126  }
127 
128  // Retrieve device addresses from device description
130  SiStripFecKey fec_path;
131 
132  // PLL delay settings
133  uint32_t coarse = sistrip::invalid_;
134  uint32_t fine = sistrip::invalid_;
135 
136  // Iterate through LLD channels
137  for (uint16_t ichan = 0; ichan < sistrip::CHANS_PER_LLD; ichan++) {
138  // Construct key from device description
139  SiStripFecKey fec_key(addr.fecCrate_, addr.fecSlot_, addr.fecRing_, addr.ccuAddr_, addr.ccuChan_, ichan + 1);
140  fec_path = fec_key;
141 
142  // Locate appropriate analysis object
143  Analyses::const_iterator iter = data(allowSelectiveUpload_).find(fec_key.key());
144  if (iter != data(allowSelectiveUpload_).end()) {
145  ApvTimingAnalysis* anal = dynamic_cast<ApvTimingAnalysis*>(iter->second);
146  if (!anal) {
147  edm::LogError(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
148  << " NULL pointer to analysis object!";
149  continue;
150  }
151 
152  // Calculate coarse and fine delays
153  int32_t delay = static_cast<int32_t>(rint(anal->delay()) * 24. / 25);
154  // first set course delay
155  coarse = static_cast<uint16_t>(desc->getDelayCoarse() + (delay / 24)) +
156  (static_cast<uint16_t>(desc->getDelayFine()) + (delay % 24)) / 24;
157  delay = delay % 24; // only bother with fine delay now
158  if ((static_cast<uint16_t>(desc->getDelayFine()) + delay) % 24 < 0) {
159  coarse -= 1;
160  delay += 24;
161  }
162  fine = (static_cast<uint16_t>(desc->getDelayFine()) + delay) % 24;
163 
164  // Record PPLs maximum coarse setting
165  if (coarse > 15) {
166  invalid.push_back(fec_key);
167  }
168 
169  } else {
170  if (deviceIsPresent(fec_key)) {
171  edm::LogWarning(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
172  << " Unable to find FEC key with params crate/FEC/ring/CCU/module/LLD: "
173  << fec_key.fecCrate() << "/" << fec_key.fecSlot() << "/" << fec_key.fecRing()
174  << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << "/"
175  << fec_key.channel();
176  }
177  }
178 
179  // Exit LLD channel loop if coarse and fine delays are known
180  if (coarse != sistrip::invalid_ && fine != sistrip::invalid_) {
181  break;
182  }
183 
184  } // lld channel loop
185 
186  // Update PLL settings
187  if (coarse != sistrip::invalid_ && fine != sistrip::invalid_) {
188  std::stringstream ss;
189  if (edm::isDebugEnabled()) {
190  ss << "[ApvTimingHistosUsingDb::" << __func__ << "]"
191  << " Updating coarse/fine PLL settings"
192  << " for crate/FEC/ring/CCU/module " << fec_path.fecCrate() << "/" << fec_path.fecSlot() << "/"
193  << fec_path.fecRing() << "/" << fec_path.ccuAddr() << "/" << fec_path.ccuChan() << " from "
194  << static_cast<uint16_t>(desc->getDelayCoarse()) << "/" << static_cast<uint16_t>(desc->getDelayFine());
195  }
196  desc->setDelayCoarse(coarse);
197  desc->setDelayFine(fine);
198  updated++;
199  if (edm::isDebugEnabled()) {
200  ss << " to " << static_cast<uint16_t>(desc->getDelayCoarse()) << "/"
201  << static_cast<uint16_t>(desc->getDelayFine());
202  LogTrace(mlDqmClient_) << ss.str();
203  }
204 
205  } else {
206  edm::LogWarning(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
207  << " Invalid PLL delay settings course/fine = " << coarse << "/" << fine
208  << " for crate/FEC/ring/CCU/module " << fec_path.fecCrate() << "/"
209  << fec_path.fecSlot() << "/" << fec_path.fecRing() << "/" << fec_path.ccuAddr()
210  << "/" << fec_path.ccuChan();
211  }
212  }
213 
214  // Check if invalid settings were found
215  if (!invalid.empty()) {
216  std::stringstream ss;
217  ss << "[ApvTimingHistosUsingDb::" << __func__ << "]"
218  << " Found PLL coarse setting of >15"
219  << " (not allowed!) for " << invalid.size() << " channels";
220  ss << " (Example is crate/FEC/ring/CCU/module/LLD: " << invalid.front().fecCrate() << "/"
221  << invalid.front().fecSlot() << "/" << invalid.front().fecRing() << "/" << invalid.front().ccuAddr() << "/"
222  << invalid.front().ccuChan() << "/" << invalid.front().channel();
223  edm::LogWarning(mlDqmClient_) << ss.str();
224  return false;
225  }
226 
227  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
228  << " Updated PLL settings for " << updated << " modules";
229  return true;
230 }

References generateTowerEtThresholdLUT::addr, allowSelectiveUpload_, conversion_template_cfg::anal, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), SiStripKey::channel(), sistrip::CHANS_PER_LLD, CommissioningHistograms::data(), CommissioningHistosUsingDb::db(), phase2TrackerDigitizer_cfi::delay, SiStripConfigDb::deviceAddress(), CommissioningHistosUsingDb::deviceIsPresent(), SiStripFecKey::fecCrate(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), invalid, sistrip::invalid_, edm::isDebugEnabled(), SiStripKey::key(), LogTrace, sistrip::mlDqmClient_, and contentValuesCheck::ss.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), and uploadConfigurations().

◆ update() [2/2]

void ApvTimingHistosUsingDb::update ( SiStripConfigDb::FedDescriptionsRange  feds)
private

Definition at line 234 of file ApvTimingHistosUsingDb.cc.

234  {
235  // Retrieve FED ids from cabling
236  auto ids = cabling()->fedIds();
237 
238  // Iterate through feds and update fed descriptions
239  uint16_t updated = 0;
240  for (auto ifed = feds.begin(); ifed != feds.end(); ++ifed) {
241  // If FED id not found in list (from cabling), then continue
242  if (find(ids.begin(), ids.end(), (*ifed)->getFedId()) == ids.end()) {
243  continue;
244  }
245 
246  for (uint16_t ichan = 0; ichan < sistrip::FEDCH_PER_FED; ichan++) {
247  // Build FED and FEC keys
248  const FedChannelConnection& conn = cabling()->fedConnection((*ifed)->getFedId(), ichan);
249  if (conn.fecCrate() == sistrip::invalid_ || conn.fecSlot() == sistrip::invalid_ ||
250  conn.fecRing() == sistrip::invalid_ || conn.ccuAddr() == sistrip::invalid_ ||
251  conn.ccuChan() == sistrip::invalid_ || conn.lldChannel() == sistrip::invalid_) {
252  continue;
253  }
254  SiStripFedKey fed_key(conn.fedId(), SiStripFedKey::feUnit(conn.fedCh()), SiStripFedKey::feChan(conn.fedCh()));
255  SiStripFecKey fec_key(
256  conn.fecCrate(), conn.fecSlot(), conn.fecRing(), conn.ccuAddr(), conn.ccuChan(), conn.lldChannel());
257 
258  // Locate appropriate analysis object
259  Analyses::const_iterator iter = data(allowSelectiveUpload_).find(fec_key.key());
260  if (iter != data(allowSelectiveUpload_).end()) {
261  ApvTimingAnalysis* anal = dynamic_cast<ApvTimingAnalysis*>(iter->second);
262  if (!anal) {
263  edm::LogError(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
264  << " NULL pointer to analysis object!";
265  continue;
266  }
267 
268  // Update frame finding threshold
269  Fed9U::Fed9UAddress addr(ichan);
270  uint16_t old_threshold = static_cast<uint16_t>((*ifed)->getFrameThreshold(addr));
271  if (anal->isValid()) {
272  (*ifed)->setFrameThreshold(addr, anal->frameFindingThreshold());
273  updated++;
274  }
275  uint16_t new_threshold = static_cast<uint16_t>((*ifed)->getFrameThreshold(addr));
276 
277  // Debug
278  std::stringstream ss;
279  ss << "[ApvTimingHistosUsingDb::" << __func__ << "]";
280  if (anal->isValid()) {
281  ss << " Updating the frame-finding threshold"
282  << " from " << old_threshold << " to " << new_threshold << " using tick mark base/peak/height "
283  << anal->base() << "/" << anal->peak() << "/" << anal->height();
284  } else {
285  ss << " Cannot update the frame-finding threshold"
286  << " from " << old_threshold << " to a new value using invalid analysis ";
287  }
288  ss << " for crate/FEC/ring/CCU/module/LLD " << fec_key.fecCrate() << "/" << fec_key.fecSlot() << "/"
289  << fec_key.fecRing() << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << fec_key.channel()
290  << " and FED id/ch " << fed_key.fedId() << "/" << fed_key.fedChannel();
291  anal->print(ss);
292  //LogTrace(mlDqmClient_) << ss.str();
293 
294  } else {
295  if (deviceIsPresent(fec_key)) {
296  std::stringstream ss;
297  ss << "[ApvTimingHistosUsingDb::" << __func__ << "]"
298  << " Unable to find analysis object and update ticker thresholds"
299  << " for key/crate/FEC/ring/CCU/module/LLD " << std::hex << std::setw(8) << std::setfill('0')
300  << fec_key.key() << std::dec << fec_key.fecCrate() << "/" << fec_key.fecSlot() << "/" << fec_key.fecRing()
301  << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << "/" << fec_key.channel()
302  << " and FED key/id/ch " << std::hex << std::setw(8) << std::setfill('0') << fed_key.key() << std::dec
303  << fed_key.fedId() << "/" << fed_key.fedChannel();
304  edm::LogWarning(mlDqmClient_) << ss.str();
305  }
306  }
307  }
308  }
309 
310  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
311  << " Updated ticker thresholds for " << updated << " channels on " << ids.size()
312  << " FEDs!";
313 }

References generateTowerEtThresholdLUT::addr, allowSelectiveUpload_, conversion_template_cfg::anal, CommissioningHistosUsingDb::cabling(), SiStripCommissioningClient_cfg::conn, CommissioningHistograms::data(), TauDecayModes::dec, CommissioningHistosUsingDb::deviceIsPresent(), SiStripFedKey::feChan(), sistrip::FEDCH_PER_FED, SiStripFedKey::fedChannel(), SiStripFedCabling::fedConnection(), SiStripFedKey::fedId(), SiStripFedCabling::fedIds(), l1tstage2emulator_dqm_sourceclient-live_cfg::feds, SiStripFedKey::feUnit(), spr::find(), sistrip::invalid_, SiStripKey::key(), sistrip::mlDqmClient_, and contentValuesCheck::ss.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ uploadConfigurations()

void ApvTimingHistosUsingDb::uploadConfigurations ( )
overridevirtual

Reimplemented from CommissioningHistosUsingDb.

Definition at line 45 of file ApvTimingHistosUsingDb.cc.

45  {
46  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]";
47 
48  if (!db()) {
49  edm::LogError(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
50  << " NULL pointer to SiStripConfigDb interface!"
51  << " Aborting upload...";
52  return;
53  }
54 
55  if (!skipFecUpdate_) {
56  // Retrieve and update PLL device descriptions
58  bool upload = update(devices);
59 
60  // Check if new PLL settings are valid
61  if (!upload) {
62  edm::LogError(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
63  << " Found invalid PLL settings (coarse > 15)"
64  << " Aborting update to database...";
65  return;
66  }
67 
68  // Upload PLL device descriptions
69  if (doUploadConf()) {
70  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
71  << " Uploading PLL settings to DB...";
73  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
74  << " Upload of PLL settings to DB finished!";
75  } else {
76  edm::LogWarning(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
77  << " TEST only! No PLL settings will be uploaded to DB...";
78  }
79 
80  } else {
81  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
82  << " No upload of PLL settings to DB, as defined by .cfg file!";
83  }
84 
85  if (!skipFedUpdate_) {
86  // Update FED descriptions with new ticker thresholds
88  update(feds);
89 
90  // Update FED descriptions with new ticker thresholds
91  if (doUploadConf()) {
92  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
93  << " Uploading FED ticker thresholds to DB...";
95  edm::LogVerbatim(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
96  << " Upload of FED ticker thresholds to DB finished!";
97  } else {
98  edm::LogWarning(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
99  << " TEST only! No FED ticker thresholds will be uploaded to DB...";
100  }
101 
102  } else {
103  LogTrace(mlDqmClient_) << "[ApvTimingHistosUsingDb::" << __func__ << "]"
104  << " No Upload of FED ticker thresholds to DB, as defined by .cfg file!";
105  }
106 }

References CommissioningHistosUsingDb::db(), CommissioningHistosUsingDb::doUploadConf(), l1tstage2emulator_dqm_sourceclient-live_cfg::feds, SiStripConfigDb::getDeviceDescriptions(), SiStripConfigDb::getFedDescriptions(), LogTrace, sistrip::mlDqmClient_, skipFecUpdate_, skipFedUpdate_, update(), alcaDQMUpload::upload(), SiStripConfigDb::uploadDeviceDescriptions(), and SiStripConfigDb::uploadFedDescriptions().

Member Data Documentation

◆ allowSelectiveUpload_

bool ApvTimingHistosUsingDb::allowSelectiveUpload_
private

Definition at line 28 of file ApvTimingHistosUsingDb.h.

Referenced by ApvTimingHistosUsingDb(), and update().

◆ skipFecUpdate_

bool ApvTimingHistosUsingDb::skipFecUpdate_
private

Definition at line 24 of file ApvTimingHistosUsingDb.h.

Referenced by ApvTimingHistosUsingDb(), and uploadConfigurations().

◆ skipFedUpdate_

bool ApvTimingHistosUsingDb::skipFedUpdate_
private

Definition at line 26 of file ApvTimingHistosUsingDb.h.

Referenced by ApvTimingHistosUsingDb(), and uploadConfigurations().

SiStripConfigDb::getDeviceDescriptions
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
Definition: DeviceDescriptions.cc:11
l1tstage2emulator_dqm_sourceclient-live_cfg.feds
feds
Definition: l1tstage2emulator_dqm_sourceclient-live_cfg.py:146
SiStripConfigDb::DeviceDescriptionsRange
DeviceDescriptions::range DeviceDescriptionsRange
Definition: SiStripConfigDb.h:110
sistrip::APV_TIMING
Definition: ConstantsForRunType.h:75
CommissioningHistograms::pset
const edm::ParameterSet & pset() const
Definition: CommissioningHistograms.h:163
CommissioningHistograms::bei
DQMStore *const bei() const
Definition: CommissioningHistograms.h:159
SiStripConfigDb::dbParams
const SiStripDbParams & dbParams() const
Definition: SiStripConfigDb.h:421
SiStripConfigDb::deviceAddress
DeviceAddress deviceAddress(const deviceDescription &)
Definition: DeviceDescriptions.cc:503
SiStripConfigDb::getFedDescriptions
FedDescriptionsRange getFedDescriptions(std::string partition="")
Definition: FedDescriptions.cc:12
SiStripConfigDb::uploadFedDescriptions
void uploadFedDescriptions(std::string partition="")
Definition: FedDescriptions.cc:197
CommissioningHistosUsingDb::cabling
SiStripFedCabling *const cabling() const
Definition: CommissioningHistosUsingDb.h:94
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
ApvTimingHistosUsingDb::skipFedUpdate_
bool skipFedUpdate_
Definition: ApvTimingHistosUsingDb.h:26
SiStripFedCabling::fedConnection
FedChannelConnection fedConnection(uint16_t fed_id, uint16_t fed_ch) const
Definition: SiStripFedCabling.cc:171
SiStripFecKey::fecCrate
const uint16_t & fecCrate() const
Definition: SiStripFecKey.h:198
edm::ParameterSet::existsAs
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:160
SiStripFedKey
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
CTPPSpixelLocalTrackReconstructionInfo::invalid
CommissioningHistograms::data
Analyses & data(bool getMaskedData=false)
Definition: CommissioningHistograms.cc:718
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
Strings
std::vector< std::string > Strings
Definition: MsgTools.h:18
ApvTimingAnalysis::tickMarkHeightThreshold_
static const float tickMarkHeightThreshold_
Definition: ApvTimingAnalysis.h:82
sistrip::mlDqmClient_
static const char mlDqmClient_[]
Definition: ConstantsForLogger.h:19
ApvTimingHistosUsingDb::update
bool update(SiStripConfigDb::DeviceDescriptionsRange)
Definition: ApvTimingHistosUsingDb.cc:110
CommissioningHistograms::CommissioningHistograms
CommissioningHistograms()
Definition: CommissioningHistograms.cc:60
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
CommissioningHistosUsingDb::CommissioningHistosUsingDb
CommissioningHistosUsingDb()
Definition: CommissioningHistosUsingDb.cc:34
SiStripConfigDb::FedDescriptionsRange
FedDescriptions::range FedDescriptionsRange
Definition: SiStripConfigDb.h:116
generateTowerEtThresholdLUT.addr
addr
Definition: generateTowerEtThresholdLUT.py:57
errors
Definition: errors.py:1
SiStripFecKey::fecRing
const uint16_t & fecRing() const
Definition: SiStripFecKey.h:200
ApvTimingHistosUsingDb::allowSelectiveUpload_
bool allowSelectiveUpload_
Definition: ApvTimingHistosUsingDb.h:28
SiStripFecKey
Utility class that identifies a position within the strip tracker control structure,...
Definition: SiStripFecKey.h:45
SiStripConfigDb::uploadDeviceDescriptions
void uploadDeviceDescriptions(std::string partition="")
Definition: DeviceDescriptions.cc:264
SiStripFecKey::ccuChan
const uint16_t & ccuChan() const
Definition: SiStripFecKey.h:202
edm::LogWarning
Definition: MessageLogger.h:141
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition: FedChannelConnection.h:26
sistrip::CHANS_PER_LLD
static const uint16_t CHANS_PER_LLD
Definition: ConstantsForHardwareSystems.h:39
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
ApvTimingAnalysis
Analysis for timing run using APV tick marks.
Definition: ApvTimingAnalysis.h:15
SiStripDbParams::partitions
const_iterator_range partitions() const
Definition: SiStripDbParams.h:178
SiStripFedKey::feUnit
const uint16_t & feUnit() const
Definition: SiStripFedKey.h:189
edm::LogVerbatim
Definition: MessageLogger.h:297
CommissioningHistosUsingDb::doUploadConf
bool doUploadConf() const
Definition: CommissioningHistosUsingDb.h:91
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
ApvTimingHistograms::ApvTimingHistograms
ApvTimingHistograms(const edm::ParameterSet &pset, DQMStore *)
Definition: ApvTimingHistograms.cc:18
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiStripFecKey::i2cAddr
const uint16_t & i2cAddr() const
Definition: SiStripFecKey.h:204
SiStripFecKey::ccuAddr
const uint16_t & ccuAddr() const
Definition: SiStripFecKey.h:201
ApvTimingHistosUsingDb::skipFecUpdate_
bool skipFecUpdate_
Definition: ApvTimingHistosUsingDb.h:24
sistrip::FEDCH_PER_FED
static const uint16_t FEDCH_PER_FED
Definition: ConstantsForHardwareSystems.h:30
CommissioningHistosUsingDb::db
SiStripConfigDb *const db() const
Definition: CommissioningHistosUsingDb.h:93
SiStripFedCabling::fedIds
FedsConstIterRange fedIds() const
Definition: SiStripFedCabling.h:154
alcaDQMUpload.upload
def upload(url, args, files)
Definition: alcaDQMUpload.py:65
edm::isDebugEnabled
bool isDebugEnabled()
Definition: MessageLogger.cc:71
phase2TrackerDigitizer_cfi.delay
delay
Definition: phase2TrackerDigitizer_cfi.py:67
SiStripConfigDb::DeviceAddress
Definition: SiStripConfigDb.h:141
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
CommissioningHistosUsingDb::deviceIsPresent
bool deviceIsPresent(const SiStripFecKey &)
Definition: CommissioningHistosUsingDb.cc:369
conversion_template_cfg.anal
anal
Definition: conversion_template_cfg.py:16
SiStripFecKey::fecSlot
const uint16_t & fecSlot() const
Definition: SiStripFecKey.h:199
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
SiStripFedKey::feChan
const uint16_t & feChan() const
Definition: SiStripFedKey.h:190