CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTConfigBti Class Reference

#include <DTConfigBti.h>

Inheritance diagram for DTConfigBti:
DTConfig

List of all members.

Public Member Functions

int AccPattAC1 () const
 Acceptance pattern AC1.
int AccPattAC2 () const
 Acceptance pattern AC2.
int AccPattACH () const
 Acceptance pattern ACH.
int AccPattACL () const
 Acceptance pattern ACL.
int CH () const
 K right limit for center traco.
int CL () const
 K left limit for center traco.
int DEADpar () const
 Wire DEAD time parameter.
int debug () const
 Debug flag.
 DTConfigBti ()
 Empty Constructor.
 DTConfigBti (const edm::ParameterSet &ps)
 Constructor.
 DTConfigBti (int debug, unsigned short int *buffer)
 Constructor from string.
int KAccTheta () const
 BTI angular acceptance in theta view.
int KCut () const
 Max K param accepted: max bit number.
int LH () const
 K right limit for left traco.
int LL () const
 K left limit for left traco.
int LTS () const
 LTS.
void print () const
 Print the setup.
int PTMSflag (int patt) const
 Pattern mask flag.
int RE43 () const
int RH () const
 K right limit for right traco.
int RL () const
 K left limit for right traco.
bool RONflag () const
 Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
int SET () const
 SET.
void setAccPattAC1 (int AC1)
 Set Acceptance pattern AC1.
void setAccPattAC2 (int AC2)
 Set Acceptance pattern AC2.
void setAccPattACH (int ACH)
 Set Acceptance pattern ACH.
void setAccPattACL (int ACL)
 Set Acceptance pattern ACL.
void setCH (int CH)
 Set K right limit for center traco.
void setCL (int CL)
 Set K left limit for center traco.
void setDEADpar (int DEAD)
 Wire DEAD time parameter.
void setDebug (int debug)
void setDefaults (const edm::ParameterSet &ps)
 Set default parameters.
void setKAccTheta (int KAccTh)
 Set BTI angular acceptance in theta view.
void setKCut (int KCut)
 Set Max K param accepted: max bit number.
void setLH (int LH)
 Set K right limit for left traco.
void setLL (int LL)
 Set K left limit for left traco.
void setLTS (int LTS)
 Set LTS.
void setPTMSflag (int mask, int patt)
 Set Pattern mask flag.
void setRE43 (int RE43)
void setRH (int RH)
 Set K right limit for right traco.
void setRL (int RL)
 Set K left limit for right traco.
void setRONflag (bool RON)
 Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
void setSET (int SET)
 Set SET.
void setST43 (int ST43)
 Set ST and RE parameters for drift velocity.
void setWENflag (int mask, int wire)
 Set Wire mask flag.
void setXON (bool XON)
 Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.
float ST () const
 Max drift time in 12.5 ns steps.
int ST43 () const
 ST and RE parameters for drift velocity.
int WENflag (int wire) const
 Wire mask flag.
bool XON () const
 X-patterns flag XON: activates tracks passing on the same side of 3 wires.
 ~DTConfigBti ()
 Destructor.

Private Attributes

int8_t m_4re3
int8_t m_4st3
int8_t m_ac1
int8_t m_ac2
int8_t m_ach
int8_t m_acl
int8_t m_ch
int8_t m_cl
int8_t m_dead
int8_t m_debug
int8_t m_kacctheta
int8_t m_kcut
int8_t m_lh
int8_t m_ll
int8_t m_lts
BitArray< 32 > m_pattmask
int8_t m_rh
int8_t m_rl
bool m_ron
int8_t m_set
BitArray< 9 > m_wiremask
bool m_xon

Detailed Description

Configurable parameters and constants for Level-1 Muon DT Trigger - Bti chip

Author:
S. Vanini

Configurable parameters and constants for Level-1 Muon DT Trigger - Time Pedestals

Authors:
: C.Battilana, M.Meneghelli

Definition at line 38 of file DTConfigBti.h.


Constructor & Destructor Documentation

DTConfigBti::DTConfigBti ( const edm::ParameterSet ps)

Constructor.

Definition at line 40 of file DTConfigBti.cc.

References setDefaults().

                                                  { 

  setDefaults(ps);
  
}
DTConfigBti::DTConfigBti ( ) [inline]

Empty Constructor.

Definition at line 50 of file DTConfigBti.h.

{;}
DTConfigBti::DTConfigBti ( int  debug,
unsigned short int *  buffer 
)

Constructor from string.

Definition at line 46 of file DTConfigBti.cc.

References CH(), CL(), gather_cfg::cout, debug(), Exception, i, LH(), LL(), m_debug, RH(), RL(), setAccPattAC1(), setAccPattAC2(), setAccPattACH(), setAccPattACL(), setCH(), setCL(), setDEADpar(), setKAccTheta(), setKCut(), setLH(), setLL(), setLTS(), setPTMSflag(), setRE43(), setRH(), setRL(), setRONflag(), setSET(), setST43(), setWENflag(), setXON(), and run_regression::test.

                                                                  {

        m_debug = debugBTI;

        // check if this is a BTI configuration string
        if (buffer[2]!=0x54){
                throw cms::Exception("DTTPG") << "===> ConfigBti constructor : not a BTI string!" << std::endl;
        }

        // decode
        unsigned short int memory_bti[31];
        for(int i=0;i<31;i++){
                memory_bti[i] = buffer[i+5];
                //std::cout << hex << memory_bti[i] << "  ";
        }
        int wmask[9];
        int st43 = memory_bti[0] & 0x3f;
        wmask[6] = memory_bti[1] & 0x01;
        wmask[7] = (memory_bti[1] >> 1 )& 0x01;
        wmask[8] = (memory_bti[1] >> 2 )& 0x01;
        int re43 = (memory_bti[1] >> 4 )& 0x03;
        wmask[0] = memory_bti[2] & 0x01;
        wmask[1] = (memory_bti[2] >> 1) & 0x01;
        wmask[2] = (memory_bti[2] >> 2 )& 0x01;
        wmask[3] = (memory_bti[2] >> 3 )& 0x01;
        wmask[4] = (memory_bti[2] >> 4 )& 0x01;
        wmask[5] = (memory_bti[2] >> 5 )& 0x01;
        int dead = memory_bti[3] & 0x3F;
        int LH =  memory_bti[4] & 0x3F;
        int LL =  memory_bti[5] & 0x3F;
        int CH =  memory_bti[6] & 0x3F;
        int CL =  memory_bti[7] & 0x3F;
        int RH =  memory_bti[8] & 0x3F;
        int RL =  memory_bti[9] & 0x3F;
        int tston = ( memory_bti[10] & 0x20 ) != 0 ;
        int test = ( memory_bti[10] & 0x10 ) != 0 ;
        int ten = ( memory_bti[10] & 0x8 ) != 0 ;
        int xon = ( memory_bti[10] & 0x2 ) != 0 ;
        int ron = ( memory_bti[10] & 0x1 ) != 0 ;
        int set = ( memory_bti[11] & 0x38 ) >> 3 ;
        int lts = ( memory_bti[11] & 0x6 ) >> 1 ;
        int ac1 = ( memory_bti[12] & 0x30 ) >> 4 ;
        int ac2 = ( memory_bti[12] & 0xc ) >> 2 ;
        int acl = ( memory_bti[12] & 0x3 ) ;
        int ach = ( memory_bti[13] & 0x30 ) >> 4 ;

        int pmask[32];
        for(int ir=0; ir<6; ir++)
        {
                pmask[0+6*ir] = memory_bti[19-ir] & 0x01;
                pmask[1+6*ir] = (memory_bti[19-ir] >> 1 )& 0x01;        
                if(ir!=5)
                {
                        pmask[2+6*ir] = (memory_bti[19-ir] >> 2 )& 0x01;                
                        pmask[3+6*ir] = (memory_bti[19-ir] >> 3 )& 0x01;
                        pmask[4+6*ir] = (memory_bti[19-ir] >> 4 )& 0x01;        
                        pmask[5+6*ir] = (memory_bti[19-ir] >> 5 )& 0x01;
                }
        }       
        
        // dump
        if(debug()==1){
               std::cout << std::dec << "st43=" << st43
                << " re43=" << re43
                << " dead=" << dead
                << " LH=" << LH
                << " LL=" << LL
                << " CH=" << CH
                << " CL=" << CL
                << " RH=" << RH
                << " RL=" << RL
                << " tston=" << tston
                << " test=" << test
                << " ten=" << ten
                << " xon=" << xon
                << " ron=" << ron
                << " set=" << set
                << " lts=" << lts
                << " ac1=" << ac1
                << " ac2=" << ac2
                << " acl=" << acl
                << " ach=" << ach
                << std::endl;
                std::cout << std::dec << " wire masks= ";
                for(int iw=0; iw<9; iw++)
                        std::cout << wmask[iw] << " ";
                std::cout << std::dec << "\n pattern masks= ";
                for(int ip=0; ip<32; ip++)
                        std::cout << pmask[ip] << " ";
                std::cout << std::endl;
        }
        
        // set parameters
        // default for KCut and KAccTheta
        setKCut(64);
        setKAccTheta(1);

        for(int ip=0; ip<32; ip++)
                setPTMSflag(pmask[ip],ip);

        for(int iw=0; iw<9; iw++)
                setWENflag(wmask[iw],iw+1);

        setST43(st43);
        setRE43(re43);
        setDEADpar(dead);
        setLL(LL);
        setLH(LH);
        setCL(CL);
        setCH(CH);
        setRL(RL);
        setRH(RH);
        setXON(xon);
        setRONflag(ron);
        setSET(set);
        setLTS(lts);
        setAccPattAC1(ac1);
        setAccPattAC2(ac2);
        setAccPattACH(ach);
        setAccPattACL(acl);
} 
DTConfigBti::~DTConfigBti ( )

Destructor.

Definition at line 171 of file DTConfigBti.cc.

{}

Member Function Documentation

int DTConfigBti::AccPattAC1 ( ) const [inline]

Acceptance pattern AC1.

Definition at line 84 of file DTConfigBti.h.

References m_ac1.

Referenced by print().

{ return m_ac1; }
int DTConfigBti::AccPattAC2 ( ) const [inline]

Acceptance pattern AC2.

Definition at line 87 of file DTConfigBti.h.

References m_ac2.

Referenced by print().

{ return m_ac2; }
int DTConfigBti::AccPattACH ( ) const [inline]

Acceptance pattern ACH.

Definition at line 90 of file DTConfigBti.h.

References m_ach.

Referenced by print().

{ return m_ach; }
int DTConfigBti::AccPattACL ( ) const [inline]

Acceptance pattern ACL.

Definition at line 93 of file DTConfigBti.h.

References m_acl.

Referenced by print().

{ return m_acl; }
int DTConfigBti::CH ( ) const [inline]

K right limit for center traco.

Definition at line 114 of file DTConfigBti.h.

References m_ch.

Referenced by DTBtiChip::DTBtiChip(), DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setCH().

{ return m_ch; }
int DTConfigBti::CL ( ) const [inline]

K left limit for center traco.

Definition at line 111 of file DTConfigBti.h.

References m_cl.

Referenced by DTBtiChip::DTBtiChip(), DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setCL().

{ return m_cl; }
int DTConfigBti::DEADpar ( ) const [inline]

Wire DEAD time parameter.

Definition at line 127 of file DTConfigBti.h.

References m_dead.

Referenced by DTBtiChip::add_digi(), DTBtiChip::add_digi_clock(), DTBtiChip::DTBtiChip(), and print().

{ return m_dead;}
int DTConfigBti::debug ( ) const [inline]

Debug flag.

Definition at line 62 of file DTConfigBti.h.

References m_debug.

Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::doLTS(), DTConfigBti(), print(), DTBtiChip::run(), setDebug(), and DTBtiChip::tick().

{ return m_debug; }
int DTConfigBti::KAccTheta ( ) const [inline]

BTI angular acceptance in theta view.

Definition at line 72 of file DTConfigBti.h.

References m_kacctheta.

Referenced by DTBtiChip::DTBtiChip(), and print().

{ return m_kacctheta; }
int DTConfigBti::KCut ( ) const [inline]

Max K param accepted: max bit number.

Definition at line 69 of file DTConfigBti.h.

References m_kcut.

Referenced by print(), and setKCut().

{ return m_kcut; }
int DTConfigBti::LH ( ) const [inline]

K right limit for left traco.

Definition at line 108 of file DTConfigBti.h.

References m_lh.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setLH().

{ return m_lh; }
int DTConfigBti::LL ( ) const [inline]

K left limit for left traco.

Definition at line 105 of file DTConfigBti.h.

References m_ll.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setLL().

{ return m_ll; }
int DTConfigBti::LTS ( ) const [inline]

LTS.

Definition at line 78 of file DTConfigBti.h.

References m_lts.

Referenced by DTBtiChip::doLTS(), print(), and setLTS().

{ return m_lts; }
void DTConfigBti::print ( void  ) const

Print the setup.

Definition at line 241 of file DTConfigBti.cc.

References AccPattAC1(), AccPattAC2(), AccPattACH(), AccPattACL(), CH(), CL(), gather_cfg::cout, DEADpar(), debug(), KAccTheta(), KCut(), LH(), LL(), LTS(), AlCaHLTBitMon_ParallelJobs::p, PTMSflag(), RE43(), RH(), RL(), RONflag(), SET(), ST43(), w(), WENflag(), and XON().

                         {
  std::cout << "******************************************************************************" << std::endl;
  std::cout << "*              DTTrigger configuration : BTI chips                                 *" << std::endl;
  std::cout << "******************************************************************************" << std::endl;
  std::cout << "*                                                                            *" << std::endl;
  std::cout << "Debug flag : " <<  debug() << std::endl;
  std::cout << "Max K param accepted : " << KCut() << std::endl; 
  std::cout << "BTI angular acceptance in theta view : " << KAccTheta() << std::endl;
  std::cout << "Time indep. K equation suppression (XON) : " << XON() << std::endl;
  std::cout << "LTS for low trigger suppression : " << LTS() << std::endl;
  std::cout << "SET for low trigger suppression : " << SET() << std::endl;
  std::cout << "pattern acceptance AC1, AC2, ACH, ACL : " << 
        AccPattAC1() << ", " << AccPattAC2() << " , " << AccPattACH() << ", " << AccPattACL() << std::endl;
  std::cout << "redundant patterns flag RON : " << RONflag() << std::endl;
  std::cout << "pattern masks : "; 
  for(int p=0; p<32; p++)
        std::cout << PTMSflag(p) << " ";
  std::cout << std::endl;
 
  std::cout << "wire masks : "; 
  for(int w=1; w<=9; w++)
        std::cout << WENflag(w) << " ";
  std::cout << std::endl;

  std::cout << "angular window limits for traco : " << LL() << ", " << LH() << ", " 
        << CL() << ", " << CH() << ", " << RL() << ", " << RH() << std::endl;
  std::cout << "drift velocity parameter 4ST3 : " << ST43() << std::endl;
  std::cout << "drift velocity parameter 4RE3 : " << RE43() << std::endl;  
  std::cout << "DEAD parameter : " << DEADpar() << std::endl;

  std::cout << "******************************************************************************" << std::endl;

}
int DTConfigBti::PTMSflag ( int  patt) const [inline]

Pattern mask flag.

Definition at line 99 of file DTConfigBti.h.

References BitArray< N >::element(), and m_pattmask.

Referenced by print().

{ return m_pattmask.element(patt); }
int DTConfigBti::RE43 ( ) const [inline]

Definition at line 124 of file DTConfigBti.h.

References m_4re3.

Referenced by print(), setRE43(), DTBtiChip::setSnap(), and ST().

{ return m_4re3; }
int DTConfigBti::RH ( ) const [inline]

K right limit for right traco.

Definition at line 120 of file DTConfigBti.h.

References m_rh.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setRH().

{ return m_rh; }
int DTConfigBti::RL ( ) const [inline]

K left limit for right traco.

Definition at line 117 of file DTConfigBti.h.

References m_rl.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setRL().

{ return m_rl; }
bool DTConfigBti::RONflag ( ) const [inline]

Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:

Definition at line 96 of file DTConfigBti.h.

References m_ron.

Referenced by print().

{ return m_ron; }
int DTConfigBti::SET ( ) const [inline]

SET.

Definition at line 81 of file DTConfigBti.h.

References m_set.

Referenced by DTBtiChip::doLTS(), print(), and setSET().

{ return m_set; }
void DTConfigBti::setAccPattAC1 ( int  AC1) [inline]

Set Acceptance pattern AC1.

Definition at line 149 of file DTConfigBti.h.

References m_ac1.

Referenced by DTConfigBti().

{ m_ac1=AC1; }
void DTConfigBti::setAccPattAC2 ( int  AC2) [inline]

Set Acceptance pattern AC2.

Definition at line 152 of file DTConfigBti.h.

References m_ac2.

Referenced by DTConfigBti().

{ m_ac2=AC2; }
void DTConfigBti::setAccPattACH ( int  ACH) [inline]

Set Acceptance pattern ACH.

Definition at line 155 of file DTConfigBti.h.

References m_ach.

Referenced by DTConfigBti().

{ m_ach=ACH; }
void DTConfigBti::setAccPattACL ( int  ACL) [inline]

Set Acceptance pattern ACL.

Definition at line 158 of file DTConfigBti.h.

References m_acl.

Referenced by DTConfigBti().

{ m_acl=ACL; }
void DTConfigBti::setCH ( int  CH) [inline]

Set K right limit for center traco.

Definition at line 179 of file DTConfigBti.h.

References CH(), and m_ch.

Referenced by DTConfigBti().

{ m_ch=CH; }
void DTConfigBti::setCL ( int  CL) [inline]

Set K left limit for center traco.

Definition at line 176 of file DTConfigBti.h.

References CL(), and m_cl.

Referenced by DTConfigBti().

{ m_cl=CL; }
void DTConfigBti::setDEADpar ( int  DEAD) [inline]

Wire DEAD time parameter.

Definition at line 192 of file DTConfigBti.h.

References m_dead.

Referenced by DTConfigBti().

{ m_dead=DEAD;}
void DTConfigBti::setDebug ( int  debug) [inline]

Set single parameter functions Set debug flag

Definition at line 131 of file DTConfigBti.h.

References debug(), and m_debug.

void DTConfigBti::setDefaults ( const edm::ParameterSet ps)

Set default parameters.

Definition at line 178 of file DTConfigBti.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), diffTwoXMLs::label, m_4re3, m_4st3, m_ac1, m_ac2, m_ach, m_acl, m_ch, m_cl, m_dead, m_debug, m_kacctheta, m_kcut, m_lh, m_ll, m_lts, m_pattmask, m_rh, m_rl, m_ron, m_set, m_wiremask, m_xon, AlCaHLTBitMon_ParallelJobs::p, BitArray< N >::set(), AlCaHLTBitMon_QueryRunRegistry::string, and w().

Referenced by DTConfigBti().

                                                  {

  // Debug flag 
  m_debug  = ps.getUntrackedParameter<int>("Debug");

  // Max K param accepted  
  m_kcut = ps.getParameter<int>("KMAX");
 
  // BTI angular acceptance in theta view
  m_kacctheta = ps.getParameter<int>("KACCTHETA");

  // Time indep. K equation suppression (XON) 
  m_xon = ps.getParameter<bool>("XON");
  // LTS and SET for low trigger suppression 
  m_lts = ps.getParameter<int>("LTS");
  m_set = ps.getParameter<int>("SET");
  // pattern acceptance AC1, AC2, ACH, ACL
  m_ac1 = ps.getParameter<int>("AC1");
  m_ac2 = ps.getParameter<int>("AC2");
  m_ach = ps.getParameter<int>("ACH");
  m_acl = ps.getParameter<int>("ACL");
  // redundant patterns flag RON
  m_ron = ps.getParameter<bool>("RON");

  // pattern masks
  for(int p=0; p<32; p++)
  {
        std::string label = "PTMS";
        char patt0 = (p/10)+'0';
        char patt1 = (p%10)+'0';
        if ( patt0 != '0' )
                label = label + patt0;
        label = label + patt1;
        
        m_pattmask.set(p,ps.getParameter<int>(label));
  }

  // wire masks
  for(int w=0; w<9; w++)
  {
        std::string label = "WEN";
        char wname = w+'0';
        label = label + wname;
        
        m_wiremask.set(w,ps.getParameter<int>(label));
  }

  // angular window limits for traco
  m_ll = ps.getParameter<int>("LL");
  m_lh = ps.getParameter<int>("LH");
  m_cl = ps.getParameter<int>("CL");
  m_ch = ps.getParameter<int>("CH");
  m_rl = ps.getParameter<int>("RL");
  m_rh = ps.getParameter<int>("RH");
  // drift velocity parameter 4ST3
  m_4st3 = ps.getParameter<int>("ST43");
  // drift velocity parameter 4RE3
  m_4re3 = ps.getParameter<int>("RE43");
  // DEAD parameter
  m_dead = ps.getParameter<int>("DEAD");
}
void DTConfigBti::setKAccTheta ( int  KAccTh) [inline]

Set BTI angular acceptance in theta view.

Definition at line 137 of file DTConfigBti.h.

References m_kacctheta.

Referenced by DTConfigBti().

{ m_kacctheta=KAccTh; }
void DTConfigBti::setKCut ( int  KCut) [inline]

Set Max K param accepted: max bit number.

Definition at line 134 of file DTConfigBti.h.

References KCut(), and m_kcut.

Referenced by DTConfigBti().

{ m_kcut=KCut; }
void DTConfigBti::setLH ( int  LH) [inline]

Set K right limit for left traco.

Definition at line 173 of file DTConfigBti.h.

References LH(), and m_lh.

Referenced by DTConfigBti().

{ m_lh=LH; }
void DTConfigBti::setLL ( int  LL) [inline]

Set K left limit for left traco.

Definition at line 170 of file DTConfigBti.h.

References LL(), and m_ll.

Referenced by DTConfigBti().

{ m_ll=LL; }
void DTConfigBti::setLTS ( int  LTS) [inline]

Set LTS.

Definition at line 143 of file DTConfigBti.h.

References LTS(), and m_lts.

Referenced by DTConfigBti().

{ m_lts=LTS; }
void DTConfigBti::setPTMSflag ( int  mask,
int  patt 
) [inline]

Set Pattern mask flag.

Definition at line 164 of file DTConfigBti.h.

References m_pattmask, and BitArray< N >::set().

Referenced by DTConfigBti().

{ m_pattmask.set(patt,mask); }
void DTConfigBti::setRE43 ( int  RE43) [inline]

Definition at line 189 of file DTConfigBti.h.

References m_4re3, and RE43().

Referenced by DTConfigBti().

{ m_4re3=RE43; }
void DTConfigBti::setRH ( int  RH) [inline]

Set K right limit for right traco.

Definition at line 185 of file DTConfigBti.h.

References m_rh, and RH().

Referenced by DTConfigBti().

{ m_rh=RH; }
void DTConfigBti::setRL ( int  RL) [inline]

Set K left limit for right traco.

Definition at line 182 of file DTConfigBti.h.

References m_rl, and RL().

Referenced by DTConfigBti().

{ m_rl=RL; }
void DTConfigBti::setRONflag ( bool  RON) [inline]

Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:

Definition at line 161 of file DTConfigBti.h.

References m_ron.

Referenced by DTConfigBti().

{ m_ron=RON; }
void DTConfigBti::setSET ( int  SET) [inline]

Set SET.

Definition at line 146 of file DTConfigBti.h.

References m_set, and SET().

Referenced by DTConfigBti().

{ m_set=SET; }
void DTConfigBti::setST43 ( int  ST43) [inline]

Set ST and RE parameters for drift velocity.

Definition at line 188 of file DTConfigBti.h.

References m_4st3, and ST43().

Referenced by DTConfigBti().

{ m_4st3=ST43; }
void DTConfigBti::setWENflag ( int  mask,
int  wire 
) [inline]

Set Wire mask flag.

Definition at line 167 of file DTConfigBti.h.

References m_wiremask, and BitArray< N >::set().

Referenced by DTConfigBti().

{ m_wiremask.set(wire-1,mask); }
void DTConfigBti::setXON ( bool  XON) [inline]

Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.

Definition at line 140 of file DTConfigBti.h.

References m_xon, and XON().

Referenced by DTConfigBti().

{ m_xon=XON; }
float DTConfigBti::ST ( ) const [inline]

Max drift time in 12.5 ns steps.

Definition at line 65 of file DTConfigBti.h.

References RE43(), and ST43().

Referenced by DTBtiChip::DTBtiChip(), DTBtiHit::isInsideReg(), DTBtiCard::localDirection(), and DTBtiCard::localPosition().

                          {
     return (float)( 0.75 * ST43() + 0.25 * RE43() ); }
int DTConfigBti::ST43 ( ) const [inline]

ST and RE parameters for drift velocity.

Definition at line 123 of file DTConfigBti.h.

References m_4st3.

Referenced by print(), DTBtiChip::setSnap(), setST43(), and ST().

{ return m_4st3; }
int DTConfigBti::WENflag ( int  wire) const [inline]

Wire mask flag.

Definition at line 102 of file DTConfigBti.h.

References BitArray< N >::element(), and m_wiremask.

Referenced by DTBtiChip::init(), DTBtiChip::init_clock(), and print().

{ return m_wiremask.element(wire-1); }
bool DTConfigBti::XON ( ) const [inline]

X-patterns flag XON: activates tracks passing on the same side of 3 wires.

Definition at line 75 of file DTConfigBti.h.

References m_xon.

Referenced by print(), and setXON().

{ return m_xon; }

Member Data Documentation

int8_t DTConfigBti::m_4re3 [private]

Definition at line 224 of file DTConfigBti.h.

Referenced by RE43(), setDefaults(), and setRE43().

int8_t DTConfigBti::m_4st3 [private]

Definition at line 223 of file DTConfigBti.h.

Referenced by setDefaults(), setST43(), and ST43().

int8_t DTConfigBti::m_ac1 [private]

Definition at line 210 of file DTConfigBti.h.

Referenced by AccPattAC1(), setAccPattAC1(), and setDefaults().

int8_t DTConfigBti::m_ac2 [private]

Definition at line 211 of file DTConfigBti.h.

Referenced by AccPattAC2(), setAccPattAC2(), and setDefaults().

int8_t DTConfigBti::m_ach [private]

Definition at line 212 of file DTConfigBti.h.

Referenced by AccPattACH(), setAccPattACH(), and setDefaults().

int8_t DTConfigBti::m_acl [private]

Definition at line 213 of file DTConfigBti.h.

Referenced by AccPattACL(), setAccPattACL(), and setDefaults().

int8_t DTConfigBti::m_ch [private]

Definition at line 220 of file DTConfigBti.h.

Referenced by CH(), setCH(), and setDefaults().

int8_t DTConfigBti::m_cl [private]

Definition at line 219 of file DTConfigBti.h.

Referenced by CL(), setCL(), and setDefaults().

int8_t DTConfigBti::m_dead [private]

Definition at line 225 of file DTConfigBti.h.

Referenced by DEADpar(), setDEADpar(), and setDefaults().

int8_t DTConfigBti::m_debug [private]

Definition at line 204 of file DTConfigBti.h.

Referenced by debug(), DTConfigBti(), setDebug(), and setDefaults().

int8_t DTConfigBti::m_kacctheta [private]

Definition at line 206 of file DTConfigBti.h.

Referenced by KAccTheta(), setDefaults(), and setKAccTheta().

int8_t DTConfigBti::m_kcut [private]

Definition at line 205 of file DTConfigBti.h.

Referenced by KCut(), setDefaults(), and setKCut().

int8_t DTConfigBti::m_lh [private]

Definition at line 218 of file DTConfigBti.h.

Referenced by LH(), setDefaults(), and setLH().

int8_t DTConfigBti::m_ll [private]

Definition at line 217 of file DTConfigBti.h.

Referenced by LL(), setDefaults(), and setLL().

int8_t DTConfigBti::m_lts [private]

Definition at line 208 of file DTConfigBti.h.

Referenced by LTS(), setDefaults(), and setLTS().

Definition at line 215 of file DTConfigBti.h.

Referenced by PTMSflag(), setDefaults(), and setPTMSflag().

int8_t DTConfigBti::m_rh [private]

Definition at line 222 of file DTConfigBti.h.

Referenced by RH(), setDefaults(), and setRH().

int8_t DTConfigBti::m_rl [private]

Definition at line 221 of file DTConfigBti.h.

Referenced by RL(), setDefaults(), and setRL().

bool DTConfigBti::m_ron [private]

Definition at line 214 of file DTConfigBti.h.

Referenced by RONflag(), setDefaults(), and setRONflag().

int8_t DTConfigBti::m_set [private]

Definition at line 209 of file DTConfigBti.h.

Referenced by SET(), setDefaults(), and setSET().

Definition at line 216 of file DTConfigBti.h.

Referenced by setDefaults(), setWENflag(), and WENflag().

bool DTConfigBti::m_xon [private]

Definition at line 207 of file DTConfigBti.h.

Referenced by setDefaults(), setXON(), and XON().