CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Attributes
hcaldqm::DQClient Class Reference

#include <DQClient.h>

Inheritance diagram for hcaldqm::DQClient:
hcaldqm::DQModule hcaldqm::DigiRunSummary hcaldqm::PedestalRunSummary hcaldqm::RawRunSummary hcaldqm::RecoRunSummary hcaldqm::TPRunSummary

Classes

struct  LSSummary
 

Public Member Functions

virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQClient (std::string const &, std::string const &, edm::ParameterSet const &)
 
virtual std::vector< flag::FlagendJob (DQMStore::IBooker &, DQMStore::IGetter &)
 
virtual void endLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual ~DQClient ()
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()
 

Protected Attributes

HcalElectronicsMap const * _emap
 
int _maxProcessedLS
 
std::string _taskname
 
int _totalLS
 
std::vector< uint32_t > _vcdaqEids
 
std::vector< int > _vFEDs
 
std::vector< uint32_t > _vhashFEDs
 
ContainerXXX< uint32_t > _xQuality
 
- Protected Attributes inherited from hcaldqm::DQModule
int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
int _maxLS
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

Detailed Description

Definition at line 25 of file DQClient.h.

Constructor & Destructor Documentation

hcaldqm::DQClient::DQClient ( std::string const &  name,
std::string const &  taskname,
edm::ParameterSet const &  ps 
)

Definition at line 5 of file DQClient.cc.

References hcaldqm::DQModule::_name, and mergeVDriftHistosByStation::name.

6  :
7  DQModule(ps),_taskname(taskname), _maxProcessedLS(0)
8  {
9  // - SET THE TASK NAME YOU REFER TO
10  // - SET THE CLIENT'S NAME AS WELL - RUN SUMMARY PLOTS
11  // WILL BE GENERATED UNDER THAT FOLDER
12  _name = name;
13  }
std::string _taskname
Definition: DQClient.h:47
std::string _name
Definition: DQModule.h:57
DQModule(edm::ParameterSet const &)
Definition: DQModule.cc:6
virtual hcaldqm::DQClient::~DQClient ( )
inlinevirtual

Definition at line 30 of file DQClient.h.

30 {}

Member Function Documentation

void hcaldqm::DQClient::beginRun ( edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented in hcaldqm::DigiRunSummary, hcaldqm::PedestalRunSummary, hcaldqm::RawRunSummary, hcaldqm::RecoRunSummary, and hcaldqm::TPRunSummary.

Definition at line 15 of file DQClient.cc.

References _emap, _vcdaqEids, _vFEDs, _vhashFEDs, _xQuality, hcaldqm::hashfunctions::fDChannel, hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_uTCA_MIN, hcaldqm::constants::FED_VME_MAX, hcaldqm::constants::FED_VME_MIN, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, edm::EventSetup::find(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), HcalGenericDetId::genericSubdet(), edm::EventSetup::get(), HcalCondObjectContainer< Item >::getAllChannels(), hcaldqm::utilities::getFEDList(), reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalGenericDetId::HcalGenUnknown, hcaldqm::ContainerXXX< STDTYPE >::initialize(), HcalGenericDetId::isHcalDetId(), FEDNumbering::MAXHCALuTCAFEDID, edm::ESHandle< class >::product(), hcaldqm::ContainerXXX< STDTYPE >::push(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

Referenced by hcaldqm::DigiRunSummary::beginRun(), hcaldqm::TPRunSummary::beginRun(), hcaldqm::RecoRunSummary::beginRun(), hcaldqm::RawRunSummary::beginRun(), and hcaldqm::PedestalRunSummary::beginRun().

17  {
18  // TEMPORARY
19  _vhashFEDs.clear(); _vcdaqEids.clear();
20 
21  // get various FED lists
23  es.get<HcalDbRecord>().get(dbs);
24  _emap = dbs->getHcalMapping();
26  for (std::vector<int>::const_iterator it=_vFEDs.begin();
27  it!=_vFEDs.end(); ++it)
28  if (*it>FED_VME_MAX)
29  _vhashFEDs.push_back(HcalElectronicsId(
31  FIBERCH_MIN, false).rawId());
32  else
34  FIBER_VME_MIN, SPIGOT_MIN, (*it)-FED_VME_MIN).rawId());
35 
36  // get FEDs registered @cDAQ
39  "RunInfoRcd"));
40  if (es.find(recordKey))
41  {
43  es.get<RunInfoRcd>().get(ri);
44  std::vector<int> vfeds=ri->m_fed_in;
45  for (std::vector<int>::const_iterator it=vfeds.begin();
46  it!=vfeds.end(); ++it)
47  {
48  if (*it>=constants::FED_VME_MIN && *it<=FED_VME_MAX)
49  _vcdaqEids.push_back(HcalElectronicsId(
52  (*it)-FED_VME_MIN).rawId());
53  else if (*it>=constants::FED_uTCA_MIN &&
55  _vcdaqEids.push_back(HcalElectronicsId(
57  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
58  }
59  }
60 
61  // get the Channel Quality masks
64  es.get<HcalChannelQualityRcd>().get("withTopo", hcq);
65  const HcalChannelQuality *cq = hcq.product();
66  std::vector<DetId> detids = cq->getAllChannels();
67  for (std::vector<DetId>::const_iterator it=detids.begin();
68  it!=detids.end(); ++it)
69  {
70  if (HcalGenericDetId(*it).genericSubdet()==
72  continue;
73 
74  if (HcalGenericDetId(*it).isHcalDetId())
75  {
76  HcalDetId did(*it);
77  uint32_t mask=(cq->getValues(did))->getValue();
78  if (mask!=0)
79  _xQuality.push(did, mask);
80  }
81  }
82  }
std::vector< uint32_t > _vcdaqEids
Definition: DQClient.h:64
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
std::vector< uint32_t > _vhashFEDs
Definition: DQClient.h:58
int const SPIGOT_MIN
Definition: Constants.h:85
virtual void push(HcalDetId const &, STDTYPE)
Definition: ContainerXXX.h:261
HcalElectronicsMap const * _emap
Definition: DQClient.h:54
ContainerXXX< uint32_t > _xQuality
Definition: DQClient.h:61
const Item * getValues(DetId fId, bool throwOnFail=true) const
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FED_uTCA_MIN
Definition: Constants.h:52
int const FIBERCH_MIN
Definition: Constants.h:100
int const FED_VME_MIN
Definition: Constants.h:47
std::vector< DetId > getAllChannels() const
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
bool isHcalDetId() const
std::vector< int > _vFEDs
Definition: DQClient.h:57
T const * product() const
Definition: ESHandle.h:86
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:47
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:85
HcalGenericSubdetector genericSubdet() const
int const FED_VME_MAX
Definition: Constants.h:48
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:125
std::vector< flag::Flag > hcaldqm::DQClient::endJob ( DQMStore::IBooker ,
DQMStore::IGetter  
)
virtual

Reimplemented in hcaldqm::DigiRunSummary, hcaldqm::PedestalRunSummary, hcaldqm::RawRunSummary, hcaldqm::RecoRunSummary, and hcaldqm::TPRunSummary.

Definition at line 94 of file DQClient.cc.

96  {
97  return std::vector<flag::Flag>();
98  }
void hcaldqm::DQClient::endLuminosityBlock ( DQMStore::IBooker ,
DQMStore::IGetter ,
edm::LuminosityBlock const &  lb,
edm::EventSetup const &   
)
virtual

Member Data Documentation

HcalElectronicsMap const* hcaldqm::DQClient::_emap
protected
int hcaldqm::DQClient::_maxProcessedLS
protected
std::string hcaldqm::DQClient::_taskname
protected
int hcaldqm::DQClient::_totalLS
protected

Definition at line 50 of file DQClient.h.

Referenced by endLuminosityBlock().

std::vector<uint32_t> hcaldqm::DQClient::_vcdaqEids
protected
std::vector<int> hcaldqm::DQClient::_vFEDs
protected
std::vector<uint32_t> hcaldqm::DQClient::_vhashFEDs
protected
ContainerXXX<uint32_t> hcaldqm::DQClient::_xQuality
protected

Definition at line 61 of file DQClient.h.

Referenced by beginRun().