33 for (
int i=0;
i<2; ++
i)
34 for (
int j=0; j<2; ++j)
35 for (
int k=0;
k<40; ++
k)
36 for (
int l=0;
l<40; ++
l)
37 senCount_[
i][j][
k][
l] = -1;
44 int iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
45 int senZ_[4288], senP_[4288], senX_[4288], senY_[4288];
48 ifstream
file(lookup_.fullPath().c_str());
54 for (
int i=0;
i<nLines_; ++
i) {
55 file>> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
62 iz = (senZ_[
i]==1) ? 0:1;
63 senCount_[iz][senP_[
i]-1][senX_[
i]-1][senY_[
i]-1] =
i;
70 for (
int i=0;
i<nLines_; ++
i) {
71 for (
int is=0; is<32; ++is) {
72 sprintf(hname,
"ADC Z %d P %d X %d Y %d Str %d", senZ_[
i], senP_[i], senX_[i], senY_[i], is+1);
73 meADC_[
i][is] = iBooker.
book1D(hname, hname, 1000, 899.5, 1899.5);
80 LogInfo(
"ESPedestalTask") <<
"analyzed " << ievt_ <<
" events";
87 runNum_ = e.
id().
run();
107 iz = (zside==1) ? 0:1;
109 if (meADC_[senCount_[iz][plane-1][ix-1][iy-1]][strip-1]) {
111 meADC_[senCount_[iz][plane-1][ix-1][iy-1]][strip-1]->Fill(dataframe.
sample(0).
adc());
112 meADC_[senCount_[iz][plane-1][ix-1][iy-1]][strip-1]->Fill(dataframe.
sample(1).
adc());
113 meADC_[senCount_[iz][plane-1][ix-1][iy-1]][strip-1]->Fill(dataframe.
sample(2).
adc());
114 }
else if(runtype_ == 3) {
115 meADC_[senCount_[iz][plane-1][ix-1][iy-1]][strip-1]->Fill(dataframe.
sample(1).
adc());
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const ESDetId & id() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const_iterator begin() const
void endJob(void) override
MonitorElement * book1D(Args &&...args)
const ESSample & sample(int i) const
ESPedestalTask(const edm::ParameterSet &ps)
void setCurrentFolder(const std::string &fullpath)
const_iterator end() const
int adc() const
get the ADC sample (singed 16 bits)
void analyze(const edm::Event &, const edm::EventSetup &) override