CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalCaloFlagLabels.cc
Go to the documentation of this file.
2 #include <string.h>
3 #include <cstdio>
4 
6  releaseName_(releaseName),
7  standardFormat_(false),
8  major_(0),
9  minor_(0),
10  patch_(0),
11  subpatch_(0)
12 {
13  int fields=sscanf(releaseName.c_str(),"CMSSW_%d_%d_%d_%d",&major_,&minor_,&patch_,&subpatch_);
14  if (fields>=3) standardFormat_=true;
15 }
16 
18  return "";
19 }
20 
22  return 0;
23 }
24 
26  return 0;
27 }
28 
30  return 0;
31 }
32 
34  if (standardFormat_) {
35  if (major_<3) return false;
36  }
37  return getFieldWidth(sd,field)>0;
38 }
39 
41  if (standardFormat_) {
42  if (major_<3) return false;
43  }
44  return getFieldWidth(sd,bit)>0;
45 }
HcalCaloFlagTool(const std::string &releaseName)
std::string getFieldName(HcalSubdetector sd, int bit) const
int getFieldStart(HcalSubdetector sd, const std::string &field) const
HcalSubdetector
Definition: HcalAssistant.h:31
bool hasField(HcalSubdetector sd, const std::string &field) const
int getFieldWidth(HcalSubdetector sd, int bit) const
double sd
volatile std::atomic< bool > shutdown_flag false