KalFitSuper_Mdc Class Reference

#include <KalFitSuper_Mdc.h>

List of all members.

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

Private Attributes

const int _superLayerId
const int _firstWireId
const int _Nwire
const int _firstLayerId
const int _Nlayer
KalFitList< KalFitWire * > & _wireHits
KalFitList< KalFitWire * > & _singleHits

Static Private Attributes

static const unsigned int _neighborsMask [6] = {452,420,340,172,92,60}


Detailed Description

Definition at line 8 of file KalFitSuper_Mdc.h.


Constructor & Destructor Documentation

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.

00020   : _superLayerId(superLayerID),
00021     _firstWireId(firstWireID),
00022     _Nwire(NWire),
00023     _firstLayerId(firstLayerID),
00024     _Nlayer(NLayer),
00025     _wireHits(*(new KalFitList<KalFitWire *>(500))),
00026     _singleHits(*(new KalFitList<KalFitWire *>(100)))
00027 {
00028 
00029 }

KalFitSuper_Mdc::~KalFitSuper_Mdc (  ) 

Definition at line 31 of file KalFitSuper_Mdc.cxx.

References _singleHits, _wireHits, and clear().

00032 {
00033   clear();
00034   delete &_wireHits;
00035   delete &_singleHits;
00036 }


Member Function Documentation

void KalFitSuper_Mdc::appendHit ( KalFitWire  )  [inline]

append a wireHit to the list of hits of the superlayer

Definition at line 63 of file KalFitSuper_Mdc.h.

References _wireHits, and KalFitList< T >::append().

00063                                                    {
00064   _wireHits.append(h);
00065 }

void KalFitSuper_Mdc::clear ( void   ) 

clear object

Definition at line 39 of file KalFitSuper_Mdc.cxx.

References _wireHits, KalFitList< T >::clear(), KalFitList< T >::firstPtr(), KalFitList< T >::lastPtr(), KalFitList< T >::length(), KalFitWire::state(), and WireHitInvalid.

Referenced by ~KalFitSuper_Mdc().

00040 {
00041   if(_wireHits.length()){
00042     register KalFitWire ** hptr = _wireHits.firstPtr();
00043     KalFitWire ** const last = _wireHits.lastPtr();
00044     do {(**hptr).state(WireHitInvalid);}while((long)(hptr++)^(long)last);
00045     _wireHits.clear();
00046   }
00047 }

const int KalFitSuper_Mdc::layerMaxId ( void   )  const

returns layer max ID

Definition at line 68 of file KalFitSuper_Mdc.cxx.

References _Nlayer.

Referenced by KalFitWire::outerLeft(), and KalFitWire::outerRight().

00068                                      {
00069   return (_Nlayer - 1);
00070 }

const int KalFitSuper_Mdc::localMaxId ( void   )  const

returns local max ID

Definition at line 62 of file KalFitSuper_Mdc.cxx.

References _Nwire.

Referenced by KalFitWire::innerRight(), KalFitWire::outerRight(), and KalFitWire::right().

00062                                      {
00063   return (_Nwire - 1);
00064 }

const int KalFitSuper_Mdc::nLayer ( void   )  const

returns number of layers

Definition at line 56 of file KalFitSuper_Mdc.cxx.

References _Nlayer.

00056                                  {
00057   return _Nlayer;
00058 }

const int KalFitSuper_Mdc::nWire ( void   )  const

returns number of wires

Definition at line 50 of file KalFitSuper_Mdc.cxx.

References _Nwire.

Referenced by KalFitLayer_Mdc::csize(), KalFitWire::innerLeft(), KalFitWire::innerRight(), KalFitWire::left(), KalFitWire::outerLeft(), KalFitWire::outerRight(), KalFitWire::phi(), and KalFitWire::right().

00050                                 {
00051   return _Nwire;
00052 }

const int KalFitSuper_Mdc::superLayerId ( void   )  const

returns super-layer ID

Definition at line 74 of file KalFitSuper_Mdc.cxx.

References _superLayerId.

00074                                        {
00075   return _superLayerId;
00076 }


Member Data Documentation

const int KalFitSuper_Mdc::_firstLayerId [private]

Definition at line 48 of file KalFitSuper_Mdc.h.

const int KalFitSuper_Mdc::_firstWireId [private]

Definition at line 46 of file KalFitSuper_Mdc.h.

const unsigned int KalFitSuper_Mdc::_neighborsMask = {452,420,340,172,92,60} [static, private]

Definition at line 42 of file KalFitSuper_Mdc.h.

const int KalFitSuper_Mdc::_Nlayer [private]

Definition at line 49 of file KalFitSuper_Mdc.h.

Referenced by layerMaxId(), and nLayer().

const int KalFitSuper_Mdc::_Nwire [private]

Definition at line 47 of file KalFitSuper_Mdc.h.

Referenced by localMaxId(), and nWire().

KalFitList<KalFitWire *>& KalFitSuper_Mdc::_singleHits [private]

Definition at line 51 of file KalFitSuper_Mdc.h.

Referenced by ~KalFitSuper_Mdc().

const int KalFitSuper_Mdc::_superLayerId [private]

Definition at line 45 of file KalFitSuper_Mdc.h.

Referenced by superLayerId().

KalFitList<KalFitWire *>& KalFitSuper_Mdc::_wireHits [private]

Definition at line 50 of file KalFitSuper_Mdc.h.

Referenced by appendHit(), clear(), and ~KalFitSuper_Mdc().


Generated on Tue Nov 29 23:19:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7