21 #ifdef WITH_ECAL_COND_DB
174 name =
"EETMT timing projection eta EE -";
179 name =
"EETMT timing projection eta EE +";
184 name =
"EETMT timing projection phi EE -";
189 name =
"EETMT timing projection phi EE +";
200 for (
int ix = 1; ix <= 50; ix++ ) {
201 for (
int iy = 1; iy <= 50; iy++ ) {
208 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
234 if (
h01_[ism-1] )
delete h01_[ism-1];
235 if (
h02_[ism-1] )
delete h02_[ism-1];
266 for(
int i=0;
i<2;
i++){
276 #ifdef WITH_ECAL_COND_DB
284 std::map<EcalLogicID, MonTimingCrystalDat>
dataset;
300 for (
int ix = 1; ix <= 50; ix++ ) {
301 for (
int iy = 1; iy <= 50; iy++ ) {
306 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
341 if ( ic == -1 )
continue;
360 }
catch (std::runtime_error &
e) {
374 if (
ievt_ % 10 == 0 ) {
385 for(
int iz=0; iz<2; iz++){
386 int zside = -1 + iz * 2;
388 TProfile2D *hmap = 0;
392 int nx = hmap->GetNbinsX();
393 int ny = hmap->GetNbinsY();
395 for(
int jx=1; jx<=nx; jx++){
396 for(
int jy=1; jy<=ny; jy++){
398 int ix = (jx-1)*5 + 1;
399 int iy = (jy-1)*5 + 1;
404 float yval = hmap->GetBinContent(jx,jy) - 50.;
415 for(
int i=0;
i<2;
i++){
439 for (
int ix = 1; ix <= 50; ix++ ) {
440 for (
int iy = 1; iy <= 50; iy++ ) {
447 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
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 bool validDetId(int crystal_ix, int crystal_iy, int iz)
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)
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")
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")
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
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)