CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTBtiTrigData Class Reference

#include <DTBtiTrigData.h>

Inheritance diagram for DTBtiTrigData:
DTTrigData

List of all members.

Public Member Functions

int btiNumber () const
 Return parent BTI number.
int btiSL () const
 Return parent BTI superlayer.
DTChamberId ChamberId () const
 Return chamber identifier.
void clear ()
 Clear.
int code () const
 Return trigger code.
 DTBtiTrigData ()
 Constructor.
int eq () const
 Return triggering equation.
int K () const
 Return trigger K parameter.
float Keq (int i) const
 Return triggering K equations.
DTBtiId parentId () const
 Return parent BTI identifier.
void print () const
 Print.
void setCode (int code)
 Set trigger code.
void setEq (int eq)
 Set triggering equation.
void setK (int k)
 Set trigger K parameter.
void setKeq (int num, float Keq)
 Set trigger _Keq.
void setParent (DTBtiId btiid)
 Set the parent BTI identifier.
void setStep (int step)
 Set trigger step.
void setStrobe (int str)
 Set trigger strobe.
void setX (int x)
 Set trigger X parameter.
DTSuperLayerId SLId () const
 Return superlayer identifier.
int step () const
 Return trigger step.
int Strobe () const
 Return trigger strobe.
int X () const
 Return trigger X parameter.
 ~DTBtiTrigData ()
 Destructor.

Private Attributes

DTBtiId _btiid
myint8 _code
myint8 _eq
float _Keq [6]
int _Kval
myint8 _step
int _str
myint8 _Xval

Detailed Description

DTBtiChip Trigger Data

Date:
2007/04/27 08:37:37
Revision:
1.2
Author:
C. Grandi, S. Vanini

Modifications: SV 29/I/03 : insert trigger Strobe

Definition at line 41 of file DTBtiTrigData.h.


Constructor & Destructor Documentation

DTBtiTrigData::DTBtiTrigData ( ) [inline]

Constructor.

Definition at line 46 of file DTBtiTrigData.h.

{}
DTBtiTrigData::~DTBtiTrigData ( ) [inline]

Destructor.

Definition at line 49 of file DTBtiTrigData.h.

{}

Member Function Documentation

int DTBtiTrigData::btiNumber ( ) const [inline]
int DTBtiTrigData::btiSL ( ) const [inline]
DTChamberId DTBtiTrigData::ChamberId ( ) const [inline, virtual]

Return chamber identifier.

Implements DTTrigData.

Definition at line 104 of file DTBtiTrigData.h.

References _btiid, DTChamberId, DTBtiId::sector(), DTBtiId::station(), and DTBtiId::wheel().

Referenced by DTBtiTrig::ChamberId().

void DTBtiTrigData::clear ( void  ) [inline]

Clear.

Definition at line 92 of file DTBtiTrigData.h.

References _code, _eq, _Keq, _Kval, _step, _str, _Xval, and j.

Referenced by DTBtiTrig::clear().

               {
    _step = 0;
    _eq = 0;
    _code = 0; 
    _Kval = 9999; 
    _Xval = 0;
    _str = -1;
    for(int j=0;j<6;j++)
        _Keq[j]=-1;
  }  
int DTBtiTrigData::code ( ) const [inline]
int DTBtiTrigData::eq ( ) const [inline]

Return triggering equation.

Definition at line 152 of file DTBtiTrigData.h.

References _eq.

Referenced by DTBtiTrig::eq(), setEq(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

                        { 
    return _eq; 
  }
int DTBtiTrigData::K ( ) const [inline]
float DTBtiTrigData::Keq ( int  i) const [inline]

Return triggering K equations.

Definition at line 162 of file DTBtiTrigData.h.

References _Keq, and i.

Referenced by setKeq().

                                { 
    return _Keq[i]; 
  }
DTBtiId DTBtiTrigData::parentId ( ) const [inline]

Return parent BTI identifier.

Definition at line 112 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiCard::localDirection(), DTBtiCard::localPosition(), and DTBtiCard::storeTrigger().

                                  { 
    return _btiid; 
  }
void DTBtiTrigData::print ( void  ) const [virtual]

Print.

Implements DTTrigData.

Definition at line 38 of file DTBtiTrigData.cc.

References gather_cfg::cout, Vispa::Plugins::EdmBrowser::EdmDataAccessor::eq(), launcher::step, and X.

Referenced by DTTracoChip::add_btiT(), DTBtiCard::localDirection(), DTBtiCard::localPosition(), and DTBtiTrig::print().

                           {
  cout << "BTI Id=" << " ( " << _btiid.wheel()      ;
  cout              << " , " << _btiid.station()    ;
  cout              << " , " << _btiid.sector()     ;
  cout              << " , " << _btiid.superlayer() ;
  cout              << " # " << _btiid.bti()        ;
  cout              << " ) " ;
  cout << ", K=" << K() << ", X=" << X() << ", equation=" << eq();
  cout << ", code=" << code();
  cout << " step= " << step();
/*  cout << " strobe= " << Strobe();
  cout << " Keq values: " << Keq(0) << " " << Keq(1) << " " << Keq(2) << " " 
    << Keq(3) << " " << Keq(4) << " " << Keq(5) << endl;
*/
  cout << endl;
}
void DTBtiTrigData::setCode ( int  code) [inline]

Set trigger code.

Definition at line 62 of file DTBtiTrigData.h.

References _code, and code().

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setCode().

                                {
    _code = code;
  }
void DTBtiTrigData::setEq ( int  eq) [inline]

Set triggering equation.

Definition at line 77 of file DTBtiTrigData.h.

References _eq, and eq().

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setEq().

                            {
    _eq = eq;
  }
void DTBtiTrigData::setK ( int  k) [inline]

Set trigger K parameter.

Definition at line 67 of file DTBtiTrigData.h.

References _Kval, and gen::k.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setK().

                          {
    _Kval = k; 
  }
void DTBtiTrigData::setKeq ( int  num,
float  Keq 
) [inline]

Set trigger _Keq.

Definition at line 87 of file DTBtiTrigData.h.

References _Keq, and Keq().

Referenced by DTBtiTrig::DTBtiTrig().

                                         {
    _Keq[num] = Keq;
  }
void DTBtiTrigData::setParent ( DTBtiId  btiid) [inline]

Set the parent BTI identifier.

Definition at line 52 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiTrig::DTBtiTrig().

                                       {
    _btiid = btiid; 
  }  
void DTBtiTrigData::setStep ( int  step) [inline]

Set trigger step.

Definition at line 57 of file DTBtiTrigData.h.

References _step, and step().

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setStep().

                                {
    _step = step;
  }
void DTBtiTrigData::setStrobe ( int  str) [inline]

Set trigger strobe.

Definition at line 82 of file DTBtiTrigData.h.

References _str.

Referenced by DTBtiTrig::DTBtiTrig().

                                 {
    _str = str;
  }
void DTBtiTrigData::setX ( int  x) [inline]

Set trigger X parameter.

Definition at line 72 of file DTBtiTrigData.h.

References _Xval, and x.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setX().

                          {
    _Xval = x;
  }
DTSuperLayerId DTBtiTrigData::SLId ( ) const [inline]

Return superlayer identifier.

Definition at line 117 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::SLId().

                                     {
    return _btiid.SLId(); 
  }
int DTBtiTrigData::step ( ) const [inline]

Return trigger step.

Definition at line 132 of file DTBtiTrigData.h.

References _step.

Referenced by setStep(), DTBtiTrig::step(), and DTBtiCard::storeTrigger().

                          { 
    return _step; 
  }
int DTBtiTrigData::Strobe ( ) const [inline]

Return trigger strobe.

Definition at line 157 of file DTBtiTrigData.h.

References _str.

                           { 
    return _str; 
  }
int DTBtiTrigData::X ( ) const [inline]

Return trigger X parameter.

Definition at line 147 of file DTBtiTrigData.h.

References _Xval.

Referenced by DTTracoCand::DTTracoCand(), DTBtiCard::localPosition(), DTTracoCand::print(), and DTBtiTrig::X().

                       { 
    return _Xval; 
  }

Member Data Documentation

Definition at line 169 of file DTBtiTrigData.h.

Referenced by btiNumber(), btiSL(), ChamberId(), parentId(), setParent(), and SLId().

Definition at line 172 of file DTBtiTrigData.h.

Referenced by clear(), code(), and setCode().

Definition at line 177 of file DTBtiTrigData.h.

Referenced by clear(), eq(), and setEq().

float DTBtiTrigData::_Keq[6] [private]

Definition at line 179 of file DTBtiTrigData.h.

Referenced by clear(), Keq(), and setKeq().

int DTBtiTrigData::_Kval [private]

Definition at line 173 of file DTBtiTrigData.h.

Referenced by clear(), K(), and setK().

Definition at line 176 of file DTBtiTrigData.h.

Referenced by clear(), setStep(), and step().

int DTBtiTrigData::_str [private]

Definition at line 178 of file DTBtiTrigData.h.

Referenced by clear(), setStrobe(), and Strobe().

Definition at line 174 of file DTBtiTrigData.h.

Referenced by clear(), setX(), and X().