CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTBtiTrig Class Reference

#include <DTBtiTrig.h>

Inheritance diagram for DTBtiTrig:
DTTrigData

List of all members.

Public Member Functions

void addDigi (const DTDigi *digi)
 Add a digi to the list.
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 data () const
 Return the data part.
std::vector< const DTDigi * > digiList () const
 Return the digi list.
 DTBtiTrig (DTBtiChip *tparent, int, int, int, int, int, int, float *)
 Constructor.
 DTBtiTrig ()
 Constructor.
 DTBtiTrig (DTBtiChip *, int)
 Constructor.
 DTBtiTrig (DTBtiChip *, DTBtiTrigData)
 Constructor.
 DTBtiTrig (DTBtiChip *tparent, int, int, int, int, int)
 Constructor.
int eq () const
 Return triggering equation.
int K () const
 Return trigger K parameter.
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 setParent (DTBtiChip *parent)
 Set the parent DTBtiChip.
void setStep (int step)
 Set trigger step.
void setX (int x)
 Set trigger X parameter.
int step () const
 Return trigger step.
DTBtiChiptParent () const
 Return parent BTI pointer.
int X () const
 Return trigger X parameter.
 ~DTBtiTrig ()
 Destructor.

Private Attributes

DTBtiTrigData _data
std::vector< const DTDigi * > _digi
DTBtiChip_tparent

Detailed Description

BTI Trigger Data Has pointers to parent BTI and DTDigis which allow algorithm debugging

Date:
2006/07/19 10:18:31
Revision:
1.1
Author:
C. Grandi

Definition at line 43 of file DTBtiTrig.h.


Constructor & Destructor Documentation

DTBtiTrig::DTBtiTrig ( )

Constructor.

Definition at line 35 of file DTBtiTrig.cc.

References _digi, and clear().

                     {

  // reserve the appropriate amount of space for vectors
  _digi.reserve(4);
  clear();

}
DTBtiTrig::DTBtiTrig ( DTBtiChip tparent,
int  step 
)

Constructor.

Definition at line 43 of file DTBtiTrig.cc.

References _data, _digi, clear(), DTBtiChip::id(), DTBtiTrigData::setParent(), and DTBtiTrigData::setStep().

                                                 :
                                             _tparent(tparent)      {

  // reserve the appropriate amount of space for vectors
  _digi.reserve(4);
  clear();

  // data part of the trigger
  _data.setStep(step);
  _data.setParent(tparent->id());

}
DTBtiTrig::DTBtiTrig ( DTBtiChip tparent,
int  code,
int  K,
int  X,
int  step,
int  eq 
)

Constructor.

Definition at line 56 of file DTBtiTrig.cc.

References _data, _digi, DTBtiChip::id(), DTBtiTrigData::setCode(), DTBtiTrigData::setEq(), DTBtiTrigData::setK(), DTBtiTrigData::setParent(), DTBtiTrigData::setStep(), and DTBtiTrigData::setX().

                                                                       : 
                             _tparent(tparent) {

  // reserve the appropriate amount of space for vectors
  _digi.reserve(4);

  // data part of the trigger
  _data.setStep(step);
  _data.setParent(tparent->id());
  _data.setCode(code);
  _data.setK(K);
  _data.setX(X);
  _data.setEq(eq);

}
DTBtiTrig::DTBtiTrig ( DTBtiChip tparent,
int  code,
int  K,
int  X,
int  step,
int  eq,
int  str,
float *  Keq 
)

Constructor.

Definition at line 73 of file DTBtiTrig.cc.

References _data, _digi, DTBtiChip::id(), DTBtiTrigData::setCode(), DTBtiTrigData::setEq(), DTBtiTrigData::setK(), DTBtiTrigData::setKeq(), DTBtiTrigData::setParent(), DTBtiTrigData::setStep(), DTBtiTrigData::setStrobe(), and DTBtiTrigData::setX().

                                                                                            : 
                             _tparent(tparent) {

  // reserve the appropriate amount of space for vectors
  _digi.reserve(4);

  // data part of the trigger
  _data.setStep(step);
  _data.setParent(tparent->id());
  _data.setCode(code);
  _data.setK(K);
  _data.setX(X);
  _data.setEq(eq);
  _data.setStrobe(str);
  _data.setKeq(0,Keq[0]);
  _data.setKeq(1,Keq[1]);
  _data.setKeq(2,Keq[2]);
  _data.setKeq(3,Keq[3]);
  _data.setKeq(4,Keq[4]);
  _data.setKeq(5,Keq[5]);


}
DTBtiTrig::DTBtiTrig ( DTBtiChip parent,
DTBtiTrigData  data 
)

Constructor.

Definition at line 98 of file DTBtiTrig.cc.

References _digi.

                                                          :
                             _tparent(parent), _data(data) {

  // reserve the appropriate amount of space for vectors
  _digi.reserve(4);

}
DTBtiTrig::~DTBtiTrig ( )

Destructor.

Definition at line 109 of file DTBtiTrig.cc.

                      {
}

Member Function Documentation

void DTBtiTrig::addDigi ( const DTDigi digi) [inline]

Add a digi to the list.

Definition at line 71 of file DTBtiTrig.h.

References _digi.

Referenced by DTBtiChip::store().

                                          { 
    _digi.push_back(digi); 
  }
int DTBtiTrig::btiNumber ( ) const [inline]

Return parent BTI number.

Definition at line 129 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::btiNumber().

                               { 
    return _data.btiNumber(); 
  }
int DTBtiTrig::btiSL ( ) const [inline]

Return parent BTI superlayer.

Definition at line 134 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::btiSL().

                           { 
    return _data.btiSL(); 
  }
DTChamberId DTBtiTrig::ChamberId ( ) const [inline, virtual]

Return chamber identifier.

Implements DTTrigData.

Definition at line 109 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::ChamberId().

                                       {
    return _data.ChamberId(); 
  }
void DTBtiTrig::clear ( void  ) [inline]

Clear.

Definition at line 101 of file DTBtiTrig.h.

References _data, _digi, and DTBtiTrigData::clear().

Referenced by DTBtiTrig().

                      {
    _data.clear();
    _digi.clear();
  }    
int DTBtiTrig::code ( ) const [inline]

Return trigger code.

Definition at line 144 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::code().

Referenced by DTBtiChip::doLTS().

                          { 
    return _data.code(); 
  }
DTBtiTrigData DTBtiTrig::data ( ) const [inline]

Return the data part.

Definition at line 124 of file DTBtiTrig.h.

References _data.

                                    {
    return _data;
  }
std::vector<const DTDigi*> DTBtiTrig::digiList ( ) const [inline]

Return the digi list.

Definition at line 164 of file DTBtiTrig.h.

References _digi.

                                            { 
    return _digi; 
  }
int DTBtiTrig::eq ( ) const [inline]

Return triggering equation.

Definition at line 159 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::eq().

                        { 
    return _data.eq(); 
  }
int DTBtiTrig::K ( ) const [inline]

Return trigger K parameter.

Definition at line 149 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::K().

                       { 
    return _data.K(); 
  }
void DTBtiTrig::print ( void  ) const [inline, virtual]

Print.

Implements DTTrigData.

Definition at line 114 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::print().

Referenced by DTBtiChip::store().

                            { 
    _data.print();
  }
void DTBtiTrig::setCode ( int  code) [inline]

Set trigger code.

Definition at line 81 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::setCode().

void DTBtiTrig::setEq ( int  eq) [inline]

Set triggering equation.

Definition at line 96 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::setEq().

                            {
    _data.setEq(eq);
  }
void DTBtiTrig::setK ( int  k) [inline]

Set trigger K parameter.

Definition at line 86 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::setK().

                          {
    _data.setK(k);
  }
void DTBtiTrig::setParent ( DTBtiChip parent) [inline]

Set the parent DTBtiChip.

Definition at line 66 of file DTBtiTrig.h.

References _tparent, and dbtoconf::parent.

                                           { 
    _tparent = parent; 
  }  
void DTBtiTrig::setStep ( int  step) [inline]

Set trigger step.

Definition at line 76 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::setStep().

void DTBtiTrig::setX ( int  x) [inline]

Set trigger X parameter.

Definition at line 91 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::setX().

                          {
    _data.setX(x);
  }
int DTBtiTrig::step ( ) const [inline]

Return trigger step.

Definition at line 139 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::step().

                          { 
    return _data.step(); 
  }
DTBtiChip* DTBtiTrig::tParent ( ) const [inline]

Return parent BTI pointer.

Definition at line 119 of file DTBtiTrig.h.

References _tparent.

                                    { 
    return _tparent; 
  }
int DTBtiTrig::X ( ) const [inline]

Return trigger X parameter.

Definition at line 154 of file DTBtiTrig.h.

References _data, and DTBtiTrigData::X().

                       { 
    return _data.X(); 
  }

Member Data Documentation

std::vector<const DTDigi*> DTBtiTrig::_digi [private]

Definition at line 177 of file DTBtiTrig.h.

Referenced by addDigi(), clear(), digiList(), and DTBtiTrig().

Definition at line 171 of file DTBtiTrig.h.

Referenced by setParent(), and tParent().