19 #ifdef WITH_ECAL_COND_DB
172 name =
"EETMT timing projection eta EE -";
177 name =
"EETMT timing projection eta EE +";
182 name =
"EETMT timing projection phi EE -";
187 name =
"EETMT timing projection phi EE +";
198 for (
int ix = 1; ix <= 50; ix++ ) {
199 for (
int iy = 1; iy <= 50; iy++ ) {
206 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
232 if (
h01_[ism-1] )
delete h01_[ism-1];
233 if (
h02_[ism-1] )
delete h02_[ism-1];
264 for(
int i=0;
i<2;
i++){
274 #ifdef WITH_ECAL_COND_DB
282 std::map<EcalLogicID, MonTimingCrystalDat>
dataset;
298 for (
int ix = 1; ix <= 50; ix++ ) {
299 for (
int iy = 1; iy <= 50; iy++ ) {
304 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
339 if ( ic == -1 )
continue;
358 }
catch (std::runtime_error &
e) {
372 if (
ievt_ % 10 == 0 ) {
383 for(
int iz=0; iz<2; iz++){
384 int zside = -1 + iz * 2;
386 TProfile2D *hmap = 0;
390 int nx = hmap->GetNbinsX();
391 int ny = hmap->GetNbinsY();
393 for(
int jx=1; jx<=nx; jx++){
394 for(
int jy=1; jy<=ny; jy++){
396 int ix = (jx-1)*5 + 1;
397 int iy = (jy-1)*5 + 1;
402 float yval = hmap->GetBinContent(jx,jy) - 50.;
413 for(
int i=0;
i<2;
i++){
437 for (
int ix = 1; ix <= 50; ix++ ) {
438 for (
int iy = 1; iy <= 50; iy++ ) {
445 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
463 EEDetId id(jx, jy, -1 + iz * 2);
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
static bool validEE(const unsigned ism, const unsigned ix, const unsigned iy)
void analyze(void)
Analyze.
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)
MonitorElement * mea01_[18]
static unsigned icEE(const unsigned ism, const unsigned ix, const unsigned iy)
static const int PHYSICS_BAD_CHANNEL_WARNING
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
Some "id" conversions.
std::vector< int > superModules_
static bool getBinQuality(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin quality is good or masked.
static int ix0EE(const unsigned ism)
void setTimingMean(float mean)
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
static int iy0EE(const unsigned ism)
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
MonitorElement * meTimeSummaryMapProjPhi_[2]
void cleanup(void)
Cleanup.
MonitorElement * mep01_[18]
MonitorElement * mer01_[18]
void removeElement(const std::string &name)
Abs< T >::type abs(const T &t)
void beginJob(void)
BeginJob.
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_[2]
Ecal Monitor Utils for Client.
virtual ~EETimingClient()
Destructor.
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.
EETimingClient(const edm::ParameterSet &ps)
Constructor.
TObject * getRootObject(void) const
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
void setTimingRMS(float rms)
void beginRun(void)
BeginRun.
static float eta(const DetId &id)
MonitorElement * meg01_[18]
static unsigned indexEE(const unsigned ism, const unsigned ix, const unsigned iy)
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
MonitorElement * meh01_[18]
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)
MonitorElement * meh02_[18]
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)
static float phi(const DetId &id)