CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
KalFitSuper_Mdc Class Reference

#include <KalFitSuper_Mdc.h>

Public Member Functions

 KalFitSuper_Mdc (const int firstWireID, const int NWire, const int firstLayerID, const int NLayer, const int superLayerID)
 Constructors and destructor.
 
 ~KalFitSuper_Mdc ()
 
void clear (void)
 clear object
 
const int nWire (void) const
 returns number of wires
 
const int nLayer (void) const
 returns number of layers
 
const int layerMaxId (void) const
 returns layer max ID
 
const int localMaxId (void) const
 returns local max ID
 
const int superLayerId (void) const
 returns super-layer ID
 
void appendHit (KalFitWire *)
 append a wireHit to the list of hits of the superlayer
 
 KalFitSuper_Mdc (const int firstWireID, const int NWire, const int firstLayerID, const int NLayer, const int superLayerID)
 Constructors and destructor.
 
 ~KalFitSuper_Mdc ()
 
void clear (void)
 clear object
 
const int nWire (void) const
 returns number of wires
 
const int nLayer (void) const
 returns number of layers
 
const int layerMaxId (void) const
 returns layer max ID
 
const int localMaxId (void) const
 returns local max ID
 
const int superLayerId (void) const
 returns super-layer ID
 
void appendHit (KalFitWire *)
 append a wireHit to the list of hits of the superlayer
 

Detailed Description

Constructor & Destructor Documentation

◆ KalFitSuper_Mdc() [1/2]

KalFitSuper_Mdc::KalFitSuper_Mdc ( const int  firstWireID,
const int  NWire,
const int  firstLayerID,
const int  NLayer,
const int  superLayerID 
)

Constructors and destructor.

Definition at line 17 of file KalFitSuper_Mdc.cxx.

20 : _superLayerId(superLayerID),
21 _firstWireId(firstWireID),
22 _Nwire(NWire),
23 _firstLayerId(firstLayerID),
24 _Nlayer(NLayer),
25 _wireHits(*(new KalFitList<KalFitWire *>(500))),
26 _singleHits(*(new KalFitList<KalFitWire *>(100)))
27{
28
29}

◆ ~KalFitSuper_Mdc() [1/2]

KalFitSuper_Mdc::~KalFitSuper_Mdc ( )

Definition at line 31 of file KalFitSuper_Mdc.cxx.

32{
33 clear();
34 delete &_wireHits;
35 delete &_singleHits;
36}
void clear(void)
clear object

◆ KalFitSuper_Mdc() [2/2]

KalFitSuper_Mdc::KalFitSuper_Mdc ( const int  firstWireID,
const int  NWire,
const int  firstLayerID,
const int  NLayer,
const int  superLayerID 
)

Constructors and destructor.

◆ ~KalFitSuper_Mdc() [2/2]

KalFitSuper_Mdc::~KalFitSuper_Mdc ( )

Member Function Documentation

◆ appendHit() [1/2]

void KalFitSuper_Mdc::appendHit ( KalFitWire h)
inline

append a wireHit to the list of hits of the superlayer

Definition at line 63 of file InstallArea/include/KalFitAlg/KalFitAlg/KalFitSuper_Mdc.h.

63 {
64 _wireHits.append(h);
65}
int append(T x)
append an object into the end of the list

◆ appendHit() [2/2]

void KalFitSuper_Mdc::appendHit ( KalFitWire )

append a wireHit to the list of hits of the superlayer

◆ clear() [1/2]

void KalFitSuper_Mdc::clear ( void  )

clear object

Definition at line 39 of file KalFitSuper_Mdc.cxx.

40{
41 if(_wireHits.length()){
42 register KalFitWire ** hptr = _wireHits.firstPtr();
43 KalFitWire ** const last = _wireHits.lastPtr();
44 do {(**hptr).state(WireHitInvalid);}while((long)(hptr++)^(long)last);
45 _wireHits.clear();
46 }
47}
T * lastPtr(void) const
returns the pointer of last object
int length(void) const
returns the length of the list
T * firstPtr(void) const
returns the pointer of first object
void clear(void)
clear lists but the allocated memory remains same

Referenced by ~KalFitSuper_Mdc().

◆ clear() [2/2]

void KalFitSuper_Mdc::clear ( void  )

clear object

◆ layerMaxId() [1/2]

const int KalFitSuper_Mdc::layerMaxId ( void  ) const

returns layer max ID

Definition at line 68 of file KalFitSuper_Mdc.cxx.

68 {
69 return (_Nlayer - 1);
70}

◆ layerMaxId() [2/2]

const int KalFitSuper_Mdc::layerMaxId ( void  ) const

returns layer max ID

◆ localMaxId() [1/2]

const int KalFitSuper_Mdc::localMaxId ( void  ) const

returns local max ID

Definition at line 62 of file KalFitSuper_Mdc.cxx.

62 {
63 return (_Nwire - 1);
64}

◆ localMaxId() [2/2]

const int KalFitSuper_Mdc::localMaxId ( void  ) const

returns local max ID

◆ nLayer() [1/2]

const int KalFitSuper_Mdc::nLayer ( void  ) const

returns number of layers

Definition at line 56 of file KalFitSuper_Mdc.cxx.

56 {
57 return _Nlayer;
58}

◆ nLayer() [2/2]

const int KalFitSuper_Mdc::nLayer ( void  ) const

returns number of layers

◆ nWire() [1/2]

const int KalFitSuper_Mdc::nWire ( void  ) const

returns number of wires

Definition at line 50 of file KalFitSuper_Mdc.cxx.

50 {
51 return _Nwire;
52}

Referenced by KalFitLayer_Mdc::csize(), and KalFitWire::phi().

◆ nWire() [2/2]

const int KalFitSuper_Mdc::nWire ( void  ) const

returns number of wires

◆ superLayerId() [1/2]

const int KalFitSuper_Mdc::superLayerId ( void  ) const

returns super-layer ID

Definition at line 74 of file KalFitSuper_Mdc.cxx.

74 {
75 return _superLayerId;
76}

◆ superLayerId() [2/2]

const int KalFitSuper_Mdc::superLayerId ( void  ) const

returns super-layer ID


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