BOSS 7.0.6
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
 

Detailed Description

Definition at line 8 of file KalFitSuper_Mdc.h.

Constructor & Destructor Documentation

◆ KalFitSuper_Mdc()

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()

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

Member Function Documentation

◆ appendHit()

void KalFitSuper_Mdc::appendHit ( KalFitWire h)
inline

append a wireHit to the list of hits of the superlayer

Definition at line 63 of file KalFitSuper_Mdc.h.

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

◆ clear()

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}
#define WireHitInvalid
Definition: KalFitWire.h:14
T * lastPtr(void) const
returns the pointer of last object
Definition: KalFitList.h:233
int length(void) const
returns the length of the list
Definition: KalFitList.h:240
T * firstPtr(void) const
returns the pointer of first object
Definition: KalFitList.h:226
void clear(void)
clear lists but the allocated memory remains same
Definition: KalFitList.h:177
Description of a Wire class.
Definition: KalFitWire.h:46
unsigned int state(void) const
Definition: KalFitWire.h:72

Referenced by ~KalFitSuper_Mdc().

◆ layerMaxId()

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}

◆ localMaxId()

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}

◆ nLayer()

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}

◆ nWire()

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().

◆ superLayerId()

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}

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