|
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, get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), nSigmaEta_, nSigmaPhi_, funct::pow(), and AlCaHLTBitMon_QueryRunRegistry::string.
84 if (!acConf.empty()) {
T getParameter(std::string const &) const
uint32_t cc[maxCellsPerHit]
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 94 of file PFMultiDepthClusterizer.cc.
References _allCellsPosCalc, calculateShowerShapes(), expandCluster(), mps_fire::i, input, link(), electronStore::links, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and prune().
98 std::vector<double> etaRMS2(
input.size(), 0.0);
99 std::vector<double> phiRMS2(
input.size(), 0.0);
113 std::vector<bool>
mask(
input.size(),
false);
114 std::vector<bool> linked(
input.size(),
false);
124 for (
unsigned int i = 0;
i <
input.size(); ++
i) {
141 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 146 of file PFMultiDepthClusterizer.cc.
References funct::abs(), bsc_activity_cfg::clusters, srCondWrite_cfg::deltaPhi, reco::PFCluster::energy(), DivergingColor::frac, h, mps_fire::i, WZElectronSkims53X_cff::max, reco::PFCluster::positionREP(), reco::PFCluster::recHitFractions(), and cuy::rep.
Referenced by buildClusters().
151 for (
unsigned int i = 0;
i <
clusters.size(); ++
i) {
157 auto const&
h = *
frac.recHitRef();
158 auto const&
rep =
h.positionREP();
159 etaSum += (
frac.fraction() *
h.energy()) *
std::abs(
rep.eta() - crep.eta());
164 etaRMS2[
i] *= etaRMS2[
i];
166 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 277 of file PFMultiDepthClusterizer.cc.
References absorbCluster(), bsc_activity_cfg::clusters, link(), electronStore::links, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::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 170 of file PFMultiDepthClusterizer.cc.
References funct::abs(), bsc_activity_cfg::clusters, srCondWrite_cfg::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().
172 std::vector<ClusterLink>
links;
175 for (
unsigned int j = 0;
j <
clusters.size(); ++
j) {
183 auto dz = (
static_cast<int>(cluster2.
depth()) - static_cast<int>(cluster1.
depth()));
192 auto deta = crep1.eta() - crep2.eta();
193 deta = deta * deta / (etaRMS2[
i] + etaRMS2[
j]);
194 auto dphi =
deltaPhi(crep1.phi(), crep2.phi());
195 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 |