CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
ecaldqm::RawDataClient Class Reference

#include <RawDataClient.h>

Inheritance diagram for ecaldqm::RawDataClient:
ecaldqm::DQWorkerClient ecaldqm::DQWorker

Public Types

enum  MESets { kQualitySummary, nMESets }
 
enum  Sources { sL1ADCC, sFEStatus, nSources }
 
- Public Types inherited from ecaldqm::DQWorkerClient
enum  Sources { nSources }
 
- Public Types inherited from ecaldqm::DQWorker
enum  MESets { nMESets }
 

Public Member Functions

void bookMEs () override
 
void producePlots () override
 
 RawDataClient (const edm::ParameterSet &, const edm::ParameterSet &)
 
 ~RawDataClient ()
 
- Public Member Functions inherited from ecaldqm::DQWorkerClient
 DQWorkerClient (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void initialize ()
 
void reset ()
 
virtual ~DQWorkerClient ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
 DQWorker (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
const std::vector< MESet * > & getMEs ()
 
virtual std::string const & getName ()
 
virtual bool isInitialized ()
 
virtual void setInitialized (bool _init)
 
virtual void setVerbosity (int _verbosity)
 
virtual ~DQWorker ()
 

Static Public Member Functions

static void setMEData (std::vector< MEData > &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void setMEData (std::vector< MEData > &)
 

Private Attributes

int synchErrorThreshold_
 

Additional Inherited Members

- Static Public Attributes inherited from ecaldqm::DQWorkerClient
static EcalDQMChannelStatus const * channelStatus
 
static EcalDQMTowerStatus const * towerStatus
 
- Static Public Attributes inherited from ecaldqm::DQWorker
static std::map< std::string,
std::vector< MEData > > 
meData
 
- Protected Member Functions inherited from ecaldqm::DQWorkerClient
void fillQuality_ (unsigned, DetId const &, uint32_t, float)
 
void source_ (unsigned, std::string const &, unsigned, edm::ParameterSet const &)
 
- Protected Member Functions inherited from ecaldqm::DQWorker
MESetcreateMESet_ (std::string const &, MEData const &, bool _readOnly=false) const
 
void meSet_ (unsigned, edm::ParameterSet const &)
 
- Protected Attributes inherited from ecaldqm::DQWorkerClient
std::vector< MESet const * > sources_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool initialized_
 
std::vector< MESet * > MEs_
 
std::string name_
 
int verbosity_
 

Detailed Description

Definition at line 8 of file RawDataClient.h.

Member Enumeration Documentation

Enumerator
kQualitySummary 
nMESets 

Definition at line 17 of file RawDataClient.h.

Enumerator
sL1ADCC 
sFEStatus 
nSources 

Definition at line 24 of file RawDataClient.h.

Constructor & Destructor Documentation

ecaldqm::RawDataClient::RawDataClient ( const edm::ParameterSet _params,
const edm::ParameterSet _paths 
)

Definition at line 12 of file RawDataClient.cc.

References edm::ParameterSet::getUntrackedParameterSet(), ecaldqm::RawDataTask::kFEStatus, ecaldqm::RawDataTask::kL1ADCC, ecaldqm::DQWorker::name_, sFEStatus, sL1ADCC, ecaldqm::DQWorkerClient::source_(), and synchErrorThreshold_.

12  :
13  DQWorkerClient(_params, _paths, "RawDataClient"),
15  {
16  edm::ParameterSet const& taskParams(_params.getUntrackedParameterSet(name_));
17  synchErrorThreshold_ = taskParams.getUntrackedParameter<int>("synchErrorThreshold");
18 
19  edm::ParameterSet const& sources(_params.getUntrackedParameterSet("sources"));
20  source_(sL1ADCC, "RawDataTask", RawDataTask::kL1ADCC, sources);
21  source_(sFEStatus, "RawDataTask", RawDataTask::kFEStatus, sources);
22  }
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
DQWorkerClient(const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
std::string name_
Definition: DQWorker.h:55
ecaldqm::RawDataClient::~RawDataClient ( )
inline

Definition at line 11 of file RawDataClient.h.

11 {}

Member Function Documentation

void ecaldqm::RawDataClient::bookMEs ( )
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 25 of file RawDataClient.cc.

References ecaldqm::DQWorker::bookMEs(), kQualitySummary, and ecaldqm::DQWorker::MEs_.

26  {
28 
29  MEs_[kQualitySummary]->resetAll(-1.);
30  }
virtual void bookMEs()
Definition: DQWorker.cc:48
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
void ecaldqm::RawDataClient::producePlots ( )
overridevirtual

Implements ecaldqm::DQWorkerClient.

Definition at line 33 of file RawDataClient.cc.

References ecaldqm::Disabled, ecaldqm::Enabled, python.tagInventory::entries, ecaldqm::FIFOFull, ecaldqm::FIFOFullL1ADesync, ecaldqm::DQWorkerClient::fillQuality_(), ecaldqm::ForcedZS, ecaldqm::getElectronicsMap(), ecaldqm::getNSuperCrystals(), kQualitySummary, ecaldqm::nFEFlags, sFEStatus, sL1ADCC, ecaldqm::DQWorkerClient::sources_, EcalDQMStatusHelper::STATUS_FLAG_ERROR, ecaldqm::Suppressed, synchErrorThreshold_, and ecaldqm::DQWorkerClient::towerStatus.

34  {
35  uint32_t mask(1 << EcalDQMStatusHelper::STATUS_FLAG_ERROR);
36 
37  for(unsigned dccid(1); dccid <= 54; dccid++){
38 
39  float l1aDesync(sources_[sL1ADCC]->getBinContent(dccid));
40 
41  float dccStatus(l1aDesync > synchErrorThreshold_ ? 0. : 1.);
42 
43  for(unsigned tower(1); tower <= getNSuperCrystals(dccid); tower++){
44  std::vector<DetId> ids(getElectronicsMap()->dccTowerConstituents(dccid, tower));
45 
46  if(ids.size() == 0) continue;
47 
48  float towerStatus(dccStatus);
49 
50  if(towerStatus > 0.){ // if the DCC is good, look into individual FEs
51  float towerEntries(0.);
52  for(unsigned iS(0); iS < nFEFlags; iS++){
53  float entries(sources_[sFEStatus]->getBinContent(ids[0], iS + 1));
54  towerEntries += entries;
55  if(entries > 0. &&
56  iS != Enabled && iS != Disabled && iS != Suppressed &&
57  iS != FIFOFull && iS != FIFOFullL1ADesync && iS != ForcedZS)
58  towerStatus = 0.;
59  }
60 
61  if(towerEntries < 1.) towerStatus = 2.;
62  }
63 
64  if(dccid <= 9 || dccid >= 46){
65  std::vector<EcalScDetId> scs(getElectronicsMap()->getEcalScDetId(dccid, tower));
66  for(std::vector<EcalScDetId>::iterator scItr(scs.begin()); scItr != scs.end(); ++scItr)
68  }
69  else
71  }
72  }
73  }
const EcalElectronicsMapping * getElectronicsMap()
static const int STATUS_FLAG_ERROR
unsigned getNSuperCrystals(unsigned)
std::vector< MESet const * > sources_
void fillQuality_(unsigned, DetId const &, uint32_t, float)
static EcalDQMTowerStatus const * towerStatus
void ecaldqm::RawDataClient::setMEData ( std::vector< MEData > &  _data)
static

Member Data Documentation

int ecaldqm::RawDataClient::synchErrorThreshold_
private

Definition at line 31 of file RawDataClient.h.

Referenced by producePlots(), and RawDataClient().