test
CMS 3D CMS Logo

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

#include <LEDTask.h>

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

Public Member Functions

virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &r, edm::EventSetup const &)
 
 LEDTask (edm::ParameterSet const &)
 
virtual ~LEDTask ()
 
- 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 void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup 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 ledTask
 

Protected Member Functions

virtual void _dump ()
 
virtual bool _isApplicable (edm::Event const &)
 
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 &)
 
- 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

Container2D _cMissing_depth
 
Container2D _cMissing_FEDuTCA
 
Container2D _cMissing_FEDVME
 
ContainerProf1D _cShapeCut_FEDSlot
 
ContainerProf2D _cSignalMean_depth
 
ContainerProf2D _cSignalMean_FEDuTCA
 
ContainerProf2D _cSignalMean_FEDVME
 
Container1D _cSignalMean_Subdet
 
ContainerProf2D _cSignalRMS_depth
 
ContainerProf2D _cSignalRMS_FEDuTCA
 
ContainerProf2D _cSignalRMS_FEDVME
 
Container1D _cSignalRMS_Subdet
 
ContainerProf2D _cTimingMean_depth
 
ContainerProf2D _cTimingMean_FEDuTCA
 
ContainerProf2D _cTimingMean_FEDVME
 
Container1D _cTimingMean_Subdet
 
ContainerProf2D _cTimingRMS_depth
 
ContainerProf2D _cTimingRMS_FEDuTCA
 
ContainerProf2D _cTimingRMS_FEDVME
 
Container1D _cTimingRMS_Subdet
 
electronicsmap::ElectronicsMap _ehashmap
 
HcalElectronicsMap const * _emap
 
HashFilter _filter_uTCA
 
HashFilter _filter_VME
 
double _lowHBHE
 
double _lowHF
 
double _lowHO
 
edm::InputTag _tagHBHE
 
edm::InputTag _tagHF
 
edm::InputTag _tagHO
 
edm::InputTag _tagTrigger
 
edm::EDGetTokenT
< HBHEDigiCollection
_tokHBHE
 
edm::EDGetTokenT
< HFDigiCollection
_tokHF
 
edm::EDGetTokenT
< HODigiCollection
_tokHO
 
edm::EDGetTokenT
< HcalTBTriggerData
_tokTrigger
 
ContainerXXX< int > _xEntries
 
ContainerXXX< double > _xSignalSum
 
ContainerXXX< double > _xSignalSum2
 
ContainerXXX< double > _xTimingSum
 
ContainerXXX< double > _xTimingSum2
 
- 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
 
std::vector< uint32_t > _vcdaqEids
 
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
 

Additional Inherited Members

- 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
 
- 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 23 of file LEDTask.h.

Constructor & Destructor Documentation

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

Definition at line 5 of file LEDTask.cc.

References _lowHBHE, _lowHF, _lowHO, _tagHBHE, _tagHF, _tagHO, _tagTrigger, _tokHBHE, _tokHF, _tokHO, _tokTrigger, edm::ParameterSet::getUntrackedParameter(), and HLT_25ns10e33_v2_cff::InputTag.

5  :
6  DQTask(ps)
7 {
8  // tags
9  _tagHBHE = ps.getUntrackedParameter<edm::InputTag>("tagHBHE",
10  edm::InputTag("hcalDigis"));
11  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO",
12  edm::InputTag("hcalDigis"));
13  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
14  edm::InputTag("hcalDigis"));
15  _tagTrigger = ps.getUntrackedParameter<edm::InputTag>("tagTrigger",
16  edm::InputTag("tbunpacker"));
17  _tokHBHE = consumes<HBHEDigiCollection>(_tagHBHE);
18  _tokHO = consumes<HODigiCollection>(_tagHO);
19  _tokHF = consumes<HFDigiCollection>(_tagHF);
20  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
21 
22  // constants
23  _lowHBHE = ps.getUntrackedParameter<double>("lowHBHE",
24  20);
25  _lowHO = ps.getUntrackedParameter<double>("lowHO",
26  20);
27  _lowHF = ps.getUntrackedParameter<double>("lowHF",
28  20);
29 }
double _lowHBHE
Definition: LEDTask.h:64
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: LEDTask.h:55
double _lowHF
Definition: LEDTask.h:66
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: LEDTask.h:52
edm::InputTag _tagHO
Definition: LEDTask.h:49
edm::InputTag _tagHF
Definition: LEDTask.h:50
double _lowHO
Definition: LEDTask.h:65
edm::InputTag _tagTrigger
Definition: LEDTask.h:51
edm::InputTag _tagHBHE
Definition: LEDTask.h:48
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LEDTask.h:53
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: LEDTask.h:54
virtual LEDTask::~LEDTask ( )
inlinevirtual

Definition at line 27 of file LEDTask.h.

28  {}

Member Function Documentation

void LEDTask::_dump ( )
protectedvirtual

Definition at line 204 of file LEDTask.cc.

References _cMissing_depth, _cMissing_FEDuTCA, _cMissing_FEDVME, _cSignalMean_depth, _cSignalMean_FEDuTCA, _cSignalMean_FEDVME, _cSignalMean_Subdet, _cSignalRMS_depth, _cSignalRMS_FEDuTCA, _cSignalRMS_FEDVME, _cSignalRMS_Subdet, _cTimingMean_depth, _cTimingMean_FEDuTCA, _cTimingMean_FEDVME, _cTimingMean_Subdet, _cTimingRMS_depth, _cTimingRMS_FEDuTCA, _cTimingRMS_FEDVME, _cTimingRMS_Subdet, _ehashmap, _emap, _xEntries, _xSignalSum, _xSignalSum2, _xTimingSum, _xTimingSum2, HcalElectronicsMap::allPrecisionId(), hcaldqm::Container2D::fill(), hcaldqm::Container1D::fill(), hcaldqm::ContainerXXX< STDTYPE >::get(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), gen::n, hcaldqm::Container1D::reset(), and mathSSE::sqrt().

Referenced by _process().

205 {
214 
223 
224  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
225  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
226  it!=dids.end(); ++it)
227  {
228  if (!it->isHcalDetId())
229  continue;
230  HcalDetId did = HcalDetId(it->rawId());
232  int n = _xEntries.get(did);
233  double msig = _xSignalSum.get(did)/n;
234  double mtim = _xTimingSum.get(did)/n;
235  double rsig = sqrt(_xSignalSum2.get(did)/n-msig*msig);
236  double rtim = sqrt(_xTimingSum2.get(did)/n-mtim*mtim);
237 
238  // channels missing or low signal
239  if (n==0)
240  {
241  _cMissing_depth.fill(did);
242  if (eid.isVMEid())
243  _cMissing_FEDVME.fill(eid);
244  else
245  _cMissing_FEDuTCA.fill(eid);
246  continue;
247  }
248  _cSignalMean_Subdet.fill(did, msig);
249  _cSignalMean_depth.fill(did, msig);
250  _cSignalRMS_Subdet.fill(did, rsig);
251  _cSignalRMS_depth.fill(did, rsig);
252  _cTimingMean_Subdet.fill(did, mtim);
253  _cTimingMean_depth.fill(did, mtim);
254  _cTimingRMS_Subdet.fill(did, rtim);
255  _cTimingRMS_depth.fill(did, rtim);
256  if (eid.isVMEid())
257  {
258  _cSignalMean_FEDVME.fill(eid, msig);
259  _cSignalRMS_FEDVME.fill(eid, rsig);
260  _cTimingMean_FEDVME.fill(eid, mtim);
261  _cTimingRMS_FEDVME.fill(eid, rtim);
262  }
263  else
264  {
265  _cSignalMean_FEDuTCA.fill(eid, msig);
266  _cSignalRMS_FEDuTCA.fill(eid, rsig);
267  _cTimingMean_FEDuTCA.fill(eid, mtim);
268  _cTimingRMS_FEDuTCA.fill(eid, rtim);
269  }
270  }
271 }
Container2D _cMissing_depth
Definition: LEDTask.h:100
ContainerProf2D _cSignalMean_FEDVME
Definition: LEDTask.h:90
ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LEDTask.h:95
ContainerProf2D _cSignalMean_depth
Definition: LEDTask.h:85
virtual void fill(HcalDetId const &)
Definition: Container2D.cc:59
ContainerXXX< double > _xSignalSum
Definition: LEDTask.h:69
ContainerXXX< int > _xEntries
Definition: LEDTask.h:71
virtual void fill(uint32_t)
Definition: Container1D.cc:82
virtual void reset()
Definition: Container1D.cc:65
ContainerProf2D _cSignalRMS_FEDVME
Definition: LEDTask.h:94
Container2D _cMissing_FEDuTCA
Definition: LEDTask.h:102
T sqrt(T t)
Definition: SSEVec.h:18
Container2D _cMissing_FEDVME
Definition: LEDTask.h:101
std::vector< HcalGenericDetId > allPrecisionId() const
Container1D _cSignalRMS_Subdet
Definition: LEDTask.h:77
ContainerXXX< double > _xTimingSum2
Definition: LEDTask.h:73
ContainerProf2D _cTimingMean_FEDuTCA
Definition: LEDTask.h:93
ContainerProf2D _cTimingMean_FEDVME
Definition: LEDTask.h:92
ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LEDTask.h:97
ContainerProf2D _cTimingRMS_depth
Definition: LEDTask.h:88
ContainerProf2D _cTimingMean_depth
Definition: LEDTask.h:87
ContainerProf2D _cSignalRMS_depth
Definition: LEDTask.h:86
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
ContainerXXX< double > _xTimingSum
Definition: LEDTask.h:72
HcalElectronicsMap const * _emap
Definition: LEDTask.h:58
ContainerXXX< double > _xSignalSum2
Definition: LEDTask.h:70
Container1D _cSignalMean_Subdet
Definition: LEDTask.h:76
Container1D _cTimingRMS_Subdet
Definition: LEDTask.h:79
Readout chain identification for Hcal.
ContainerProf2D _cTimingRMS_FEDVME
Definition: LEDTask.h:96
Container1D _cTimingMean_Subdet
Definition: LEDTask.h:78
electronicsmap::ElectronicsMap _ehashmap
Definition: LEDTask.h:59
ContainerProf2D _cSignalMean_FEDuTCA
Definition: LEDTask.h:91
bool LEDTask::_isApplicable ( edm::Event const &  e)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 367 of file LEDTask.cc.

References hcaldqm::DQModule::_logger, hcaldqm::DQModule::_ptype, _tagTrigger, _tokTrigger, Logger::dqmthrow(), hcaldqm::fOnline, edm::Event::getByToken(), edm::InputTag::instance(), and edm::InputTag::label().

368 {
369  if (_ptype!=fOnline)
370  {
371  // local
373  if (!e.getByToken(_tokTrigger, ctrigger))
374  _logger.dqmthrow("Collection HcalTBTriggerData isn't available "
375  + _tagTrigger.label() + " " + _tagTrigger.instance());
376  return ctrigger->wasLEDTrigger();
377  }
378 
379  return false;
380 }
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: LEDTask.h:55
ProcessingType _ptype
Definition: DQModule.h:59
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
Logger _logger
Definition: DQModule.h:70
edm::InputTag _tagTrigger
Definition: LEDTask.h:51
std::string const & label() const
Definition: InputTag.h:36
std::string const & instance() const
Definition: InputTag.h:37
void LEDTask::_process ( edm::Event const &  e,
edm::EventSetup const &  es 
)
protectedvirtual

Implements hcaldqm::DQTask.

Definition at line 273 of file LEDTask.cc.

References _cShapeCut_FEDSlot, _dump(), hcaldqm::DQModule::_evsTotal, hcaldqm::DQModule::_logger, _lowHBHE, _lowHF, _lowHO, hcaldqm::DQModule::_ptype, _tagHBHE, _tagHF, _tagHO, _tokHBHE, _tokHF, _tokHO, _xEntries, _xSignalSum, _xSignalSum2, _xTimingSum, _xTimingSum2, hcaldqm::utilities::aveTS(), hcaldqm::constants::CALIBEVENTS_MIN, Logger::dqmthrow(), hcaldqm::Container1D::fill(), hcaldqm::fOnline, hcaldqm::ContainerXXX< STDTYPE >::get(), edm::Event::getByToken(), i, edm::InputTag::instance(), edm::InputTag::label(), HFDataFrame::size(), HBHEDataFrame::size(), HODataFrame::size(), and hcaldqm::utilities::sumQ().

275 {
279 
280  if (!e.getByToken(_tokHBHE, chbhe))
281  _logger.dqmthrow("Collection HBHEDigiCollection isn't available "
282  + _tagHBHE.label() + " " + _tagHBHE.instance());
283  if (!e.getByToken(_tokHO, cho))
284  _logger.dqmthrow("Collection HODigiCollection isn't available "
285  + _tagHO.label() + " " + _tagHO.instance());
286  if (!e.getByToken(_tokHF, chf))
287  _logger.dqmthrow("Collection HFDigiCollection isn't available "
288  + _tagHF.label() + " " + _tagHF.instance());
289 
290 // int currentEvent = e.eventAuxiliary().id().event();
291 
292  for (HBHEDigiCollection::const_iterator it=chbhe->begin();
293  it!=chbhe->end(); ++it)
294  {
295  const HBHEDataFrame digi = (const HBHEDataFrame)(*it);
296  double sumQ = utilities::sumQ<HBHEDataFrame>(digi, 2.5, 0,
297  digi.size()-1);
298  if (sumQ<_lowHBHE)
299  continue;
300  HcalDetId did = digi.id();
301  HcalElectronicsId eid = digi.elecId();
302 
303  double aveTS = utilities::aveTS<HBHEDataFrame>(digi, 2.5, 0,
304  digi.size()-1);
305  _xSignalSum.get(did)+=sumQ;
306  _xSignalSum2.get(did)+=sumQ*sumQ;
307  _xTimingSum.get(did)+=aveTS;
308  _xTimingSum2.get(did)+=aveTS*aveTS;
309  _xEntries.get(did)++;
310 
311  for (int i=0; i<digi.size(); i++)
312  _cShapeCut_FEDSlot.fill(eid, i,
313  digi.sample(i).nominal_fC()-2.5);
314  }
315  for (HODigiCollection::const_iterator it=cho->begin();
316  it!=cho->end(); ++it)
317  {
318  const HODataFrame digi = (const HODataFrame)(*it);
319  double sumQ = utilities::sumQ<HODataFrame>(digi, 8.5, 0,
320  digi.size()-1);
321  if (sumQ<_lowHO)
322  continue;
323  HcalDetId did = digi.id();
324  HcalElectronicsId eid = digi.elecId();
325 
326  double aveTS = utilities::aveTS<HODataFrame>(digi, 8.5, 0,
327  digi.size()-1);
328  _xSignalSum.get(did)+=sumQ;
329  _xSignalSum2.get(did)+=sumQ*sumQ;
330  _xTimingSum.get(did)+=aveTS;
331  _xTimingSum2.get(did)+=aveTS*aveTS;
332  _xEntries.get(did)++;
333 
334  for (int i=0; i<digi.size(); i++)
335  _cShapeCut_FEDSlot.fill(eid, i,
336  digi.sample(i).nominal_fC()-8.5);
337  }
338  for (HFDigiCollection::const_iterator it=chf->begin();
339  it!=chf->end(); ++it)
340  {
341  const HFDataFrame digi = (const HFDataFrame)(*it);
342  double sumQ = utilities::sumQ<HFDataFrame>(digi, 2.5, 0,
343  digi.size()-1);
344  if (sumQ<_lowHF)
345  continue;
346  HcalDetId did = digi.id();
347  HcalElectronicsId eid = digi.elecId();
348 
349  double aveTS = utilities::aveTS<HFDataFrame>(digi, 2.5, 0,
350  digi.size()-1);
351  _xSignalSum.get(did)+=sumQ;
352  _xSignalSum2.get(did)+=sumQ*sumQ;
353  _xTimingSum.get(did)+=aveTS;
354  _xTimingSum2.get(did)+=aveTS*aveTS;
355  _xEntries.get(did)++;
356 
357  for (int i=0; i<digi.size(); i++)
358  _cShapeCut_FEDSlot.fill(eid, i,
359  digi.sample(i).nominal_fC()-2.5);
360  }
361 
362  if (_ptype==fOnline && _evsTotal>0 &&
364  this->_dump();
365 }
int i
Definition: DBlmapReader.cc:9
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
Definition: Utilities.h:38
double _lowHBHE
Definition: LEDTask.h:64
double _lowHF
Definition: LEDTask.h:66
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: LEDTask.h:52
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::InputTag _tagHO
Definition: LEDTask.h:49
edm::InputTag _tagHF
Definition: LEDTask.h:50
ContainerXXX< double > _xSignalSum
Definition: LEDTask.h:69
ContainerXXX< int > _xEntries
Definition: LEDTask.h:71
ProcessingType _ptype
Definition: DQModule.h:59
virtual void fill(uint32_t)
Definition: Container1D.cc:82
ContainerProf1D _cShapeCut_FEDSlot
Definition: LEDTask.h:82
double _lowHO
Definition: LEDTask.h:65
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
Logger _logger
Definition: DQModule.h:70
edm::InputTag _tagHBHE
Definition: LEDTask.h:48
ContainerXXX< double > _xTimingSum2
Definition: LEDTask.h:73
int const CALIBEVENTS_MIN
Definition: Constants.h:211
int size() const
total number of samples in the digi
Definition: HFDataFrame.h:26
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LEDTask.h:53
std::string const & label() const
Definition: InputTag.h:36
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
ContainerXXX< double > _xTimingSum
Definition: LEDTask.h:72
virtual void _dump()
Definition: LEDTask.cc:204
ContainerXXX< double > _xSignalSum2
Definition: LEDTask.h:70
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: LEDTask.h:54
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:52
void LEDTask::_resetMonitors ( UpdateFreq  uf)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 199 of file LEDTask.cc.

200 {
201  DQTask::_resetMonitors(uf);
202 }
void LEDTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 31 of file LEDTask.cc.

References _cMissing_depth, _cMissing_FEDuTCA, _cMissing_FEDVME, _cShapeCut_FEDSlot, _cSignalMean_depth, _cSignalMean_FEDuTCA, _cSignalMean_FEDVME, _cSignalMean_Subdet, _cSignalRMS_depth, _cSignalRMS_FEDuTCA, _cSignalRMS_FEDVME, _cSignalRMS_Subdet, _cTimingMean_depth, _cTimingMean_FEDuTCA, _cTimingMean_FEDVME, _cTimingMean_Subdet, _cTimingRMS_depth, _cTimingRMS_FEDuTCA, _cTimingRMS_FEDVME, _cTimingRMS_Subdet, _ehashmap, _emap, _filter_uTCA, _filter_VME, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, _xEntries, _xSignalSum, _xSignalSum2, _xTimingSum, _xTimingSum2, hcaldqm::ContainerXXX< STDTYPE >::book(), hcaldqm::ContainerProf2D::book(), hcaldqm::ContainerProf1D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), hcaldqm::constants::CRATE_uTCA_MIN, hcaldqm::constants::CRATE_VME_MIN, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fDChannel, hcaldqm::quantity::fdepth, hcaldqm::hashfunctions::fElectronics, hcaldqm::quantity::ffC_1000, hcaldqm::quantity::ffC_3000, hcaldqm::quantity::fFED, hcaldqm::hashfunctions::fFEDSlot, hcaldqm::quantity::fFiberuTCAFiberCh, hcaldqm::quantity::fFiberVMEFiberCh, hcaldqm::filter::fFilter, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::quantity::fieta, hcaldqm::quantity::fiphi, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fSpigot, hcaldqm::quantity::fSubdet, hcaldqm::quantity::fTiming_TS, hcaldqm::quantity::fTiming_TS200, edm::EventSetup::get(), hcaldqm::ContainerProf2D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::ContainerXXX< STDTYPE >::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), edm::RunAuxiliary::run(), edm::Run::runAuxiliary(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

33 {
34  if (_ptype==fLocal)
35  if (r.runAuxiliary().run()==1)
36  return;
37 
38  DQTask::bookHistograms(ib, r, es);
39 
41  es.get<HcalDbRecord>().get(dbService);
42  _emap = dbService->getHcalMapping();
43 
44  std::vector<uint32_t> vhashVME;
45  std::vector<uint32_t> vhashuTCA;
46  std::vector<uint32_t> vhashC36;
47  vhashVME.push_back(HcalElectronicsId(constants::FIBERCH_MIN,
49  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN,
50  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
52  vhashVME);
54  vhashuTCA);
55 
56  // INITIALIZE
57  _cSignalMean_Subdet.initialize(_name, "SignalMean",
61  _cSignalRMS_Subdet.initialize(_name, "SignalRMS",
65  _cTimingMean_Subdet.initialize(_name, "TimingMean",
69  _cTimingRMS_Subdet.initialize(_name, "TimingRMS",
73 
74  _cSignalMean_FEDVME.initialize(_name, "SignalMean",
84  _cSignalRMS_FEDVME.initialize(_name, "SignalRMS",
94  _cTimingMean_FEDVME.initialize(_name, "TimingMean",
104  _cTimingRMS_FEDVME.initialize(_name, "TimingRMS",
109  _cTimingRMS_FEDuTCA.initialize(_name, "TimingRMS",
114 
119 
120  _cSignalMean_depth.initialize(_name, "SignalMean",
125  _cSignalRMS_depth.initialize(_name, "SignalRMS",
130  _cTimingMean_depth.initialize(_name, "TimingMean",
135  _cTimingRMS_depth.initialize(_name, "TimingRMS",
140 
141  _cMissing_depth.initialize(_name, "Missing",
146  _cMissing_FEDVME.initialize(_name, "Missing",
156 
157 
158  // initialize compact containers
164 
165  // BOOK
170 
175 
184 
189 
195 
197 }
Container2D _cMissing_depth
Definition: LEDTask.h:100
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
int const CRATE_VME_MIN
Definition: Constants.h:60
ContainerProf2D _cSignalMean_FEDVME
Definition: LEDTask.h:90
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LEDTask.h:95
ContainerProf2D _cSignalMean_depth
Definition: LEDTask.h:85
int const SPIGOT_MIN
Definition: Constants.h:85
int const FIBER_VME_MIN
Definition: Constants.h:90
void bookHistograms(fwlite::EventContainer &eventCont)
int const FIBERCH_MIN
Definition: Constants.h:100
ContainerXXX< double > _xSignalSum
Definition: LEDTask.h:69
ContainerXXX< int > _xEntries
Definition: LEDTask.h:71
ProcessingType _ptype
Definition: DQModule.h:59
ContainerProf1D _cShapeCut_FEDSlot
Definition: LEDTask.h:82
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
ContainerProf2D _cSignalRMS_FEDVME
Definition: LEDTask.h:94
Container2D _cMissing_FEDuTCA
Definition: LEDTask.h:102
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
Container2D _cMissing_FEDVME
Definition: LEDTask.h:101
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
std::string _name
Definition: DQModule.h:57
Container1D _cSignalRMS_Subdet
Definition: LEDTask.h:77
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
ContainerXXX< double > _xTimingSum2
Definition: LEDTask.h:73
int const CRATE_uTCA_MIN
Definition: Constants.h:65
HashFilter _filter_uTCA
Definition: LEDTask.h:60
ContainerProf2D _cTimingMean_FEDuTCA
Definition: LEDTask.h:93
HashFilter _filter_VME
Definition: LEDTask.h:61
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:895
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:93
ContainerProf2D _cTimingMean_FEDVME
Definition: LEDTask.h:92
ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LEDTask.h:97
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
ContainerProf2D _cTimingRMS_depth
Definition: LEDTask.h:88
ContainerProf2D _cTimingMean_depth
Definition: LEDTask.h:87
ContainerProf2D _cSignalRMS_depth
Definition: LEDTask.h:86
ContainerXXX< double > _xTimingSum
Definition: LEDTask.h:72
std::string _subsystem
Definition: DQModule.h:64
HcalElectronicsMap const * _emap
Definition: LEDTask.h:58
ContainerXXX< double > _xSignalSum2
Definition: LEDTask.h:70
Container1D _cSignalMean_Subdet
Definition: LEDTask.h:76
Container1D _cTimingRMS_Subdet
Definition: LEDTask.h:79
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:85
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:26
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Readout chain identification for Hcal.
ContainerProf2D _cTimingRMS_FEDVME
Definition: LEDTask.h:96
Container1D _cTimingMean_Subdet
Definition: LEDTask.h:78
electronicsmap::ElectronicsMap _ehashmap
Definition: LEDTask.h:59
int const SLOT_uTCA_MIN
Definition: Constants.h:72
ContainerProf2D _cSignalMean_FEDuTCA
Definition: LEDTask.h:91
virtual void LEDTask::endRun ( edm::Run const &  r,
edm::EventSetup const &   
)
inlinevirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 32 of file LEDTask.h.

References hcaldqm::fLocal, edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().

33  {
34  if (_ptype==fLocal)
35  if (r.runAuxiliary().run()==1)
36  return;
37  this->_dump();
38  }
ProcessingType _ptype
Definition: DQModule.h:59
virtual void _dump()
Definition: LEDTask.cc:204

Member Data Documentation

Container2D LEDTask::_cMissing_depth
protected

Definition at line 100 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container2D LEDTask::_cMissing_FEDuTCA
protected

Definition at line 102 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container2D LEDTask::_cMissing_FEDVME
protected

Definition at line 101 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf1D LEDTask::_cShapeCut_FEDSlot
protected

Definition at line 82 of file LEDTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalMean_depth
protected

Definition at line 85 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalMean_FEDuTCA
protected

Definition at line 91 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalMean_FEDVME
protected

Definition at line 90 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container1D LEDTask::_cSignalMean_Subdet
protected

Definition at line 76 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalRMS_depth
protected

Definition at line 86 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalRMS_FEDuTCA
protected

Definition at line 95 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cSignalRMS_FEDVME
protected

Definition at line 94 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container1D LEDTask::_cSignalRMS_Subdet
protected

Definition at line 77 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingMean_depth
protected

Definition at line 87 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingMean_FEDuTCA
protected

Definition at line 93 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingMean_FEDVME
protected

Definition at line 92 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container1D LEDTask::_cTimingMean_Subdet
protected

Definition at line 78 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingRMS_depth
protected

Definition at line 88 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingRMS_FEDuTCA
protected

Definition at line 97 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D LEDTask::_cTimingRMS_FEDVME
protected

Definition at line 96 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

Container1D LEDTask::_cTimingRMS_Subdet
protected

Definition at line 79 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

electronicsmap::ElectronicsMap LEDTask::_ehashmap
protected

Definition at line 59 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

HcalElectronicsMap const* LEDTask::_emap
protected

Definition at line 58 of file LEDTask.h.

Referenced by _dump(), and bookHistograms().

HashFilter LEDTask::_filter_uTCA
protected

Definition at line 60 of file LEDTask.h.

Referenced by bookHistograms().

HashFilter LEDTask::_filter_VME
protected

Definition at line 61 of file LEDTask.h.

Referenced by bookHistograms().

double LEDTask::_lowHBHE
protected

Definition at line 64 of file LEDTask.h.

Referenced by _process(), and LEDTask().

double LEDTask::_lowHF
protected

Definition at line 66 of file LEDTask.h.

Referenced by _process(), and LEDTask().

double LEDTask::_lowHO
protected

Definition at line 65 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::InputTag LEDTask::_tagHBHE
protected

Definition at line 48 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::InputTag LEDTask::_tagHF
protected

Definition at line 50 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::InputTag LEDTask::_tagHO
protected

Definition at line 49 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::InputTag LEDTask::_tagTrigger
protected

Definition at line 51 of file LEDTask.h.

Referenced by _isApplicable(), and LEDTask().

edm::EDGetTokenT<HBHEDigiCollection> LEDTask::_tokHBHE
protected

Definition at line 52 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::EDGetTokenT<HFDigiCollection> LEDTask::_tokHF
protected

Definition at line 54 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::EDGetTokenT<HODigiCollection> LEDTask::_tokHO
protected

Definition at line 53 of file LEDTask.h.

Referenced by _process(), and LEDTask().

edm::EDGetTokenT<HcalTBTriggerData> LEDTask::_tokTrigger
protected

Definition at line 55 of file LEDTask.h.

Referenced by _isApplicable(), and LEDTask().

ContainerXXX<int> LEDTask::_xEntries
protected

Definition at line 71 of file LEDTask.h.

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

ContainerXXX<double> LEDTask::_xSignalSum
protected

Definition at line 69 of file LEDTask.h.

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

ContainerXXX<double> LEDTask::_xSignalSum2
protected

Definition at line 70 of file LEDTask.h.

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

ContainerXXX<double> LEDTask::_xTimingSum
protected

Definition at line 72 of file LEDTask.h.

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

ContainerXXX<double> LEDTask::_xTimingSum2
protected

Definition at line 73 of file LEDTask.h.

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

tuple LEDTask.ledTask
Initial value:
1 = cms.EDAnalyzer(
2  "LEDTask",
3 
4  # standard parameters
5  name = cms.untracked.string("LEDTask"),
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("HcalCalib"),
12 
13  # tags
14  tagHBHE = cms.untracked.InputTag("hcalDigis"),
15  tagHO = cms.untracked.InputTag("hcalDigis"),
16  tagHF = cms.untracked.InputTag("hcalDigis"),
17  tagRaw = cms.untracked.InputTag('hltHcalCalibrationRaw')
18 )

Definition at line 3 of file LEDTask.py.