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 125 of file HcalDetDiagNoiseMonitor.cc.

Constructor & Destructor Documentation

HcalDetDiagNoiseRMSummary::HcalDetDiagNoiseRMSummary ( )
inline

Definition at line 127 of file HcalDetDiagNoiseMonitor.cc.

References reset().

127  {
128  reset();
129  }

Member Function Documentation

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

Definition at line 136 of file HcalDetDiagNoiseMonitor.cc.

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

136  {
137  if(rbx.substr(0,3)=="HO0"){
138  int sect=atoi(rbx.substr(3,2).c_str());
139  if(sect>12) return -1;
140  if(rm==1 && (sect==2 || sect==3 || sect==6 || sect==7 || sect==10 || sect==11)) return -1;
141  if(rm==4 && (sect==12 || sect==1 || sect==4 || sect==5 || sect==8 || sect==9 )) return -1;
142  }
143  if(rbx.substr(0,3)=="HO1" || rbx.substr(0,3)=="HO2"){
144  int sect=atoi(rbx.substr(4,2).c_str());
145  if(sect>12) return -1;
146  if(sect==1 || sect==3 || sect==5 || sect==7 || sect==9 || sect==11) return -1;
147  }
148  HcalFrontEndId id(rbx,rm,1,1,1,1,1);
149  if(id.rawId()==0) return -1;
150  return id.rmIndex();
151  }
HcalDetDiagNoiseRMData rm[HcalFrontEndId::maxRmIndex]
void HcalDetDiagNoiseRMSummary::reset ( void  )
inline

Definition at line 130 of file HcalDetDiagNoiseMonitor.cc.

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

Referenced by HcalDetDiagNoiseMonitor::analyze().

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

Definition at line 133 of file HcalDetDiagNoiseMonitor.cc.

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

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

Member Data Documentation

HcalDetDiagNoiseRMData HcalDetDiagNoiseRMSummary::rm[HcalFrontEndId::maxRmIndex]