22 #ifdef WITH_ECAL_COND_DB
94 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginJob" << std::endl;
103 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginRun" << std::endl;
138 name =
"EBPOT pedestal quality G12 " +
Numbers::sEB(ism);
161 for (
int ie = 1; ie <= 85; ie++ ) {
162 for (
int ip = 1; ip <= 20; ip++ ) {
185 if (
h03_[ism-1] )
delete h03_[ism-1];
211 #ifdef WITH_ECAL_COND_DB
219 std::map<EcalLogicID, MonPedestalsOnlineDat>
dataset;
235 for (
int ie = 1; ie <= 85; ie++ ) {
236 for (
int ip = 1; ip <= 20; ip++ ) {
248 std::cout <<
"G12 (" << ie <<
"," << ip <<
") " << num03 <<
" " << mean03 <<
" " << rms03 << std::endl;
284 }
catch (std::runtime_error &e) {
298 if (
ievt_ % 10 == 0 ) {
313 h03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h03_[ism-1] );
318 for (
int ie = 1; ie <= 85; ie++ ) {
319 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)
static std::string sEB(const int ism)
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 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 void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
static int icEB(const int ism, const int ix, const int iy)
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.
static int indexEB(const int ism, const int ie, const int ip)
void cleanup(void)
Cleanup.
static int iSM(const int ism, const EcalSubdetector subdet)
virtual ~EBPedestalOnlineClient()
Destructor.
void setTaskStatus(bool status)
void removeElement(const std::string &name)
std::string getName(Reflex::Type &cc)
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)
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)