CMS 3D CMS Logo

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

#include <QIE10Task.h>

Inheritance diagram for QIE10Task:
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
 
 QIE10Task (edm::ParameterSet const &)
 
 ~QIE10Task () 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

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 &)
 
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

hcaldqm::ContainerSingle1D _cADC
 
hcaldqm::Container1D _cADC_EChannel [10][36]
 
hcaldqm::ContainerSingle1D _cLETDC
 
hcaldqm::Container1D _cLETDC_EChannel [10][36]
 
hcaldqm::Container1D _cLETDCTime_EChannel [36]
 
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
 
hcaldqm::ContainerSingle2D _cLETDCvsADC
 
hcaldqm::Container2D _cLETDCvsADC_EChannel [10][36]
 
hcaldqm::Container2D _cLETDCvsTS_EChannel [36]
 
hcaldqm::Container2D _cOccupancy_Crate
 
hcaldqm::Container2D _cOccupancy_CrateSlot
 
hcaldqm::Container2D _cOccupancy_depth
 
hcaldqm::ContainerSingleProf1D _cShapeCut
 
hcaldqm::ContainerProf1D _cShapeCut_EChannel [36]
 
double _cut
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
hcaldqm::filter::HashFilter _filter_slot [36]
 
int _ped
 
edm::InputTag _tagHF
 
edm::InputTag _tagQIE10
 
edm::EDGetTokenT< HFDigiCollection_tokHF
 
edm::EDGetTokenT< QIE10DigiCollection_tokQIE10
 
- 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 QIE10Task.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file QIE10Task.cc.

References _cut, _ped, _tagHF, _tagQIE10, _tokHF, _tokQIE10, and edm::ParameterSet::getUntrackedParameter().

8  :
9  DQTask(ps)
10 {
11 
12  // tags
13  _tagQIE10 = ps.getUntrackedParameter<edm::InputTag>("tagQIE10",
14  edm::InputTag("hcalDigis"));
15  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
16  edm::InputTag("hcalDigis"));
17  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
18  _tokHF = consumes<HFDigiCollection>(_tagHF);
19 
20  // cuts
21  _cut = ps.getUntrackedParameter<double>("cut", 50.0);
22  _ped = ps.getUntrackedParameter<int>("ped", 4);
23 }
edm::InputTag _tagHF
Definition: QIE10Task.h:39
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: QIE10Task.h:40
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: QIE10Task.h:41
edm::InputTag _tagQIE10
Definition: QIE10Task.h:38
int _ped
Definition: QIE10Task.h:45
double _cut
Definition: QIE10Task.h:44
QIE10Task::~QIE10Task ( )
inlineoverride

Definition at line 26 of file QIE10Task.h.

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

26 {}

Member Function Documentation

void QIE10Task::_process ( edm::Event const &  e,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements hcaldqm::DQTask.

Definition at line 163 of file QIE10Task.cc.

References _cADC, _cADC_EChannel, _cLETDC, _cLETDC_EChannel, _cLETDCTime_EChannel, _cLETDCTimevsADC, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cLETDCvsTS_EChannel, _cOccupancy_Crate, _cOccupancy_CrateSlot, _cOccupancy_depth, _cShapeCut, _cShapeCut_EChannel, _cut, hcaldqm::DQTask::_dbService, _ehashmap, hcaldqm::DQModule::_logger, _tagHF, _tokHF, _tokQIE10, ecalMGPA::adc(), HcalElectronicsId::crateId(), QIE10DataFrame::detid(), Logger::dqmthrow(), runTauDisplay::eid, hcaldqm::Container2D::fill(), hcaldqm::ContainerSingle1D::fill(), hcaldqm::ContainerSingle2D::fill(), hcaldqm::Container1D::fill(), edm::Event::getByToken(), HcalForward, mps_fire::i, edm::InputTag::instance(), edm::InputTag::label(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), lumiQueryAPI::q, QIE10DataFrame::samples(), edm::DataFrameContainer::size(), HcalElectronicsId::slot(), HcalDetId::subdet(), hcaldqm::utilities::sumQ(), and ntuplemaker::time.

Referenced by ~QIE10Task().

165 {
168  if (!e.getByToken(_tokQIE10, cqie10))
169  return;
170  if (!e.getByToken(_tokHF, chf))
171  _logger.dqmthrow("Collection HFDigiCollection isn't available"
172  + _tagHF.label() + " " + _tagHF.instance());
173 
174  std::map<uint32_t, QIE10DataFrame> mqie10;
175  for (uint32_t i=0; i<cqie10->size(); i++)
176  {
177  QIE10DataFrame frame = static_cast<QIE10DataFrame>((*cqie10)[i]);
178  HcalDetId did = frame.detid();
180  if (did.subdet() != HcalForward) {
181  continue;
182  }
183 
184  // Compute index for EChannel plots
185  int fakecrate =-1;
186  if (eid.crateId() == 22) {
187  fakecrate = 0;
188  } else if (eid.crateId() == 29) {
189  fakecrate = 1;
190  } else if (eid.crateId() == 32) {
191  fakecrate = 2;
192  } else {
193  // Unknown crate, skip digi
194  continue;
195  }
196  int index = fakecrate*12+eid.slot()-1;
197 
198  // compute the signal, ped subracted
199  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE10DataFrame>(_dbService, did, frame);
200  double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(_dbService, digi_fC, did, frame, 0, frame.samples()-1);
201  // double sumQ = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(frame, constants::adc2fC[_ped], 0, frame.samples()-1);
202 
203  _cOccupancy_Crate.fill(eid);
205  _cOccupancy_depth.fill(did);
206 
207  // iterate thru all TS and fill
208  for (int j=0; j<frame.samples(); j++)
209  {
210  // shapes are after the cut
211  if (sumQ>_cut)
212  {
213  double q = hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, frame, j);
214  _cShapeCut_EChannel[index].fill(eid, j, q);
215  _cShapeCut.fill(j, q);
216  }
217  // w/o a cut
218  _cLETDCvsADC_EChannel[j][index].fill(eid, frame[j].adc(),
219  frame[j].le_tdc());
220  _cLETDCvsADC.fill(frame[j].adc(), frame[j].le_tdc());
221  _cLETDC_EChannel[j][index].fill(eid, frame[j].le_tdc());
222  _cLETDC.fill(frame[j].le_tdc());
223  _cADC_EChannel[j][index].fill(eid, frame[j].adc());
224  _cADC.fill(frame[j].adc());
225  _cLETDCvsTS_EChannel[index].fill(eid, j, frame[j].le_tdc());
226 
227  // TDC conversion to time
228  if (frame[j].le_tdc() < 50) {
229  // Each TDC count is 0.5 ns.
230  // tdc == 62 or 63 means value was below or above threshold for whole time slice.
231  double time = j*25. + (frame[j].le_tdc() / 2.);
232  _cLETDCTime_EChannel[index].fill(eid, time);
233  _cLETDCTimevsADC.fill(frame[j].adc(), time);
234  }
235  }
236 
237  mqie10[did.rawId()] = frame;
238  }
239 }
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
edm::InputTag _tagHF
Definition: QIE10Task.h:39
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: QIE10Task.h:40
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE10Task.h:52
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:142
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:63
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:66
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: QIE10Task.h:41
hcaldqm::Container2D _cOccupancy_CrateSlot
Definition: QIE10Task.h:71
hcaldqm::ContainerProf1D _cShapeCut_EChannel[36]
Definition: QIE10Task.h:55
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:65
hcaldqm::Container1D _cADC_EChannel[10][36]
Definition: QIE10Task.h:59
hcaldqm::Container1D _cLETDC_EChannel[10][36]
Definition: QIE10Task.h:58
virtual void fill(uint32_t)
Definition: Container1D.cc:83
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
DetId detid() const
Get the detector id.
constexpr int crateId() const
get the readout VME crate number
Logger _logger
Definition: DQModule.h:70
hcaldqm::Container2D _cOccupancy_depth
Definition: QIE10Task.h:74
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][36]
Definition: QIE10Task.h:56
hcaldqm::Container2D _cOccupancy_Crate
Definition: QIE10Task.h:70
hcaldqm::Container1D _cLETDCTime_EChannel[36]
Definition: QIE10Task.h:60
hcaldqm::Container2D _cLETDCvsTS_EChannel[36]
Definition: QIE10Task.h:57
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE10Task.h:64
std::string const & label() const
Definition: InputTag.h:36
constexpr int slot() const
get the htr or uHTR slot
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:72
double _cut
Definition: QIE10Task.h:44
void fill(HcalDetId const &) override
Definition: Container2D.cc:59
virtual void fill(int, int)
hcaldqm::ContainerSingle1D _cADC
Definition: QIE10Task.h:67
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:121
void QIE10Task::_resetMonitors ( hcaldqm::UpdateFreq  )
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 241 of file QIE10Task.cc.

References DEFINE_FWK_MODULE.

Referenced by ~QIE10Task().

242 {
243 }
void QIE10Task::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 24 of file QIE10Task.cc.

References _cADC, _cADC_EChannel, _cLETDC, _cLETDC_EChannel, _cLETDCTime_EChannel, _cLETDCTimevsADC, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cLETDCvsTS_EChannel, _cOccupancy_Crate, _cOccupancy_CrateSlot, _cOccupancy_depth, _cShapeCut, _cShapeCut_EChannel, _ehashmap, hcaldqm::DQTask::_emap, _filter_slot, 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(), hcaldqm::constants::crateListHF, hcaldqm::quantity::fCrate, hcaldqm::hashfunctions::fCrateSlot, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fdepth, hcaldqm::hashfunctions::fEChannel, hcaldqm::quantity::fFiberCh, hcaldqm::quantity::fFiberuTCA, hcaldqm::quantity::fFiberuTCAFiberCh, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBERCH_MIN, hcaldqm::quantity::fieta, hcaldqm::quantity::fiphi, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::filter::fPreserver, hcaldqm::quantity::fQIE10ADC_256, hcaldqm::quantity::fQIE10fC_400000, hcaldqm::quantity::fQIE10TDC_64, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fTime_ns_250, hcaldqm::quantity::fTiming_TS, edm::EventSetup::get(), HcalDbService::getHcalMapping(), mps_fire::i, 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(), hcaldqm::constants::SLOT_uTCA_MAX, and hcaldqm::constants::SLOT_uTCA_MIN.

Referenced by ~QIE10Task().

26 {
27  if (_ptype==fLocal)
28  if (r.runAuxiliary().run()==1)
29  return;
30 
31  DQTask::bookHistograms(ib, r, es);
32 
33  // GET WHAT YOU NEED
35  es.get<HcalDbRecord>().get(dbs);
36  _emap = dbs->getHcalMapping();
37 
38  unsigned int nTS = _ptype==fLocal ? 10 : 6;
39 
40  // create a slot filter and initialize what you need
41  unsigned int itr=0;
42  for (auto& crate : constants::crateListHF) {
43  for(unsigned int slot=SLOT_uTCA_MIN; slot<=SLOT_uTCA_MAX; ++slot) {
44  std::vector<uint32_t> vhashSlot;
45  vhashSlot.push_back(HcalElectronicsId(crate, slot, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
47 
61 
62  for (unsigned int j=0; j<nTS; j++) {
76 
77  }
78  ++itr;
79  }
80  }
81 
83  "ShapeCut",
86  _cLETDCvsADC.initialize(_name, "LETDCvsADC",
90  _cLETDCTimevsADC.initialize(_name, "LETDCTimevsADC",
94  _cLETDC.initialize(_name, "LETDC",
97  _cADC.initialize(_name, "ADC",
100 
101 
102 
103  //OCCUPANCY PER CRATE/SLOT
105  "Occupancy", hashfunctions::fCrate,
110  "Occupancy", hashfunctions::fCrateSlot,
114 
115  // OCCUPANCY IN DETECTOR COORDINATES
116  _cOccupancy_depth.initialize(_name, "Occupancy",
121 
122 
123  itr = 0;
124  for(auto& crate : constants::crateListHF) {
125  for(unsigned int slot=SLOT_uTCA_MIN; slot<=SLOT_uTCA_MAX; ++slot) {
126  char aux[100];
127  sprintf(aux, "/Crate%d_Slot%d", crate, slot);
128  _cShapeCut_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
129  _cLETDCTime_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
130  _cLETDCvsTS_EChannel[itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
131  for (unsigned int i=0; i<nTS; i++) {
132  char aux2[100];
133  sprintf(aux2, "/Crate%d_Slot%d/TS%d", crate, slot, i);
134  _cLETDCvsADC_EChannel[i][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
135  _cLETDC_EChannel[i][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
136  _cADC_EChannel[i][itr].book(ib, _emap, _filter_slot[itr], _subsystem, aux);
137  }
138  ++itr;
139  }
140  }
141 
145  _cLETDC.book(ib, _subsystem);
146  _cADC.book(ib, _subsystem);
147 
151 
153 }
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
hcaldqm::filter::HashFilter _filter_slot[36]
Definition: QIE10Task.h:48
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE10Task.h:52
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
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:63
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:66
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 _cOccupancy_CrateSlot
Definition: QIE10Task.h:71
hcaldqm::ContainerProf1D _cShapeCut_EChannel[36]
Definition: QIE10Task.h:55
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:65
hcaldqm::Container1D _cADC_EChannel[10][36]
Definition: QIE10Task.h:59
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0) override
hcaldqm::Container1D _cLETDC_EChannel[10][36]
Definition: QIE10Task.h:58
int const FIBERCH_MIN
Definition: Constants.h:151
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
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)
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
int const FIBER_uTCA_MIN1
Definition: Constants.h:144
hcaldqm::Container2D _cOccupancy_depth
Definition: QIE10Task.h:74
std::string _name
Definition: DQModule.h:57
HcalElectronicsMap const * _emap
Definition: DQTask.h:73
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][36]
Definition: QIE10Task.h:56
hcaldqm::Container2D _cOccupancy_Crate
Definition: QIE10Task.h:70
std::vector< unsigned int > const crateListHF
Definition: Constants.h:93
hcaldqm::Container1D _cLETDCTime_EChannel[36]
Definition: QIE10Task.h:60
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::Container2D _cLETDCvsTS_EChannel[36]
Definition: QIE10Task.h:57
int const SLOT_uTCA_MAX
Definition: Constants.h:124
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE10Task.h:64
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::ContainerSingle1D _cADC
Definition: QIE10Task.h:67
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:123
void QIE10Task::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 155 of file QIE10Task.cc.

Referenced by ~QIE10Task().

157 {
158 
159  // finish
160  DQTask::endLuminosityBlock(lb, es);
161 }

Member Data Documentation

hcaldqm::ContainerSingle1D QIE10Task::_cADC
protected

Definition at line 67 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE10Task::_cADC_EChannel[10][36]
protected

Definition at line 59 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle1D QIE10Task::_cLETDC
protected

Definition at line 66 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE10Task::_cLETDC_EChannel[10][36]
protected

Definition at line 58 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D QIE10Task::_cLETDCTime_EChannel[36]
protected

Definition at line 60 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCTimevsADC
protected

Definition at line 64 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCvsADC
protected

Definition at line 65 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cLETDCvsADC_EChannel[10][36]
protected

Definition at line 56 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cLETDCvsTS_EChannel[36]
protected

Definition at line 57 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cOccupancy_Crate
protected

Definition at line 70 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cOccupancy_CrateSlot
protected

Definition at line 71 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cOccupancy_depth
protected

Definition at line 74 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingleProf1D QIE10Task::_cShapeCut
protected

Definition at line 63 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerProf1D QIE10Task::_cShapeCut_EChannel[36]
protected

Definition at line 55 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

double QIE10Task::_cut
protected

Definition at line 44 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

hcaldqm::electronicsmap::ElectronicsMap QIE10Task::_ehashmap
protected

Definition at line 52 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::filter::HashFilter QIE10Task::_filter_slot[36]
protected

Definition at line 48 of file QIE10Task.h.

Referenced by bookHistograms().

int QIE10Task::_ped
protected

Definition at line 45 of file QIE10Task.h.

Referenced by QIE10Task().

edm::InputTag QIE10Task::_tagHF
protected

Definition at line 39 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

edm::InputTag QIE10Task::_tagQIE10
protected

Definition at line 38 of file QIE10Task.h.

Referenced by QIE10Task().

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

Definition at line 41 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

edm::EDGetTokenT<QIE10DigiCollection> QIE10Task::_tokQIE10
protected

Definition at line 40 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().