CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQMServices/Core/interface/DQMChannel.h

Go to the documentation of this file.
00001 #ifndef DQMSERVICES_CORE_DQM_CHANNEL_H
00002 # define DQMSERVICES_CORE_DQM_CHANNEL_H
00003 
00004 struct DQMChannel
00005 {
00006   int binx;      //< bin # in x-axis (or bin # for 1D histogram)
00007   int biny;      //< bin # in y-axis (for 2D or 3D histograms)
00008   int binz;      //< bin # in z-axis (for 3D histograms)
00009   float content; //< bin content
00010   float RMS;     //< RMS of bin content
00011 
00012   int getBin(void)        { return getBinX(); }
00013   int getBinX(void)       { return binx; }
00014   int getBinY(void)       { return biny; }
00015   int getBinZ(void)       { return binz; }
00016   float getContents(void) { return content; }
00017   float getRMS(void)      { return RMS; }
00018 
00019   DQMChannel(int bx, int by, int bz, float data, float rms)
00020     {
00021       binx = bx;
00022       biny = by;
00023       binz = bz;
00024       content = data;
00025       RMS = rms;
00026     }
00027 
00028   DQMChannel(void)
00029     {
00030       binx = 0;
00031       biny = 0;
00032       binz = 0;
00033       content = 0;
00034       RMS = 0;
00035     }
00036 };
00037 
00038 #endif // DQMSERVICES_CORE_DQM_CHANNEL_H