79 if (
debug_ )
std::cout <<
"EBTriggerTowerClient: beginJob" << std::endl;
88 if (
debug_ )
std::cout <<
"EBTriggerTowerClient: beginRun" << std::endl;
123 name =
"EBTTT Trigger Primitives Timing " +
Numbers::sEB(ism);
157 if (
l01_[ism-1] )
delete l01_[ism-1];
158 if (
o01_[ism-1] )
delete o01_[ism-1];
184 #ifdef WITH_ECAL_COND_DB
210 if (
ievt_ % 10 == 0 ) {
235 for (
int ie = 1; ie <= 17; ie++) {
236 for (
int ip = 1; ip <= 4; ip++) {
243 for (
int j=0;
j<6;
j++) {
244 double sampleEntries =
o01_[ism-1]->GetBinContent(ie, ip,
j+1);
245 if(sampleEntries > max) {
249 total += sampleEntries;
258 double fraction = (total > 0) ? 1.0 - max/total : 0.;
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * me_o02_[36]
Some "id" conversions.
MonitorElement * mel01_[36]
static std::string sEB(const unsigned ism)
MonitorElement * mel02_[36]
void cleanup(void)
Cleanup.
MonitorElement * meo01_[36]
void analyze(void)
Analyze.
const T & max(const T &a, const T &b)
std::vector< int > superModules_
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 beginJob(void)
BeginJob.
Ecal Monitor Utils for Client.
MonitorElement * me_o01_[36]
void beginRun(void)
BeginRun.
EBTriggerTowerClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
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)
virtual ~EBTriggerTowerClient()
Destructor.
static void printBadChannels(const MonitorElement *me, TH1 *hi, bool positive_only=false)
Print the bad channels.
void setCurrentFolder(const std::string &fullpath)