31 m_pivot(rectrk.m_pivot),
32 m_fiTerm(rectrk.m_fiTerm),
33 m_nhits(rectrk.m_nhits),
34 m_vechits(rectrk.m_vechits),
35 m_ncluster(rectrk.m_ncluster),
36 m_matchChi2(rectrk.m_matchChi2),
37 m_vecclusters(rectrk.m_vecclusters)
43 m_pivot(-99.,-99.,-99.),
51 if( &rectrk !=
this ){
53 m_pivot = rectrk.m_pivot;
54 m_fiTerm = rectrk. m_fiTerm;
55 m_nhits = rectrk. m_nhits;
56 m_vechits = rectrk.m_vechits;
57 m_ncluster = rectrk.m_ncluster;
58 m_matchChi2 = rectrk.m_matchChi2;
59 m_vecclusters = rectrk.m_vecclusters;
88 m_vecclusters = vecclusters;
94 m_vecclusters = vecclusters;
95 m_clusterFitStat = clusterFitStat;
102 set<int> cgem_layers;
109 double fiTerm = 999.;
112 int nHits = m_vechits.size();
113 HitRefVec::iterator iterHit = m_vechits.begin();
114 for( ; iterHit != m_vechits.end(); iterHit++){
119 if ((*iterHit)->getStat()==1){
129 if (layerId >= maxLayerId){
130 maxLayerId = layerId;
133 if (layerId < minLayerId){
134 minLayerId = layerId;
137 mdc_layers.insert(layerId);
150 int nCgemXClusters=0;
151 int nCgemVClusters=0;
152 int nCluster=m_vecclusters.size();
153 ClusterRefVec::iterator iterCluster = m_vecclusters.begin();
154 for( ; iterCluster != m_vecclusters.end(); iterCluster++){
155 (*iterCluster)->setTrkId(
trackId());
156 int flag = (*iterCluster)->getflag();
157 int clusterid = (*iterCluster)->getclusterid();
158 map<int,int>::iterator
iter = m_clusterFitStat.find(clusterid);
185 int layerId = (*iterCluster)->getlayerid();
186 if (layerId >= maxLayerId){
187 maxLayerId = layerId;
190 if (layerId < minLayerId){
191 minLayerId = layerId;
193 cgem_layers.insert(layerId);
197 nLayer = mdc_layers.size() + cgem_layers.size();
const CLID & CLID_RecMdcTrack
SmartRefVector< RecCgemCluster > ClusterRefVec
SmartRefVector< RecMdcHit > HitRefVec
void setFirstLayer(const int id)
void setNster(const int ns)
void setNCgemXCluster(const int n)
void setNdof(const int ndof)
DstMdcTrack & operator=(const DstMdcTrack &)
const int trackId() const
void setNlayer(const int nlayer)
void setLastLayer(const int id)
void setNCgemVCluster(const int n)
bool is_axial(const Identifier &id)
Test for axial and stereo wire.
static int layer(const Identifier &id)
Values of different levels (failure returns 0)
virtual const CLID & clID() const
void setVecClusters(ClusterRefVec vecclusters)
void setVecHits(HitRefVec vechits)
RecMdcTrack & operator=(const RecMdcTrack &)
static const CLID & classID()
void setNcluster(int ncluster)