1 #ifndef L1Trigger_Phase2L1GT_L1GTSingleCollectionCut_h 2 #define L1Trigger_Phase2L1GT_L1GTSingleCollectionCut_h 17 template <
typename T,
typename K>
22 std::vector<T> convertedValues(
values.size());
23 for (std::size_t
i = 0;
i <
values.size();
i++) {
26 return convertedValues;
38 maxPt_(getOptionalParam<int, double>(
40 minEta_(getOptionalParam<int, double>(
42 maxEta_(getOptionalParam<int, double>(
44 minPhi_(getOptionalParam<int, double>(
46 maxPhi_(getOptionalParam<int, double>(
48 minZ0_(getOptionalParam<int, double>(
50 maxZ0_(getOptionalParam<int, double>(
56 qual_(
config.getParameter<std::vector<unsigned int>>(
"qual")),
61 maxIso_(getOptionalParam<int, double>(
129 desc.addOptional<
double>(
"minPt");
130 desc.addOptional<
double>(
"maxPt");
131 desc.addOptional<
double>(
"minEta");
132 desc.addOptional<
double>(
"maxEta");
133 desc.addOptional<
double>(
"minPhi");
134 desc.addOptional<
double>(
"maxPhi");
135 desc.addOptional<
double>(
"minZ0");
136 desc.addOptional<
double>(
"maxZ0");
137 desc.addOptional<
double>(
"minScalarSumPt");
138 desc.addOptional<
double>(
"maxScalarSumPt");
139 desc.add<std::vector<unsigned int>>(
"qual", {});
140 desc.addOptional<
double>(
"minAbsEta");
141 desc.addOptional<
double>(
"maxAbsEta");
142 desc.addOptional<
double>(
"maxIso");
143 desc.addOptional<
int>(
"minHwIso");
144 desc.add<std::vector<double>>(
"regionsAbsEtaLowerBounds", {});
145 desc.add<std::vector<double>>(
"regionsMinPt", {});
146 desc.add<std::vector<double>>(
"regionsMaxIso", {});
147 desc.add<std::vector<unsigned int>>(
"regionsQual", {});
165 const std::vector<unsigned int>
qual_;
178 #endif // L1Trigger_Phase2L1GT_L1GTSingleCollectionCut_h const std::optional< int > maxAbsEta_
const std::optional< int > maxIso_
bool checkEtadependentcuts(const P2GTCandidate &obj) const
const std::optional< int > minPhi_
bool checkObject(const P2GTCandidate &obj) const
const std::vector< unsigned int > regionsQual_
const std::optional< int > maxEta_
const std::optional< int > maxPhi_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
const edm::InputTag & tag() const
const std::vector< int > regionsAbsEtaLowerBounds_
const std::optional< int > maxScalarSumPt_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
L1GTSingleCollectionCut(const edm::ParameterSet &config, const edm::ParameterSet &lutConfig, const L1GTScales &scales)
const std::optional< int > minAbsEta_
std::optional< T > getOptionalParam(const std::string &name, const edm::ParameterSet &config, std::function< T(K)> conv)
unsigned int atIndex(int objeta) const
const std::optional< int > minEta_
const std::optional< int > minHwIso_
const std::optional< int > maxPt_
const std::vector< unsigned int > qual_
const std::optional< int > minZ0_
Abs< T >::type abs(const T &t)
const std::vector< int > regionsMaxIso_
int isolation_shift() const
const std::vector< int > regionsMinPt_
std::vector< T > getParamVector(const std::string &name, const edm::ParameterSet &config, std::function< T(K)> conv)
const std::optional< int > maxZ0_
const std::optional< int > minPt_
const std::optional< int > minScalarSumPt_