1 #ifndef RecoVertex_PrimaryVertexProducer_DAClusterizerInZT_vect_h 2 #define RecoVertex_PrimaryVertexProducer_DAClusterizerInZT_vect_h 36 std::vector<unsigned int>
kmin;
37 std::vector<unsigned int>
kmax;
38 std::vector<const reco::TransientTrack *>
tt;
70 tt.insert(
tt.begin() +
i, new_tt);
92 double *__restrict__
dz2;
93 double *__restrict__
dt2;
104 std::vector<double> dt2_vec;
105 std::vector<double> sumw_vec;
122 void addItem(
double new_zvtx,
double new_tvtx,
double new_rho) {
137 dt2_vec.push_back(0.0);
138 sumw_vec.push_back(0.0);
159 dt2_vec.insert(dt2_vec.begin() +
k, 0.0);
160 sumw_vec.insert(sumw_vec.begin() +
k, 0.0);
164 for (
unsigned int i = 0;
i < tks.
getSize();
i++) {
191 dt2_vec.erase(dt2_vec.begin() +
k);
192 sumw_vec.erase(sumw_vec.begin() +
k);
196 for (
unsigned int i = 0;
i < tks.
getSize();
i++) {
228 double *__restrict__
se;
235 double *__restrict__ dt2;
236 double *__restrict__ sumw;
255 dt2 = &dt2_vec.front();
256 sumw = &sumw_vec.front();
265 std::vector<std::vector<reco::TransientTrack> >
clusterize(
266 const std::vector<reco::TransientTrack> &
tracks)
const override;
268 std::vector<TransientVertex>
vertices(
const std::vector<reco::TransientTrack> &
tracks)
const override;
270 track_t
fill(
const std::vector<reco::TransientTrack> &
tracks)
const;
277 double beta, track_t >racks, vertex_t &gvertices,
const double delta_max,
const double rho0 = 0.)
const;
280 double beta, track_t >racks, vertex_t &gvertices,
const double rho0 = 0,
const bool updateTc =
false)
const;
282 void dump(
const double beta,
const vertex_t &
y,
const track_t &tks,
const int verbosity = 0)
const;
283 bool zorder(vertex_t &
y)
const;
284 bool find_nearest(
double z,
double t, vertex_t &
y,
unsigned int &k_min,
double dz,
double dt)
const;
285 bool merge(vertex_t &, track_t &,
double &
beta)
const;
286 bool purge(vertex_t &, track_t &,
double &,
const double)
const;
289 double beta0(
const double betamax, track_t
const &tks, vertex_t
const &
y)
const;
291 double get_Tc(
const vertex_t &
y,
int k)
const;
292 void verify(
const vertex_t &
v,
const track_t &tks,
unsigned int nv = 999999,
unsigned int nt = 999999)
const;
void removeItem(unsigned int k, track_t &tks)
unsigned int maxIterations_
double *__restrict__ tpca
std::vector< double > dt2_vec
unsigned int convergence_mode_
std::vector< double > nut_vec
std::vector< double > szz_vec
std::vector< unsigned int > kmin
double *__restrict__ exp_arg
std::vector< double > exp_vec
double get_Tc(const vertex_t &y, int k) const
DAClusterizerInZT_vect(const edm::ParameterSet &conf)
std::vector< double > tkwt_vec
bool purge(vertex_t &, track_t &, double &, const double) const
void addItem(double new_zpca, double new_tpca, double new_dz2, double new_dt2, const reco::TransientTrack *new_tt, double new_tkwt)
std::vector< unsigned int > kmax
double *__restrict__ zpca
double update(double beta, track_t >racks, vertex_t &gvertices, const double rho0=0, const bool updateTc=false) const
void insertItem(unsigned int k, double new_zvtx, double new_tvtx, double new_rho, track_t &tks)
bool split(const double beta, track_t &t, vertex_t &y, double threshold=1.) const
double beta0(const double betamax, track_t const &tks, vertex_t const &y) const
std::vector< double > sw_vec
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const override
std::vector< double > stt_vec
void set_vtx_range(double beta, track_t >racks, vertex_t &gvertices) const
double *__restrict__ tkwt
void addItem(double new_zvtx, double new_tvtx, double new_rho)
bool zorder(vertex_t &y) const
std::vector< double > zvtx_vec
bool merge(vertex_t &, track_t &, double &beta) const
std::vector< double > sum_Z_vec
double *__restrict__ zvtx
std::vector< double > szt_vec
track_t fill(const std::vector< reco::TransientTrack > &tracks) const
void verify(const vertex_t &v, const track_t &tks, unsigned int nv=999999, unsigned int nt=999999) const
std::vector< double > zpca_vec
void insertItem(unsigned int i, double new_zpca, double new_tpca, double new_dz2, double new_dt2, const reco::TransientTrack *new_tt, double new_tkwt)
std::vector< double > tpca_vec
static void fillPSetDescription(edm::ParameterSetDescription &desc)
std::vector< double > se_vec
double *__restrict__ sum_Z
void dump(const double beta, const vertex_t &y, const track_t &tks, const int verbosity=0) const
std::vector< double > swt_vec
std::vector< const reco::TransientTrack * > tt
std::vector< std::vector< reco::TransientTrack > > clusterize(const std::vector< reco::TransientTrack > &tracks) const override
std::vector< double > swz_vec
std::vector< double > dz2_vec
std::vector< double > nuz_vec
unsigned int thermalize(double beta, track_t >racks, vertex_t &gvertices, const double delta_max, const double rho0=0.) const
std::vector< double > tvtx_vec
bool find_nearest(double z, double t, vertex_t &y, unsigned int &k_min, double dz, double dt) const
unsigned int getSize() const
unsigned int insertOrdered(double zvtx, double tvtx, double rho, track_t &tks)
void clear_vtx_range(track_t >racks, vertex_t &gvertices) const
double *__restrict__ tvtx
std::vector< double > exp_arg_vec
unsigned int getSize() const
std::vector< double > rho_vec