BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
hashVector< H, T > Class Template Reference

#include <hash_vector.hh>

+ Inheritance diagram for hashVector< H, T >:

Public Member Functions

 hashVector (size_t max, size_t(*f)(const H &))
 
 hashVector (size_t max, size_t(*f)(const H &), T &initialValue)
 
 hashVector (const hashVector< H, T > &v)
 
T & operator[] (const H &index)
 
const T & operator[] (const H &index) const
 
 hashVector (size_t max, size_t(*f)(const H &))
 
 hashVector (size_t max, size_t(*f)(const H &), T &initialValue)
 
 hashVector (const hashVector< H, T > &v)
 
T & operator[] (const H &index)
 
const T & operator[] (const H &index) const
 

Detailed Description

template<class H, class T>
class hashVector< H, T >

Definition at line 32 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

Constructor & Destructor Documentation

◆ hashVector() [1/6]

template<class H , class T >
hashVector< H, T >::hashVector ( size_t  max,
size_t(*)(const H &)  f 
)
inline

Definition at line 54 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

55 : vector<T>(max), hashfun(f)
56{
57 // no further initialization
58}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

◆ hashVector() [2/6]

template<class H , class T >
hashVector< H, T >::hashVector ( size_t  max,
size_t(*)(const H &)  f,
T &  initialValue 
)
inline

Definition at line 63 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

64 : vector<T>(max, initialValue), hashfun(f)
65{
66 // no further initialization
67}

◆ hashVector() [3/6]

template<class H , class T >
hashVector< H, T >::hashVector ( const hashVector< H, T > &  v)
inline

Definition at line 72 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

73 : vector<T>(v), hashfun(v.hashfun)
74{
75 // no further initialization
76}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ hashVector() [4/6]

template<class H , class T >
hashVector< H, T >::hashVector ( size_t  max,
size_t(*)(const H &)  f 
)

◆ hashVector() [5/6]

template<class H , class T >
hashVector< H, T >::hashVector ( size_t  max,
size_t(*)(const H &)  f,
T &  initialValue 
)

◆ hashVector() [6/6]

template<class H , class T >
hashVector< H, T >::hashVector ( const hashVector< H, T > &  v)

Member Function Documentation

◆ operator[]() [1/4]

template<class H , class T >
T & hashVector< H, T >::operator[] ( const H index)
inline

Definition at line 81 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

82{
83 // subscript a hash vector
84 // hash the index value before indexing vector
85 return vector<T>::operator[] ((*hashfun)(index) % size());
86}

◆ operator[]() [2/4]

template<class H , class T >
T & hashVector< H, T >::operator[] ( const H index)

◆ operator[]() [3/4]

template<class H , class T >
const T & hashVector< H, T >::operator[] ( const H index) const
inline

Definition at line 90 of file InstallArea/include/MucGeomSvc/MucGeomSvc/tmp/hash_vector.hh.

91{
92 // subscript a hash vector
93 // hash the index value before indexing vector
94 return vector<T>::operator[] ((*hashfun)(index) % size());
95}

◆ operator[]() [4/4]

template<class H , class T >
const T & hashVector< H, T >::operator[] ( const H index) const

The documentation for this class was generated from the following files: