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 | Public Attributes | Protected Member Functions | Protected Attributes
RawTask Class Reference

#include <RawTask.h>

Inheritance diagram for RawTask:
hcaldqm::DQTask DQMEDAnalyzer hcaldqm::DQModule edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Types

enum  RawFlag { fEvnMsm = 0, fOrnMsm = 1, fBcnMsm = 2, nRawFlag = 3 }
 
- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 RawTask (edm::ParameterSet const &)
 
virtual ~RawTask ()
 
- Public Member Functions inherited from hcaldqm::DQTask
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQTask (edm::ParameterSet const &)
 
virtual ~DQTask ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()
 

Public Attributes

tuple rawTask
 
list skipList = []
 

Protected Member Functions

virtual void _process (edm::Event const &, edm::EventSetup const &)
 
virtual void _resetMonitors (UpdateFreq)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
virtual bool _isApplicable (edm::Event const &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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 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)
 

Protected Attributes

ContainerSingle2D _cSummary
 
Container2D _cSummaryvsLS_FED
 
ContainerSingle2D _cuTCABcnMsm
 
ContainerSingle2D _cuTCAEvnMsm
 
ContainerSingle2D _cuTCAOccupancy
 
ContainerSingle2D _cuTCAOrnMsm
 
ContainerSingle2D _cVMEBcnMsm
 
ContainerSingle2D _cVMEEvnMsm
 
ContainerSingle2D _cVMEOccupancy
 
ContainerSingle2D _cVMEOrnMsm
 
std::vector< std::string > _fNames
 
int _nBcnMsm [constants::FED_VME_NUM+constants::FED_uTCA_NUM]
 
int _nEvnMsm [constants::FED_VME_NUM+constants::FED_uTCA_NUM]
 
int _nOrnMsm [constants::FED_VME_NUM+constants::FED_uTCA_NUM]
 
edm::InputTag _tagFEDs
 
edm::EDGetTokenT
< FEDRawDataCollection
_tokFEDs
 
std::vector< int > _vSkipFEDList
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT
< FEDRawDataCollection
_tokRaw
 
- Protected Attributes inherited from hcaldqm::DQModule
int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

Additional Inherited Members

- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 19 of file RawTask.h.

Member Enumeration Documentation

Enumerator
fEvnMsm 
fOrnMsm 
fBcnMsm 
nRawFlag 

Definition at line 31 of file RawTask.h.

32  {
33  fEvnMsm = 0,
34  fOrnMsm = 1,
35  fBcnMsm = 2,
36 
37  nRawFlag = 3
38  };

Constructor & Destructor Documentation

RawTask::RawTask ( edm::ParameterSet const &  ps)

Definition at line 4 of file RawTask.cc.

References _cSummary, _cSummaryvsLS_FED, _cuTCABcnMsm, _cuTCAEvnMsm, _cuTCAOccupancy, _cuTCAOrnMsm, _cVMEBcnMsm, _cVMEEvnMsm, _cVMEOccupancy, _cVMEOrnMsm, _fNames, hcaldqm::DQModule::_name, _tagFEDs, _tokFEDs, _vSkipFEDList, hcaldqm::mapper::fFED, hcaldqm::axis::fFEDComb, hcaldqm::axis::fFEDuTCA, hcaldqm::axis::fFEDVME, hcaldqm::fLS, hcaldqm::axis::fSlotuTCA, hcaldqm::axis::fSpigot, hcaldqm::axis::fXaxis, hcaldqm::axis::fYaxis, edm::ParameterSet::getUntrackedParameter(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::Container2D::initialize(), HLT_FULL_cff::InputTag, hcaldqm::Container2D::loadLabels(), hcaldqm::ContainerSingle2D::loadLabels(), and nRawFlag.

4  :
5  DQTask(ps)
6 {
7  // specify all the Containers
8  _cVMEEvnMsm.initialize(_name+"/VME/EvnMsm", "EvnMismatch",
11  _cVMEBcnMsm.initialize(_name+"/VME/BcnMsm", "BcnMismatch",
14  _cVMEOrnMsm.initialize(_name+"/VME/OrnMsm", "OrnMismatch",
17  _cuTCAEvnMsm.initialize(_name+"/uTCA/EvnMsm", "EvnMismatch",
20  _cuTCABcnMsm.initialize(_name+"/uTCA/BcnMsm", "BcnMismatch",
23  _cuTCAOrnMsm.initialize(_name+"/uTCA/OrnMsm", "OrnMismatch",
26  _cVMEOccupancy.initialize(_name+"/VME/Occupancy", "Occupancy",
29  _cuTCAOccupancy.initialize(_name+"/uTCA/Occupancy", "Occupancy",
32 
33  // Summary Containers
34  _cSummary.initialize(_name+"/Summary", "Summary",
36  new axis::FlagAxis(axis::fYaxis, "Flag", int(nRawFlag)));
37  _cSummaryvsLS_FED.initialize(_name+"/Summary/vsLS_FED", "SummaryvsLS",
40  new axis::FlagAxis(axis::fYaxis, "Flag", int(nRawFlag)));
41 
42  // tags
43  _tagFEDs = ps.getUntrackedParameter<edm::InputTag>("tagFEDs",
44  edm::InputTag("rawDataCollector"));
45  _tokFEDs = consumes<FEDRawDataCollection>(_tagFEDs);
46 
47  // Skip List
48  _vSkipFEDList = ps.getUntrackedParameter<std::vector<int> >("skipFEDList");
49 
50  // load labels
51  _fNames.push_back("EVN Mismatch");
52  _fNames.push_back("ORN Mismatch");
53  _fNames.push_back("BCN Mismatch");
56 }
ContainerSingle2D _cVMEBcnMsm
Definition: RawTask.h:69
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new CoordinateAxis(fYaxis, axis::fiphi), axis::Axis *zaxis=new ValueAxis(fZaxis, fEntries), int debug=0)
ContainerSingle2D _cVMEEvnMsm
Definition: RawTask.h:68
virtual void initialize(std::string const &folder, std::string nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::CoordinateAxis(axis::fYaxis, axis::fiphi), axis::Axis *zaxis=new axis::ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
Definition: Container2D.cc:30
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
ContainerSingle2D _cuTCABcnMsm
Definition: RawTask.h:72
ContainerSingle2D _cVMEOccupancy
Definition: RawTask.h:76
ContainerSingle2D _cuTCAOccupancy
Definition: RawTask.h:77
virtual void loadLabels(std::vector< std::string > const &)
std::vector< int > _vSkipFEDList
Definition: RawTask.h:46
ContainerSingle2D _cuTCAEvnMsm
Definition: RawTask.h:71
ContainerSingle2D _cSummary
Definition: RawTask.h:80
ContainerSingle2D _cuTCAOrnMsm
Definition: RawTask.h:73
virtual void loadLabels(std::vector< std::string > const &)
Definition: Container2D.cc:294
std::string _name
Definition: DQModule.h:50
edm::EDGetTokenT< FEDRawDataCollection > _tokFEDs
Definition: RawTask.h:50
Container2D _cSummaryvsLS_FED
Definition: RawTask.h:81
ContainerSingle2D _cVMEOrnMsm
Definition: RawTask.h:70
edm::InputTag _tagFEDs
Definition: RawTask.h:49
std::vector< std::string > _fNames
Definition: RawTask.h:53
virtual RawTask::~RawTask ( )
inlinevirtual

Definition at line 23 of file RawTask.h.

24  {}

Member Function Documentation

void RawTask::_process ( edm::Event const &  e,
edm::EventSetup const &   
)
protectedvirtual

Implements hcaldqm::DQTask.

Definition at line 129 of file RawTask.cc.

References _cuTCABcnMsm, _cuTCAEvnMsm, _cuTCAOccupancy, _cuTCAOrnMsm, _cVMEBcnMsm, _cVMEEvnMsm, _cVMEOccupancy, _cVMEOrnMsm, hcaldqm::DQModule::_logger, _nBcnMsm, _nEvnMsm, _tagFEDs, _tokFEDs, hcal::AMC13Header::AMCId(), hcal::AMC13Header::AMCPayload(), hcal::AMC13Header::AMCSize(), hcal::AMC13Header::AMCSlot(), hcal::AMC13Header::bunchId(), FEDRawData::data(), ecaldqm::dccId(), Logger::dqmthrow(), hcaldqm::ContainerSingle2D::fill(), HcalDCCHeader::getBunchId(), HcalHTRData::getBunchNumber(), edm::Event::getByToken(), HcalDCCHeader::getDCCEventNumber(), hcaldqm::utilities::getIdByFED(), HcalHTRData::getL1ANumber(), HcalDCCHeader::getOrbitNumber(), HcalHTRData::getOrbitNumber(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), edm::InputTag::instance(), hcal::AMC13Header::l1aNumber(), edm::InputTag::label(), FEDNumbering::MAXHCALFEDID, FEDNumbering::MAXHCALuTCAFEDID, FEDNumbering::MINHCALFEDID, FEDNumbering::MINHCALuTCAFEDID, hcal::AMC13Header::NAMC(), hcal::AMC13Header::orbitNumber(), alignCSCRings::r, hcaldqm::constants::RAW_EMPTY, FEDRawData::size(), HcalDCCHeader::SPIGOT_COUNT, and hcaldqm::constants::UTCA_DATAFLAVOR.

131 {
133  if (!e.getByToken(_tokFEDs, craw))
134  _logger.dqmthrow("Collection FEDRawDataCollection isn't available"
135  + _tagFEDs.label() + " " + _tagFEDs.instance());
136 
137  for (int fed=FEDNumbering::MINHCALFEDID;
138  fed<+FEDNumbering::MAXHCALuTCAFEDID; fed++)
139  {
140  // skip all non-HCAL FEDs
141  if ((fed>FEDNumbering::MAXHCALFEDID &&
144  continue;
145 
146  FEDRawData const& raw = craw->FEDData(fed);
147  if (raw.size() < RAW_EMPTY)// skip if empty
148  continue;
149 
150  if (fed<=FEDNumbering::MAXHCALFEDID) // VME
151  {
152  HcalDCCHeader const* hdcc = (HcalDCCHeader const*)(raw.data());
153  if (!hdcc)
154  continue;;
155  unsigned int bcn = hdcc->getBunchId();
156  unsigned int orn = hdcc->getOrbitNumber();
157  unsigned long evn = hdcc->getDCCEventNumber();
158  int dccId = hdcc->getSourceId()-700; // 700 is the hard offset
159 
160  // Iterate over all the spigots
161  HcalHTRData htr;
162  for (int is=0; is<HcalDCCHeader::SPIGOT_COUNT; is++)
163  {
164  int r = hdcc->getSpigotData(is, htr, raw.size());
165 
166  // invalid data
167  if (r!=0)
168  continue;
169 
170  unsigned int htr_evn = htr.getL1ANumber();
171  unsigned int htr_orn = htr.getOrbitNumber();
172  unsigned int htr_bcn = htr.getBunchNumber();
173  bool qevn = htr_evn!=evn;
174  bool qorn = htr_orn!=orn;
175  bool qbcn = htr_bcn!=bcn;
176  HcalElectronicsId eid(0, 1, is, dccId);
177  _cVMEEvnMsm.fill(fed, eid, qevn ? 1 : 0);
178  _cVMEBcnMsm.fill(fed, eid, qbcn ? 1 : 0);
179  _cVMEOrnMsm.fill(fed, eid, qorn ? 1 : 0);
181  qevn ? 1 : 0;
183  qbcn ? 1 : 0;
184  _cVMEOccupancy.fill(fed, eid);
185  }
186 
187  }
188  else // uTCA
189  {
190  hcal::AMC13Header const* hamc13 = (hcal::AMC13Header const*)
191  (raw.data());
192  if (!hamc13)
193  continue;
194 
195  unsigned int bcn = hamc13->bunchId();
196  unsigned int orn = hamc13->orbitNumber();
197  unsigned int evn = hamc13->l1aNumber();
198  int namc = hamc13->NAMC();
199 
200  // itearte over all AMC13
201  for (int iamc=0; iamc<namc; iamc++)
202  {
203  int slot = hamc13->AMCSlot(iamc);
204  int crate = hamc13->AMCId(iamc)&0xFF;
205  HcalElectronicsId eid(crate, slot, 5, 0, false);
206  HcalUHTRData uhtr(hamc13->AMCPayload(iamc),
207  hamc13->AMCSize(iamc));
208  for (HcalUHTRData::const_iterator iuhtr=uhtr.begin();
209  iuhtr!=uhtr.end(); ++iuhtr)
210  {
211  if (!iuhtr.isHeader())
212  continue;
213 
214  _cuTCAOccupancy.fill(fed, eid);
215  // use data flavour - found in the unpacker
216  if (iuhtr.flavor()==UTCA_DATAFLAVOR)
217  {
218  uint32_t uhtr_evn = uhtr.l1ANumber();
219  uint32_t uhtr_bcn = uhtr.bunchNumber();
220  uint32_t uhtr_orn = uhtr.orbitNumber();
221  bool qevn = uhtr_evn!=evn;
222  bool qorn = uhtr_orn!=orn;
223  bool qbcn = uhtr_bcn!=bcn;
224  _cuTCAEvnMsm.fill(fed, eid,
225  qevn ? 1 : 0);
226  _cuTCABcnMsm.fill(fed, eid,
227  qbcn ? 1 : 0);
228  _cuTCAOrnMsm.fill(fed, eid,
229  qorn ? 1 : 0);
231  qevn ? 1 : 0;
233  qbcn ? 1 : 0;
234  }
235  }
236  }
237  }
238  }
239 }
ContainerSingle2D _cVMEBcnMsm
Definition: RawTask.h:69
ContainerSingle2D _cVMEEvnMsm
Definition: RawTask.h:68
int const RAW_EMPTY
Definition: Constants.h:171
ContainerSingle2D _cuTCABcnMsm
Definition: RawTask.h:72
ContainerSingle2D _cVMEOccupancy
Definition: RawTask.h:76
ContainerSingle2D _cuTCAOccupancy
Definition: RawTask.h:77
int l1aNumber() const
Definition: AMC13Header.h:19
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
unsigned int getOrbitNumber() const
Get the HTR orbit number.
Definition: HcalHTRData.cc:324
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
int const UTCA_DATAFLAVOR
Definition: Constants.h:172
int AMCSize(int i) const
Definition: AMC13Header.h:37
unsigned int getOrbitNumber() const
Definition: HcalDCCHeader.h:46
ContainerSingle2D _cuTCAEvnMsm
Definition: RawTask.h:71
int getBunchId() const
Definition: HcalDCCHeader.h:34
int bunchId() const
Definition: AMC13Header.h:17
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
ContainerSingle2D _cuTCAOrnMsm
Definition: RawTask.h:73
Logger _logger
Definition: DQModule.h:62
edm::EDGetTokenT< FEDRawDataCollection > _tokFEDs
Definition: RawTask.h:50
int getSourceId() const
Definition: HcalDCCHeader.h:32
unsigned int orbitNumber() const
Definition: AMC13Header.h:23
int getIdByFED(int)
Definition: Utilities.cc:87
ContainerSingle2D _cVMEOrnMsm
Definition: RawTask.h:70
std::string const & label() const
Definition: InputTag.h:36
edm::InputTag _tagFEDs
Definition: RawTask.h:49
int NAMC() const
Definition: AMC13Header.h:25
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
int AMCSlot(int i) const
Definition: AMC13Header.h:33
const uint64_t * AMCPayload(int i) const
Definition: AMC13Header.cc:4
unsigned int getBunchNumber() const
Get the HTR bunch number.
Definition: HcalHTRData.h:115
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
virtual void fill(int, int)
int _nBcnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:61
uint16_t AMCId(int i) const
Definition: AMC13Header.h:31
unsigned int getL1ANumber() const
Get the HTR event number.
Definition: HcalHTRData.h:111
unsigned dccId(DetId const &)
unsigned long getDCCEventNumber() const
Definition: HcalDCCHeader.h:36
int _nEvnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:57
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
void RawTask::_resetMonitors ( UpdateFreq  uf)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 241 of file RawTask.cc.

References _nBcnMsm, _nEvnMsm, _nOrnMsm, hcaldqm::f10LS, hcaldqm::constants::FED_TOTAL_NUM, hcaldqm::fEvent, hcaldqm::fLS, and i.

242 {
243  switch (uf)
244  {
245  case fEvent:
246  break;
247  case hcaldqm::fLS:
248  for (int i=0; i<constants::FED_TOTAL_NUM; i++)
249  {
250  _nEvnMsm[i] = 0;
251  _nOrnMsm[i] = 0;
252  _nBcnMsm[i] = 0;
253  }
254  break;
255  case hcaldqm::f10LS:
256 // _cVMEEvnMsm.reset();
257 // _cVMEOrnMsm.reset();
258 // _cVMEBcnMsm.reset();
259 // _cuTCAEvnMsm.reset();
260 // _cuTCAOrnMsm.reset();
261 // _cuTCABcnMsm.reset();
262  break;
263  default:
264  break;
265  }
266 
267  DQTask::_resetMonitors(uf);
268 }
int i
Definition: DBlmapReader.cc:9
int _nOrnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:59
int const FED_TOTAL_NUM
Definition: Constants.h:35
int _nBcnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:61
int _nEvnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:57
void RawTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 58 of file RawTask.cc.

References _cSummary, _cSummaryvsLS_FED, _cuTCABcnMsm, _cuTCAEvnMsm, _cuTCAOccupancy, _cuTCAOrnMsm, _cVMEBcnMsm, _cVMEEvnMsm, _cVMEOccupancy, _cVMEOrnMsm, hcaldqm::ContainerSingle2D::book(), hcaldqm::Container2D::book(), and bookHistograms().

60 {
61  DQTask::bookHistograms(ib, r, es);
62  _cVMEEvnMsm.book(ib);
63  _cVMEBcnMsm.book(ib);
64  _cVMEOrnMsm.book(ib);
65  _cuTCAEvnMsm.book(ib);
66  _cuTCABcnMsm.book(ib);
67  _cuTCAOrnMsm.book(ib);
68  _cVMEOccupancy.book(ib);
70 
71  _cSummary.book(ib);
73 }
ContainerSingle2D _cVMEBcnMsm
Definition: RawTask.h:69
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:233
ContainerSingle2D _cVMEEvnMsm
Definition: RawTask.h:68
ContainerSingle2D _cuTCABcnMsm
Definition: RawTask.h:72
ContainerSingle2D _cVMEOccupancy
Definition: RawTask.h:76
ContainerSingle2D _cuTCAOccupancy
Definition: RawTask.h:77
void bookHistograms(fwlite::EventContainer &eventCont)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
ContainerSingle2D _cuTCAEvnMsm
Definition: RawTask.h:71
ContainerSingle2D _cSummary
Definition: RawTask.h:80
ContainerSingle2D _cuTCAOrnMsm
Definition: RawTask.h:73
Container2D _cSummaryvsLS_FED
Definition: RawTask.h:81
ContainerSingle2D _cVMEOrnMsm
Definition: RawTask.h:70
void RawTask::endLuminosityBlock ( edm::LuminosityBlock const &  l,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 75 of file RawTask.cc.

References _cSummary, _cSummaryvsLS_FED, hcaldqm::DQModule::_currentLS, _nBcnMsm, _nEvnMsm, _vSkipFEDList, fBcnMsm, hcaldqm::constants::FED_TOTAL_NUM, fEvnMsm, hcaldqm::utilities::getFEDById(), hcaldqm::constants::GOOD, i, j, hcaldqm::constants::LOW, hcaldqm::constants::NOT_APPLICABLE, nRawFlag, lumiQueryAPI::q, hcaldqm::Container2D::setBinContent(), hcaldqm::ContainerSingle2D::setBinContent(), and mps_update::status.

77 {
78  // statuses
79  // By default the flag is not applicable
81  for (int i=0; i<constants::FED_TOTAL_NUM; i++)
82  for (int j=fEvnMsm; j<nRawFlag; j++)
83  status[i][j] = constants::NOT_APPLICABLE;
84 
85  /*
86  * Do the checks here
87  * -> Evn Mismatch
88  * -> Bcn Mismatch
89  * -> Orn Mismatch (Not Applicable)
90  */
91 
92  // evn/bcn
93  for (int i=0; i<constants::FED_TOTAL_NUM; i++)
94  {
95  // skip status evaluation of empty FEDs
96  bool q = false;
97  for (std::vector<int>::const_iterator it=_vSkipFEDList.begin();
98  it!=_vSkipFEDList.end(); ++it)
99  if ((*it) == utilities::getFEDById(i))
100  {
101  q = true;
102  break;
103  }
104  if (q==true)
105  continue;
106 
107  if (_nEvnMsm[i]>0)
108  status[i][fEvnMsm] = constants::LOW;
109  else
110  status[i][fEvnMsm] = constants::GOOD;
111  if (_nBcnMsm[i]>0)
112  status[i][fBcnMsm] = constants::LOW;
113  else
114  status[i][fBcnMsm] = constants::GOOD;
115  }
116 
117  // finally set all the statuses
118  for (unsigned int i=0; i<constants::FED_TOTAL_NUM; i++)
119  for (int j=fEvnMsm; j<nRawFlag; j++)
120  {
121  _cSummary.setBinContent(i, j, status[i][j]);
123  j, status[i][j]);
124  }
125 
126  DQTask::endLuminosityBlock(l, es);
127 }
double const LOW
Definition: Constants.h:17
int i
Definition: DBlmapReader.cc:9
virtual void setBinContent(int, int, double)
int getFEDById(int)
Definition: Utilities.cc:77
std::vector< int > _vSkipFEDList
Definition: RawTask.h:46
ContainerSingle2D _cSummary
Definition: RawTask.h:80
int j
Definition: DBlmapReader.cc:9
double const GOOD
Definition: Constants.h:15
Container2D _cSummaryvsLS_FED
Definition: RawTask.h:81
virtual void setBinContent(int, int, int, double)
Definition: Container2D.cc:263
double const NOT_APPLICABLE
Definition: Constants.h:19
int const FED_TOTAL_NUM
Definition: Constants.h:35
int _nBcnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:61
int _nEvnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
Definition: RawTask.h:57
tuple status
Definition: mps_update.py:57

Member Data Documentation

ContainerSingle2D RawTask::_cSummary
protected

Definition at line 80 of file RawTask.h.

Referenced by bookHistograms(), endLuminosityBlock(), and RawTask().

Container2D RawTask::_cSummaryvsLS_FED
protected

Definition at line 81 of file RawTask.h.

Referenced by bookHistograms(), endLuminosityBlock(), and RawTask().

ContainerSingle2D RawTask::_cuTCABcnMsm
protected

Definition at line 72 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cuTCAEvnMsm
protected

Definition at line 71 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cuTCAOccupancy
protected

Definition at line 77 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cuTCAOrnMsm
protected

Definition at line 73 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cVMEBcnMsm
protected

Definition at line 69 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cVMEEvnMsm
protected

Definition at line 68 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cVMEOccupancy
protected

Definition at line 76 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

ContainerSingle2D RawTask::_cVMEOrnMsm
protected

Definition at line 70 of file RawTask.h.

Referenced by _process(), bookHistograms(), and RawTask().

std::vector<std::string> RawTask::_fNames
protected

Definition at line 53 of file RawTask.h.

Referenced by RawTask().

int RawTask::_nBcnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
protected

Definition at line 61 of file RawTask.h.

Referenced by _process(), _resetMonitors(), and endLuminosityBlock().

int RawTask::_nEvnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
protected

Definition at line 57 of file RawTask.h.

Referenced by _process(), _resetMonitors(), and endLuminosityBlock().

int RawTask::_nOrnMsm[constants::FED_VME_NUM+constants::FED_uTCA_NUM]
protected

Definition at line 59 of file RawTask.h.

Referenced by _resetMonitors().

edm::InputTag RawTask::_tagFEDs
protected

Definition at line 49 of file RawTask.h.

Referenced by _process(), and RawTask().

edm::EDGetTokenT<FEDRawDataCollection> RawTask::_tokFEDs
protected

Definition at line 50 of file RawTask.h.

Referenced by _process(), and RawTask().

std::vector<int> RawTask::_vSkipFEDList
protected

Definition at line 46 of file RawTask.h.

Referenced by endLuminosityBlock(), and RawTask().

tuple RawTask.rawTask
Initial value:
1 = cms.EDAnalyzer(
2  "RawTask",
3 
4  # standard parameters
5  name = cms.untracked.string("RawTask"),
6  debug = cms.untracked.int32(0),
7  runkeyVal = cms.untracked.int32(0),
8  runkeyName = cms.untracked.string("pp_run"),
9  ptype = cms.untracked.int32(0),
10  mtype = cms.untracked.bool(True),
11  subsystem = cms.untracked.string("Hcal"),
12 
13  # tags
14  tagFEDs = cms.untracked.InputTag("rawDataCollector"),
15 
16  # Common Parameters
17  skipFEDList = cms.untracked.vint32(skipList)
18 )

Definition at line 9 of file RawTask.py.

list RawTask.skipList = []

Definition at line 4 of file RawTask.py.