CMS 3D CMS Logo

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

#include <QIE10Task.h>

Inheritance diagram for QIE10Task:
hcaldqm::DQTask DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > > hcaldqm::DQModule edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void globalEndLuminosityBlock (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 dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQTask (edm::ParameterSet const &)
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 ~DQTask () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Public Attributes

 cut
 
 debug
 
 name
 
 ped
 
 qie10Task
 
 runkeyName
 
 runkeyVal
 
 subsystem
 
 tagQIE10
 

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 DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

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
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
edm::ESHandle< HcalDbService_dbService
 
HcalElectronicsMap const * _emap = nullptr
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT< FEDRawDataCollection_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdhcalChannelQualityToken_
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
edm::ESGetToken< RunInfo, RunInfoRcdrunInfoToken_
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
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 DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- 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 hcaldqm::DQTask
static void fillPSetDescription (edm::ParameterSetDescription &des)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from hcaldqm::DQModule
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Detailed Description

Definition at line 22 of file QIE10Task.h.

Constructor & Destructor Documentation

◆ QIE10Task()

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

Definition at line 8 of file QIE10Task.cc.

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

9  : DQTask(ps), hcalDbServiceToken_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()) {
10  // tags
11  _tagQIE10 = ps.getUntrackedParameter<edm::InputTag>("tagQIE10", edm::InputTag("hcalDigis"));
12  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF", edm::InputTag("hcalDigis"));
13  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
14  _tokHF = consumes<HFDigiCollection>(_tagHF);
15 
16  // cuts
17  _cut = ps.getUntrackedParameter<double>("cut", 50.0);
18  _ped = ps.getUntrackedParameter<int>("ped", 4);
19 }
edm::InputTag _tagHF
Definition: QIE10Task.h:36
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: QIE10Task.h:37
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: QIE10Task.h:38
edm::InputTag _tagQIE10
Definition: QIE10Task.h:35
int _ped
Definition: QIE10Task.h:43
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: QIE10Task.h:39
double _cut
Definition: QIE10Task.h:42

◆ ~QIE10Task()

QIE10Task::~QIE10Task ( )
inlineoverride

Definition at line 25 of file QIE10Task.h.

25 {}

Member Function Documentation

◆ _process()

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

Implements hcaldqm::DQTask.

Definition at line 162 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, gpuClustering::adc, Logger::dqmthrow(), MillePedeFileConverter_cfg::e, runTauDisplay::eid, hcaldqm::ContainerSingle1D::fill(), hcaldqm::Container2D::fill(), hcaldqm::ContainerSingle2D::fill(), hcaldqm::Container1D::fill(), amptDefault_cfi::frame, HcalForward, mps_fire::i, edm::InputTag::instance(), dqmiolumiharvest::j, edm::InputTag::label(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), submitPVResolutionJobs::q, edm::DataFrameContainer::size(), HcalDetId::subdet(), hcaldqm::utilities::sumQ(), and protons_cff::time.

162  {
165  if (!e.getByToken(_tokQIE10, cqie10))
166  return;
167  if (!e.getByToken(_tokHF, chf))
168  _logger.dqmthrow("Collection HFDigiCollection isn't available" + _tagHF.label() + " " + _tagHF.instance());
169 
170  std::map<uint32_t, QIE10DataFrame> mqie10;
171  for (uint32_t i = 0; i < cqie10->size(); i++) {
172  QIE10DataFrame frame = static_cast<QIE10DataFrame>((*cqie10)[i]);
173  HcalDetId did = frame.detid();
175  if (did.subdet() != HcalForward) {
176  continue;
177  }
178 
179  // Compute index for EChannel plots
180  int fakecrate = -1;
181  if (eid.crateId() == 22) {
182  fakecrate = 0;
183  } else if (eid.crateId() == 29) {
184  fakecrate = 1;
185  } else if (eid.crateId() == 32) {
186  fakecrate = 2;
187  } else {
188  // Unknown crate, skip digi
189  continue;
190  }
191  int index = fakecrate * 12 + eid.slot() - 1;
192 
193  // compute the signal, ped subracted
194  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE10DataFrame>(_dbService, did, frame);
195  double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(_dbService, digi_fC, did, frame, 0, frame.samples() - 1);
196  // double sumQ = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(frame, constants::adc2fC[_ped], 0, frame.samples()-1);
197 
200  _cOccupancy_depth.fill(did);
201 
202  // iterate thru all TS and fill
203  for (int j = 0; j < frame.samples(); j++) {
204  // shapes are after the cut
205  if (sumQ > _cut) {
206  double q = hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, frame, j);
208  _cShapeCut.fill(j, q);
209  }
210  // w/o a cut
211  _cLETDCvsADC_EChannel[j][index].fill(eid, frame[j].adc(), frame[j].le_tdc());
212  _cLETDCvsADC.fill(frame[j].adc(), frame[j].le_tdc());
213  _cLETDC_EChannel[j][index].fill(eid, frame[j].le_tdc());
214  _cLETDC.fill(frame[j].le_tdc());
216  _cADC.fill(frame[j].adc());
217  _cLETDCvsTS_EChannel[index].fill(eid, j, frame[j].le_tdc());
218 
219  // TDC conversion to time
220  if (frame[j].le_tdc() < 50) {
221  // Each TDC count is 0.5 ns.
222  // tdc == 62 or 63 means value was below or above threshold for whole time slice.
223  double time = j * 25. + (frame[j].le_tdc() / 2.);
226  }
227  }
228 
229  mqie10[did.rawId()] = frame;
230  }
231 }
edm::InputTag _tagHF
Definition: QIE10Task.h:36
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: QIE10Task.h:37
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE10Task.h:49
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:60
std::string const & instance() const
Definition: InputTag.h:37
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:63
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: QIE10Task.h:38
hcaldqm::Container2D _cOccupancy_CrateSlot
Definition: QIE10Task.h:68
hcaldqm::ContainerProf1D _cShapeCut_EChannel[36]
Definition: QIE10Task.h:52
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:62
std::string const & label() const
Definition: InputTag.h:36
hcaldqm::Container1D _cADC_EChannel[10][36]
Definition: QIE10Task.h:56
hcaldqm::Container1D _cLETDC_EChannel[10][36]
Definition: QIE10Task.h:55
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
virtual void fill(uint32_t)
Definition: Container1D.cc:73
Logger _logger
Definition: DQModule.h:55
hcaldqm::Container2D _cOccupancy_depth
Definition: QIE10Task.h:71
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][36]
Definition: QIE10Task.h:53
hcaldqm::Container2D _cOccupancy_Crate
Definition: QIE10Task.h:67
hcaldqm::Container1D _cLETDCTime_EChannel[36]
Definition: QIE10Task.h:57
hcaldqm::Container2D _cLETDCvsTS_EChannel[36]
Definition: QIE10Task.h:54
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE10Task.h:61
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:80
double _cut
Definition: QIE10Task.h:42
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
virtual void fill(int, int)
hcaldqm::ContainerSingle1D _cADC
Definition: QIE10Task.h:64
Readout chain identification for Hcal.
uint16_t *__restrict__ uint16_t const *__restrict__ adc
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:127

◆ _resetMonitors()

void QIE10Task::_resetMonitors ( hcaldqm::UpdateFreq  )
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 233 of file QIE10Task.cc.

233 {}

◆ bookHistograms()

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

Reimplemented from hcaldqm::DQTask.

Definition at line 20 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::getHandle(), HcalDbService::getHcalMapping(), hcalDbServiceToken_, mps_fire::i, cuy::ib, hcaldqm::ContainerSingleProf1D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerSingle1D::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), dqmiolumiharvest::j, alignCSCRings::r, hcaldqm::constants::SLOT_uTCA_MAX, and hcaldqm::constants::SLOT_uTCA_MIN.

20  {
21  if (_ptype == fLocal)
22  if (r.runAuxiliary().run() == 1)
23  return;
24 
26 
27  // GET WHAT YOU NEED
29  _emap = dbs->getHcalMapping();
30 
31  unsigned int nTS = _ptype == fLocal ? 10 : 6;
32 
33  // create a slot filter and initialize what you need
34  unsigned int itr = 0;
35  for (auto& crate : constants::crateListHF) {
36  for (unsigned int slot = SLOT_uTCA_MIN; slot <= SLOT_uTCA_MAX; ++slot) {
37  std::vector<uint32_t> vhashSlot;
38  vhashSlot.push_back(HcalElectronicsId(crate, slot, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
40 
42  "ShapeCut",
47  "LETDCTime",
52  "TDCvsTS",
57 
58  for (unsigned int j = 0; j < nTS; j++) {
60  "LETDCvsADC",
66  "ADC",
71  "LETDC",
75  }
76  ++itr;
77  }
78  }
79 
81  "ShapeCut",
85  "LETDCvsADC",
90  "LETDCTimevsADC",
95  "LETDC",
99  "ADC",
102 
103  //OCCUPANCY PER CRATE/SLOT
105  "Occupancy",
111  "Occupancy",
116 
117  // OCCUPANCY IN DETECTOR COORDINATES
119  "Occupancy",
124 
125  itr = 0;
126  for (auto& crate : constants::crateListHF) {
127  for (unsigned int slot = SLOT_uTCA_MIN; slot <= SLOT_uTCA_MAX; ++slot) {
128  char aux[100];
129  sprintf(aux, "/Crate%d_Slot%d", crate, slot);
133  for (unsigned int i = 0; i < nTS; i++) {
134  char aux2[100];
135  sprintf(aux2, "/Crate%d_Slot%d/TS%d", crate, slot, i);
139  }
140  ++itr;
141  }
142  }
143 
149 
153 
155 }
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:46
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE10Task.h:49
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:33
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:60
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:63
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:68
hcaldqm::ContainerProf1D _cShapeCut_EChannel[36]
Definition: QIE10Task.h:52
const HcalElectronicsMap * getHcalMapping() const
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:62
hcaldqm::Container1D _cADC_EChannel[10][36]
Definition: QIE10Task.h:56
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:55
int const FIBERCH_MIN
Definition: Constants.h:134
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
ProcessingType _ptype
Definition: DQModule.h:44
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
int const FIBER_uTCA_MIN1
Definition: Constants.h:128
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: QIE10Task.h:39
hcaldqm::Container2D _cOccupancy_depth
Definition: QIE10Task.h:71
std::string _name
Definition: DQModule.h:42
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
hcaldqm::Container2D _cLETDCvsADC_EChannel[10][36]
Definition: QIE10Task.h:53
hcaldqm::Container2D _cOccupancy_Crate
Definition: QIE10Task.h:67
std::vector< unsigned int > const crateListHF
Definition: Constants.h:76
hcaldqm::Container1D _cLETDCTime_EChannel[36]
Definition: QIE10Task.h:57
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:592
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:25
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::Container2D _cLETDCvsTS_EChannel[36]
Definition: QIE10Task.h:54
int const SLOT_uTCA_MAX
Definition: Constants.h:108
hcaldqm::ContainerSingle2D _cLETDCTimevsADC
Definition: QIE10Task.h:61
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:17
std::string _subsystem
Definition: DQModule.h:49
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:567
hcaldqm::ContainerSingle1D _cADC
Definition: QIE10Task.h:64
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:107
ib
Definition: cuy.py:661

◆ globalEndLuminosityBlock()

void QIE10Task::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 157 of file QIE10Task.cc.

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

Member Data Documentation

◆ _cADC

hcaldqm::ContainerSingle1D QIE10Task::_cADC
protected

Definition at line 64 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cADC_EChannel

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

Definition at line 56 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDC

hcaldqm::ContainerSingle1D QIE10Task::_cLETDC
protected

Definition at line 63 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDC_EChannel

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

Definition at line 55 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDCTime_EChannel

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

Definition at line 57 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDCTimevsADC

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCTimevsADC
protected

Definition at line 61 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDCvsADC

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCvsADC
protected

Definition at line 62 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDCvsADC_EChannel

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

Definition at line 53 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cLETDCvsTS_EChannel

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

Definition at line 54 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cOccupancy_Crate

hcaldqm::Container2D QIE10Task::_cOccupancy_Crate
protected

Definition at line 67 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cOccupancy_CrateSlot

hcaldqm::Container2D QIE10Task::_cOccupancy_CrateSlot
protected

Definition at line 68 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cOccupancy_depth

hcaldqm::Container2D QIE10Task::_cOccupancy_depth
protected

Definition at line 71 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cShapeCut

hcaldqm::ContainerSingleProf1D QIE10Task::_cShapeCut
protected

Definition at line 60 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cShapeCut_EChannel

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

Definition at line 52 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _cut

double QIE10Task::_cut
protected

Definition at line 42 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

◆ _ehashmap

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

Definition at line 49 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

◆ _filter_slot

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

Definition at line 46 of file QIE10Task.h.

Referenced by bookHistograms().

◆ _ped

int QIE10Task::_ped
protected

Definition at line 43 of file QIE10Task.h.

Referenced by QIE10Task().

◆ _tagHF

edm::InputTag QIE10Task::_tagHF
protected

Definition at line 36 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

◆ _tagQIE10

edm::InputTag QIE10Task::_tagQIE10
protected

Definition at line 35 of file QIE10Task.h.

Referenced by QIE10Task().

◆ _tokHF

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

Definition at line 38 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

◆ _tokQIE10

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

Definition at line 37 of file QIE10Task.h.

Referenced by _process(), and QIE10Task().

◆ cut

QIE10Task.cut

Definition at line 20 of file QIE10Task.py.

◆ debug

QIE10Task.debug

◆ hcalDbServiceToken_

edm::ESGetToken<HcalDbService, HcalDbRecord> QIE10Task::hcalDbServiceToken_
protected

Definition at line 39 of file QIE10Task.h.

Referenced by bookHistograms().

◆ name

QIE10Task.name

Definition at line 8 of file QIE10Task.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), FWLite.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), FWLite.WorkingPoints._reformat_cut_definitions(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), dirstructure.Directory.calcStats(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), counter.Counter.write(), and average.Average.write().

◆ ped

QIE10Task.ped

Definition at line 21 of file QIE10Task.py.

◆ qie10Task

QIE10Task.qie10Task

Definition at line 4 of file QIE10Task.py.

◆ runkeyName

QIE10Task.runkeyName

Definition at line 11 of file QIE10Task.py.

◆ runkeyVal

QIE10Task.runkeyVal

Definition at line 10 of file QIE10Task.py.

◆ subsystem

QIE10Task.subsystem

Definition at line 17 of file QIE10Task.py.

◆ tagQIE10

QIE10Task.tagQIE10

Definition at line 14 of file QIE10Task.py.