|
void | absorbCluster (reco::PFCluster &, const reco::PFCluster &) |
|
void | calculateShowerShapes (const reco::PFClusterCollection &, std::vector< double > &, std::vector< double > &) |
|
void | expandCluster (reco::PFCluster &, unsigned int point, std::vector< bool > &mask, const reco::PFClusterCollection &, const std::vector< ClusterLink > &links) |
|
std::vector< ClusterLink > | link (const reco::PFClusterCollection &, const std::vector< double > &, const std::vector< double > &) |
|
std::vector< ClusterLink > | prune (std::vector< ClusterLink > &, std::vector< bool > &linkedClusters) |
|
Definition at line 16 of file PFMultiDepthClusterizer.cc.
◆ B2DGPF
◆ PFMultiDepthClusterizer() [1/2]
Definition at line 81 of file PFMultiDepthClusterizer.cc.
References _allCellsPosCalc, gpuPixelDoublets::cc, edm::ParameterSet::exists(), get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), nSigmaEta_, nSigmaPhi_, funct::pow(), and AlCaHLTBitMon_QueryRunRegistry::string.
83 if (conf.
exists(
"allCellsPositionCalc")) {
T getParameter(std::string const &) const
uint32_t cc[maxCellsPerHit]
bool exists(std::string const ¶meterName) const
checks if a parameter exists
ParameterSet const & getParameterSet(std::string const &) const
std::unique_ptr< PFCPositionCalculatorBase > _allCellsPosCalc
PFClusterBuilderBase(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
Power< A, B >::type pow(const A &a, const B &b)
◆ ~PFMultiDepthClusterizer()
PFMultiDepthClusterizer::~PFMultiDepthClusterizer |
( |
| ) |
|
|
overridedefault |
◆ PFMultiDepthClusterizer() [2/2]
PFMultiDepthClusterizer::PFMultiDepthClusterizer |
( |
const B2DGPF & |
| ) |
|
|
delete |
◆ absorbCluster()
◆ buildClusters()
Implements PFClusterBuilderBase.
Definition at line 93 of file PFMultiDepthClusterizer.cc.
References _allCellsPosCalc, calculateShowerShapes(), expandCluster(), mps_fire::i, input, link(), electronStore::links, gpuClustering::pixelStatus::mask, and prune().
97 std::vector<double> etaRMS2(
input.size(), 0.0);
98 std::vector<double> phiRMS2(
input.size(), 0.0);
112 std::vector<bool>
mask(
input.size(),
false);
113 std::vector<bool> linked(
input.size(),
false);
123 for (
unsigned int i = 0;
i <
input.size(); ++
i) {
140 output.push_back(cluster);
void calculateShowerShapes(const reco::PFClusterCollection &, std::vector< double > &, std::vector< double > &)
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
std::vector< ClusterLink > prune(std::vector< ClusterLink > &, std::vector< bool > &linkedClusters)
static std::string const input
std::unique_ptr< PFCPositionCalculatorBase > _allCellsPosCalc
std::vector< ClusterLink > link(const reco::PFClusterCollection &, const std::vector< double > &, const std::vector< double > &)
void expandCluster(reco::PFCluster &, unsigned int point, std::vector< bool > &mask, const reco::PFClusterCollection &, const std::vector< ClusterLink > &links)
◆ calculateShowerShapes()
void PFMultiDepthClusterizer::calculateShowerShapes |
( |
const reco::PFClusterCollection & |
clusters, |
|
|
std::vector< double > & |
etaRMS2, |
|
|
std::vector< double > & |
phiRMS2 |
|
) |
| |
|
private |
Definition at line 145 of file PFMultiDepthClusterizer.cc.
References funct::abs(), bsc_activity_cfg::clusters, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::PFCluster::energy(), DivergingColor::frac, h, mps_fire::i, SiStripPI::max, reco::PFCluster::positionREP(), reco::PFCluster::recHitFractions(), and cuy::rep.
Referenced by buildClusters().
150 for (
unsigned int i = 0;
i <
clusters.size(); ++
i) {
156 auto const&
h = *
frac.recHitRef();
157 auto const&
rep =
h.positionREP();
158 etaSum += (
frac.fraction() *
h.energy()) *
std::abs(
rep.eta() - crep.eta());
163 etaRMS2[
i] *= etaRMS2[
i];
165 phiRMS2[
i] *= phiRMS2[
i];
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
const std::vector< reco::PFRecHitFraction > & recHitFractions() const
vector of rechit fractions
const REPPoint & positionREP() const
cluster position: rho, eta, phi
double energy() const
cluster energy
Abs< T >::type abs(const T &t)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
◆ expandCluster()
Definition at line 276 of file PFMultiDepthClusterizer.cc.
References absorbCluster(), bsc_activity_cfg::clusters, link(), electronStore::links, gpuClustering::pixelStatus::mask, and point.
Referenced by buildClusters().
void absorbCluster(reco::PFCluster &, const reco::PFCluster &)
std::vector< ClusterLink > link(const reco::PFClusterCollection &, const std::vector< double > &, const std::vector< double > &)
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
void expandCluster(reco::PFCluster &, unsigned int point, std::vector< bool > &mask, const reco::PFClusterCollection &, const std::vector< ClusterLink > &links)
◆ link()
Definition at line 169 of file PFMultiDepthClusterizer.cc.
References funct::abs(), bsc_activity_cfg::clusters, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::PFCluster::depth(), PVValHelper::dz, reco::PFCluster::energy(), mps_fire::i, dqmiolumiharvest::j, electronStore::links, nSigmaEta_, nSigmaPhi_, and reco::PFCluster::positionREP().
Referenced by buildClusters(), and expandCluster().
171 std::vector<ClusterLink>
links;
174 for (
unsigned int j = 0;
j <
clusters.size(); ++
j) {
182 auto dz = (
static_cast<int>(cluster2.
depth()) - static_cast<int>(cluster1.
depth()));
191 auto deta = crep1.eta() - crep2.eta();
192 deta = deta * deta / (etaRMS2[
i] + etaRMS2[
j]);
193 auto dphi =
deltaPhi(crep1.phi(), crep2.phi());
194 dphi = dphi * dphi / (phiRMS2[
i] + phiRMS2[
j]);
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
const REPPoint & positionREP() const
cluster position: rho, eta, phi
double depth() const
cluster depth
double energy() const
cluster energy
Abs< T >::type abs(const T &t)
◆ operator=()
B2DGPF& PFMultiDepthClusterizer::operator= |
( |
const B2DGPF & |
| ) |
|
|
delete |
◆ prune()
◆ update()
◆ _allCellsPosCalc
◆ nSigmaEta_
double PFMultiDepthClusterizer::nSigmaEta_ |
|
private |
◆ nSigmaPhi_
double PFMultiDepthClusterizer::nSigmaPhi_ |
|
private |