Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoLocalCalo
HcalRecAlgos
src
HcalCaloFlagLabels.cc
Go to the documentation of this file.
1
#include "
RecoLocalCalo/HcalRecAlgos/interface/HcalCaloFlagLabels.h
"
2
#include <string.h>
3
#include <cstdio>
4
5
HcalCaloFlagTool::HcalCaloFlagTool
(
const
std::string
& releaseName) :
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
17
std::string
HcalCaloFlagTool::getFieldName
(
HcalSubdetector
sd
,
int
bit)
const
{
18
return
""
;
19
}
20
21
int
HcalCaloFlagTool::getFieldWidth
(
HcalSubdetector
sd
,
int
bit)
const
{
22
return
0;
23
}
24
25
int
HcalCaloFlagTool::getFieldStart
(
HcalSubdetector
sd
,
const
std::string
& field)
const
{
26
return
0;
27
}
28
29
int
HcalCaloFlagTool::getFieldWidth
(
HcalSubdetector
sd
,
const
std::string
& field)
const
{
30
return
0;
31
}
32
33
bool
HcalCaloFlagTool::hasField
(
HcalSubdetector
sd
,
const
std::string
& field)
const
{
34
if
(
standardFormat_
) {
35
if
(
major_
<3)
return
false
;
36
}
37
return
getFieldWidth
(sd,field)>0;
38
}
39
40
bool
HcalCaloFlagTool::hasField
(
HcalSubdetector
sd
,
int
bit)
const
{
41
if
(
standardFormat_
) {
42
if
(
major_
<3)
return
false
;
43
}
44
return
getFieldWidth
(sd,bit)>0;
45
}
HcalCaloFlagTool::HcalCaloFlagTool
HcalCaloFlagTool(const std::string &releaseName)
Definition:
HcalCaloFlagLabels.cc:5
HcalCaloFlagLabels.h
l1GtPatternGenerator_cfi.fields
fields
Definition:
l1GtPatternGenerator_cfi.py:91
funct::false
false
Definition:
Factorize.h:34
HcalCaloFlagTool::subpatch_
int subpatch_
Definition:
HcalCaloFlagLabels.h:76
HcalCaloFlagTool::patch_
int patch_
Definition:
HcalCaloFlagLabels.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
HcalCaloFlagTool::getFieldName
std::string getFieldName(HcalSubdetector sd, int bit) const
Definition:
HcalCaloFlagLabels.cc:17
HcalCaloFlagTool::getFieldStart
int getFieldStart(HcalSubdetector sd, const std::string &field) const
Definition:
HcalCaloFlagLabels.cc:25
HcalCaloFlagTool::minor_
int minor_
Definition:
HcalCaloFlagLabels.h:76
HcalSubdetector
HcalSubdetector
Definition:
HcalAssistant.h:32
HcalCaloFlagTool::hasField
bool hasField(HcalSubdetector sd, const std::string &field) const
Definition:
HcalCaloFlagLabels.cc:33
HcalCaloFlagTool::standardFormat_
bool standardFormat_
Definition:
HcalCaloFlagLabels.h:75
HcalCaloFlagTool::getFieldWidth
int getFieldWidth(HcalSubdetector sd, int bit) const
Definition:
HcalCaloFlagLabels.cc:21
sd
double sd
Definition:
CascadeWrapper.h:137
HcalCaloFlagTool::major_
int major_
Definition:
HcalCaloFlagLabels.h:76
Generated for CMSSW Reference Manual by
1.8.5