|
|
Go to the documentation of this file. 1 #ifndef DAClusterizerInZT_vect_h
2 #define DAClusterizerInZT_vect_h
27 double new_z,
double new_t,
double new_dz2,
double new_dt2,
const reco::TransientTrack *new_tt,
double new_pi) {
30 dz2.push_back(new_dz2);
31 dt2.push_back(new_dt2);
40 unsigned int getSize()
const {
return z.size(); }
60 std::vector<double>
z;
61 std::vector<double>
t;
62 std::vector<double>
dz2;
63 std::vector<double>
dt2;
65 std::vector<double>
pi;
66 std::vector<unsigned int>
kmin;
67 std::vector<unsigned int>
kmax;
68 std::vector<const reco::TransientTrack *>
tt;
72 void addItem(
double new_z,
double new_t,
double new_pk) {
94 unsigned int getSize()
const {
return z.size(); }
118 z.insert(
z.begin() +
k, new_z);
119 t.insert(
t.begin() +
k, new_t);
120 pk.insert(
pk.begin() +
k, new_pk);
121 dt2.insert(
dt2.begin() +
k, 0.0);
125 ei.insert(
ei.begin() +
k, 0.0);
126 swz.insert(
swz.begin() +
k, 0.0);
127 swt.insert(
swt.begin() +
k, 0.0);
128 se.insert(
se.begin() +
k, 0.0);
130 nuz.insert(
nuz.begin() +
k, 0.0);
131 nut.insert(
nut.begin() +
k, 0.0);
132 szz.insert(
szz.begin() +
k, 0.0);
133 stt.insert(
stt.begin() +
k, 0.0);
134 szt.insert(
szt.begin() +
k, 0.0);
137 for (
unsigned int i = 0;
i < tks.
getSize();
i++) {
149 z.erase(
z.begin() +
k);
150 t.erase(
t.begin() +
k);
151 pk.erase(
pk.begin() +
k);
156 ei.erase(
ei.begin() +
k);
159 se.erase(
se.begin() +
k);
168 for (
unsigned int i = 0;
i < tks.
getSize();
i++) {
195 for (
unsigned int i = 0;
i <
getSize(); ++
i) {
200 std::vector<double>
z;
201 std::vector<double>
t;
202 std::vector<double>
pk;
225 std::vector<double>
ei;
228 std::vector<double>
se;
236 std::vector<double>
z0;
241 std::vector<std::vector<reco::TransientTrack> >
clusterize(
242 const std::vector<reco::TransientTrack> &
tracks)
const override;
244 std::vector<TransientVertex>
vertices(
const std::vector<reco::TransientTrack> &
tracks,
const int verbosity = 0)
const;
253 double beta,
track_t >racks,
vertex_t &gvertices,
const double delta_max,
const double rho0 = 0.)
const;
std::vector< unsigned int > kmin
std::vector< double > swt
std::vector< double > szz
unsigned int convergence_mode_
std::vector< double > dz2
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks, const int verbosity=0) const
std::vector< double > stt
unsigned int getSize() const
bool purge(vertex_t &, track_t &, double &, const double) const
std::vector< double > szt
double get_Tc(const vertex_t &y, int k) const
DAClusterizerInZT_vect(const edm::ParameterSet &conf)
std::vector< double > swz
std::vector< double > Z_sum
bool split(const double beta, track_t &t, vertex_t &y, double threshold=1.) const
std::vector< double > dt2
std::vector< double > nuz
unsigned int insertOrdered(double z, double t, double pk, track_t &tks)
void addItem(double new_z, double new_t, double new_pk)
double beta0(const double betamax, track_t const &tks, vertex_t const &y) const
bool zorder(vertex_t &y) const
void set_vtx_range(double beta, track_t >racks, vertex_t &gvertices) const
track_t fill(const std::vector< reco::TransientTrack > &tracks) const
void removeItem(unsigned int k, track_t &tks)
void verify(const vertex_t &v, const track_t &tks, unsigned int nv=999999, unsigned int nt=999999) const
std::vector< double > sumw
std::vector< double > nut
bool merge(vertex_t &, track_t &, double &beta) const
void addItem(double new_z, double new_t, double new_dz2, double new_dt2, const reco::TransientTrack *new_tt, double new_pi)
std::vector< double > ei_cache
unsigned int getSize() const
void dump(const double beta, const vertex_t &y, const track_t &tks, const int verbosity=0) const
double update(double beta, track_t >racks, vertex_t &gvertices, const double rho0=0) const
std::vector< std::vector< reco::TransientTrack > > clusterize(const std::vector< reco::TransientTrack > &tracks) const override
void clear_vtx_range(track_t >racks, vertex_t &gvertices) const
std::vector< const reco::TransientTrack * > tt
unsigned int thermalize(double beta, track_t >racks, vertex_t &gvertices, const double delta_max, const double rho0=0.) const
std::vector< unsigned int > kmax
bool find_nearest(double z, double t, vertex_t &y, unsigned int &k_min, double dz, double dt) const
void insertItem(unsigned int k, double new_z, double new_t, double new_pk, track_t &tks)
std::vector< double > dt2
unsigned int maxIterations_