CMS 3D CMS Logo

Public Member Functions | Public Attributes

HcalDetDiagNoiseRMSummary Class Reference

List of all members.

Public Member Functions

int GetRMindex (const std::string &rbx, int rm)
 HcalDetDiagNoiseRMSummary ()
void reset ()
void reset_LS ()

Public Attributes

HcalDetDiagNoiseRMData rm [HcalFrontEndId::maxRmIndex]

Detailed Description

Definition at line 130 of file HcalDetDiagNoiseMonitor.cc.


Constructor & Destructor Documentation

HcalDetDiagNoiseRMSummary::HcalDetDiagNoiseRMSummary ( ) [inline]

Definition at line 132 of file HcalDetDiagNoiseMonitor.cc.

References reset().

                             { 
     reset();
  }

Member Function Documentation

int HcalDetDiagNoiseRMSummary::GetRMindex ( const std::string &  rbx,
int  rm 
) [inline]

Definition at line 141 of file HcalDetDiagNoiseMonitor.cc.

Referenced by HcalDetDiagNoiseMonitor::analyze(), HcalDetDiagNoiseMonitor::endLuminosityBlock(), HcalDetDiagNoiseMonitor::SaveRates(), and HcalDetDiagNoiseMonitor::UpdateHistos().

                                             {
      if(rbx.substr(0,3)=="HO0"){
         int sect=atoi(rbx.substr(3,2).c_str());
         if(sect>12) return -1;
         if(rm==1 && (sect==2  || sect==3 || sect==6 || sect==7 || sect==10 || sect==11)) return -1;
         if(rm==4 && (sect==12 || sect==1 || sect==4 || sect==5 || sect==8  || sect==9 )) return -1;
      }
      if(rbx.substr(0,3)=="HO1" || rbx.substr(0,3)=="HO2"){ 
         int sect=atoi(rbx.substr(4,2).c_str());
         if(sect>12) return -1;
         if(sect==1 || sect==3 || sect==5 || sect==7 || sect==9 || sect==11) return -1;
      }
      HcalFrontEndId id(rbx,rm,1,1,1,1,1);
      if(id.rawId()==0) return -1;
      return id.rmIndex(); 
  }
void HcalDetDiagNoiseRMSummary::reset ( void  ) [inline]

Definition at line 135 of file HcalDetDiagNoiseMonitor.cc.

References i, HcalFrontEndId::maxRmIndex, reset(), and submit::rm.

Referenced by HcalDetDiagNoiseMonitor::analyze().

              {
     for(int i=0;i<HcalFrontEndId::maxRmIndex;i++) rm[i].reset(); 
  }
void HcalDetDiagNoiseRMSummary::reset_LS ( ) [inline]

Definition at line 138 of file HcalDetDiagNoiseMonitor.cc.

References i, HcalFrontEndId::maxRmIndex, and submit::rm.

                 {
     for(int i=0;i<HcalFrontEndId::maxRmIndex;i++) rm[i].reset_LS(); 
  }

Member Data Documentation