1 #ifndef __InitialClusteringStepBase_H__
2 #define __InitialClusteringStepBase_H__
14 #include <unordered_map>
44 const std::vector<edm::ParameterSet>&
thresholds = conf.getParameterSetVector(
"thresholdsByDetector");
49 std::vector<double> thresh_E;
50 std::vector<double> thresh_pT;
51 std::vector<double> thresh_pT2;
54 depths =
pset.getParameter<std::vector<int> >(
"depths");
55 thresh_E =
pset.getParameter<std::vector<double> >(
"gatheringThreshold");
56 thresh_pT =
pset.getParameter<std::vector<double> >(
"gatheringThresholdPt");
57 if (thresh_E.size() !=
depths.size() || thresh_pT.size() !=
depths.size()) {
59 <<
"gatheringThresholds mismatch with the numbers of depths";
63 thresh_E.push_back(
pset.getParameter<
double>(
"gatheringThreshold"));
64 thresh_pT.push_back(
pset.getParameter<
double>(
"gatheringThresholdPt"));
67 for (
unsigned int i = 0;
i < thresh_pT.size(); ++
i) {
68 thresh_pT2.push_back(thresh_pT[
i] * thresh_pT[
i]);
74 <<
"Detector layer : " << det <<
" is not in the list of recognized"
75 <<
" detector layers!";
90 const std::vector<bool>& mask,
91 const std::vector<bool>&
seeds,
95 o <<
"InitialClusteringStep with algo \"" <<
_algoName <<
"\" located " <<
_nSeeds <<
" seeds and built "
109 typedef std::tuple<std::vector<int>, std::vector<double>, std::vector<double> >
I3tuple;