19 #ifdef WITH_ECAL_COND_DB
171 name =
"EBTMT timing projection eta";
176 name =
"EBTMT timing projection phi";
187 for (
int ie = 1; ie <= 85; ie++ ) {
188 for (
int ip = 1; ip <= 20; ip++ ) {
214 if (
h01_[ism-1] )
delete h01_[ism-1];
215 if (
h02_[ism-1] )
delete h02_[ism-1];
251 #ifdef WITH_ECAL_COND_DB
259 std::map<EcalLogicID, MonTimingCrystalDat>
dataset;
275 for (
int ie = 1; ie <= 85; ie++ ) {
276 for (
int ip = 1; ip <= 20; ip++ ) {
290 std::cout <<
"crystal (" << ie <<
"," << ip <<
") " << num01 <<
" " << mean01 <<
" " << rms01 << std::endl;
326 }
catch (std::runtime_error &
e) {
340 if (
ievt_ % 10 == 0 ) {
357 h01_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h01_[ism-1] );
369 for (
int ie = 1; ie <= 85; ie++ ) {
370 for (
int ip = 1; ip <= 20; ip++ ) {
408 phi = ip+20*(ism-1)-0.5;
411 phi = (20-ip)+20*(ism-19)+0.5;
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
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)
void analyze(void)
Analyze.
MonitorElement * mep01_[36]
static const int PHYSICS_BAD_CHANNEL_WARNING
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.
MonitorElement * mer01_[36]
void setTimingMean(float mean)
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_
MonitorElement * meTimeSummaryMapProjPhi_
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
MonitorElement * meh01_[36]
void beginRun(void)
BeginRun.
EBTimingClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meh02_[36]
void removeElement(const std::string &name)
Abs< T >::type abs(const T &t)
static unsigned indexEB(const unsigned ism, const unsigned ie, const unsigned ip)
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * meTimeSummaryMapProjEta_
Ecal Monitor Utils for Client.
void setTaskStatus(bool status)
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.
MonitorElement * meg01_[36]
void setTimingRMS(float rms)
virtual ~EBTimingClient()
Destructor.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
MonitorElement * mea01_[36]
void cleanup(void)
Cleanup.
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)
void beginJob(void)
BeginJob.