BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TSegmentCurl.h
Go to the documentation of this file.
1#ifndef TSegmentCurl_FLAG_
2#define TSegmentCurl_FLAG_
3
4#ifdef TRKRECO_DEBUG_DETAIL
5#ifndef TRKRECO_DEBUG
6#define TRKRECO_DEBUG
7#endif
8#endif
9#include "TrkReco/TMLink.h"
11#include "CLHEP/Alist/AList.h"
12
14{
15public:
16 TSegmentCurl(const unsigned superLayerId = 9999,
17 const unsigned max = 9999);
20
21 ~TSegmentCurl(void);
22
23 const unsigned maxLocalLayerId(void) const;
24 const unsigned superLayerId(void) const;
25 const unsigned seqOfLayer(const unsigned);
26 const unsigned sizeOfLayer(const unsigned);
27
28 const unsigned maxSeq(void) const;
29 const unsigned layerIdOfMaxSeq(void);
30 const unsigned numOfSeqOneLayer(void);
31 const unsigned numOfLargeSeqLayer(void);
32
33 void setMaxSeq(const unsigned);
34 void releaseMaxSeq(void);
35
36 inline const unsigned size(void){ return m_list.length(); }
37
38 const unsigned maxLocalLayerId(const unsigned);
39 const unsigned superLayerId(const unsigned);
40
41 void append(TMLink&);
42 void append(TMLink*);
43 void append(AList<TMLink>&);
44
45 void remove(TMLink&);
46 void remove(TMLink*);
47 void remove(AList<TMLink>&);
48
49 void removeAll(void);
50
51 inline const AList<TMLink> & list(void){ return m_list; }
52 inline const AList<TMLink> & list(unsigned i){ return m_layer[i]; }
53
55
56 void dump(void);
57
58 unsigned wires(const unsigned) const;
59
60 void update(void);
61private:
62 // main private members
63 // flag for the update
64 bool m_flagOfUpdate;
65
66 // elements
67 AList<TMLink> m_list;
68 // max local layer id = 0,1,2...
69 unsigned m_MaxLocalLayerId;
70 // super layer id = 0,1,2...
71 unsigned m_superLayerId;
72 // seq. num. of each layer
73 unsigned m_seqOfLayer[4];
74 // size of each layer
75 unsigned m_sizeOfLayer[4]; //Liuqg, origin is 6
76
77 // sub private members
78 AList<TMLink> m_layer[4]; //for each superlayer. Liuqg, origin is 6
79 void calcuSeq(unsigned);
80
81 unsigned m_maxSeq;
82 unsigned m_layerIdOfMaxSeq;
83 unsigned m_numOfSeqOneLayer;
84 unsigned m_numOfLargeSeqLayer;
85};
86
87#endif /* TSegmentCurl_FLAG_ */
void remove(TMLink &)
const AList< TMLink > & list(unsigned i)
Definition: TSegmentCurl.h:52
void releaseMaxSeq(void)
void append(TMLink &)
const unsigned numOfLargeSeqLayer(void)
const AList< TMLink > & list(void)
Definition: TSegmentCurl.h:51
const unsigned numOfSeqOneLayer(void)
const unsigned layerIdOfMaxSeq(void)
void dump(void)
void setMaxSeq(const unsigned)
const unsigned sizeOfLayer(const unsigned)
~TSegmentCurl(void)
unsigned wires(const unsigned) const
const unsigned size(void)
Definition: TSegmentCurl.h:36
void update(void)
const unsigned maxSeq(void) const
const unsigned superLayerId(void) const
const unsigned maxLocalLayerId(void) const
const unsigned seqOfLayer(const unsigned)
void removeAll(void)
TSegmentCurl & operator=(const TSegmentCurl &)