CMS 3D CMS Logo

DTConfigBti Class Reference

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

#include <L1TriggerConfig/DTTPGConfig/interface/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.
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 setDefaults (const edm::ParameterSet &ps)
 Set default parameters.
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

unsigned short int m_4re3
unsigned short int m_4st3
unsigned short int m_ac1
unsigned short int m_ac2
unsigned short int m_ach
unsigned short int m_acl
unsigned short int m_ch
unsigned short int m_cl
unsigned short int m_dead
unsigned short int m_debug
unsigned short int m_kacctheta
unsigned short int m_kcut
unsigned short int m_lh
unsigned short int m_ll
unsigned short int m_lts
BitArray< 32 > m_pattmask
unsigned short int m_rh
unsigned short int m_rl
bool m_ron
unsigned short int 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

Definition at line 38 of file DTConfigBti.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 36 of file DTConfigBti.cc.

References setDefaults().

00036                                                   { 
00037 
00038   setDefaults(ps);
00039   
00040 }

DTConfigBti::DTConfigBti (  )  [inline]

Empty Constructor.

Definition at line 50 of file DTConfigBti.h.

00050 {;}

DTConfigBti::~DTConfigBti (  ) 

Destructor.

Definition at line 45 of file DTConfigBti.cc.

00045 {}


Member Function Documentation

int DTConfigBti::AccPattAC1 (  )  const [inline]

Acceptance pattern AC1.

Definition at line 81 of file DTConfigBti.h.

References m_ac1.

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

00081 { return m_ac1; }

int DTConfigBti::AccPattAC2 (  )  const [inline]

Acceptance pattern AC2.

Definition at line 84 of file DTConfigBti.h.

References m_ac2.

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

00084 { return m_ac2; }

int DTConfigBti::AccPattACH (  )  const [inline]

Acceptance pattern ACH.

Definition at line 87 of file DTConfigBti.h.

References m_ach.

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

00087 { return m_ach; }

int DTConfigBti::AccPattACL (  )  const [inline]

Acceptance pattern ACL.

Definition at line 90 of file DTConfigBti.h.

References m_acl.

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

00090 { return m_acl; }

int DTConfigBti::CH (  )  const [inline]

K right limit for center traco.

Definition at line 111 of file DTConfigBti.h.

References m_ch.

Referenced by print().

00111 { return m_ch; }

int DTConfigBti::CL (  )  const [inline]

K left limit for center traco.

Definition at line 108 of file DTConfigBti.h.

References m_cl.

Referenced by print().

00108 { return m_cl; }

int DTConfigBti::DEADpar (  )  const [inline]

Wire DEAD time parameter.

Definition at line 124 of file DTConfigBti.h.

References m_dead.

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

00124 { return m_dead;}

int DTConfigBti::debug (  )  const [inline]

Debug flag.

Definition at line 59 of file DTConfigBti.h.

References m_debug.

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

00059 { return m_debug; }

int DTConfigBti::KAccTheta (  )  const [inline]

BTI angular acceptance in theta view.

Definition at line 69 of file DTConfigBti.h.

References m_kacctheta.

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

00069 { return m_kacctheta; }

int DTConfigBti::KCut (  )  const [inline]

Max K param accepted: max bit number.

Definition at line 66 of file DTConfigBti.h.

References m_kcut.

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

00066 { return m_kcut; }

int DTConfigBti::LH (  )  const [inline]

K right limit for left traco.

Definition at line 105 of file DTConfigBti.h.

References m_lh.

Referenced by print().

00105 { return m_lh; }

int DTConfigBti::LL (  )  const [inline]

K left limit for left traco.

Definition at line 102 of file DTConfigBti.h.

References m_ll.

Referenced by print().

00102 { return m_ll; }

int DTConfigBti::LTS (  )  const [inline]

LTS.

Definition at line 75 of file DTConfigBti.h.

References m_lts.

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

00075 { return m_lts; }

void DTConfigBti::print ( void   )  const

Print the setup.

Definition at line 115 of file DTConfigBti.cc.

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

00115                          {
00116   std::cout << "******************************************************************************" << std::endl;
00117   std::cout << "*              DTTrigger configuration : BTI chips                                 *" << std::endl;
00118   std::cout << "******************************************************************************" << std::endl;
00119   std::cout << "*                                                                            *" << std::endl;
00120   std::cout << "Debug flag : " <<  debug() << std::endl;
00121   std::cout << "Max K param accepted : " << KCut() << std::endl; 
00122   std::cout << "BTI angular acceptance in theta view : " << KAccTheta() << std::endl;
00123   std::cout << "Time indep. K equation suppression (XON) : " << XON() << std::endl;
00124   std::cout << "LTS for low trigger suppression : " << LTS() << std::endl;
00125   std::cout << "SET for low trigger suppression : " << SET() << std::endl;
00126   std::cout << "pattern acceptance AC1, AC2, ACH, ACL : " << 
00127         AccPattAC1() << ", " << AccPattAC2() << " , " << AccPattACH() << ", " << AccPattACL() << std::endl;
00128   std::cout << "redundant patterns flag RON : " << RONflag() << std::endl;
00129   std::cout << "pattern masks : "; 
00130   for(int p=0; p<32; p++)
00131         std::cout << PTMSflag(p) << " ";
00132   std::cout << std::endl;
00133  
00134   std::cout << "wire masks : "; 
00135   for(int w=1; w<=9; w++)
00136         std::cout << WENflag(w) << " ";
00137   std::cout << std::endl;
00138 
00139   std::cout << "angular window limits for traco : " << LL() << ", " << LH() << ", " 
00140         << CL() << ", " << CH() << ", " << RL() << ", " << RH() << std::endl;
00141   std::cout << "drift velocity parameter 4ST3 : " << ST43() << std::endl;
00142   std::cout << "drift velocity parameter 4RE3 : " << RE43() << std::endl;  
00143   std::cout << "DEAD parameter : " << DEADpar() << std::endl;
00144 
00145   std::cout << "******************************************************************************" << std::endl;
00146 
00147 }

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

Pattern mask flag.

Definition at line 96 of file DTConfigBti.h.

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

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

00096 { return m_pattmask.element(patt); }

int DTConfigBti::RE43 (  )  const [inline]

Definition at line 121 of file DTConfigBti.h.

References m_4re3.

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

00121 { return m_4re3; }

int DTConfigBti::RH (  )  const [inline]

K right limit for right traco.

Definition at line 117 of file DTConfigBti.h.

References m_rh.

Referenced by print().

00117 { return m_rh; }

int DTConfigBti::RL (  )  const [inline]

K left limit for right traco.

Definition at line 114 of file DTConfigBti.h.

References m_rl.

Referenced by print().

00114 { return m_rl; }

bool DTConfigBti::RONflag (  )  const [inline]

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

Definition at line 93 of file DTConfigBti.h.

References m_ron.

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

00093 { return m_ron; }

int DTConfigBti::SET (  )  const [inline]

SET.

Definition at line 78 of file DTConfigBti.h.

References m_set.

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

00078 { return m_set; }

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

Set default parameters.

Definition at line 52 of file DTConfigBti.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), 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, p, BitArray< N >::set(), and w.

Referenced by DTConfigBti().

00052                                                   {
00053 
00054   // Debug flag 
00055   m_debug  = ps.getUntrackedParameter<int>("Debug");
00056 
00057   // Max K param accepted  
00058   m_kcut = ps.getParameter<int>("KMAX");
00059  
00060   // BTI angular acceptance in theta view
00061   m_kacctheta = ps.getParameter<int>("KACCTHETA");
00062 
00063   // Time indep. K equation suppression (XON) 
00064   m_xon = ps.getParameter<bool>("XON");
00065   // LTS and SET for low trigger suppression 
00066   m_lts = ps.getParameter<int>("LTS");
00067   m_set = ps.getParameter<int>("SET");
00068   // pattern acceptance AC1, AC2, ACH, ACL
00069   m_ac1 = ps.getParameter<int>("AC1");
00070   m_ac2 = ps.getParameter<int>("AC2");
00071   m_ach = ps.getParameter<int>("ACH");
00072   m_acl = ps.getParameter<int>("ACL");
00073   // redundant patterns flag RON
00074   m_ron = ps.getParameter<bool>("RON");
00075 
00076   // pattern masks
00077   for(int p=0; p<32; p++)
00078   {
00079         std::string label = "PTMS";
00080         char patt0 = (p/10)+'0';
00081         char patt1 = (p%10)+'0';
00082         if ( patt0 != '0' )
00083                 label = label + patt0;
00084         label = label + patt1;
00085         
00086         m_pattmask.set(p,ps.getParameter<int>(label));
00087   }
00088 
00089   // wire masks
00090   for(int w=0; w<9; w++)
00091   {
00092         std::string label = "WEN";
00093         char wname = w+'0';
00094         label = label + wname;
00095         
00096         m_wiremask.set(w,ps.getParameter<int>(label));
00097   }
00098 
00099   // angular window limits for traco
00100   m_ll = ps.getParameter<int>("LL");
00101   m_lh = ps.getParameter<int>("LH");
00102   m_cl = ps.getParameter<int>("CL");
00103   m_ch = ps.getParameter<int>("CH");
00104   m_rl = ps.getParameter<int>("RL");
00105   m_rh = ps.getParameter<int>("RH");
00106   // drift velocity parameter 4ST3
00107   m_4st3 = ps.getParameter<int>("ST43");
00108   // drift velocity parameter 4RE3
00109   m_4re3 = ps.getParameter<int>("RE43");
00110   // DEAD parameter
00111   m_dead = ps.getParameter<int>("DEAD");
00112 }

float DTConfigBti::ST (  )  const [inline]

Max drift time in 12.5 ns steps.

Definition at line 62 of file DTConfigBti.h.

References RE43(), and ST43().

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

00062                           {
00063      return (float)( 0.75 * ST43() + 0.25 * RE43() ); }

int DTConfigBti::ST43 (  )  const [inline]

ST and RE parameters for drift velocity.

Definition at line 120 of file DTConfigBti.h.

References m_4st3.

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

00120 { return m_4st3; }

int DTConfigBti::WENflag ( int  wire  )  const [inline]

Wire mask flag.

Definition at line 99 of file DTConfigBti.h.

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

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

00099 { 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 72 of file DTConfigBti.h.

References m_xon.

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

00072 { return m_xon; }


Member Data Documentation

unsigned short int DTConfigBti::m_4re3 [private]

Definition at line 156 of file DTConfigBti.h.

Referenced by RE43(), and setDefaults().

unsigned short int DTConfigBti::m_4st3 [private]

Definition at line 155 of file DTConfigBti.h.

Referenced by setDefaults(), and ST43().

unsigned short int DTConfigBti::m_ac1 [private]

Definition at line 142 of file DTConfigBti.h.

Referenced by AccPattAC1(), and setDefaults().

unsigned short int DTConfigBti::m_ac2 [private]

Definition at line 143 of file DTConfigBti.h.

Referenced by AccPattAC2(), and setDefaults().

unsigned short int DTConfigBti::m_ach [private]

Definition at line 144 of file DTConfigBti.h.

Referenced by AccPattACH(), and setDefaults().

unsigned short int DTConfigBti::m_acl [private]

Definition at line 145 of file DTConfigBti.h.

Referenced by AccPattACL(), and setDefaults().

unsigned short int DTConfigBti::m_ch [private]

Definition at line 152 of file DTConfigBti.h.

Referenced by CH(), and setDefaults().

unsigned short int DTConfigBti::m_cl [private]

Definition at line 151 of file DTConfigBti.h.

Referenced by CL(), and setDefaults().

unsigned short int DTConfigBti::m_dead [private]

Definition at line 157 of file DTConfigBti.h.

Referenced by DEADpar(), and setDefaults().

unsigned short int DTConfigBti::m_debug [private]

Definition at line 136 of file DTConfigBti.h.

Referenced by debug(), and setDefaults().

unsigned short int DTConfigBti::m_kacctheta [private]

Definition at line 138 of file DTConfigBti.h.

Referenced by KAccTheta(), and setDefaults().

unsigned short int DTConfigBti::m_kcut [private]

Definition at line 137 of file DTConfigBti.h.

Referenced by KCut(), and setDefaults().

unsigned short int DTConfigBti::m_lh [private]

Definition at line 150 of file DTConfigBti.h.

Referenced by LH(), and setDefaults().

unsigned short int DTConfigBti::m_ll [private]

Definition at line 149 of file DTConfigBti.h.

Referenced by LL(), and setDefaults().

unsigned short int DTConfigBti::m_lts [private]

Definition at line 140 of file DTConfigBti.h.

Referenced by LTS(), and setDefaults().

BitArray<32> DTConfigBti::m_pattmask [private]

Definition at line 147 of file DTConfigBti.h.

Referenced by PTMSflag(), and setDefaults().

unsigned short int DTConfigBti::m_rh [private]

Definition at line 154 of file DTConfigBti.h.

Referenced by RH(), and setDefaults().

unsigned short int DTConfigBti::m_rl [private]

Definition at line 153 of file DTConfigBti.h.

Referenced by RL(), and setDefaults().

bool DTConfigBti::m_ron [private]

Definition at line 146 of file DTConfigBti.h.

Referenced by RONflag(), and setDefaults().

unsigned short int DTConfigBti::m_set [private]

Definition at line 141 of file DTConfigBti.h.

Referenced by SET(), and setDefaults().

BitArray<9> DTConfigBti::m_wiremask [private]

Definition at line 148 of file DTConfigBti.h.

Referenced by setDefaults(), and WENflag().

bool DTConfigBti::m_xon [private]

Definition at line 139 of file DTConfigBti.h.

Referenced by setDefaults(), and XON().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:48 2009 for CMSSW by  doxygen 1.5.4