31 for (
int i = 0;
i < 2; ++
i)
32 for (
int j = 0;
j < 2; ++
j)
33 for (
int k = 0;
k < 40; ++
k)
34 for (
int l = 0;
l < 40; ++
l)
35 senCount_[
i][
j][
k][
l] = -1;
41 int iz, ip,
ix,
iy, fed, kchip, pace, bundle,
fiber, optorx;
42 int senZ_[4288], senP_[4288], senX_[4288], senY_[4288];
45 ifstream
file(lookup_.fullPath().c_str());
51 for (
int i = 0;
i < nLines_; ++
i) {
52 file >> iz >> ip >>
ix >>
iy >> fed >> kchip >> pace >> bundle >>
fiber >> optorx;
59 iz = (senZ_[
i] == 1) ? 0 : 1;
60 senCount_[iz][senP_[
i] - 1][senX_[
i] - 1][senY_[
i] - 1] =
i;
67 for (
int i = 0;
i < nLines_; ++
i) {
68 for (
int is = 0; is < 32; ++is) {
69 sprintf(hname,
"ADC Z %d P %d X %d Y %d Str %d", senZ_[
i], senP_[
i], senX_[
i], senY_[
i], is + 1);
70 meADC_[
i][is] = iBooker.
book1D(hname, hname, 1000, 899.5, 1899.5);
77 runNum_ =
e.id().run();
80 e.getByToken(digitoken_, digis);
96 iz = (
zside == 1) ? 0 : 1;
98 if (meADC_[senCount_[iz][plane - 1][
ix - 1][
iy - 1]][
strip - 1]) {
100 meADC_[senCount_[iz][plane - 1][
ix - 1][
iy - 1]][
strip - 1]->Fill(dataframe.
sample(0).
adc());
101 meADC_[senCount_[iz][plane - 1][
ix - 1][
iy - 1]][
strip - 1]->Fill(dataframe.
sample(1).
adc());
102 meADC_[senCount_[iz][plane - 1][
ix - 1][
iy - 1]][
strip - 1]->Fill(dataframe.
sample(2).
adc());
103 }
else if (runtype_ == 3) {
104 meADC_[senCount_[iz][plane - 1][
ix - 1][
iy - 1]][
strip - 1]->Fill(dataframe.
sample(1).
adc());
const ESDetId & id() const
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getUntrackedParameter(std::string const &, T const &) const
int adc() const
get the ADC sample (singed 16 bits)
const ESSample & sample(int i) const
#define DEFINE_FWK_MODULE(type)
const_iterator end() const
Namespace of DDCMS conversion namespace.
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
ESPedestalTask(const edm::ParameterSet &ps)
const_iterator begin() const
The iterator returned can not safely be used across threads.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void analyze(const edm::Event &, const edm::EventSetup &) override