|
void | book () |
|
void | fill (DetId const &, double, double _wy=1., double _w=1.) |
|
void | fill (unsigned, double, double _wy=1., double _w=1.) |
|
void | fill (double, double _wy=1., double _w=1.) |
|
double | getBinContent (DetId const &, int _bin=0) const |
|
double | getBinContent (unsigned, int _bin=0) const |
|
double | getBinEntries (DetId const &, int _bin=0) const |
|
double | getBinEntries (unsigned, int _bin=0) const |
|
double | getBinError (DetId const &, int _bin=0) const |
|
double | getBinError (unsigned, int _bin=0) const |
|
bool | getMinutely () const |
|
time_t | getTimeZero () const |
|
| MESetTrend (std::string const &, MEData const &, bool _readOnly=false) |
|
void | setBinContent (DetId const &, double, double _err=0.) |
|
void | setBinContent (unsigned, double, double _err=0.) |
|
void | setBinEntries (DetId const &, double) |
|
void | setBinEntries (unsigned, double) |
|
void | setMinutely (bool _minutely) |
|
void | setTimeZero (time_t _t0) |
|
| ~MESetTrend () |
|
std::vector< std::string > | generateNames () const |
|
| MESetEcal (std::string const &, MEData const &, int logicalDimensions_, bool _readOnly=false) |
|
void | reset (double _content=0., double _err=0., double _entries=0.) |
|
bool | retrieve () const |
|
| ~MESetEcal () |
|
virtual void | clear () const |
|
virtual void | fill (EcalElectronicsId const &, double _wx=1., double _wy=1., double _w=1.) |
|
virtual double | getBinContent (EcalElectronicsId const &, int _bin=0) const |
|
virtual double | getBinEntries (EcalElectronicsId const &, int _bin=0) const |
|
virtual double | getBinError (EcalElectronicsId const &, int _bin=0) const |
|
BinService::BinningType | getBinType () const |
|
std::string const & | getDir () const |
|
virtual MonitorElement const * | getME (unsigned _offset) const |
|
std::string const & | getName () const |
|
BinService::ObjectType | getObjType () const |
|
bool | isActive () const |
|
| MESet (std::string const &, MEData const &, bool _readOnly=false) |
|
void | name (std::map< std::string, std::string > const &) const |
|
virtual void | resetAll (double _content=0., double _err=0., double _entries=0.) |
|
virtual void | setAxisTitle (std::string const &, int _axis=1) |
|
virtual void | setBinContent (EcalElectronicsId const &, double, double _err=0.) |
|
virtual void | setBinEntries (EcalElectronicsId const &, double) |
|
virtual void | setBinLabel (unsigned, int, std::string const &, int _axis=1) |
|
void | setDir (std::string const &_dir) |
|
void | setName (std::string const &_name) |
|
virtual | ~MESet () |
|
|
virtual void | fill_ (double) |
|
virtual void | find_ (uint32_t) const |
|
virtual void | fill_ (unsigned, int, double) |
|
virtual void | fill_ (unsigned, double, double, double) |
|
virtual double | getBinContent_ (unsigned, int) const |
|
virtual double | getBinEntries_ (unsigned, int) const |
|
virtual double | getBinError_ (unsigned, int) const |
|
virtual void | setBinContent_ (unsigned, int, double, double) |
|
virtual void | setBinEntries_ (unsigned, int, double) |
|
std::pair< unsigned,
std::vector< int > > | cache_ |
|
uint32_t | cacheId_ |
|
const unsigned | logicalDimensions_ |
|
bool | active_ |
|
MEData const * | data_ |
|
std::string | dir_ |
|
std::vector< MonitorElement * > | mes_ |
|
std::string | name_ |
|
bool | readOnly_ |
|
static BinService const * | binService_ |
|
static DQMStore * | dqmStore_ |
|
Definition at line 11 of file MESetTrend.h.
bool ecaldqm::MESetTrend::shift_ |
( |
time_t |
_t | ) |
|
|
private |
Definition at line 84 of file MESetTrend.cc.
References edm::conversion(), ecaldqm::MESet::data_, alignCSCRings::dest, MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, end, python.tagInventory::entries, MonitorElement::getBinContent(), MonitorElement::getBinEntries(), MonitorElement::getBinError(), MonitorElement::getNbinsY(), MonitorElement::getTH1(), EcalDQMBinningService::AxisSpecs::high, ecaldqm::MEData::kind, EcalDQMBinningService::AxisSpecs::low, ecaldqm::MESet::mes_, minutely_, EcalDQMBinningService::AxisSpecs::nbins, plotscripts::rms(), MonitorElement::setBinContent(), MonitorElement::setBinEntries(), MonitorElement::setBinError(), MonitorElement::setEntries(), mathSSE::sqrt(), errorMatrix2Lands_multiChannel::start, launcher::step, tLow_, tablePrinter::width, and ecaldqm::MEData::xaxis.
Referenced by fill().
93 int dtPerBin(
width / nbinsX);
96 if(_t >=
tLow_ && _t < tHigh)
99 dBin = (_t - tHigh) / dtPerBin + 1;
103 for(
unsigned iME(0); iME <
mes_.size(); iME++){
107 int iMax(nbinsX + 1);
108 while(--iMax > 0 && !filled){
111 if(me->getBinContent(iMax) != 0) filled =
true;
114 if(me->getBinEntries(iMax) != 0) filled =
true;
117 for(
int iy(1); iy <= me->getNbinsY(); iy++)
118 if(me->getBinContent(iMax, iy) != 0) filled =
true;
125 if(iMax > maxBin) maxBin = iMax;
128 if(_t <
tLow_ - (nbinsX - maxBin) * dtPerBin)
return false;
130 dBin = (_t - dtPerBin -
tLow_) / dtPerBin;
133 int start(dBin > 0 ? dBin + 1 : nbinsX + dBin);
134 int end(dBin > 0 ? nbinsX + 1 : 0);
135 int step(dBin > 0 ? 1 : -1);
137 tLow_ += dBin * dtPerBin;
138 tHigh += dBin * dtPerBin;
140 for(
unsigned iME(0); iME <
mes_.size(); iME++){
147 for(
int ix(
start); (dBin > 0 ? (ix < end) : (ix >
end)); ix +=
step){
150 entries += me->getBinContent(ix);
151 me->setBinContent(ix - dBin, me->getBinContent(ix));
152 me->setBinError(ix - dBin, me->getBinError(ix));
153 me->setBinContent(ix, 0.);
154 me->setBinError(ix, 0.);
157 entries += me->getBinEntries(ix);
158 me->setBinEntries(ix - dBin, me->getBinEntries(ix));
159 me->setBinContent(ix - dBin, me->getBinContent(ix) * me->getBinEntries(ix));
160 if(me->getBinEntries(ix) > 0){
161 double rms(me->getBinError(ix) *
std::sqrt(me->getBinEntries(ix)));
162 double sumw2((
rms *
rms + me->getBinContent(ix) * me->getBinContent(ix)) * me->getBinEntries(ix));
163 me->setBinError(ix - dBin,
std::sqrt(sumw2));
165 me->setBinEntries(ix, 0.);
166 me->setBinContent(ix, 0.);
167 me->setBinError(ix, 0.);
170 for(
int iy(1); iy <= me->getNbinsY(); iy++){
171 int orig(me->getTH1()->GetBin(ix, iy));
172 int dest(me->getTH1()->GetBin(ix - dBin, iy));
173 entries += me->getBinContent(orig);
174 me->setBinContent(
dest, me->getBinContent(orig));
175 me->setBinError(
dest, me->getBinError(orig));
176 me->setBinContent(orig, 0.);
177 me->setBinError(orig, 0.);
185 me->setEntries(entries);
186 me->getTH1()->GetXaxis()->SetLimits(
tLow_, tHigh);
MonitorElement::Kind kind
BinService::AxisSpecs * xaxis
std::vector< MonitorElement * > mes_
void conversion(EventAux const &from, EventAuxiliary &to)