CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
QIE11Task Class Reference

#include <QIE11Task.h>

Inheritance diagram for QIE11Task:
hcaldqm::DQTask DQMEDAnalyzer hcaldqm::DQModule edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 QIE11Task (edm::ParameterSet const &)
 
 ~QIE11Task () override
 
- Public Member Functions inherited from hcaldqm::DQTask
void analyze (edm::Event const &, edm::EventSetup const &) override
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQTask (edm::ParameterSet const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 ~DQTask () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()(false)
 

Protected Member Functions

bool _isApplicable (edm::Event const &) override
 
void _process (edm::Event const &, edm::EventSetup const &) override
 
void _resetMonitors (hcaldqm::UpdateFreq) override
 
- 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

hcaldqm::ContainerSingle1D _cADC
 
hcaldqm::Container1D _cADC_EChannel [10][2]
 
hcaldqm::ContainerSingle1D _cLETDC
 
hcaldqm::Container1D _cLETDC_EChannel [10][2]
 
hcaldqm::Container1D _cLETDCTime_EChannel [2]
 
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
 
hcaldqm::ContainerSingle2D _cLETDCvsADC
 
hcaldqm::Container2D _cLETDCvsADC_EChannel [10][2]
 
hcaldqm::Container2D _cLETDCvsTS_EChannel [2]
 
hcaldqm::Container2D _cOccupancy_depth
 
hcaldqm::ContainerSingleProf1D _cShapeCut
 
hcaldqm::ContainerProf1D _cShapeCut_EChannel [2]
 
double _cut
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
int _eventType
 
hcaldqm::filter::HashFilter _filter_C34
 
hcaldqm::filter::HashFilter _filter_slot [2]
 
hcaldqm::filter::HashFilter _filter_timingChannels [4]
 
int _laserType
 
int _ped
 
edm::InputTag _tagQIE11
 
edm::InputTag _taguMN
 
edm::EDGetTokenT< QIE11DigiCollection_tokQIE11
 
edm::EDGetTokenT< HcalUMNioDigi_tokuMN
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
edm::ESHandle< HcalDbService_dbService
 
HcalElectronicsMap const * _emap
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT< FEDRawDataCollection_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
- 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::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 22 of file QIE11Task.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file QIE11Task.cc.

References _cut, _eventType, _laserType, _ped, _tagQIE11, _taguMN, _tokQIE11, _tokuMN, and edm::ParameterSet::getUntrackedParameter().

6  :
7  DQTask(ps)
8 {
9 
10  // tags
11  _tagQIE11 = ps.getUntrackedParameter<edm::InputTag>("tagQIE11",
12  edm::InputTag("hcalDigis"));
13  _tokQIE11 = consumes<QIE11DigiCollection>(_tagQIE11);
14 
15  _taguMN = ps.getUntrackedParameter<edm::InputTag>("taguMN",
16  edm::InputTag("hcalDigis"));
17  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
18 
19  // cuts
20  _cut = ps.getUntrackedParameter<double>("cut", 50.0);
21  _ped = ps.getUntrackedParameter<int>("ped", 4);
22  _laserType = ps.getUntrackedParameter<int32_t>("laserType", -1);
23  _eventType = ps.getUntrackedParameter<int32_t>("eventType", -1);
24 }
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: QIE11Task.h:41
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
int _eventType
Definition: QIE11Task.h:52
int _ped
Definition: QIE11Task.h:50
edm::InputTag _tagQIE11
Definition: QIE11Task.h:40
double _cut
Definition: QIE11Task.h:49
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: QIE11Task.h:44
int _laserType
Definition: QIE11Task.h:51
edm::InputTag _taguMN
Definition: QIE11Task.h:43
QIE11Task::~QIE11Task ( )
inlineoverride

Definition at line 26 of file QIE11Task.h.

References _isApplicable(), _process(), _resetMonitors(), bookHistograms(), and endLuminosityBlock().

26 {}

Member Function Documentation

bool QIE11Task::_isApplicable ( edm::Event const &  e)
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 224 of file QIE11Task.cc.

References _eventType, _laserType, hcaldqm::DQModule::_ptype, _tokuMN, HcalUMNioDigi::eventType(), hcaldqm::fOnline, edm::Event::getByToken(), and HcalUMNioDigi::valueUserWord().

Referenced by ~QIE11Task().

225 {
226  if (_ptype!=fOnline || (_laserType < 0 && _eventType < 0))
227  return true;
228  else
229  {
230  // fOnline mode
232  if (!e.getByToken(_tokuMN, cumn))
233  return false;
234 
235  // event type check first
236  int eventType = cumn->eventType();
237  if (eventType==_eventType)
238  return true;
239 
240  // check if this analysis task is of the right laser type
241  int laserType = cumn->valueUserWord(0);
242  if (laserType==_laserType)
243  return true;
244  }
245 
246  return false;
247 }
int _eventType
Definition: QIE11Task.h:52
ProcessingType _ptype
Definition: DQModule.h:59
uint32_t valueUserWord(int iword) const
uint8_t eventType() const
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: QIE11Task.h:44
int _laserType
Definition: QIE11Task.h:51
void QIE11Task::_process ( edm::Event const &  e,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements hcaldqm::DQTask.

Definition at line 159 of file QIE11Task.cc.

References _cADC, _cADC_EChannel, _cLETDC, _cLETDC_EChannel, _cLETDCTime_EChannel, _cLETDCTimevsADC, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cLETDCvsTS_EChannel, _cShapeCut, _cShapeCut_EChannel, hcaldqm::DQTask::_dbService, _ehashmap, hcaldqm::DQModule::_ptype, _tokQIE11, ecalMGPA::adc(), HcalElectronicsId::crateId(), QIE11DataFrame::detid(), runTauDisplay::eid, hcaldqm::Container2D::fill(), hcaldqm::ContainerSingle1D::fill(), hcaldqm::ContainerSingle2D::fill(), hcaldqm::Container1D::fill(), hcaldqm::fOffline, edm::Event::getByToken(), HcalEndcap, mps_fire::i, hcaldqm::electronicsmap::ElectronicsMap::lookup(), HcalElectronicsId::rawId(), QIE11DataFrame::samples(), edm::DataFrameContainer::size(), and HcalElectronicsId::slot().

Referenced by ~QIE11Task().

161 {
163  if (!e.getByToken(_tokQIE11, cqie11))
164  return;
165 
166  for (uint32_t i=0; i<cqie11->size(); i++)
167  {
168  QIE11DataFrame frame = static_cast<QIE11DataFrame>((*cqie11)[i]);
169  DetId did = frame.detid();
170  if (HcalDetId(frame.detid()).subdet() != HcalEndcap) {
171  continue;
172  }
173 
175  if (!eid.rawId()) {
176  continue;
177  }
178  int fakecrate = -1;
179  if (eid.crateId() == 34) fakecrate = 0;
180  int index = fakecrate * 12 + (eid.slot() - 10) - 1;
181 
182  // compute the signal, ped subracted
183  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE11DataFrame>(_dbService, did, frame);
184 // double q = hcaldqm::utilities::aveTS_v10<QIE11DataFrame>(frame,
185 // constants::adc2fC[_ped], 0, frame.samples()-1);
186 
187  // iterate thru all TS and fill
188  for (int j=0; j<frame.samples(); j++)
189  {
190  double q_pedsub = hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(_dbService, digi_fC, did, frame, j);
191  if (_ptype != fOffline) {
192  if (index == 0 || index == 1) {
193  // shapes are after the cut
194  _cShapeCut_EChannel[index].fill(eid, j, q_pedsub);
195  _cLETDCvsTS_EChannel[index].fill(eid, j, frame[j].tdc());
196 
197  // w/o a cut
198  _cLETDCvsADC_EChannel[j][index].fill(eid, frame[j].adc(),
199  frame[j].tdc());
200  _cLETDC_EChannel[j][index].fill(eid, frame[j].tdc());
201  if (frame[j].tdc() < 50) {
202  // Each TDC count is 0.5 ns.
203  // tdc == 62 or 63 means value was below or above threshold for whole time slice.
204  _cLETDCTime_EChannel[index].fill(eid, j*25. + (frame[j].tdc() / 2.));
205  }
206  _cADC_EChannel[j][index].fill(eid, frame[j].adc());
207  }
208  }
209  _cShapeCut.fill(eid, j, q_pedsub);
210 
211  _cLETDCvsADC.fill(frame[j].adc(), frame[j].tdc());
212  if (frame[j].tdc() < 50) {
213  _cLETDCTimevsADC.fill(frame[j].adc(), j*25. + (frame[j].tdc() / 2.));
214  }
215  _cLETDC.fill(eid, frame[j].tdc());
216 
217  _cADC.fill(eid, frame[j].adc());
218 
219  }
220  }
221 }
int adc(sample_type sample)
get the ADC sample (12 bits)
DetId detid() const
Get the detector id.
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: QIE11Task.h:41
constexpr uint32_t rawId() const
hcaldqm::Container1D _cADC_EChannel[10][2]
Definition: QIE11Task.h:69
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE11Task.h:74
hcaldqm::Container2D _cLETDCvsTS_EChannel[2]
Definition: QIE11Task.h:66
hcaldqm::ContainerProf1D _cShapeCut_EChannel[2]
Definition: QIE11Task.h:64
hcaldqm::Container1D _cLETDCTime_EChannel[2]
Definition: QIE11Task.h:68
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE11Task.h:73
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][2]
Definition: QIE11Task.h:65
ProcessingType _ptype
Definition: DQModule.h:59
virtual void fill(uint32_t)
Definition: Container1D.cc:83
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE11Task.h:61
constexpr int crateId() const
get the readout VME crate number
hcaldqm::ContainerSingle1D _cADC
Definition: QIE11Task.h:77
Definition: DetId.h:18
constexpr int slot() const
get the htr or uHTR slot
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:72
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE11Task.h:75
void fill(HcalDetId const &) override
Definition: Container2D.cc:59
virtual void fill(int, int)
int samples() const
total number of samples in the digi
hcaldqm::Container1D _cLETDC_EChannel[10][2]
Definition: QIE11Task.h:67
Readout chain identification for Hcal.
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE11Task.h:76
void QIE11Task::_resetMonitors ( hcaldqm::UpdateFreq  )
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 250 of file QIE11Task.cc.

References DEFINE_FWK_MODULE.

Referenced by ~QIE11Task().

251 {
252 }
void QIE11Task::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 25 of file QIE11Task.cc.

References _cADC, _cADC_EChannel, _cLETDC, _cLETDC_EChannel, _cLETDCTime_EChannel, _cLETDCTimevsADC, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cLETDCvsTS_EChannel, _cShapeCut, _cShapeCut_EChannel, _ehashmap, hcaldqm::DQTask::_emap, _filter_C34, _filter_slot, _filter_timingChannels, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, printConversionInfo::aux, hcaldqm::ContainerSingleProf1D::book(), hcaldqm::ContainerProf1D::book(), hcaldqm::ContainerSingle1D::book(), hcaldqm::ContainerSingle2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), egammaForCoreTracking_cff::depth, hcaldqm::hashfunctions::fCrateSlot, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fDChannel, hcaldqm::hashfunctions::fEChannel, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBERCH_MIN, plotBeamSpotDB::first, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::fOffline, hcaldqm::filter::fPreserver, hcaldqm::quantity::fQIE10ADC_256, hcaldqm::quantity::fQIE10fC_400000, hcaldqm::quantity::fQIE10TDC_64, hcaldqm::quantity::fTime_ns_250, hcaldqm::quantity::fTiming_TS, edm::EventSetup::get(), HcalDbService::getHcalMapping(), HcalEndcap, hcaldqm::ContainerSingleProf1D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerSingle1D::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::Container1D::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), edm::RunAuxiliary::run(), edm::Run::runAuxiliary(), and edm::second().

Referenced by ~QIE11Task().

27 {
28  if (_ptype==fLocal)
29  if (r.runAuxiliary().run()==1)
30  return;
31 
32  DQTask::bookHistograms(ib, r, es);
33 
34  // GET WHAT YOU NEED
36  es.get<HcalDbRecord>().get(dbs);
37  _emap = dbs->getHcalMapping();
38  std::vector<uint32_t> vhashC34;
39  vhashC34.push_back(HcalElectronicsId(34, 11,
40  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
41  vhashC34.push_back(HcalElectronicsId(34, 12,
42  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
44  vhashC34);
45 
46  std::vector<std::pair<int, int> > timingChannels;
47  timingChannels.push_back(std::pair<int, int>(28, 63));
48  timingChannels.push_back(std::pair<int, int>(28, 65));
49  timingChannels.push_back(std::pair<int, int>(20, 63));
50  timingChannels.push_back(std::pair<int, int>(20, 65));
51  for (int iChan = 0; iChan < 4; ++iChan) {
52  std::vector<uint32_t> vhashTimingChannel;
53  for (int depth = 1; depth <= 7; ++depth) {
54  vhashTimingChannel.push_back(HcalDetId(HcalEndcap, timingChannels[iChan].first, timingChannels[iChan].second, depth));
55  }
57  }
58 
59  // INITIALIZE what you need
60 
61  // EChannel plots, online+local only
62  if (_ptype != fOffline) {
63  unsigned int itr = 0;
64  for (unsigned int crate = 34; crate <= 34; ++crate) {
65  for (unsigned int slot = 11; slot <= 12; ++slot) {
66  std::vector<uint32_t> vhashSlot;
67  vhashSlot.push_back(HcalElectronicsId(crate, slot, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
82  for (unsigned int j=0; j<10; j++) {
96  }
97  ++itr;
98  }
99  }
100  }
102  "ShapeCut",
105  _cLETDCvsADC.initialize(_name, "LETDCvsADC",
109  _cLETDCTimevsADC.initialize(_name, "LETDCTimevsADC",
113  _cLETDC.initialize(_name, "LETDC",
116  _cADC.initialize(_name, "ADC",
119 
120  if (_ptype != fOffline) {
121  unsigned int itr = 0;
122  std::map<std::pair<unsigned int, unsigned int>, unsigned int> itr_map;
123  for(unsigned int crate = 34; crate <= 34; ++crate) {
124  for(unsigned int slot=11; slot<=12; ++slot) {
125  char aux[100];
126  sprintf(aux, "/Crate%d_Slot%d", crate, slot);
127  _cShapeCut_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
128  _cLETDCvsTS_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
129  _cLETDCTime_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
130  for (unsigned int j=0; j<10; j++) {
131  char aux2[100];
132  sprintf(aux2, "/Crate%d_Slot%d/TS%d", crate, slot, j);
133  _cLETDCvsADC_EChannel[j][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux2);
134  _cLETDC_EChannel[j][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux2);
135  _cADC_EChannel[j][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux2);
136  }
137  itr_map[std::make_pair(crate, slot)] = itr;
138  ++itr;
139  }
140  }
141  }
145  _cLETDC.book(ib, _subsystem);
146  _cADC.book(ib, _subsystem);
147 
149 }
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
hcaldqm::Container1D _cADC_EChannel[10][2]
Definition: QIE11Task.h:69
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:41
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE11Task.h:74
hcaldqm::filter::HashFilter _filter_C34
Definition: QIE11Task.h:56
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::Container2D _cLETDCvsTS_EChannel[2]
Definition: QIE11Task.h:66
hcaldqm::ContainerProf1D _cShapeCut_EChannel[2]
Definition: QIE11Task.h:64
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container1D _cLETDCTime_EChannel[2]
Definition: QIE11Task.h:68
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE11Task.h:73
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][2]
Definition: QIE11Task.h:65
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0) override
int const FIBERCH_MIN
Definition: Constants.h:151
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
U second(std::pair< T, U > const &p)
ProcessingType _ptype
Definition: DQModule.h:59
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
hcaldqm::filter::HashFilter _filter_slot[2]
Definition: QIE11Task.h:57
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE11Task.h:61
int const FIBER_uTCA_MIN1
Definition: Constants.h:144
std::string _name
Definition: DQModule.h:57
HcalElectronicsMap const * _emap
Definition: DQTask.h:73
hcaldqm::ContainerSingle1D _cADC
Definition: QIE11Task.h:77
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:958
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE11Task.h:75
const HcalElectronicsMap * getHcalMapping() const
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:28
std::string _subsystem
Definition: DQModule.h:64
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:895
hcaldqm::Container1D _cLETDC_EChannel[10][2]
Definition: QIE11Task.h:67
Readout chain identification for Hcal.
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE11Task.h:76
hcaldqm::filter::HashFilter _filter_timingChannels[4]
Definition: QIE11Task.h:58
void QIE11Task::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 151 of file QIE11Task.cc.

Referenced by ~QIE11Task().

153 {
154 
155  // finish
156  DQTask::endLuminosityBlock(lb, es);
157 }

Member Data Documentation

hcaldqm::ContainerSingle1D QIE11Task::_cADC
protected

Definition at line 77 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE11Task::_cADC_EChannel[10][2]
protected

Definition at line 69 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle1D QIE11Task::_cLETDC
protected

Definition at line 76 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE11Task::_cLETDC_EChannel[10][2]
protected

Definition at line 67 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE11Task::_cLETDCTime_EChannel[2]
protected

Definition at line 68 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE11Task::_cLETDCTimevsADC
protected

Definition at line 75 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE11Task::_cLETDCvsADC
protected

Definition at line 74 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE11Task::_cLETDCvsADC_EChannel[10][2]
protected

Definition at line 65 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE11Task::_cLETDCvsTS_EChannel[2]
protected

Definition at line 66 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE11Task::_cOccupancy_depth
protected

Definition at line 70 of file QIE11Task.h.

hcaldqm::ContainerSingleProf1D QIE11Task::_cShapeCut
protected

Definition at line 73 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerProf1D QIE11Task::_cShapeCut_EChannel[2]
protected

Definition at line 64 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

double QIE11Task::_cut
protected

Definition at line 49 of file QIE11Task.h.

Referenced by QIE11Task().

hcaldqm::electronicsmap::ElectronicsMap QIE11Task::_ehashmap
protected

Definition at line 61 of file QIE11Task.h.

Referenced by _process(), and bookHistograms().

int QIE11Task::_eventType
protected

Definition at line 52 of file QIE11Task.h.

Referenced by _isApplicable(), and QIE11Task().

hcaldqm::filter::HashFilter QIE11Task::_filter_C34
protected

Definition at line 56 of file QIE11Task.h.

Referenced by bookHistograms().

hcaldqm::filter::HashFilter QIE11Task::_filter_slot[2]
protected

Definition at line 57 of file QIE11Task.h.

Referenced by bookHistograms().

hcaldqm::filter::HashFilter QIE11Task::_filter_timingChannels[4]
protected

Definition at line 58 of file QIE11Task.h.

Referenced by bookHistograms().

int QIE11Task::_laserType
protected

Definition at line 51 of file QIE11Task.h.

Referenced by _isApplicable(), and QIE11Task().

int QIE11Task::_ped
protected

Definition at line 50 of file QIE11Task.h.

Referenced by QIE11Task().

edm::InputTag QIE11Task::_tagQIE11
protected

Definition at line 40 of file QIE11Task.h.

Referenced by QIE11Task().

edm::InputTag QIE11Task::_taguMN
protected

Definition at line 43 of file QIE11Task.h.

Referenced by QIE11Task().

edm::EDGetTokenT<QIE11DigiCollection> QIE11Task::_tokQIE11
protected

Definition at line 41 of file QIE11Task.h.

Referenced by _process(), and QIE11Task().

edm::EDGetTokenT<HcalUMNioDigi> QIE11Task::_tokuMN
protected

Definition at line 44 of file QIE11Task.h.

Referenced by _isApplicable(), and QIE11Task().