CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTBtiChip Class Reference

#include <DTBtiChip.h>

Public Member Functions

void add_digi (int cell, const DTDigi *digi)
 Add a digi to the DTBtiChip. More...
 
void add_digi_clock (int cell, int clock_digi)
 Add a clock digi to the DTBtiChip. More...
 
void addTrig (int step, DTBtiTrig *btitrig)
 
void clear ()
 delete hits and triggers More...
 
GlobalPoint CMSPosition () const
 Position in CMS frame. More...
 
DTConfigBticonfig () const
 Configuration set. More...
 
 DTBtiChip (DTBtiCard *card, DTTrigGeom *geom, int supl, int n, DTConfigBti *_config)
 original constructor More...
 
 DTBtiChip (const DTBtiChip &bti)
 Copy constructor. More...
 
DTTrigGeomgeom () const
 Return trigger geometry. More...
 
std::vector< const DTDigi * > get_CellDigis (int cell)
 get digi vector - SV 28/XI/02 More...
 
DTBtiId id () const
 Return the DTBtiChip Id. More...
 
void init_clock ()
 
LocalPoint localPosition () const
 Position in chamber frame (x is the one of first traco in slave plane) More...
 
int nCellHit () const
 Number of cells with hits. More...
 
int nTrig (int step) const
 Number of triggers found. More...
 
int number () const
 Return DTBtiChip number. More...
 
DTBtiChipoperator= (const DTBtiChip &bti)
 Assignment operator. More...
 
void run ()
 Run DTBtiChip algorithm. More...
 
int sector () const
 Return sector number. More...
 
int station () const
 Return station number. More...
 
int superlayer () const
 Return superlayer. More...
 
DTBtiTrigtrigger (int step, unsigned n) const
 Return the requested trigger. More...
 
DTBtiTrigData triggerData (int step, unsigned n) const
 Return the data part of the requested trigger. More...
 
std::vector< DTBtiTrig * > trigList (int step) const
 
int wheel () const
 Return wheel number. More...
 
 ~DTBtiChip ()
 Destructor. More...
 

Private Member Functions

void acceptMask (BitArray< 80 > *BitArrPtr, int k, int accep)
 
void computeEqs ()
 
void computeSums ()
 
int currentIntStep () const
 
int currentStep () const
 
void doLTS ()
 
void eraseTrigger (int step, unsigned n)
 
void findTrig ()
 
void init ()
 
int keepTrig (const int eq, const int acp, const int code)
 
int keepTrigPatt (int flag, const int eq, const int pattType, int hlflag)
 
bool matchEq (float eqA, float eqB, int AC)
 
int reSum (int a, int b)
 
int reSum23 (int a, int b)
 
void reSumSet ()
 
void setSnap ()
 
int store (const int eq, const int code, const int K, const int X, float KeqAB=0., float KeqBC=0., float KeqCD=0., float KeqAC=0., float KeqBD=0., float KeqAD=0.)
 
void sum (const int s, const int a, const int b)
 
void tick ()
 

Private Attributes

int _busyStart_clock [9]
 
DTBtiCard_card
 
DTConfigBti_config
 
int _curStep
 
float _difs [25]
 
std::vector< const DTDigi * > _digis [9]
 
std::vector< int > _digis_clock [9]
 
DTTrigGeom_geom
 
std::vector< DTBtiHit * > _hits [9]
 
DTBtiId _id
 
float _JTR [32][3]
 
float _Keq [32][6]
 
float _KTR [32][2]
 
int _MaxKAcc
 
int _MaxKcenterTraco
 
int _MaxKleftTraco
 
int _MaxKrightTraco
 
int _MinKAcc
 
int _MinKcenterTraco
 
int _MinKleftTraco
 
int _MinKrightTraco
 
int _nStepUsedHits
 
float _sums [25]
 
DTBtiHit_thisStepUsedHit [9]
 
int _thisStepUsedTimes [9]
 
std::vector< DTBtiTrig * > _trigs [DTConfig::NSTEPL-DTConfig::NSTEPF+1]
 
float _Xeq [32][2]
 
float _XeqAB_patt0
 
float _XeqAC_patt0
 
float _XeqBD_patt0
 
float _XeqCD_patt0
 
int init_done
 
int RE23
 
int RE43
 
int reSumAr [3][5]
 
int reSumAr23 [3][5]
 
int ST
 
int ST2
 
int ST23
 
int ST3
 
int ST4
 
int ST43
 
int ST5
 
int ST7
 

Detailed Description

Implementation of DTBtiChip trigger algorithm Internally uses DTBtiHit to store muon digis

Author
S. Vanini

Definition at line 46 of file DTBtiChip.h.

Constructor & Destructor Documentation

DTBtiChip::DTBtiChip ( DTBtiCard card,
DTTrigGeom geom,
int  supl,
int  n,
DTConfigBti _config 
)

original constructor

new constructor with configuration

Definition at line 48 of file DTBtiChip.cc.

DTBtiChip::DTBtiChip ( const DTBtiChip bti)

Copy constructor.

Definition at line 212 of file DTBtiChip.cc.

DTBtiChip::~DTBtiChip ( )

Destructor.

Definition at line 267 of file DTBtiChip.cc.

Member Function Documentation

void DTBtiChip::acceptMask ( BitArray< 80 > *  BitArrPtr,
int  k,
int  accep 
)
private

Definition at line 678 of file DTBtiChipSelTrig.cc.

void DTBtiChip::add_digi ( int  cell,
const DTDigi digi 
)

Add a digi to the DTBtiChip.

Definition at line 327 of file DTBtiChip.cc.

void DTBtiChip::add_digi_clock ( int  cell,
int  clock_digi 
)

Add a clock digi to the DTBtiChip.

Definition at line 362 of file DTBtiChip.cc.

void DTBtiChip::addTrig ( int  step,
DTBtiTrig btitrig 
)

Add a DTBtiChip trigger (normally used by DTBtiChip itself - may be used for debugging by other classes)

Definition at line 441 of file DTBtiChip.cc.

void DTBtiChip::clear ( void  )

delete hits and triggers

Definition at line 522 of file DTBtiChip.cc.

GlobalPoint DTBtiChip::CMSPosition ( ) const
inline

Position in CMS frame.

Definition at line 96 of file DTBtiChip.h.

void DTBtiChip::computeEqs ( )
private

Definition at line 145 of file DTBtiChipEquations.cc.

void DTBtiChip::computeSums ( )
private

Definition at line 39 of file DTBtiChipEquations.cc.

DTConfigBti* DTBtiChip::config ( void  ) const
inline

Configuration set.

testing DTConfigBti

Definition at line 117 of file DTBtiChip.h.

int DTBtiChip::currentIntStep ( ) const
inlineprivate

Definition at line 145 of file DTBtiChip.h.

int DTBtiChip::currentStep ( ) const
inlineprivate

Definition at line 144 of file DTBtiChip.h.

void DTBtiChip::doLTS ( )
private

Definition at line 741 of file DTBtiChip.cc.

void DTBtiChip::eraseTrigger ( int  step,
unsigned  n 
)
private

Definition at line 507 of file DTBtiChip.cc.

void DTBtiChip::findTrig ( )
private

Definition at line 40 of file DTBtiChipSelTrig.cc.

DTTrigGeom* DTBtiChip::geom ( ) const
inline

Return trigger geometry.

Definition at line 121 of file DTBtiChip.h.

std::vector<const DTDigi*> DTBtiChip::get_CellDigis ( int  cell)
inline

get digi vector - SV 28/XI/02

Definition at line 72 of file DTBtiChip.h.

DTBtiId DTBtiChip::id ( void  ) const
inline

Return the DTBtiChip Id.

Definition at line 124 of file DTBtiChip.h.

Referenced by DTBtiTrig::DTBtiTrig().

void DTBtiChip::init ( void  )
private

Definition at line 549 of file DTBtiChip.cc.

void DTBtiChip::init_clock ( )

Definition at line 589 of file DTBtiChip.cc.

int DTBtiChip::keepTrig ( const int  eq,
const int  acp,
const int  code 
)
private

Definition at line 722 of file DTBtiChipSelTrig.cc.

int DTBtiChip::keepTrigPatt ( int  flag,
const int  eq,
const int  pattType,
int  hlflag 
)
private

Definition at line 327 of file DTBtiChipSelTrig.cc.

LocalPoint DTBtiChip::localPosition ( ) const
inline

Position in chamber frame (x is the one of first traco in slave plane)

Definition at line 93 of file DTBtiChip.h.

bool DTBtiChip::matchEq ( float  eqA,
float  eqB,
int  AC 
)
private
int DTBtiChip::nCellHit ( ) const

Number of cells with hits.

Definition at line 390 of file DTBtiChip.cc.

int DTBtiChip::nTrig ( int  step) const

Number of triggers found.

Definition at line 455 of file DTBtiChip.cc.

int DTBtiChip::number ( ) const
inline

Return DTBtiChip number.

Definition at line 87 of file DTBtiChip.h.

DTBtiChip & DTBtiChip::operator= ( const DTBtiChip bti)

Assignment operator.

Definition at line 275 of file DTBtiChip.cc.

int DTBtiChip::reSum ( int  a,
int  b 
)
inlineprivate

Definition at line 161 of file DTBtiChip.h.

int DTBtiChip::reSum23 ( int  a,
int  b 
)
inlineprivate

Definition at line 162 of file DTBtiChip.h.

void DTBtiChip::reSumSet ( )
private

Definition at line 103 of file DTBtiChipEquations.cc.

void DTBtiChip::run ( void  )

Run DTBtiChip algorithm.

Definition at line 630 of file DTBtiChip.cc.

int DTBtiChip::sector ( void  ) const
inline

Return sector number.

Definition at line 133 of file DTBtiChip.h.

void DTBtiChip::setSnap ( )
private

Definition at line 852 of file DTBtiChip.cc.

int DTBtiChip::station ( ) const
inline

Return station number.

Definition at line 130 of file DTBtiChip.h.

int DTBtiChip::store ( const int  eq,
const int  code,
const int  K,
const int  X,
float  KeqAB = 0.,
float  KeqBC = 0.,
float  KeqCD = 0.,
float  KeqAC = 0.,
float  KeqBD = 0.,
float  KeqAD = 0. 
)
private

Definition at line 785 of file DTBtiChip.cc.

void DTBtiChip::sum ( const int  s,
const int  a,
const int  b 
)
private

Definition at line 82 of file DTBtiChipEquations.cc.

int DTBtiChip::superlayer ( ) const
inline

Return superlayer.

Definition at line 90 of file DTBtiChip.h.

void DTBtiChip::tick ( )
private

Definition at line 675 of file DTBtiChip.cc.

DTBtiTrig * DTBtiChip::trigger ( int  step,
unsigned  n 
) const

Return the requested trigger.

Definition at line 475 of file DTBtiChip.cc.

DTBtiTrigData DTBtiChip::triggerData ( int  step,
unsigned  n 
) const

Return the data part of the requested trigger.

Definition at line 491 of file DTBtiChip.cc.

vector< DTBtiTrig * > DTBtiChip::trigList ( int  step) const

Definition at line 465 of file DTBtiChip.cc.

int DTBtiChip::wheel ( ) const
inline

Return wheel number.

Definition at line 127 of file DTBtiChip.h.

Member Data Documentation

int DTBtiChip::_busyStart_clock[9]
private

Definition at line 206 of file DTBtiChip.h.

DTBtiCard* DTBtiChip::_card
private

Definition at line 167 of file DTBtiChip.h.

DTConfigBti* DTBtiChip::_config
private

Definition at line 170 of file DTBtiChip.h.

int DTBtiChip::_curStep
private

Definition at line 183 of file DTBtiChip.h.

float DTBtiChip::_difs[25]
private

Definition at line 188 of file DTBtiChip.h.

std::vector<const DTDigi*> DTBtiChip::_digis[9]
private

Definition at line 175 of file DTBtiChip.h.

std::vector<int > DTBtiChip::_digis_clock[9]
private

Definition at line 177 of file DTBtiChip.h.

DTTrigGeom* DTBtiChip::_geom
private

Definition at line 169 of file DTBtiChip.h.

std::vector<DTBtiHit*> DTBtiChip::_hits[9]
private

Definition at line 184 of file DTBtiChip.h.

DTBtiId DTBtiChip::_id
private

Definition at line 172 of file DTBtiChip.h.

float DTBtiChip::_JTR[32][3]
private

Definition at line 204 of file DTBtiChip.h.

float DTBtiChip::_Keq[32][6]
private

Definition at line 189 of file DTBtiChip.h.

float DTBtiChip::_KTR[32][2]
private

Definition at line 203 of file DTBtiChip.h.

int DTBtiChip::_MaxKAcc
private

Definition at line 192 of file DTBtiChip.h.

int DTBtiChip::_MaxKcenterTraco
private

Definition at line 196 of file DTBtiChip.h.

int DTBtiChip::_MaxKleftTraco
private

Definition at line 194 of file DTBtiChip.h.

int DTBtiChip::_MaxKrightTraco
private

Definition at line 198 of file DTBtiChip.h.

int DTBtiChip::_MinKAcc
private

Definition at line 191 of file DTBtiChip.h.

int DTBtiChip::_MinKcenterTraco
private

Definition at line 195 of file DTBtiChip.h.

int DTBtiChip::_MinKleftTraco
private

Definition at line 193 of file DTBtiChip.h.

int DTBtiChip::_MinKrightTraco
private

Definition at line 197 of file DTBtiChip.h.

int DTBtiChip::_nStepUsedHits
private

Definition at line 187 of file DTBtiChip.h.

float DTBtiChip::_sums[25]
private

Definition at line 188 of file DTBtiChip.h.

DTBtiHit* DTBtiChip::_thisStepUsedHit[9]
private

Definition at line 186 of file DTBtiChip.h.

int DTBtiChip::_thisStepUsedTimes[9]
private

Definition at line 185 of file DTBtiChip.h.

std::vector<DTBtiTrig*> DTBtiChip::_trigs[DTConfig::NSTEPL-DTConfig::NSTEPF+1]
private

Definition at line 180 of file DTBtiChip.h.

float DTBtiChip::_Xeq[32][2]
private

Definition at line 190 of file DTBtiChip.h.

float DTBtiChip::_XeqAB_patt0
private

Definition at line 201 of file DTBtiChip.h.

float DTBtiChip::_XeqAC_patt0
private

Definition at line 200 of file DTBtiChip.h.

float DTBtiChip::_XeqBD_patt0
private

Definition at line 200 of file DTBtiChip.h.

float DTBtiChip::_XeqCD_patt0
private

Definition at line 201 of file DTBtiChip.h.

int DTBtiChip::init_done
private

Definition at line 205 of file DTBtiChip.h.

int DTBtiChip::RE23
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::RE43
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::reSumAr[3][5]
private

Definition at line 211 of file DTBtiChip.h.

int DTBtiChip::reSumAr23[3][5]
private

Definition at line 212 of file DTBtiChip.h.

int DTBtiChip::ST
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST2
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST23
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST3
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST4
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST43
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST5
private

Definition at line 209 of file DTBtiChip.h.

int DTBtiChip::ST7
private

Definition at line 209 of file DTBtiChip.h.