CMS 3D CMS Logo

DTConfigTraco Class Reference

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

#include <L1TriggerConfig/DTTPGConfig/interface/DTConfigTraco.h>

Inheritance diagram for DTConfigTraco:

DTConfig

List of all members.

Public Member Functions

int BendingAngleCut () const
 Bending angle cut for all stations and triggers : KPRGCOM.
int BTIC () const
 BTIC traco parameter: must be equal to Btis ST parameter.
int DD () const
 DD traco parameter: this is fixed.
int debug () const
 Debug flag.
 DTConfigTraco ()
 Constructor.
 DTConfigTraco (const edm::ParameterSet &ps)
 Constructor.
int IBTIOFF () const
 IBTIOFF traco parameter.
int KRAD () const
 KRAD traco parameter.
int LVALIDIFH () const
 Flag for Low validation parameter.
int prefHtrig (int i) const
 Preference to HTRIG on first/second tracks: F(S)HTPRF.
int prefInner (int i) const
 Preference to inner on first/second tracks: F(S)SLMSK.
void print () const
 Print the setup.
void setDefaults (const edm::ParameterSet &ps)
 Set default parameters.
int singleHflag (int i) const
 Single HTRIG enabling on first/second tracks F(S)HTMSK.
int singleLenab (int i) const
 Single LTRIG accept enabling on first/second tracks LTF.
int singleLflag (int i) const
 Single LTRIG enabling on first/second tracks: F(S)LTMSK.
int sortKascend (int i) const
 Ascend. order for K sorting first/second tracks: F(S)HISM.
int TcBxLts () const
 Suppr. of LTRIG in 4 BX before HTRIG: LTS.
int TcKToll (int i) const
 K tollerance for correlation in TRACO: F(S)PRGCOMP.
int TcReuse (int i) const
 Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
int usedBti (int bti) const
 Connected bti in traco: bti mask.
 ~DTConfigTraco ()
 Destructor.

Static Public Attributes

static const int NMAXCAND
 Costant: maximum number of TRACO output candidates to TS.
static const int RESOLPSI = 512
 Costants: esolution for psi and DeltaPsiR (phi_B).
static const int RESOLPSIR = 4096
 Costant: resulution for psiR (phi).

Private Attributes

unsigned short int m_btic
unsigned short int m_dd
unsigned short int m_debug
unsigned short int m_fhism
unsigned short int m_fhtmsk
unsigned short int m_fhtprf
unsigned short int m_fltmsk
unsigned short int m_fprgcomp
unsigned short int m_fslmsk
unsigned short int m_ibtioff
unsigned short int m_kprgcom
unsigned short int m_krad
unsigned short int m_ltf
unsigned short int m_lts
unsigned short int m_lvalidifh
unsigned short int m_reusei
unsigned short int m_reuseo
unsigned short int m_shism
unsigned short int m_shtmsk
unsigned short int m_shtprf
unsigned short int m_sltmsk
unsigned short int m_sprgcomp
unsigned short int m_sslmsk
BitArray< 16 > m_trgenb


Detailed Description

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

Author:
S. Vanini

Definition at line 39 of file DTConfigTraco.h.


Constructor & Destructor Documentation

DTConfigTraco::DTConfigTraco ( const edm::ParameterSet ps  ) 

Constructor.

Definition at line 36 of file DTConfigTraco.cc.

References setDefaults().

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

DTConfigTraco::DTConfigTraco (  )  [inline]

Constructor.

Definition at line 55 of file DTConfigTraco.h.

00055 {};

DTConfigTraco::~DTConfigTraco (  ) 

Destructor.

Definition at line 45 of file DTConfigTraco.cc.

00045 {}


Member Function Documentation

int DTConfigTraco::BendingAngleCut (  )  const [inline]

Bending angle cut for all stations and triggers : KPRGCOM.

Definition at line 146 of file DTConfigTraco.h.

References m_kprgcom.

Referenced by DTTracoChip::insideAngWindow(), and print().

00146 { return m_kprgcom; }

int DTConfigTraco::BTIC (  )  const [inline]

BTIC traco parameter: must be equal to Btis ST parameter.

Definition at line 71 of file DTConfigTraco.h.

References m_btic.

Referenced by DTTracoChip::DTTracoChip(), print(), and DTTracoChip::setTracoAcceptances().

00071 { return m_btic;}

int DTConfigTraco::DD (  )  const [inline]

DD traco parameter: this is fixed.

Definition at line 74 of file DTConfigTraco.h.

References m_dd.

Referenced by print().

00074 { return m_dd;}

int DTConfigTraco::debug (  )  const [inline]

Debug flag.

Definition at line 65 of file DTConfigTraco.h.

References m_debug.

Referenced by DTTracoChip::add_btiT(), DTTracoChip::bestCand(), print(), DTTracoChip::run(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

00065 { return m_debug; }

int DTConfigTraco::IBTIOFF (  )  const [inline]

IBTIOFF traco parameter.

Definition at line 143 of file DTConfigTraco.h.

References m_ibtioff.

Referenced by print().

00143 { return m_ibtioff; }

int DTConfigTraco::KRAD (  )  const [inline]

KRAD traco parameter.

Definition at line 68 of file DTConfigTraco.h.

References m_krad.

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

00068 { return m_krad;}

int DTConfigTraco::LVALIDIFH (  )  const [inline]

Flag for Low validation parameter.

Definition at line 149 of file DTConfigTraco.h.

References m_lvalidifh.

Referenced by print(), and DTTracoChip::storeUncorr().

00149 { return m_lvalidifh;}

int DTConfigTraco::prefHtrig ( int  i  )  const [inline]

Preference to HTRIG on first/second tracks: F(S)HTPRF.

Definition at line 109 of file DTConfigTraco.h.

References m_fhtprf, and m_shtprf.

Referenced by DTTracoChip::bestCand(), and print().

00109                                     {
00110     if(i==0)
00111       return m_fhtprf;
00112     else
00113       return m_shtprf;
00114   }

int DTConfigTraco::prefInner ( int  i  )  const [inline]

Preference to inner on first/second tracks: F(S)SLMSK.

Definition at line 101 of file DTConfigTraco.h.

References m_fslmsk, and m_sslmsk.

Referenced by print(), DTTracoChip::setPV(), and DTTracoChip::storeUncorr().

00101                                      {
00102     if(i==0)
00103       return m_fslmsk;
00104     else
00105       return m_sslmsk;
00106   }

void DTConfigTraco::print ( void   )  const

Print the setup.

Definition at line 124 of file DTConfigTraco.cc.

References b, BendingAngleCut(), BTIC(), GenMuonPlsPt100GeV_cfg::cout, DD(), debug(), lat::endl(), IBTIOFF(), KRAD(), LVALIDIFH(), prefHtrig(), prefInner(), singleHflag(), singleLenab(), singleLflag(), sortKascend(), TcBxLts(), TcKToll(), TcReuse(), and usedBti().

00124                            {
00125   std::cout << "******************************************************************************" << std::endl;
00126   std::cout << "*              DTTrigger configuration : TRACO chips                                 *" << std::endl;
00127   std::cout << "******************************************************************************" << std::endl;
00128   std::cout << "*                                                                            *" << std::endl;
00129   std::cout << "Debug flag : " << debug()  << std::endl;
00130   std::cout << "KRAD traco parameter : " << KRAD() << std::endl;
00131   std::cout << "BTIC traco parameter : " << BTIC() << std::endl;
00132   std::cout << "DD traco parameter : " << DD() << std::endl;
00133   std::cout << "REUSEI, REUSEO : " << TcReuse(0) << ", " << TcReuse(1) << std::endl;
00134   std::cout << "FHTMSK, SHTMSK : " << singleHflag(0) << ", " << singleHflag(1) << std::endl;
00135   std::cout << "FLTMSK, SLTMSK: " << singleLflag(0) << ", " << singleLflag(1) << std::endl;
00136   std::cout << "FSLMSK, SSLMSK : " << prefInner(0) << ", " << prefInner(1) << std::endl;
00137   std::cout << "FHTPRF, SHTPRF : " << prefHtrig(0) << ", " << prefHtrig(1) << std::endl;
00138   std::cout << "FHISM, SHISM : " << sortKascend(0) << ", " << sortKascend(1) << std::endl;
00139   std::cout << "FPRGCOMP, SPRGCOMP : " << TcKToll(0) << ", " << TcKToll(1) << std::endl;
00140   std::cout << "LTS : " << TcBxLts() << std::endl;
00141   std::cout << "LTF : " << singleLenab(0) << std::endl;
00142   std::cout << "Connected bti in traco - bti mask : ";
00143   for(int b=1; b<=16; b++)
00144         std::cout << usedBti(b) << " "; 
00145   std::cout << std::endl;
00146   std::cout << "IBTIOFF : " << IBTIOFF() << std::endl;
00147   std::cout << "bending angle cut : " << BendingAngleCut() << std::endl;
00148   std::cout << "flag for Low validation parameter : " << LVALIDIFH() << std::endl;
00149   std::cout << "******************************************************************************" << std::endl;
00150 
00151 }

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

Set default parameters.

Definition at line 52 of file DTConfigTraco.cc.

References b, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), label, m_btic, m_dd, m_debug, m_fhism, m_fhtmsk, m_fhtprf, m_fltmsk, m_fprgcomp, m_fslmsk, m_ibtioff, m_kprgcom, m_krad, m_ltf, m_lts, m_lvalidifh, m_reusei, m_reuseo, m_shism, m_shtmsk, m_shtprf, m_sltmsk, m_sprgcomp, m_sslmsk, m_trgenb, p1, and BitArray< N >::set().

Referenced by DTConfigTraco().

00052                                                     {
00053 
00054   // Debug flag 
00055   m_debug = ps.getUntrackedParameter<int>("Debug");
00056 
00057   // KRAD traco parameter
00058   m_krad = ps.getParameter<int>("KRAD");
00059 
00060   // BTIC traco parameter
00061   m_btic = ps.getParameter<int>("BTIC");
00062  
00063   // DD traco parameter: this is fixed
00064   m_dd = ps.getParameter<int>("DD");
00065 
00066   // recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO
00067   m_reusei = ps.getParameter<int>("REUSEI");
00068   m_reuseo = ps.getParameter<int>("REUSEO");
00069 
00070   // single HTRIG enabling on first/second tracks F(S)HTMSK
00071   m_fhtmsk = ps.getParameter<int>("FHTMSK");
00072   m_shtmsk = ps.getParameter<int>("SHTMSK");
00073 
00074   // single LTRIG enabling on first/second tracks: F(S)LTMSK
00075   m_fltmsk = ps.getParameter<int>("FLTMSK");
00076   m_sltmsk = ps.getParameter<int>("SLTMSK");
00077 
00078   // preference to inner on first/second tracks: F(S)SLMSK
00079   m_fslmsk = ps.getParameter<int>("FSLMSK");
00080   m_sslmsk = ps.getParameter<int>("SSLMSK");
00081 
00082   // preference to HTRIG on first/second tracks: F(S)HTPRF
00083   m_fhtprf = ps.getParameter<int>("FHTPRF");
00084   m_shtprf = ps.getParameter<int>("SHTPRF");
00085 
00086   // ascend. order for K sorting first/second tracks: F(S)HISM
00087   m_fhism = ps.getParameter<int>("FHISM");
00088   m_shism = ps.getParameter<int>("SHISM");
00089 
00090   // K tollerance for correlation in TRACO: F(S)PRGCOMP
00091   m_fprgcomp = ps.getParameter<int>("FPRGCOMP");
00092   m_sprgcomp = ps.getParameter<int>("SPRGCOMP");
00093 
00094   // suppr. of LTRIG in 4 BX before HTRIG: LTS
00095   m_lts = ps.getParameter<int>("LTS");
00096 
00097   // single LTRIG accept enabling on first/second tracks LTF
00098   m_ltf = ps.getParameter<int>("LTF");
00099 
00100   // Connected bti in traco: bti mask
00101   for(int b=0; b<16; b++)
00102   {
00103         std::string label = "TRGENB";
00104         char p0 = (b/10)+'0';
00105         char p1 = (b%10)+'0';
00106         if ( p0 != '0' )
00107                 label = label + p0;
00108         label = label + p1;
00109         
00110         m_trgenb.set(b,ps.getParameter<int>(label));
00111   }
00112 
00113   // IBTIOFF traco parameter
00114   m_ibtioff = ps.getParameter<int>("IBTIOFF");
00115 
00116   // bending angle cut for all stations and triggers : KPRGCOM
00117   m_kprgcom = ps.getParameter<int>("KPRGCOM");
00118  
00119   // flag for Low validation parameter
00120   m_lvalidifh =  ps.getParameter<int>("LVALIDIFH");
00121 }

int DTConfigTraco::singleHflag ( int  i  )  const [inline]

Single HTRIG enabling on first/second tracks F(S)HTMSK.

Definition at line 85 of file DTConfigTraco.h.

References m_fhtmsk, and m_shtmsk.

Referenced by print().

00085                                       {
00086     if(i==0)
00087       return m_fhtmsk;
00088     else
00089       return m_shtmsk;
00090   }

int DTConfigTraco::singleLenab ( int  i  )  const [inline]

Single LTRIG accept enabling on first/second tracks LTF.

Definition at line 137 of file DTConfigTraco.h.

References m_ltf.

Referenced by print(), and DTTracoChip::storeUncorr().

00137 { return m_ltf; }

int DTConfigTraco::singleLflag ( int  i  )  const [inline]

Single LTRIG enabling on first/second tracks: F(S)LTMSK.

Definition at line 93 of file DTConfigTraco.h.

References m_fltmsk, and m_sltmsk.

Referenced by print(), and DTTracoChip::storeUncorr().

00093                                        {
00094     if(i==0)
00095       return m_fltmsk;
00096     else
00097       return m_sltmsk;
00098   } 

int DTConfigTraco::sortKascend ( int  i  )  const [inline]

Ascend. order for K sorting first/second tracks: F(S)HISM.

Definition at line 117 of file DTConfigTraco.h.

References m_fhism, and m_shism.

Referenced by DTTracoChip::bestCand(), and print().

00117                                       {
00118     if(i==0)
00119       return m_fhism;
00120     else
00121       return m_shism;
00122   }

int DTConfigTraco::TcBxLts (  )  const [inline]

Suppr. of LTRIG in 4 BX before HTRIG: LTS.

Definition at line 134 of file DTConfigTraco.h.

References m_lts.

Referenced by print(), and DTTracoChip::storeCorr().

00134 { return m_lts; }

int DTConfigTraco::TcKToll ( int  i  )  const [inline]

K tollerance for correlation in TRACO: F(S)PRGCOMP.

Definition at line 126 of file DTConfigTraco.h.

References m_fprgcomp, and m_sprgcomp.

Referenced by print(), and DTTracoChip::storeCorr().

00126                                    {
00127     if(i==0)
00128       return m_fprgcomp;
00129     else
00130       return m_sprgcomp;
00131   }

int DTConfigTraco::TcReuse ( int  i  )  const [inline]

Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.

Definition at line 77 of file DTConfigTraco.h.

References m_reusei, and m_reuseo.

Referenced by print(), and DTTracoChip::storeUncorr().

00077                                    {
00078     if(i==0)
00079       return m_reusei;
00080     else
00081       return m_reuseo;
00082   }

int DTConfigTraco::usedBti ( int  bti  )  const [inline]

Connected bti in traco: bti mask.

Definition at line 140 of file DTConfigTraco.h.

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

Referenced by print().

00140 { return m_trgenb.element(bti-1); }


Member Data Documentation

unsigned short int DTConfigTraco::m_btic [private]

Definition at line 163 of file DTConfigTraco.h.

Referenced by BTIC(), and setDefaults().

unsigned short int DTConfigTraco::m_dd [private]

Definition at line 164 of file DTConfigTraco.h.

Referenced by DD(), and setDefaults().

unsigned short int DTConfigTraco::m_debug [private]

Definition at line 161 of file DTConfigTraco.h.

Referenced by debug(), and setDefaults().

unsigned short int DTConfigTraco::m_fhism [private]

Definition at line 175 of file DTConfigTraco.h.

Referenced by setDefaults(), and sortKascend().

unsigned short int DTConfigTraco::m_fhtmsk [private]

Definition at line 167 of file DTConfigTraco.h.

Referenced by setDefaults(), and singleHflag().

unsigned short int DTConfigTraco::m_fhtprf [private]

Definition at line 173 of file DTConfigTraco.h.

Referenced by prefHtrig(), and setDefaults().

unsigned short int DTConfigTraco::m_fltmsk [private]

Definition at line 169 of file DTConfigTraco.h.

Referenced by setDefaults(), and singleLflag().

unsigned short int DTConfigTraco::m_fprgcomp [private]

Definition at line 177 of file DTConfigTraco.h.

Referenced by setDefaults(), and TcKToll().

unsigned short int DTConfigTraco::m_fslmsk [private]

Definition at line 171 of file DTConfigTraco.h.

Referenced by prefInner(), and setDefaults().

unsigned short int DTConfigTraco::m_ibtioff [private]

Definition at line 182 of file DTConfigTraco.h.

Referenced by IBTIOFF(), and setDefaults().

unsigned short int DTConfigTraco::m_kprgcom [private]

Definition at line 183 of file DTConfigTraco.h.

Referenced by BendingAngleCut(), and setDefaults().

unsigned short int DTConfigTraco::m_krad [private]

Definition at line 162 of file DTConfigTraco.h.

Referenced by KRAD(), and setDefaults().

unsigned short int DTConfigTraco::m_ltf [private]

Definition at line 180 of file DTConfigTraco.h.

Referenced by setDefaults(), and singleLenab().

unsigned short int DTConfigTraco::m_lts [private]

Definition at line 179 of file DTConfigTraco.h.

Referenced by setDefaults(), and TcBxLts().

unsigned short int DTConfigTraco::m_lvalidifh [private]

Definition at line 184 of file DTConfigTraco.h.

Referenced by LVALIDIFH(), and setDefaults().

unsigned short int DTConfigTraco::m_reusei [private]

Definition at line 165 of file DTConfigTraco.h.

Referenced by setDefaults(), and TcReuse().

unsigned short int DTConfigTraco::m_reuseo [private]

Definition at line 166 of file DTConfigTraco.h.

Referenced by setDefaults(), and TcReuse().

unsigned short int DTConfigTraco::m_shism [private]

Definition at line 176 of file DTConfigTraco.h.

Referenced by setDefaults(), and sortKascend().

unsigned short int DTConfigTraco::m_shtmsk [private]

Definition at line 168 of file DTConfigTraco.h.

Referenced by setDefaults(), and singleHflag().

unsigned short int DTConfigTraco::m_shtprf [private]

Definition at line 174 of file DTConfigTraco.h.

Referenced by prefHtrig(), and setDefaults().

unsigned short int DTConfigTraco::m_sltmsk [private]

Definition at line 170 of file DTConfigTraco.h.

Referenced by setDefaults(), and singleLflag().

unsigned short int DTConfigTraco::m_sprgcomp [private]

Definition at line 178 of file DTConfigTraco.h.

Referenced by setDefaults(), and TcKToll().

unsigned short int DTConfigTraco::m_sslmsk [private]

Definition at line 172 of file DTConfigTraco.h.

Referenced by prefInner(), and setDefaults().

BitArray<16> DTConfigTraco::m_trgenb [private]

Definition at line 181 of file DTConfigTraco.h.

Referenced by setDefaults(), and usedBti().

const int DTConfigTraco::NMAXCAND [static]

Costant: maximum number of TRACO output candidates to TS.

Definition at line 48 of file DTConfigTraco.h.

const int DTConfigTraco::RESOLPSI = 512 [static]

Costants: esolution for psi and DeltaPsiR (phi_B).

Definition at line 44 of file DTConfigTraco.h.

Referenced by DTTracoChip::calculateAngles(), and CSCTFDTReceiver::process().

const int DTConfigTraco::RESOLPSIR = 4096 [static]

Costant: resulution for psiR (phi).

Definition at line 46 of file DTConfigTraco.h.

Referenced by DTTracoChip::calculateAngles(), and CSCTFDTReceiver::process().


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