77 if (
debug_ )
std::cout <<
"EBTriggerTowerClient: beginJob" << std::endl;
86 if (
debug_ )
std::cout <<
"EBTriggerTowerClient: beginRun" << std::endl;
121 name =
"EBTTT Trigger Primitives Timing " +
Numbers::sEB(ism);
155 if (
l01_[ism-1] )
delete l01_[ism-1];
156 if (
o01_[ism-1] )
delete o01_[ism-1];
182 #ifdef WITH_ECAL_COND_DB
208 if (
ievt_ % 10 == 0 ) {
233 for (
int ie = 1; ie <= 17; ie++) {
234 for (
int ip = 1; ip <= 4; ip++) {
241 for (
int j=0;
j<6;
j++) {
242 double sampleEntries =
o01_[ism-1]->GetBinContent(ie, ip,
j+1);
243 if(sampleEntries > max) {
247 total += sampleEntries;
256 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)
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)