src
RecoLocalTracker
SiStripClusterizer
interface
ClusterChargeCut.h
Go to the documentation of this file.
1
#ifndef RecoLocalTrackerSiStripClusterizerClusterChargeCut_H
2
#define RecoLocalTrackerSiStripClusterizerClusterChargeCut_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include <iostream>
6
7
inline
float
clusterChargeCut
(
const
edm::ParameterSet
& conf,
const
char
*
name
=
"clusterChargeCut"
) {
8
return
conf.
getParameter
<
edm::ParameterSet
>(
name
).getParameter<double>(
"value"
);
9
}
10
11
namespace
CCC
{
12
// SiStripClusterChargeCutNone: -1.0
13
// SiStripClusterChargeCutTiny: 800.0
14
// SiStripClusterChargeCutLoose: 1620.0
15
// SiStripClusterChargeCutTight: 1945.0
16
17
enum
OP
{
kNone
= 0,
kTiny
= 1,
kLoose
= 2,
kTight
= 3 };
18
static
constexpr std::array<float, 4>
cuts
= {{-1.0, 800.0, 1620.0, 1945.0}};
19
}
// namespace CCC
20
21
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
22
inline
edm::ParameterSetDescription
getConfigurationDescription4CCC
(
const
CCC::OP
&
op
) {
23
edm::ParameterSetDescription
desc
;
24
desc
.add<
double
>(
"value"
,
CCC::cuts
[
op
]);
25
return
desc
;
26
}
27
28
// this is needed to validate the configuration without explicitly setting a cut
29
inline
edm::ParameterSetDescription
getConfigurationDescription4CCCNoDefault
() {
30
edm::ParameterSetDescription
desc
;
31
desc
.add<
double
>(
"value"
);
32
return
desc
;
33
}
34
35
#endif // RecoLocalTrackerSiStripClusterizerClusterChargeCut_H
CCC::kLoose
Definition:
ClusterChargeCut.h:17
CCC
Definition:
ClusterChargeCut.h:11
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:307
CCC::kNone
Definition:
ClusterChargeCut.h:17
getConfigurationDescription4CCC
edm::ParameterSetDescription getConfigurationDescription4CCC(const CCC::OP &op)
Definition:
ClusterChargeCut.h:22
clusterChargeCut
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
Definition:
ClusterChargeCut.h:7
CCC::kTiny
Definition:
ClusterChargeCut.h:17
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSet.h
CCC::cuts
static constexpr std::array< float, 4 > cuts
Definition:
ClusterChargeCut.h:18
ParameterSetDescription.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
findAndChange.op
op
Definition:
findAndChange.py:75
CCC::kTight
Definition:
ClusterChargeCut.h:17
getConfigurationDescription4CCCNoDefault
edm::ParameterSetDescription getConfigurationDescription4CCCNoDefault()
Definition:
ClusterChargeCut.h:29
edm::ParameterSet
Definition:
ParameterSet.h:48
CCC::OP
OP
Definition:
ClusterChargeCut.h:17
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14