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::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 endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 QIE10Task (edm::ParameterSet const &)
 
virtual ~QIE10Task ()
 
- Public Member Functions inherited from hcaldqm::DQTask
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQTask (edm::ParameterSet const &)
 
virtual ~DQTask ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 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
 
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

virtual void _process (edm::Event const &, edm::EventSetup const &)
 
virtual void _resetMonitors (hcaldqm::UpdateFreq)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
virtual bool _isApplicable (edm::Event const &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Protected Attributes

hcaldqm::ContainerSingle1D _cADC
 
hcaldqm::Container1D _cADC_EChannel [10]
 
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10
 
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta30 [10]
 
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta34 [10]
 
hcaldqm::ContainerSingle2D _cADCCorrelation10vs8
 
hcaldqm::Container2D _cADCCorrelation10vs8_DChannel [10]
 
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10
 
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta30 [10]
 
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta34 [10]
 
hcaldqm::ContainerSingle2D _cfCCorrelation10vs8
 
hcaldqm::Container2D _cfCCorrelation10vs8_DChannel [10]
 
hcaldqm::ContainerSingle1D _cLETDC
 
hcaldqm::Container1D _cLETDC_EChannel [10]
 
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10
 
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta30 [10]
 
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta34 [10]
 
hcaldqm::ContainerSingle2D _cLETDCvsADC
 
hcaldqm::Container2D _cLETDCvsADC_EChannel [10]
 
hcaldqm::Container2D _cOccupancy_depth
 
hcaldqm::ContainerSingleProf1D _cShapeCut
 
hcaldqm::ContainerProf1D _cShapeCut_EChannel
 
hcaldqm::ContainerSingle2D _cTETDCvsADC
 
hcaldqm::Container2D _cTETDCvsADC_EChannel [10]
 
double _cut
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
HcalElectronicsMap const * _emap
 
hcaldqm::filter::HashFilter _filter_C36
 
hcaldqm::filter::HashFilter _filter_DA
 
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
 
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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
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::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (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 22 of file QIE10Task.h.

Constructor & Destructor Documentation

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

Definition at line 7 of file QIE10Task.cc.

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

7  :
8  DQTask(ps)
9 {
10 
11  // tags
12  _tagQIE10 = ps.getUntrackedParameter<edm::InputTag>("tagQIE10",
13  edm::InputTag("hcalDigis"));
14  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
15  edm::InputTag("hcalDigis"));
16  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
17  _tokHF = consumes<HFDigiCollection>(_tagHF);
18 
19  // cuts
20  _cut = ps.getUntrackedParameter<double>("cut", 50.0);
21  _ped = ps.getUntrackedParameter<int>("ped", 4);
22 }
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
virtual QIE10Task::~QIE10Task ( )
inlinevirtual

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

Implements hcaldqm::DQTask.

Definition at line 204 of file QIE10Task.cc.

References _cADC, _cADC_EChannel, _cADCCorrelation10vs10, _cADCCorrelation10vs10_ieta30, _cADCCorrelation10vs10_ieta34, _cADCCorrelation10vs8, _cADCCorrelation10vs8_DChannel, _cfCCorrelation10vs10, _cfCCorrelation10vs10_ieta30, _cfCCorrelation10vs10_ieta34, _cfCCorrelation10vs8, _cfCCorrelation10vs8_DChannel, _cLETDC, _cLETDC_EChannel, _cLETDCCorrelation10vs10, _cLETDCCorrelation10vs10_ieta30, _cLETDCCorrelation10vs10_ieta34, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cShapeCut, _cShapeCut_EChannel, _cTETDCvsADC, _cTETDCvsADC_EChannel, _cut, _ehashmap, hcaldqm::DQModule::_logger, _ped, _tagHF, _tokHF, _tokQIE10, ecalMGPA::adc(), hcaldqm::constants::adc2fC, edm::SortedCollection< T, SORT >::begin(), HcalDetId::depth(), QIE10DataFrame::detid(), Logger::dqmthrow(), runTauDisplay::eid, edm::SortedCollection< T, SORT >::end(), hcaldqm::Container2D::fill(), hcaldqm::ContainerSingle1D::fill(), hcaldqm::ContainerSingle2D::fill(), hcaldqm::Container1D::fill(), edm::Event::getByToken(), HcalForward, mps_fire::i, HcalDetId::ieta(), edm::InputTag::instance(), HcalDetId::iphi(), edm::InputTag::label(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), lumiQueryAPI::q, DetId::rawId(), QIE10DataFrame::samples(), and edm::DataFrameContainer::size().

Referenced by ~QIE10Task().

206 {
209  if (!e.getByToken(_tokQIE10, cqie10))
210  return;
211  if (!e.getByToken(_tokHF, chf))
212  _logger.dqmthrow("Collection HFDigiCollection isn't available"
213  + _tagHF.label() + " " + _tagHF.instance());
214 
215  std::map<uint32_t, QIE10DataFrame> mqie10;
216  for (uint32_t i=0; i<cqie10->size(); i++)
217  {
218  QIE10DataFrame frame = static_cast<QIE10DataFrame>((*cqie10)[i]);
219  HcalDetId did = frame.detid();
221 
222  // compute the signal, ped subracted
223  double q = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(frame,
224  constants::adc2fC[_ped], 0, frame.samples()-1);
225 
226  // iterate thru all TS and fill
227  for (int j=0; j<frame.samples(); j++)
228  {
229  // shapes are after the cut
230  if (q>_cut)
231  {
232  _cShapeCut_EChannel.fill(eid, j,
233  constants::adc2fC[frame[j].adc()]);
234  _cShapeCut.fill(j, constants::adc2fC[frame[j].adc()]);
235  }
236 
237  // w/o a cut
238  _cLETDCvsADC_EChannel[j].fill(eid, frame[j].adc(),
239  frame[j].le_tdc());
240  _cLETDCvsADC.fill(frame[j].adc(), frame[j].le_tdc());
241  _cTETDCvsADC_EChannel[j].fill(eid, frame[j].adc(),
242  frame[j].te_tdc());
243  _cTETDCvsADC.fill(frame[j].adc(), frame[j].te_tdc());
244  _cLETDC_EChannel[j].fill(eid, frame[j].le_tdc());
245  _cLETDC.fill(frame[j].le_tdc());
246  _cADC_EChannel[j].fill(eid, frame[j].adc());
247  _cADC.fill(frame[j].adc());
248  }
249 
250  // Correlation histograms
251  mqie10[did.rawId()] = frame;
252  }
253 
254  // Collect HF Digis
255  std::map<uint32_t, HFDataFrame> mqie8;
256  for (HFDigiCollection::const_iterator it=chf->begin(); it!=chf->end();
257  ++it)
258  {
259  // we only need iphi 39
260  if (!(it->id().iphi()==39 && it->id().ieta()>0))
261  continue;
262 
263  mqie8[it->id().rawId()] = *it;
264  }
265 
266  // Now, we iterate thru qie10s and fill the correlation plots
267  for (std::map<uint32_t, QIE10DataFrame>::const_iterator it=mqie10.begin();
268  it!=mqie10.end(); ++it)
269  {
270  uint32_t rawid = it->first;
271  // 1 is QIE10
272  HcalDetId did1 = HcalDetId(rawid);
273  QIE10DataFrame frame1_10 = it->second;
274  if ((did1.ieta()==30 || did1.ieta()==34) &&
275  (did1.depth()==2 || did1.depth()==4)) // select the dualqie10 ro
276  {
277  if (did1.depth()==4) continue; // skip depth4, they are treated for depth2
278 
279  // 2 is QIE10
280  HcalDetId did2 = HcalDetId(HcalForward, did1.ieta(), did1.iphi(),
281  did1.depth()+2);
282  QIE10DataFrame frame2_10 = mqie10[did2.rawId()];
283 
284  // fill
285  for (int j=0; j<frame1_10.samples(); j++)
286  {
287  _cADCCorrelation10vs10.fill(frame2_10[j].adc(),
288  frame1_10[j].adc());
289  _cfCCorrelation10vs10.fill(constants::adc2fC[frame2_10[j].adc()],
290  constants::adc2fC[frame1_10[j].adc()]);
291  _cLETDCCorrelation10vs10.fill(frame2_10[j].le_tdc(),
292  frame1_10[j].le_tdc());
293 
294  if (did2.ieta()==30)
295  {
297  frame2_10[j].adc(),
298  frame1_10[j].adc());
300  constants::adc2fC[frame2_10[j].adc()],
301  constants::adc2fC[frame1_10[j].adc()]);
302  _cLETDCCorrelation10vs10_ieta30[j].fill(frame2_10[j].le_tdc(),
303  frame1_10[j].le_tdc());
304  }
305  else if (did2.ieta()==34)
306  {
308  constants::adc2fC[frame2_10[j].adc()],
309  constants::adc2fC[frame1_10[j].adc()]);
311  frame2_10[j].adc(),
312  frame1_10[j].adc());
313  _cLETDCCorrelation10vs10_ieta34[j].fill(frame2_10[j].le_tdc(),
314  frame1_10[j].le_tdc());
315  }
316  }
317  }
318  else
319  {
320  // 2 is QIE8
321  HcalDetId did2 = HcalDetId(HcalForward, did1.ieta(), did1.iphi(),
322  did1.depth()-2);
323  HFDataFrame frame2_8 = mqie8[did2.rawId()];
324 
325  // fill
326  for (int f10_itr=0; f10_itr<frame1_10.samples(); f10_itr++)
327  {
328  // compare QIE8 second TS VS each time slice for QIE10
329  int qie8_frame = 2;
330 
331  _cADCCorrelation10vs8.fill(frame2_8[qie8_frame].adc(),
332  frame1_10[f10_itr].adc());
333  _cADCCorrelation10vs8_DChannel[f10_itr].fill(did2,
334  frame2_8[qie8_frame].adc(), frame1_10[f10_itr].adc());
335  _cfCCorrelation10vs8.fill(constants::adc2fC[frame2_8[qie8_frame].adc()],
336  constants::adc2fC[frame1_10[f10_itr].adc()]);
337  _cfCCorrelation10vs8_DChannel[f10_itr].fill(did2,
338  constants::adc2fC[frame2_8[qie8_frame].adc()],
339  constants::adc2fC[frame1_10[f10_itr].adc()]);
340  }
341  }
342 
343 
344  }
345 }
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:53
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:81
hcaldqm::ContainerProf1D _cShapeCut_EChannel
Definition: QIE10Task.h:56
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:71
hcaldqm::ContainerSingle2D _cTETDCvsADC
Definition: QIE10Task.h:83
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:84
hcaldqm::Container2D _cADCCorrelation10vs8_DChannel[10]
Definition: QIE10Task.h:64
hcaldqm::Container2D _cfCCorrelation10vs8_DChannel[10]
Definition: QIE10Task.h:66
std::vector< HFDataFrame >::const_iterator const_iterator
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: QIE10Task.h:41
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:82
hcaldqm::Container2D _cTETDCvsADC_EChannel[10]
Definition: QIE10Task.h:58
hcaldqm::Container1D _cLETDC_EChannel[10]
Definition: QIE10Task.h:59
int _ped
Definition: QIE10Task.h:45
hcaldqm::Container2D _cLETDCvsADC_EChannel[10]
Definition: QIE10Task.h:57
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:70
int depth() const
get the tower depth
Definition: HcalDetId.cc:108
virtual void fill(uint32_t)
Definition: Container1D.cc:82
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
hcaldqm::ContainerSingle2D _cADCCorrelation10vs8
Definition: QIE10Task.h:65
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
DetId detid() const
Get the detector id.
Logger _logger
Definition: DQModule.h:70
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10
Definition: QIE10Task.h:75
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10
Definition: QIE10Task.h:74
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:76
const_iterator end() const
double const adc2fC[256]
Definition: Constants.h:229
int iphi() const
get the cell iphi
Definition: HcalDetId.cc:103
std::string const & label() const
Definition: InputTag.h:36
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:77
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10
Definition: QIE10Task.h:78
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:72
double _cut
Definition: QIE10Task.h:44
virtual void fill(HcalDetId const &) override
Definition: Container2D.cc:59
virtual void fill(int, int)
hcaldqm::ContainerSingle1D _cADC
Definition: QIE10Task.h:85
hcaldqm::ContainerSingle2D _cfCCorrelation10vs8
Definition: QIE10Task.h:67
hcaldqm::Container1D _cADC_EChannel[10]
Definition: QIE10Task.h:60
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:73
const_iterator begin() const
void QIE10Task::_resetMonitors ( hcaldqm::UpdateFreq  )
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 347 of file QIE10Task.cc.

References DEFINE_FWK_MODULE.

Referenced by ~QIE10Task().

348 {
349 }
void QIE10Task::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 23 of file QIE10Task.cc.

References _cADC, _cADC_EChannel, _cADCCorrelation10vs10, _cADCCorrelation10vs10_ieta30, _cADCCorrelation10vs10_ieta34, _cADCCorrelation10vs8, _cADCCorrelation10vs8_DChannel, _cfCCorrelation10vs10, _cfCCorrelation10vs10_ieta30, _cfCCorrelation10vs10_ieta34, _cfCCorrelation10vs8, _cfCCorrelation10vs8_DChannel, _cLETDC, _cLETDC_EChannel, _cLETDCCorrelation10vs10, _cLETDCCorrelation10vs10_ieta30, _cLETDCCorrelation10vs10_ieta34, _cLETDCvsADC, _cLETDCvsADC_EChannel, _cOccupancy_depth, _cShapeCut, _cShapeCut_EChannel, _cTETDCvsADC, _cTETDCvsADC_EChannel, _ehashmap, _emap, _filter_C36, _filter_DA, 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(), particleFlowClusterECALTimeSelected_cfi::depth, hcaldqm::quantity::fADC_128, hcaldqm::hashfunctions::fCrateSlot, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fDChannel, hcaldqm::hashfunctions::fdepth, hcaldqm::hashfunctions::fEChannel, 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_2000, hcaldqm::quantity::fQIE10fC_300000, hcaldqm::quantity::fQIE10TDC_64, hcaldqm::quantity::fQIE8fC_1000_50, hcaldqm::quantity::fTiming_TS, edm::EventSetup::get(), HcalDbService::getHcalMapping(), HcalForward, mps_fire::i, hcaldqm::ContainerSingleProf1D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerSingle1D::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().

Referenced by ~QIE10Task().

25 {
26  if (_ptype==fLocal)
27  if (r.runAuxiliary().run()==1)
28  return;
29 
30  DQTask::bookHistograms(ib, r, es);
31 
32  // GET WHAT YOU NEED
34  es.get<HcalDbRecord>().get(dbs);
35  _emap = dbs->getHcalMapping();
36  std::vector<uint32_t> vhashC36;
37  vhashC36.push_back(HcalElectronicsId(36, 3,
38  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
40  vhashC36);
41 
42  // create a Dual Anode filter
43  std::vector<uint32_t> vhashDA;
44  for (int depth=1; depth<=2; depth++)
45  for (int ieta=29; ieta<=41; ieta++)
46  vhashDA.push_back(HcalDetId(HcalForward, ieta, 39, depth));
48  vhashDA);
49 
50  // INITIALIZE what you need
56  "ShapeCut",
59  _cLETDCvsADC.initialize(_name, "LETDCvsADC",
63  _cTETDCvsADC.initialize(_name, "TETDCvsADC",
67  _cLETDC.initialize(_name, "LETDC",
70  _cADC.initialize(_name, "ADC",
77 
78  // QIE8 vs 10 and 10 vs 10
79  _cADCCorrelation10vs8.initialize(_name, "ADCCorrelation10vs8TS2",
83  _cADCCorrelation10vs10.initialize(_name, "ADCCorrelation10vs10",
87  _cfCCorrelation10vs8.initialize(_name, "fCorrelation10vs8TS2",
91  _cfCCorrelation10vs10.initialize(_name, "fCCorrelation10vs10",
95  _cLETDCCorrelation10vs10.initialize(_name, "LETDCCorrelation",
99 
100  unsigned int nTS = _ptype==fLocal ? 10 : 6;
101  for (unsigned int j=0; j<nTS; j++)
102  {
104  "LETDCvsADC", hcaldqm::hashfunctions::fEChannel,
109  "TETDCvsADC", hcaldqm::hashfunctions::fEChannel,
121 
122  _cADCCorrelation10vs8_DChannel[j].initialize(_name, "ADCCorrelation10vs8TS2",
127  _cfCCorrelation10vs8_DChannel[j].initialize(_name, "fCCorrelation10vs8TS2",
132 
134  "ADCCorrelation10vs10_ieta30",
139  "ADCCorrelation10vs10_ieta34",
144  "fCCorrelation10vs10_ieta30",
149  "fCCorrelation10vs10_ieta34",
153  _cLETDCCorrelation10vs10_ieta30[j].initialize(_name, "LETDCCorrelation_ieta30",
157  _cLETDCCorrelation10vs10_ieta34[j].initialize(_name, "LETDCCorrelation_ieta34",
161  }
162 
167  _cLETDC.book(ib, _subsystem);
168  _cADC.book(ib, _subsystem);
174  for (unsigned int i=0; i<nTS; i++)
175  {
176  char aux[10];
177  sprintf(aux, "TS%d", i);
182 
191  }
192 
194 }
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: QIE10Task.h:53
virtual void initialize(std::string const &folder, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingleProf1D _cShapeCut
Definition: QIE10Task.h:81
hcaldqm::ContainerProf1D _cShapeCut_EChannel
Definition: QIE10Task.h:56
virtual void initialize(std::string const &folder, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:71
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::ContainerSingle2D _cTETDCvsADC
Definition: QIE10Task.h:83
hcaldqm::ContainerSingle1D _cLETDC
Definition: QIE10Task.h:84
hcaldqm::Container2D _cADCCorrelation10vs8_DChannel[10]
Definition: QIE10Task.h:64
hcaldqm::Container2D _cfCCorrelation10vs8_DChannel[10]
Definition: QIE10Task.h:66
hcaldqm::filter::HashFilter _filter_DA
Definition: QIE10Task.h:49
hcaldqm::ContainerSingle2D _cLETDCvsADC
Definition: QIE10Task.h:82
hcaldqm::Container2D _cTETDCvsADC_EChannel[10]
Definition: QIE10Task.h:58
hcaldqm::Container1D _cLETDC_EChannel[10]
Definition: QIE10Task.h:59
void bookHistograms(fwlite::EventContainer &eventCont)
hcaldqm::Container2D _cLETDCvsADC_EChannel[10]
Definition: QIE10Task.h:57
int const FIBERCH_MIN
Definition: Constants.h:108
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:70
ProcessingType _ptype
Definition: DQModule.h:59
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::ContainerSingle2D _cADCCorrelation10vs8
Definition: QIE10Task.h:65
hcaldqm::filter::HashFilter _filter_C36
Definition: QIE10Task.h:48
HcalElectronicsMap const * _emap
Definition: QIE10Task.h:52
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:101
hcaldqm::Container2D _cOccupancy_depth
Definition: QIE10Task.h:61
std::string _name
Definition: DQModule.h:57
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10
Definition: QIE10Task.h:75
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingle2D _cADCCorrelation10vs10
Definition: QIE10Task.h:74
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:76
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:77
hcaldqm::ContainerSingle2D _cfCCorrelation10vs10
Definition: QIE10Task.h:78
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta30[10]
Definition: QIE10Task.h:72
const HcalElectronicsMap * getHcalMapping() const
std::string _subsystem
Definition: DQModule.h:64
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:26
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:895
hcaldqm::ContainerSingle1D _cADC
Definition: QIE10Task.h:85
hcaldqm::ContainerSingle2D _cfCCorrelation10vs8
Definition: QIE10Task.h:67
hcaldqm::Container1D _cADC_EChannel[10]
Definition: QIE10Task.h:60
Readout chain identification for Hcal.
hcaldqm::ContainerSingle2D _cLETDCCorrelation10vs10_ieta34[10]
Definition: QIE10Task.h:73
void QIE10Task::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 196 of file QIE10Task.cc.

Referenced by ~QIE10Task().

198 {
199 
200  // finish
201  DQTask::endLuminosityBlock(lb, es);
202 }

Member Data Documentation

hcaldqm::ContainerSingle1D QIE10Task::_cADC
protected

Definition at line 85 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

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

Definition at line 60 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cADCCorrelation10vs10
protected

Definition at line 74 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cADCCorrelation10vs10_ieta30[10]
protected

Definition at line 70 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cADCCorrelation10vs10_ieta34[10]
protected

Definition at line 71 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cADCCorrelation10vs8
protected

Definition at line 65 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cADCCorrelation10vs8_DChannel[10]
protected

Definition at line 64 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cfCCorrelation10vs10
protected

Definition at line 78 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cfCCorrelation10vs10_ieta30[10]
protected

Definition at line 76 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cfCCorrelation10vs10_ieta34[10]
protected

Definition at line 77 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cfCCorrelation10vs8
protected

Definition at line 67 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cfCCorrelation10vs8_DChannel[10]
protected

Definition at line 66 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle1D QIE10Task::_cLETDC
protected

Definition at line 84 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

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

Definition at line 59 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCCorrelation10vs10
protected

Definition at line 75 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCCorrelation10vs10_ieta30[10]
protected

Definition at line 72 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCCorrelation10vs10_ieta34[10]
protected

Definition at line 73 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cLETDCvsADC
protected

Definition at line 82 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

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

Definition at line 57 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cOccupancy_depth
protected

Definition at line 61 of file QIE10Task.h.

Referenced by bookHistograms().

hcaldqm::ContainerSingleProf1D QIE10Task::_cShapeCut
protected

Definition at line 81 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerProf1D QIE10Task::_cShapeCut_EChannel
protected

Definition at line 56 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D QIE10Task::_cTETDCvsADC
protected

Definition at line 83 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container2D QIE10Task::_cTETDCvsADC_EChannel[10]
protected

Definition at line 58 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 53 of file QIE10Task.h.

Referenced by _process(), and bookHistograms().

HcalElectronicsMap const* QIE10Task::_emap
protected

Definition at line 52 of file QIE10Task.h.

Referenced by bookHistograms().

hcaldqm::filter::HashFilter QIE10Task::_filter_C36
protected

Definition at line 48 of file QIE10Task.h.

Referenced by bookHistograms().

hcaldqm::filter::HashFilter QIE10Task::_filter_DA
protected

Definition at line 49 of file QIE10Task.h.

Referenced by bookHistograms().

int QIE10Task::_ped
protected

Definition at line 45 of file QIE10Task.h.

Referenced by _process(), and 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().