CMS 3D CMS Logo

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

#include <ApvTimingTask.h>

Inheritance diagram for ApvTimingTask:
CommissioningTask

Public Member Functions

 ApvTimingTask (DQMStore *, const FedChannelConnection &)
 
 ~ApvTimingTask () override
 
- Public Member Functions inherited from CommissioningTask
void bookHistograms ()
 
 CommissioningTask (DQMStore *, const FedChannelConnection &, const std::string &my_name)
 
void eventSetup (const edm::EventSetup *)
 
const uint32_t & fillCntr () const
 
void fillHistograms (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
 
void fillHistograms (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &)
 
void fillHistograms (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &, const std::vector< uint16_t > &)
 
void fillHistograms (const SiStripEventSummary &, const uint16_t &fed_id, const std::map< uint16_t, float > &fed_ch)
 
const std::string & myName () const
 
const uint32_t & updateFreq () const
 
void updateFreq (const uint32_t &)
 
void updateHistograms ()
 
virtual ~CommissioningTask ()
 

Private Member Functions

void book () override
 
void fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override
 
void update () override
 

Private Attributes

uint16_t nBins_
 
uint16_t nFineDelays_
 
uint16_t nSamples_
 
HistoSet timing_
 

Additional Inherited Members

- Public Types inherited from CommissioningTask
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Protected Member Functions inherited from CommissioningTask
const FedChannelConnectionconnection () const
 
DQMStore *const dqm () const
 
const edm::EventSetup *const eventSetup () const
 
const uint32_t & fecKey () const
 
const uint32_t & fedKey () const
 
void updateHistoSet (CompactHistoSet &)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin, const short &value)
 
void updateHistoSet (HistoSet &)
 
void updateHistoSet (HistoSet &, const float &value)
 
void updateHistoSet (HistoSet &, const uint32_t &bin)
 
void updateHistoSet (HistoSet &, const uint32_t &bin, const float &value)
 

Detailed Description

Definition at line 9 of file ApvTimingTask.h.

Constructor & Destructor Documentation

◆ ApvTimingTask()

ApvTimingTask::ApvTimingTask ( DQMStore dqm,
const FedChannelConnection conn 
)

Definition at line 11 of file ApvTimingTask.cc.

12  : CommissioningTask(dqm, conn, "ApvTimingTask"), timing_(), nSamples_(40), nFineDelays_(24), nBins_(40) {}

◆ ~ApvTimingTask()

ApvTimingTask::~ApvTimingTask ( )
override

Definition at line 16 of file ApvTimingTask.cc.

16 {}

Member Function Documentation

◆ book()

void ApvTimingTask::book ( )
overrideprivatevirtual

◆ fill()

void ApvTimingTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
overrideprivatevirtual

Reimplemented from CommissioningTask.

Definition at line 48 of file ApvTimingTask.cc.

48  {
49  if (digis.data.size() < nBins_) { //@@ check scope mode length?
50  edm::LogWarning(mlDqmSource_) << "[ApvTimingTask::" << __func__ << "]"
51  << " Unexpected number of digis! " << digis.data.size();
52  return;
53  }
54 
55  uint32_t pll_fine = summary.pllFine();
56  for (uint16_t coarse = 0; coarse < nBins_ /*digis.data.size()*/; coarse++) {
57  uint16_t fine = (coarse + 1) * 24 - (pll_fine + 1);
58  updateHistoSet(timing_, fine, digis.data[coarse].adc());
59  }
60 }

References edm::DetSet< T >::data, sistrip::mlDqmSource_, nBins_, edmLumisInFiles::summary, timing_, and CommissioningTask::updateHistoSet().

◆ update()

void ApvTimingTask::update ( )
overrideprivatevirtual

Member Data Documentation

◆ nBins_

uint16_t ApvTimingTask::nBins_
private

Definition at line 23 of file ApvTimingTask.h.

Referenced by book(), and fill().

◆ nFineDelays_

uint16_t ApvTimingTask::nFineDelays_
private

Definition at line 22 of file ApvTimingTask.h.

◆ nSamples_

uint16_t ApvTimingTask::nSamples_
private

Definition at line 21 of file ApvTimingTask.h.

◆ timing_

HistoSet ApvTimingTask::timing_
private

Definition at line 19 of file ApvTimingTask.h.

Referenced by book(), fill(), and update().

CommissioningTask::HistoSet::vSumOfSquares_
std::vector< double > vSumOfSquares_
Definition: CommissioningTask.h:46
ApvTimingTask::nFineDelays_
uint16_t nFineDelays_
Definition: ApvTimingTask.h:22
sistrip::mlDqmSource_
static const char mlDqmSource_[]
Definition: ConstantsForLogger.h:20
CommissioningTask::HistoSet::vSumOfContents_
std::vector< float > vSumOfContents_
Definition: CommissioningTask.h:45
sistrip::APV_TIMING
Definition: ConstantsForRunType.h:75
ApvTimingTask::timing_
HistoSet timing_
Definition: ApvTimingTask.h:19
CommissioningTask::connection
const FedChannelConnection & connection() const
Definition: CommissioningTask.h:189
ApvTimingTask::nBins_
uint16_t nBins_
Definition: ApvTimingTask.h:23
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
CommissioningTask::HistoSet::vNumOfEntries_
std::vector< float > vNumOfEntries_
Definition: CommissioningTask.h:44
CommissioningTask::fedKey
const uint32_t & fedKey() const
Definition: CommissioningTask.h:192
ApvTimingTask::nSamples_
uint16_t nSamples_
Definition: ApvTimingTask.h:21
sistrip::EXPERT_HISTO
Definition: ConstantsForHistoType.h:29
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
CommissioningTask::CommissioningTask
CommissioningTask()
Definition: CommissioningTask.h:143
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition: MessageLogger.h:141
CommissioningTask::HistoSet::histo
void histo(MonitorElement *)
Definition: CommissioningTask.cc:89
edmLumisInFiles.summary
summary
Definition: edmLumisInFiles.py:39
CommissioningTask::updateHistoSet
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: CommissioningTask.cc:274
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
CommissioningTask::dqm
DQMStore *const dqm() const
Definition: CommissioningTask.h:188
SiStripHistoTitle::title
const std::string & title() const
Definition: SiStripHistoTitle.h:109
edm::DetSet::data
collection_type data
Definition: DetSet.h:80
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
dqm
Definition: DQMStore.h:18
sistrip::FED_KEY
Definition: ConstantsForKeyType.h:30
sistrip::LLD_CHAN
Definition: ConstantsForGranularity.h:78