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);
79 runNum_ = e.
id().
run();
98 iz = (zside == 1) ? 0 : 1;
100 if (meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][strip - 1]) {
102 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][strip - 1]->Fill(dataframe.
sample(0).
adc());
103 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][strip - 1]->Fill(dataframe.
sample(1).
adc());
104 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][strip - 1]->Fill(dataframe.
sample(2).
adc());
105 }
else if (runtype_ == 3) {
106 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][strip - 1]->Fill(dataframe.
sample(1).
adc());
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ESDetId & id() const
void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const_iterator begin() const
void endJob(void) override
#define DEFINE_FWK_MODULE(type)
const ESSample & sample(int i) const
Namespace of DDCMS conversion namespace.
ESPedestalTask(const edm::ParameterSet &ps)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
const_iterator end() const
int adc() const
get the ADC sample (singed 16 bits)
void analyze(const edm::Event &, const edm::EventSetup &) override