|
|
#include <ESTimingTask.h>
Definition at line 21 of file ESTimingTask.h.
◆ ESTimingTask()
Definition at line 39 of file ESTimingTask.cc.
46 fit_->SetParameters(50, 10, 0, 0);
49 for (
int i = 0;
i < 2; ++
i)
50 for (
int j = 0;
j < 2; ++
j)
53 htESP_ =
new TH1F(
"htESP",
"Timing ES+", 81, -20.5, 20.5);
54 htESM_ =
new TH1F(
"htESM",
"Timing ES-", 81, -20.5, 20.5);
References fitf(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, dqmiolumiharvest::j, and tools::TF1.
◆ ~ESTimingTask()
ESTimingTask::~ESTimingTask |
( |
| ) |
|
|
override |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 83 of file ESTimingTask.cc.
93 int zside, plane, ix, iy, is;
110 if (
zside == 1 && plane == 1 && ix == 7 && iy == 28)
112 if (
zside == 1 && plane == 1 && ix == 24 && iy == 9 && is == 21)
114 if (
zside == -1 && plane == 2 && ix == 35 && iy == 17 && is == 23)
117 int i = (
zside == 1) ? 0 : 1;
120 for (
int k = 0;
k < dataframe.
size(); ++
k)
126 if (fabs(
adc[0]) > 10)
128 if (
adc[1] < 0 ||
adc[2] < 0)
139 double aaa = (A2 > 0 && A1 > 0) ?
log(A2 / A1) /
n_ : 20.;
140 double bbb =
wc_ /
n_ * DeltaT;
141 double ccc =
exp(aaa + bbb);
143 double t0 = (2. - ccc) / (1. - ccc) * DeltaT - 5;
161 else if (
zside == -1)
166 LogWarning(
"ESTimingTask") <<
"DigiCollection not available";
169 if (
htESP_->GetEntries() > 0 &&
htESM_->GetEntries() > 0)
References ecalLiteDTU::adc(), ESSample::adc(), edm::DataFrameContainer::begin(), MillePedeFileConverter_cfg::e, edm::DataFrameContainer::end(), JetChargeProducer_cfi::exp, mps_fire::i, ESDataFrame::id(), dqmiolumiharvest::j, dqmdumpme::k, dqm-mbProfile::log, ESDataFrame::sample(), ESDataFrame::size(), mps_update::status, FrontierCondition_GT_autoExpress_cfi::t0, and ecaldqm::zside().
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 57 of file ESTimingTask.cc.
63 for (
int i = 0;
i < 2; ++
i)
64 for (
int j = 0;
j < 2; ++
j) {
65 int iz = (
i == 0) ? 1 : -1;
66 sprintf(
histo,
"ES Timing Z %d P %d", iz,
j + 1);
71 sprintf(
histo,
"ES 2D Timing");
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), timingPdfMaker::histo, mps_fire::i, dqmiolumiharvest::j, dqm::impl::MonitorElement::setAxisTitle(), and dqm::implementation::NavigatorBase::setCurrentFolder().
◆ set()
◆ digilabel_
◆ eCount_
int ESTimingTask::eCount_ |
|
private |
◆ esgain_
◆ fit_
◆ h2DTiming_
◆ htESM_
TH1F* ESTimingTask::htESM_ |
|
private |
◆ htESP_
TH1F* ESTimingTask::htESP_ |
|
private |
◆ hTiming_
◆ n_
Double_t ESTimingTask::n_ |
|
private |
◆ prefixME_
std::string ESTimingTask::prefixME_ |
|
private |
◆ runNum_
int ESTimingTask::runNum_ |
|
private |
◆ wc_
Double_t ESTimingTask::wc_ |
|
private |
MonitorElement * hTiming_[2][2]
T const * product() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
int adc() const
get the ADC sample (singed 16 bits)
virtual void setCurrentFolder(std::string const &fullpath)
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Warning, false > LogWarning
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
const ESSample & sample(int i) const
MonitorElement * h2DTiming_
edm::EDGetTokenT< ESDigiCollection > digilabel_
const_iterator begin() const
The iterator returned can not safely be used across threads.
double fitf(double *x, double *par)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
edm::ESHandle< ESGain > esgain_
T getParameter(std::string const &) const
void set(const edm::EventSetup &es)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
const_iterator end() const
const ESDetId & id() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())