22 #ifdef WITH_ECAL_COND_DB
96 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginJob" << std::endl;
105 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginRun" << std::endl;
143 name =
"EBPOT pedestal quality G12 " +
Numbers::sEB(ism);
166 for (
int ie = 1; ie <= 85; ie++ ) {
167 for (
int ip = 1; ip <= 20; ip++ ) {
190 if (
h03_[ism-1] )
delete h03_[ism-1];
219 #ifdef WITH_ECAL_COND_DB
227 std::map<EcalLogicID, MonPedestalsOnlineDat>
dataset;
243 for (
int ie = 1; ie <= 85; ie++ ) {
244 for (
int ip = 1; ip <= 20; ip++ ) {
256 std::cout <<
"G12 (" << ie <<
"," << ip <<
") " << num03 <<
" " << mean03 <<
" " << rms03 << std::endl;
292 }
catch (std::runtime_error &
e) {
306 if (
ievt_ % 10 == 0 ) {
323 h03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h03_[ism-1] );
328 for (
int ie = 1; ie <= 85; ie++ ) {
329 for (
int ip = 1; ip <= 20; ip++ ) {
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
EBPedestalOnlineClient(const edm::ParameterSet &ps)
Constructor.
float RMSThresholdHighEta_
MonitorElement * mer03_[36]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Some "id" conversions.
static std::string sEB(const unsigned ism)
static bool getBinQuality(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin quality is good or masked.
static const int PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR
static unsigned icEB(const unsigned ism, const unsigned ix, const unsigned iy)
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
std::vector< int > superModules_
void beginRun(void)
BeginRun.
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
void cleanup(void)
Cleanup.
virtual ~EBPedestalOnlineClient()
Destructor.
void setTaskStatus(bool status)
void removeElement(const std::string &name)
static unsigned indexEB(const unsigned ism, const unsigned ie, const unsigned ip)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void setADCMeanG12(float mean)
void beginJob(void)
BeginJob.
Ecal Monitor Utils for Client.
static bool getBinStatistics(TH1 *histo, const int ix, const int iy, float &num, float &mean, float &rms, float minEntries=1.)
Returns true if the bin contains good statistical data.
static const int PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR
MonitorElement * meg03_[36]
MonitorElement * mep03_[36]
void analyze(void)
Analyze.
void setADCRMSG12(float rms)
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
static EcalLogicID getEcalLogicID(const char *name, const int id1=EcalLogicID::NULLID, const int id2=EcalLogicID::NULLID, const int id3=EcalLogicID::NULLID)
int ism(int ieta, int iphi)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
static void printBadChannels(const MonitorElement *me, TH1 *hi, bool positive_only=false)
Print the bad channels.
void setCurrentFolder(const std::string &fullpath)