3 using namespace hcaldqm;
4 using namespace hcaldqm::constants;
41 _emap = dbs->getHcalMapping();
45 std::vector<uint32_t> vVME;
46 std::vector<uint32_t> vuTCA;
47 std::vector<uint32_t> vFEDHF;
68 for (std::vector<int>::const_iterator it=vFEDsVME.begin();
69 it!=vFEDsVME.end(); ++it)
73 for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
74 it!=vFEDsuTCA.end(); ++it)
271 DQTask::_resetMonitors(uf);
307 uint32_t rawidValid = 0;
308 uint32_t rawidHBValid = 0;
309 uint32_t rawidHEValid = 0;
320 double sumQ = hcaldqm::utilities::sumQ_v10<QIE11DataFrame>(frame, 2.5, 0, frame.
samples()-1);
329 rawidHBValid = did.rawId();
331 rawidHEValid = did.rawId();
364 for (
int i=0;
i<frame.samples();
i++)
374 double timing = hcaldqm::utilities::aveTS_v10<QIE11DataFrame>(frame, 2.5, 0,
397 did.subdet()==
HcalBarrel?numChsCut++:numChsCutHE++;
402 if (rawidHBValid!=0 && rawidHEValid!=0)
420 double sumQ = hcaldqm::utilities::sumQ<HODataFrame>(*it, 8.5, 0, it->size()-1);
429 rawidValid = did.rawId();
462 for (
int i=0;
i<it->size();
i++)
472 double timing = hcaldqm::utilities::aveTS<HODataFrame>(*it, 8.5, 0,
505 numChs=0; numChsCut=0;
515 double sumQ = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(frame,
525 rawidValid = did.rawId();
557 for (
int i=0;
i<frame.samples();
i++)
567 double timing = hcaldqm::utilities::aveTS_v10<QIE10DataFrame>(frame, 2.5, 0,
607 DQTask::beginLuminosityBlock(lb, es);
613 DQTask::endLuminosityBlock(lb, es);
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
hcaldqm::ContainerProf2D _cTimingCut_FEDVME
T getUntrackedParameter(std::string const &, T const &) const
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
hcaldqm::Container1D _cADC_SubdetPM
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
auto_ptr< ClusterSequence > cs
virtual bool exists(HcalDetId const &)
hcaldqm::ContainerProf2D _cSumQ_depth
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
hcaldqm::ContainerProf1D _cTimingCutvsLS_FED
std::pair< uint16_t, uint16_t > fed2crate(int fed)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
DigiPhase1Task(edm::ParameterSet const &)
#define DEFINE_FWK_MODULE(type)
hcaldqm::ContainerProf1D _cOccupancyCutvsLS_Subdet
edm::EDGetTokenT< HODigiCollection > _tokHO
std::vector< HODataFrame >::const_iterator const_iterator
virtual void _process(edm::Event const &, edm::EventSetup const &)
virtual void _resetMonitors(hcaldqm::UpdateFreq)
hcaldqm::Container1D _cTimingCut_SubdetPM
MonitorElement * meNumEvents1LS
hcaldqm::Container2D _cOccupancyCut_depth
std::vector< uint32_t > _vhashFEDs
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsVME
void bookHistograms(fwlite::EventContainer &eventCont)
std::vector< hcaldqm::flag::Flag > _vflags
hcaldqm::Container1D _cShapeCut_FED
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
hcaldqm::filter::HashFilter _filter_VME
uint32_t lookup(DetId const &)
MonitorElement * meUnknownIds1LS
hcaldqm::ContainerProf2D _cTimingCut_depth
virtual void fill(uint32_t)
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::electronicsmap::ElectronicsMap _dhashmap
void dqmthrow(std::string const &msg) const
ContainerXXX< uint32_t > _xQuality
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsuTCA
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
MonitorElement * book1D(Args &&...args)
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
int const FIBER_uTCA_MIN1
HcalElectronicsMap const * _emap
hcaldqm::Container2D _cOccupancyCut_FEDVME
hcaldqm::filter::HashFilter _filter_uTCA
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::Container1D _cDigiSize_FED
void setCurrentFolder(const std::string &fullpath)
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
edm::EDGetTokenT< QIE10DigiCollection > _tokHF
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf2D _cTimingCut_FEDuTCA
hcaldqm::Container2D _cOccupancy_FEDVME
hcaldqm::Container2D _cOccupancy_ElectronicsVME
hcaldqm::ContainerProf1D _cSumQvsLS_SubdetPM
hcaldqm::Container2D _cOccupancy_ElectronicsuTCA
virtual STDTYPE & get(HcalDetId const &)
virtual void setLumiFlag()
hcaldqm::Container2D _cOccupancyCut_FEDuTCA
std::vector< int > getFEDList(HcalElectronicsMap const *)
hcaldqm::Container2D _cOccupancyCut_ElectronicsuTCA
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
virtual void fill(HcalDetId const &) override
hcaldqm::Container1D _cSumQ_SubdetPM
hcaldqm::filter::HashFilter _filter_FEDHF
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::Container2D _cOccupancyCut_ElectronicsVME
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
int samples() const
total number of samples in the digi
hcaldqm::Container2D _cOccupancy_depth
Readout chain identification for Hcal.
hcaldqm::Container1D _cfC_SubdetPM
edm::EDGetTokenT< QIE11DigiCollection > _tokHBHE
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
hcaldqm::ContainerProf1D _cOccupancyvsLS_Subdet
hcaldqm::Container2D _cOccupancy_FEDuTCA