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 Attributes
DTTracoTrigData Class Reference

#include <DTTracoTrigData.h>

Inheritance diagram for DTTracoTrigData:
DTTrigData

Public Member Functions

DTChamberId ChamberId () const
 Return chamber identifier. More...
 
void clear ()
 Clear. More...
 
int code () const
 Return trigger code. More...
 
int DeltaPsiR () const
 Return DeltaPsiR. More...
 
 DTTracoTrigData ()
 Constructor. More...
 
 DTTracoTrigData (DTTracoId, int)
 Constructor. More...
 
int eqIn () const
 Return bti trigger equation of inner segment. More...
 
int eqOut () const
 Return bti trigger equation of outer segment. More...
 
int isFirst () const
 Return non 0 if the track is a first track. More...
 
int K () const
 Return trigger K parameter. More...
 
DTTracoId parentId () const
 Return parent TRACO identifier. More...
 
int posIn () const
 Return the position of inner segment. More...
 
int posMask () const
 Return correlator output code (position of segments) More...
 
int posOut () const
 Return the position of outer segment. More...
 
void print () const
 print More...
 
int psi () const
 Return trigger K parameter converted to angle. More...
 
int psiR () const
 Return trigger X parameter converted to angle. More...
 
int pvCode () const
 Return the preview code. More...
 
int pvCorr () const
 Return the preview correaltion bit. More...
 
int pvIO () const
 Return the preview i/o bit. More...
 
int pvK () const
 Return the preview K. More...
 
int qdec () const
 Return the trigger code in new format. More...
 
void resetPV ()
 Reset preview variables. More...
 
void resetVar ()
 Reset all variables but preview. More...
 
void setAngles (int psi, int psir, int dpsir)
 Set trigger angles. More...
 
void setCodeIn (int code)
 Set trigger code inner layer. More...
 
void setCodeOut (int code)
 Set trigger code outer layer. More...
 
void setEqIn (int eq)
 Set bti trigger equation of segment, inner layer. More...
 
void setEqOut (int eq)
 Set bti trigger equation of segment, outer layer. More...
 
void setK (int k)
 Set trigger K parameter. More...
 
void setParent (DTTracoId tracoid)
 Set the parent TRACO Identifier. More...
 
void setPosIn (int pos)
 Set position of segment, inner layer. More...
 
void setPosOut (int pos)
 Set position of segment, outer layer. More...
 
void setPV (int first, int code, int K, int ioflag)
 Set trigger preview parameters. More...
 
void setPVCorr (int ic)
 Set trigger preview correlation bit. More...
 
void setStep (int step)
 Set trigger step. More...
 
void setX (int x)
 Set trigger X parameter. More...
 
int step () const
 Return step. More...
 
int tracoNumber () const
 Return parent TRACO number. More...
 
int X () const
 Return trigger X parameter. More...
 
 ~DTTracoTrigData ()
 Destructor. More...
 
- Public Member Functions inherited from DTTrigData
 DTTrigData ()
 Constructor. More...
 
int sector () const
 Return sector number. More...
 
int station () const
 Return station number. More...
 
int wheel () const
 Return wheel number. More...
 
virtual ~DTTrigData ()
 Destructor. More...
 

Private Attributes

myint8 _codeIn
 
myint8 _codeOut
 
long int _dPsiR
 
myint8 _eqIn
 
myint8 _eqOut
 
int _Kval
 
myint8 _posIn
 
myint8 _posOut
 
long int _psi
 
long int _psiR
 
myint8 _pvcode
 
myint8 _pvCorr
 
myint8 _pvfirst
 
myint8 _pvIOflag
 
int _pvKval
 
myint8 _step
 
DTTracoId _tracoid
 
int _Xval
 

Detailed Description

DTTracoChip Trigger Data

Author
C. Grandi

Definition at line 37 of file DTTracoTrigData.h.

Constructor & Destructor Documentation

DTTracoTrigData::DTTracoTrigData ( )
inline

Constructor.

Definition at line 44 of file DTTracoTrigData.h.

DTTracoTrigData::DTTracoTrigData ( DTTracoId  tracoid,
int  step 
)

Constructor.

Definition at line 35 of file DTTracoTrigData.cc.

References clear().

36  : _tracoid(tracoid), _step(step) {
37  clear();
38 }
int step() const
Return step.
void clear()
Clear.
DTTracoTrigData::~DTTracoTrigData ( )
inline

Destructor.

Definition at line 50 of file DTTracoTrigData.h.

Member Function Documentation

DTChamberId DTTracoTrigData::ChamberId ( ) const
inlinevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 176 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::ChamberId().

void DTTracoTrigData::clear ( void  )
inline

Clear.

Definition at line 170 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::clear(), and DTTracoTrigData().

int DTTracoTrigData::code ( ) const
inline

Return trigger code.

Definition at line 199 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::code(), DTChambPhSegm::oldCode(), and print().

int DTTracoTrigData::DeltaPsiR ( ) const
inline

Return DeltaPsiR.

Definition at line 276 of file DTTracoTrigData.h.

Referenced by DTChambPhSegm::DeltaPsiR(), DTTracoTrig::DeltaPsiR(), DTChambPhSegm::phiB(), and print().

int DTTracoTrigData::eqIn ( ) const
inline

Return bti trigger equation of inner segment.

Definition at line 219 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::eqIn(), DTChambPhSegm::print(), and DTSectCollPhSegm::print().

int DTTracoTrigData::eqOut ( ) const
inline

Return bti trigger equation of outer segment.

Definition at line 224 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::eqOut(), DTChambPhSegm::print(), and DTSectCollPhSegm::print().

int DTTracoTrigData::isFirst ( ) const
inline

Return non 0 if the track is a first track.

Definition at line 230 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::isFirst(), and print().

int DTTracoTrigData::K ( ) const
inline

Return trigger K parameter.

Definition at line 256 of file DTTracoTrigData.h.

Referenced by DTChambPhSegm::K(), DTTracoTrig::K(), and print().

DTTracoId DTTracoTrigData::parentId ( ) const
inline

Return parent TRACO identifier.

Definition at line 184 of file DTTracoTrigData.h.

int DTTracoTrigData::posIn ( ) const
inline

Return the position of inner segment.

Definition at line 209 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::posIn().

int DTTracoTrigData::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 204 of file DTTracoTrigData.h.

Referenced by DTChambPhSegm::posMask(), and DTTracoTrig::posMask().

int DTTracoTrigData::posOut ( ) const
inline

Return the position of outer segment.

Definition at line 214 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::posOut().

void DTTracoTrigData::print ( void  ) const
virtual

print

Implements DTTrigData.

Definition at line 60 of file DTTracoTrigData.cc.

References _tracoid, code(), gather_cfg::cout, TauDecayModes::dec, DeltaPsiR(), isFirst(), K(), psiR(), pvCode(), pvCorr(), pvK(), qdec(), DTTracoId::sector(), DTTracoId::station(), step(), DTTracoId::traco(), DTTracoId::wheel(), and X().

Referenced by DTTracoTrig::print().

60  {
61  cout << "TRACO Id=" << " ( " << _tracoid.wheel() ;
62  cout << " , " << _tracoid.station() ;
63  cout << " , " << _tracoid.sector() ;
64  cout << " # " << _tracoid.traco() ;
65  cout << " ) " << " step: " << step();
66 
67  cout << dec << " code=" << code() << " K=" << K() << " X=" << X();
68  cout << dec << " PVcode=" << pvCode() << " PVk=" << pvK() << " qdec=" << qdec();
69  cout << " qdec=" << qdec();
70  cout << hex << " psiR=" << psiR() << " DeltaPsiR=" << DeltaPsiR() << dec << endl;
71  if(isFirst())
72  cout << " I trk";
73  if(!isFirst())
74  cout << " II trk";
75  cout << " (";
76  if(!pvCorr()) cout << "NOT ";
77  cout << "correlated)" << endl;
78 }
int psiR() const
Return trigger X parameter converted to angle.
int step() const
Return step.
int pvCorr() const
Return the preview correaltion bit.
int X() const
Return trigger X parameter.
int sector() const
Returns sector number.
Definition: DTTracoId.h:68
int traco() const
Returns the traco.
Definition: DTTracoId.h:70
int station() const
Returns station number.
Definition: DTTracoId.h:66
int isFirst() const
Return non 0 if the track is a first track.
int pvK() const
Return the preview K.
int DeltaPsiR() const
Return DeltaPsiR.
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:64
int pvCode() const
Return the preview code.
int qdec() const
Return the trigger code in new format.
int code() const
Return trigger code.
int K() const
Return trigger K parameter.
tuple cout
Definition: gather_cfg.py:145
int DTTracoTrigData::psi ( ) const
inline

Return trigger K parameter converted to angle.

Definition at line 266 of file DTTracoTrigData.h.

Referenced by DTChambPhSegm::psi(), and DTTracoTrig::psi().

int DTTracoTrigData::psiR ( ) const
inline

Return trigger X parameter converted to angle.

Definition at line 271 of file DTTracoTrigData.h.

Referenced by DTChambPhSegm::phi(), print(), DTChambPhSegm::psiR(), and DTTracoTrig::psiR().

int DTTracoTrigData::pvCode ( ) const
inline
int DTTracoTrigData::pvCorr ( ) const
inline
int DTTracoTrigData::pvIO ( ) const
inline

Return the preview i/o bit.

Definition at line 250 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::operator==().

int DTTracoTrigData::pvK ( ) const
inline

Return the preview K.

Definition at line 240 of file DTTracoTrigData.h.

Referenced by print(), DTChambPhSegm::pvK(), and DTTracoTrig::pvK().

int DTTracoTrigData::qdec ( ) const

Return the trigger code in new format.

Definition at line 46 of file DTTracoTrigData.cc.

References _codeIn, and _codeOut.

Referenced by DTChambPhSegm::code(), print(), and DTTracoTrig::qdec().

46  {
47  // This is consistent with memo
48  if (_codeIn==8 && _codeOut==8) return 6; // HH
49  if (_codeIn==8 && _codeOut==0) return 2; // Hinner
50  if (_codeIn==0 && _codeOut==8) return 3; // Houter
51  if (_codeIn >0 && _codeOut==8) return 5; // LH
52  if (_codeIn==8 && _codeOut> 0) return 5; // HL
53  if (_codeIn> 0 && _codeOut> 0) return 4; // LL
54  if (_codeIn> 0 && _codeOut==0) return 0; // Linner
55  if (_codeIn==0 && _codeOut> 0) return 1; // Louter
56  return 7; // null
57 }
void DTTracoTrigData::resetPV ( )
inline

Reset preview variables.

Definition at line 161 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::resetPV().

void DTTracoTrigData::resetVar ( )
inline

Reset all variables but preview.

Definition at line 139 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::resetVar().

void DTTracoTrigData::setAngles ( int  psi,
int  psir,
int  dpsir 
)
inline

Set trigger angles.

Definition at line 125 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setAngles().

void DTTracoTrigData::setCodeIn ( int  code)
inline

Set trigger code inner layer.

Definition at line 85 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setCodeIn().

void DTTracoTrigData::setCodeOut ( int  code)
inline

Set trigger code outer layer.

Definition at line 89 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setCodeOut().

void DTTracoTrigData::setEqIn ( int  eq)
inline

Set bti trigger equation of segment, inner layer.

Definition at line 104 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setEqIn().

void DTTracoTrigData::setEqOut ( int  eq)
inline

Set bti trigger equation of segment, outer layer.

Definition at line 109 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setEqOut().

void DTTracoTrigData::setK ( int  k)
inline

Set trigger K parameter.

Definition at line 115 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setK().

void DTTracoTrigData::setParent ( DTTracoId  tracoid)
inline

Set the parent TRACO Identifier.

Definition at line 55 of file DTTracoTrigData.h.

Referenced by lumiQTWidget.LumiCanvas::__init__(), and DTTracoTrig::DTTracoTrig().

void DTTracoTrigData::setPosIn ( int  pos)
inline

Set position of segment, inner layer.

Definition at line 94 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setPosIn().

void DTTracoTrigData::setPosOut ( int  pos)
inline

Set position of segment, outer layer.

Definition at line 99 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setPosOut().

void DTTracoTrigData::setPV ( int  first,
int  code,
int  K,
int  ioflag 
)
inline

Set trigger preview parameters.

Definition at line 65 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setPV().

void DTTracoTrigData::setPVCorr ( int  ic)
inline

Set trigger preview correlation bit.

Definition at line 80 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setPVCorr().

void DTTracoTrigData::setStep ( int  step)
inline

Set trigger step.

Definition at line 60 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::DTTracoTrig().

void DTTracoTrigData::setX ( int  x)
inline

Set trigger X parameter.

Definition at line 120 of file DTTracoTrigData.h.

Referenced by DTTracoTrig::setX().

int DTTracoTrigData::step ( ) const
inline

Return step.

Definition at line 194 of file DTTracoTrigData.h.

Referenced by print(), and DTTracoTrig::step().

int DTTracoTrigData::tracoNumber ( ) const
inline
int DTTracoTrigData::X ( ) const
inline

Return trigger X parameter.

Definition at line 261 of file DTTracoTrigData.h.

Referenced by print(), DTChambPhSegm::X(), and DTTracoTrig::X().

Member Data Documentation

myint8 DTTracoTrigData::_codeIn
private

Definition at line 301 of file DTTracoTrigData.h.

Referenced by qdec().

myint8 DTTracoTrigData::_codeOut
private

Definition at line 303 of file DTTracoTrigData.h.

Referenced by qdec().

long int DTTracoTrigData::_dPsiR
private

Definition at line 328 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_eqIn
private

Definition at line 296 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_eqOut
private

Definition at line 298 of file DTTracoTrigData.h.

int DTTracoTrigData::_Kval
private

Definition at line 319 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_posIn
private

Definition at line 292 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_posOut
private

Definition at line 294 of file DTTracoTrigData.h.

long int DTTracoTrigData::_psi
private

Definition at line 324 of file DTTracoTrigData.h.

long int DTTracoTrigData::_psiR
private

Definition at line 326 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_pvcode
private

Definition at line 309 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_pvCorr
private

Definition at line 313 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_pvfirst
private

Definition at line 306 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_pvIOflag
private

Definition at line 315 of file DTTracoTrigData.h.

int DTTracoTrigData::_pvKval
private

Definition at line 311 of file DTTracoTrigData.h.

myint8 DTTracoTrigData::_step
private

Definition at line 289 of file DTTracoTrigData.h.

DTTracoId DTTracoTrigData::_tracoid
private

Definition at line 286 of file DTTracoTrigData.h.

Referenced by print().

int DTTracoTrigData::_Xval
private

Definition at line 321 of file DTTracoTrigData.h.