CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HcalDetDiagNoiseRMSummary Class Reference

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().

132  {
133  reset();
134  }

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().

141  {
142  if(rbx.substr(0,3)=="HO0"){
143  int sect=atoi(rbx.substr(3,2).c_str());
144  if(sect>12) return -1;
145  if(rm==1 && (sect==2 || sect==3 || sect==6 || sect==7 || sect==10 || sect==11)) return -1;
146  if(rm==4 && (sect==12 || sect==1 || sect==4 || sect==5 || sect==8 || sect==9 )) return -1;
147  }
148  if(rbx.substr(0,3)=="HO1" || rbx.substr(0,3)=="HO2"){
149  int sect=atoi(rbx.substr(4,2).c_str());
150  if(sect>12) return -1;
151  if(sect==1 || sect==3 || sect==5 || sect==7 || sect==9 || sect==11) return -1;
152  }
153  HcalFrontEndId id(rbx,rm,1,1,1,1,1);
154  if(id.rawId()==0) return -1;
155  return id.rmIndex();
156  }
HcalDetDiagNoiseRMData rm[HcalFrontEndId::maxRmIndex]
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().

135  {
136  for(int i=0;i<HcalFrontEndId::maxRmIndex;i++) rm[i].reset();
137  }
int i
Definition: DBlmapReader.cc:9
HcalDetDiagNoiseRMData rm[HcalFrontEndId::maxRmIndex]
static const int maxRmIndex
void HcalDetDiagNoiseRMSummary::reset_LS ( )
inline

Definition at line 138 of file HcalDetDiagNoiseMonitor.cc.

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

138  {
139  for(int i=0;i<HcalFrontEndId::maxRmIndex;i++) rm[i].reset_LS();
140  }
int i
Definition: DBlmapReader.cc:9
HcalDetDiagNoiseRMData rm[HcalFrontEndId::maxRmIndex]
static const int maxRmIndex

Member Data Documentation

HcalDetDiagNoiseRMData HcalDetDiagNoiseRMSummary::rm[HcalFrontEndId::maxRmIndex]