|
|
Go to the documentation of this file.
19 std::vector<int32_t> fiberChannels = channelPSet.
getUntrackedParameter<std::vector<int32_t> >(
"fiber_channel");
20 for (
unsigned int i = 0;
i < crates.size(); ++
i) {
21 _channels.push_back({crates[
i], slots[
i], fibers[
i], fiberChannels[
i]});
36 for (
auto& it_gid : gids) {
42 if ((
eid.crateId() == it_channel.crate) && (
eid.slot() == it_channel.slot) &&
43 (
eid.fiberIndex() == it_channel.fiber) && (
eid.fiberChanId() == it_channel.fiberChannel)) {
50 histoname = std::to_string(it_eid.crateId()) +
"-" + std::to_string(it_eid.slot()) +
"-" +
51 std::to_string(it_eid.fiberIndex()) +
"-" + std::to_string(it_eid.fiberChanId());
52 ib.setCurrentFolder(
"Hcal/FCDTask/ADC");
53 _cADC[it_eid] =
ib.book1D(histoname.c_str(), histoname.c_str(), 256, 0, 256);
54 _cADC[it_eid]->setAxisTitle(
"ADC", 1);
55 _cADC[it_eid]->setAxisTitle(
"N", 2);
57 ib.setCurrentFolder(
"Hcal/FCDTask/ADC_vs_TS"),
58 _cADC_vs_TS[it_eid] =
ib.book2D(histoname.c_str(), histoname.c_str(), 10, 0, 10, 64, 0, 256);
62 ib.setCurrentFolder(
"Hcal/FCDTask/TDCTime");
63 _cTDCTime[it_eid] =
ib.book1D(histoname.c_str(), histoname.c_str(), 500, 0., 250.);
64 _cTDCTime[it_eid]->setAxisTitle(
"TDC time [ns]", 1);
66 ib.setCurrentFolder(
"Hcal/FCDTask/TDC");
67 _cTDC[it_eid] =
ib.book1D(histoname.c_str(), histoname.c_str(), 64, -0.5, 63.5);
68 _cTDC[it_eid]->setAxisTitle(
"TDC", 1);
78 for (
auto it = digis->
begin(); it != digis->
end(); it++) {
79 const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
91 if (digi[
i].le_tdc() <= 50.) {
92 double tdctime = 25. *
i + 0.5 * digi[
i].le_tdc();
std::map< HcalElectronicsId, MonitorElement * > _cADC_vs_TS
uint32_t lookup(DetId const &)
constexpr int samples() const
total number of samples in the digi
std::vector< FCDChannel > _channels
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
T getUntrackedParameter(std::string const &, T const &) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const HcalElectronicsMap * getHcalMapping() const
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
std::vector< HcalGenericDetId > allPrecisionId() const
#define DEFINE_FWK_MODULE(type)
constexpr DetId detid() const
Get the detector id.
bool operator==(const FCDTask::FCDChannel &lhs, const FCDTask::FCDChannel &rhs)
std::map< HcalElectronicsId, MonitorElement * > _cTDC
Readout chain identification for Hcal.
void analyze(edm::Event const &, edm::EventSetup const &) override
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
std::map< HcalElectronicsId, MonitorElement * > _cADC
HcalElectronicsMap const * _emap
const_iterator begin() const
The iterator returned can not safely be used across threads.
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
FCDTask(edm::ParameterSet const &)
std::map< HcalElectronicsId, MonitorElement * > _cTDCTime
T getParameter(std::string const &) const
std::vector< HcalElectronicsId > _fcd_eids
const_iterator end() const