CMS 3D CMS Logo

DTConfigTSPhi Class Reference

Configurable parameters and constants for Level-1 Muon DT Trigger - TS Phi. More...

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

Inheritance diagram for DTConfigTSPhi:

DTConfig

List of all members.

Public Member Functions

bool debug () const
 Return the debug flag.
 DTConfigTSPhi ()
 Constructor.
 DTConfigTSPhi (const edm::ParameterSet &ps)
 Constructor.
void print () const
 Print the setup.
bool TsmCorrEna (int i) const
 Enable Correlation checking in TSM for sort1/2.
bool TsmCorrEnaCarry () const
 Enable Correlation checking in TSM for carry.
int TsmGetCarryFlag () const
 Handling of second track (carry) in case of pile-up, in TSM.
bool TsmGhost1Corr () const
 Correlated ghost 1 suppression option in TSM.
int TsmGhost1Flag () const
 Ghost 1 suppression option in TSM.
bool TsmGhost2Corr () const
 Correlated ghost 2 suppression option in TSM.
int TsmGhost2Flag () const
 Ghost 2 suppression option in TSM.
bool TsmHtrigEna (int i) const
 Enable Htrig checking in TSM for sort1/2.
bool TsmHtrigEnaCarry () const
 Enable Htrig checking in TSM for carry.
bool TsmInOutEna (int i) const
 Enable Inner SL checking in TSM for sort1/2.
bool TsmInOutEnaCarry () const
 Enable Inner SL checking in TSM for carry.
int TsmMasking (int i) const
 Order of quality bits in TSM for sort1/2.
BitArray< 8 > TsmStatus () const
 TSM status.
bool TssCorrEna (int i) const
 Enable Correlation checking in TSS for sort1/2.
bool TssCorrEnaCarry () const
 Enable Correlation checking in TSS for carry.
bool TssGhost1Corr () const
 Correlated ghost 1 suppression option in TSS.
int TssGhost1Flag () const
 Ghost 1 suppression option in TSS.
bool TssGhost2Corr () const
 Correlated ghost 2 suppression option in TSS.
int TssGhost2Flag () const
 Ghost 2 suppression option in TSS.
bool TssHtrigEna (int i) const
 Enable Htrig checking in TSS for sort1/2.
bool TssHtrigEnaCarry () const
 Enable Htrig checking in TSS for carry.
bool TssInOutEna (int i) const
 Enable Inner SL checking in TSS for sort1/2.
bool TssInOutEnaCarry () const
 Enable Inner SL checking in TSS for carry.
int TSSinTSMD (int stat, int sect)
 Return the max nb. of TSSs in input to a single TSMD (called ONLY in back-up mode).
int TssMasking (int i) const
 Order of quality bits in TSS for sort1/2.
bool usedTraco (int i) const
 Enabled TRACOs in TS.
 ~DTConfigTSPhi ()
 Destructor.

Static Public Attributes

static const int default_gs = 1
 Constant: default Ghost Suppression Option (1/2) parameter;.
static const int default_hsp = 1
 Constant: default handling of 2nd track parameter;.
static const int default_tsmsk = 312
 Constant: default TS mask parameter;.
static const int default_tsmword = 255
 Constant: default tsmword parameter;.
static const int NTSMD = 2
 Constant: number of TSMD.
static const int NTSSTSM = 7
 Constant: maximum number of TSS in input to the TSM.
static const int NTSSTSMD = 3
 Constant: maximum number of TSS in input to a single TSMD.

Private Member Functions

bool checkMask (int)
 Check mask correctness.
void setDefaults (const edm::ParameterSet &ps)
 Load pset values into class variables.

Private Attributes

bool m_debug
unsigned short int m_ntsstsmd
bool m_tsmcce [3]
bool m_tsmcgs1
bool m_tsmcgs2
unsigned short int m_tsmgs1
unsigned short int m_tsmgs2
unsigned short int m_tsmhsp
bool m_tsmhte [3]
unsigned short int m_tsmmsk [2]
bool m_tsmnoe [3]
BitArray< 8 > m_tsmword
bool m_tsscce [3]
bool m_tsscgs1
bool m_tsscgs2
unsigned short int m_tssgs1
unsigned short int m_tssgs2
bool m_tsshte [3]
unsigned short int m_tssmsk [2]
bool m_tssnoe [3]
BitArray< 24 > m_tstren


Detailed Description

Configurable parameters and constants for Level-1 Muon DT Trigger - TS Phi.

Author:
C. Battilana

Definition at line 37 of file DTConfigTSPhi.h.


Constructor & Destructor Documentation

DTConfigTSPhi::DTConfigTSPhi ( const edm::ParameterSet ps  ) 

Constructor.

Definition at line 31 of file DTConfigTSPhi.cc.

References debug(), print(), and setDefaults().

00031                                                       { 
00032 
00033   setDefaults(ps);
00034   if (debug()) print();
00035 
00036 }

DTConfigTSPhi::DTConfigTSPhi (  )  [inline]

Constructor.

Definition at line 66 of file DTConfigTSPhi.h.

00066 {};

DTConfigTSPhi::~DTConfigTSPhi (  ) 

Destructor.

Definition at line 41 of file DTConfigTSPhi.cc.

00041 {}


Member Function Documentation

bool DTConfigTSPhi::checkMask ( int  msk  )  [private]

Check mask correctness.

Definition at line 290 of file DTConfigTSPhi.cc.

References i.

Referenced by setDefaults().

00290                                {
00291   
00292   bool hasone = false;
00293   bool hastwo = false;
00294   bool hasthree = false;
00295   for(int i=0;i<3;i++){
00296     int mynum = msk%10;
00297     switch (mynum){
00298     case 1:
00299       hasone = true;
00300       break;
00301     case 2:
00302       hastwo = true;
00303       break;
00304     case 3:
00305       hasthree =true;
00306       break;
00307     }
00308     msk /= 10;
00309   }
00310   if (hasone==true && hastwo==true && hasthree==true) return true;
00311   return false;
00312 
00313 }

bool DTConfigTSPhi::debug (  )  const [inline]

Return the debug flag.

Definition at line 72 of file DTConfigTSPhi.h.

References m_debug.

Referenced by DTConfigTSPhi(), print(), and DTTSPhi::runTSPhi().

00072 { return m_debug; }

void DTConfigTSPhi::print ( void   )  const

Print the setup.

Definition at line 256 of file DTConfigTSPhi.cc.

References GenMuonPlsPt100GeV_cfg::cout, debug(), lat::endl(), i, BitArray< N >::print(), TsmCorrEna(), TsmCorrEnaCarry(), TsmGetCarryFlag(), TsmGhost1Corr(), TsmGhost1Flag(), TsmGhost2Corr(), TsmGhost2Flag(), TsmHtrigEna(), TsmHtrigEnaCarry(), TsmInOutEna(), TsmInOutEnaCarry(), TsmMasking(), TsmStatus(), TssCorrEna(), TssCorrEnaCarry(), TssGhost1Corr(), TssGhost1Flag(), TssGhost2Corr(), TssGhost2Flag(), TssHtrigEna(), TssHtrigEnaCarry(), TssInOutEna(), TssInOutEnaCarry(), TssMasking(), and usedTraco().

Referenced by DTConfigTSPhi().

00256                            {
00257 
00258   std::cout << "******************************************************************************" << std::endl;
00259   std::cout << "*              DTTrigger configuration : TSPhi chips                         *" << std::endl;
00260   std::cout << "******************************************************************************" << std::endl << std::endl;
00261   std::cout << "Debug flag : " <<  debug() << std::endl;
00262   std::cout << "               TSS Parameters:" << std::endl;
00263   std::cout <<  "TSSMSK 1/2:" << TssMasking(0) << " " <<  TssMasking(1) << std::endl;
00264   std::cout << "TSSHTE 1/2/carry :" << TssHtrigEna(0) << " " << TssHtrigEna(1) << " " << TssHtrigEnaCarry() << std::endl;
00265   std::cout << "TSSNOE 1/2/carry :" << TssInOutEna(0) << " " << TssInOutEna(1) << " " << TssInOutEnaCarry() << std::endl;
00266   std::cout << "TSSCCE 1/2/carry :" << TssCorrEna(0)  << " " << TssCorrEna(1)  << " " << TssCorrEnaCarry()  << std::endl;
00267   std::cout << "TSSGS 1/2:" << TssGhost1Flag() << " " << TssGhost2Flag() << std::endl;
00268   std::cout << "TSSCGS 1/2:" << TssGhost1Corr() << " " << TssGhost2Corr() << std::endl;
00269   std::cout << "               TSM Parameters:" << std::endl;
00270   std::cout << "TSMMSK 1/2:" << TsmMasking(0) << " " <<  TsmMasking(1) << std::endl;
00271   std::cout << "TSMHTE 1/2/carry :" << TsmHtrigEna(0) << " " << TsmHtrigEna(1) << " " << TsmHtrigEnaCarry() << std::endl;
00272   std::cout << "TSMNOE 1/2/carry :" << TsmInOutEna(0) << " " << TsmInOutEna(1) << " " << TsmInOutEnaCarry() << std::endl;
00273   std::cout << "TSMCCE 1/2/carry :" << TsmCorrEna(0)  << " " << TsmCorrEna(1)  << " " << TsmCorrEnaCarry()  << std::endl;
00274   std::cout << "TSMGS 1/2:" <<  TsmGhost1Flag() << " " << TsmGhost2Flag() << std::endl;
00275   std::cout << "TSMCGS 1/2:" <<  TsmGhost1Corr() << " " << TsmGhost2Corr() << std::endl;
00276   std::cout << "TSMHSP :" << TsmGetCarryFlag() << std::endl;
00277   std::cout << "TSTREN[i] :";
00278   for (int i=1;i<25;i++) std::cout << usedTraco(i) << " ";
00279   std::cout << std::endl;
00280   std::cout << "TSMWORD :";
00281   TsmStatus().print();
00282   std::cout << std::endl;
00283 //   int stat=4, sect=5;
00284 //   std::cout << "TSSTSMD(4,14 :" <<  TSSinTSMD(stat,sect) << std::endl;
00285   std::cout << "******************************************************************************" << std::endl;
00286 
00287 }

void DTConfigTSPhi::setDefaults ( const edm::ParameterSet ps  )  [private]

Load pset values into class variables.

Enabled TRACOs in TS

Definition at line 48 of file DTConfigTSPhi.cc.

References checkMask(), GenMuonPlsPt100GeV_cfg::cout, default_gs, default_hsp, default_tsmsk, default_tsmword, lat::endl(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), i, m_debug, m_tsmcce, m_tsmcgs1, m_tsmcgs2, m_tsmgs1, m_tsmgs2, m_tsmhsp, m_tsmhte, m_tsmmsk, m_tsmnoe, m_tsmword, m_tsscce, m_tsscgs1, m_tsscgs2, m_tssgs1, m_tssgs2, m_tsshte, m_tssmsk, m_tssnoe, m_tstren, BitArray< N >::one(), and BitArray< N >::unset().

Referenced by DTConfigTSPhi().

00048                                                     {
00049 
00050   // Debug flag 
00051   m_debug = ps.getUntrackedParameter<bool>("Debug");
00052   
00053   // Order of quaity bits in TSS for sort1
00054   int mymsk = ps.getParameter<int>("TSSMSK1");
00055   if (checkMask(mymsk)) 
00056     m_tssmsk[0] = mymsk;
00057   else {
00058     std::cout << "DTConfigTSPhi::setDefaults : TSSMSK1 not in correct form! Default Used" << std::endl;
00059     m_tssmsk[0] = default_tsmsk;
00060   }
00061   
00062   // Order of quaity bits in TSS for sort2
00063   mymsk= ps.getParameter<int>("TSSMSK2");  
00064   if (checkMask(mymsk)) 
00065     m_tssmsk[1] = mymsk;
00066   else {
00067     std::cout << "DTConfigTSPhi::setDefaults : TSSMSK2 not in correct form! Default Used" << std::endl;
00068     m_tssmsk[1] = default_tsmsk;
00069   }
00070   
00071   // Htrig checking in TSS for sort1
00072   m_tsshte[0] = ps.getParameter<bool>("TSSHTE1");
00073   
00074   // Htrig checking in TSS for sort2
00075   m_tsshte[1] = ps.getParameter<bool>("TSSHTE2");
00076 
00077   // Htrig checking in TSS for carry
00078   m_tsshte[2] = ps.getParameter<bool>("TSSHTEC");
00079 
00080   // Inner SL checking in TSS for sort1
00081   m_tssnoe[0] = ps.getParameter<bool>("TSSNOE1");
00082   
00083   // Inner SL checking in TSS for sort2
00084   m_tssnoe[1] = ps.getParameter<bool>("TSSNOE2");
00085  
00086   // Inner SL checking in TSS for carry
00087   m_tssnoe[2] = ps.getParameter<bool>("TSSNOEC");
00088 
00089   // Correlation checking in TSS for sort1
00090   m_tsscce[0] = ps.getParameter<bool>("TSSCCE1");
00091 
00092   // Correlation checking in TSS for sort2
00093   m_tsscce[1] = ps.getParameter<bool>("TSSCCE2");
00094  
00095   // Correlation checking in TSS for carry
00096   m_tsscce[2] = ps.getParameter<bool>("TSSCCEC");
00097 
00098   // Ghost 1 supperssion option in TSS
00099   int mygs = ps.getParameter<int>("TSSGS1");
00100   if (mygs>=0 && mygs<3)
00101     m_tssgs1 = mygs;
00102   else {
00103     std::cout << "DTConfigTSPhi::setDefaults : TSSGS1 value is not correct! Default Used" << std::endl;
00104     m_tssgs1 = default_gs;
00105   }
00106   
00107   // Ghost 2 supperssion option in TSS
00108   mygs= ps.getParameter<int>("TSSGS2");
00109   if (mygs>=0 && mygs<5)
00110     m_tssgs2 = mygs;
00111   else {
00112     std::cout << "DTConfigTSPhi::setDefaults : TSSGS2 value is not correct! Default Used" << std::endl;
00113     m_tssgs2 = default_gs;
00114   }
00115 
00116   // Correlated ghost 1 supperssion option in TSS
00117   m_tsscgs1 = ps.getParameter<bool>("TSSCGS1");
00118   
00119   // Correlated ghost 2 supperssion option in TSS
00120   m_tsscgs2 = ps.getParameter<bool>("TSSCGS2");
00121 
00122   // Order of quaity bits in TSM for sort1
00123   mymsk = ps.getParameter<int>("TSMMSK1");
00124   if (checkMask(mymsk)) 
00125     m_tsmmsk[0] = mymsk;
00126   else {
00127     std::cout << "DTConfigTSPhi::setDefaults : TSMMSK1 not in correct form! Default Used" << std::endl;
00128     m_tsmmsk[0] = default_tsmsk;
00129   }
00130 
00131   // Order of quaity bits in TSM for sort2
00132   mymsk= ps.getParameter<int>("TSMMSK2");
00133   if (checkMask(mymsk)) 
00134     m_tsmmsk[1] = mymsk;
00135   else {
00136     std::cout << "DTConfigTSPhi::setDefaults : TSMMSK2 not in correct form! Default Used" << std::endl;
00137     m_tsmmsk[1] = default_tsmsk;
00138   }
00139   
00140   // Htrig checking in TSM for sort1
00141   m_tsmhte[0] = ps.getParameter<bool>("TSMHTE1");
00142   
00143   // Htrig checking in TSM for sort2
00144   m_tsmhte[1] = ps.getParameter<bool>("TSMHTE2");
00145  
00146   // Htrig checking in TSM for carry
00147   m_tsmhte[2] = ps.getParameter<bool>("TSMHTEC");
00148   
00149   // Inner SL checking in TSM for sort1
00150   m_tsmnoe[0] = ps.getParameter<bool>("TSMNOE1");
00151   
00152   // Inner SL checking in TSM for sort2
00153   m_tsmnoe[1] = ps.getParameter<bool>("TSMNOE2");
00154  
00155   // Inner SL checking in TSM for carry
00156   m_tsmnoe[2] = ps.getParameter<bool>("TSMNOEC");
00157 
00158   // Correlation checking in TSM for sort1
00159   m_tsmcce[0] = ps.getParameter<bool>("TSMCCE1");
00160   
00161   // Correlation checking in TSM for sort2
00162   m_tsmcce[1] = ps.getParameter<bool>("TSMCCE2");
00163  
00164   // Correlation checking in TSM for carry
00165   m_tsmcce[2] = ps.getParameter<bool>("TSMCCEC");
00166 
00167   // Ghost 1 supperssion option in TSM
00168   mygs = ps.getParameter<int>("TSMGS1");
00169   if (mygs>=0 && mygs<3)
00170     m_tsmgs1 = mygs;
00171   else {
00172     std::cout << "DTConfigTSPhi::setDefaults : TSMGS1 value is not correct! Default Used" << std::endl;
00173     m_tsmgs1 = default_gs;
00174   }
00175 
00176   // Ghost 2 supperssion option in TSM
00177   mygs= ps.getParameter<int>("TSMGS2");
00178   if (mygs>=0 && mygs<5)
00179     m_tsmgs2 = mygs;
00180   else {
00181     std::cout << "DTConfigTSPhi::setDefaults : TSMGS2 value is not correct! Default Used" << std::endl;
00182     m_tsmgs2 = default_gs;
00183   }
00184 
00185   // Correlated ghost 1 supperssion option in TSM
00186   m_tsmcgs1 = ps.getParameter<bool>("TSMCGS1");
00187   
00188   // Correlated ghost 2 supperssion option in TSM
00189   m_tsmcgs2 = ps.getParameter<bool>("TSMCGS2");
00190 
00191   // Handling carry in case of pile-up
00192   int myhsp = ps.getParameter<int>("TSMHSP");
00193   if (myhsp>=0 && myhsp<3)
00194     m_tsmhsp = myhsp;
00195   else {
00196     std::cout << "DTConfigTSPhi::setDefaults : TSMHSP value is not correct! Default Used" << std::endl;
00197     m_tsmhsp = default_hsp;
00198   }
00199 
00200   // Handling TSMS masking parameters
00201   m_tsmword.one();
00202   int word = ps.getParameter<int>("TSMWORD");
00203   if (word<0 || word>255){
00204     std::cout << "DTConfigTSPhi::setDefaults : TSMWORD value is not correct! Default Used" << std::endl;
00205     word = default_tsmword;
00206   }
00207   for (int i=0;i<7;i++){
00208     short int bit = word%2;
00209     word /= 2;
00210     if (bit==0) m_tsmword.unset(i);
00211   }
00212 
00214   m_tstren.one();
00215   for (int i=0;i<24;i++){
00216     std::stringstream os;
00217     os << "TSTREN" << i;
00218     if (ps.getParameter<bool>(os.str())== 0)
00219       m_tstren.unset(i);
00220   }
00221                   
00222 }

bool DTConfigTSPhi::TsmCorrEna ( int  i  )  const [inline]

Enable Correlation checking in TSM for sort1/2.

Definition at line 111 of file DTConfigTSPhi.h.

References m_tsmcce.

Referenced by print(), and DTTSCand::setBitsTsm().

00111 { return m_tsmcce[i]; }

bool DTConfigTSPhi::TsmCorrEnaCarry (  )  const [inline]

Enable Correlation checking in TSM for carry.

Definition at line 114 of file DTConfigTSPhi.h.

References m_tsmcce.

Referenced by print(), and DTTSCand::setBitsTsm().

00114 { return m_tsmcce[2]; }

int DTConfigTSPhi::TsmGetCarryFlag (  )  const [inline]

Handling of second track (carry) in case of pile-up, in TSM.

Definition at line 141 of file DTConfigTSPhi.h.

References m_tsmhsp.

Referenced by print(), and DTTSPhi::runTSPhi().

00141 { return (int)m_tsmhsp; }

bool DTConfigTSPhi::TsmGhost1Corr (  )  const [inline]

Correlated ghost 1 suppression option in TSM.

Definition at line 135 of file DTConfigTSPhi.h.

References m_tsmcgs1.

Referenced by print().

00135 { return m_tsmcgs1; }

int DTConfigTSPhi::TsmGhost1Flag (  )  const [inline]

Ghost 1 suppression option in TSM.

Definition at line 123 of file DTConfigTSPhi.h.

References m_tsmgs1.

Referenced by print(), and DTTSM::sortTSM1().

00123 { return (int)m_tsmgs1; }

bool DTConfigTSPhi::TsmGhost2Corr (  )  const [inline]

Correlated ghost 2 suppression option in TSM.

Definition at line 138 of file DTConfigTSPhi.h.

References m_tsmcgs2.

Referenced by print(), and DTTSM::sortTSM2().

00138 { return m_tsmcgs2; }

int DTConfigTSPhi::TsmGhost2Flag (  )  const [inline]

Ghost 2 suppression option in TSM.

Definition at line 126 of file DTConfigTSPhi.h.

References m_tsmgs2.

Referenced by print(), and DTTSM::sortTSM2().

00126 { return (int)m_tsmgs2; }

bool DTConfigTSPhi::TsmHtrigEna ( int  i  )  const [inline]

Enable Htrig checking in TSM for sort1/2.

Definition at line 99 of file DTConfigTSPhi.h.

References m_tsmhte.

Referenced by print(), and DTTSCand::setBitsTsm().

00099 { return m_tsmhte[i]; }

bool DTConfigTSPhi::TsmHtrigEnaCarry (  )  const [inline]

Enable Htrig checking in TSM for carry.

Definition at line 102 of file DTConfigTSPhi.h.

References m_tsmhte.

Referenced by print(), and DTTSCand::setBitsTsm().

00102 { return m_tsmhte[2]; }

bool DTConfigTSPhi::TsmInOutEna ( int  i  )  const [inline]

Enable Inner SL checking in TSM for sort1/2.

Definition at line 105 of file DTConfigTSPhi.h.

References m_tsmnoe.

Referenced by print(), and DTTSCand::setBitsTsm().

00105 { return m_tsmnoe[i]; }

bool DTConfigTSPhi::TsmInOutEnaCarry (  )  const [inline]

Enable Inner SL checking in TSM for carry.

Definition at line 108 of file DTConfigTSPhi.h.

References m_tsmnoe.

Referenced by print(), and DTTSCand::setBitsTsm().

00108 { return m_tsmnoe[2]; }

int DTConfigTSPhi::TsmMasking ( int  i  )  const [inline]

Order of quality bits in TSM for sort1/2.

Definition at line 96 of file DTConfigTSPhi.h.

References m_tsmmsk.

Referenced by print(), and DTTSCand::setBitsTsm().

00096 { return (int)m_tsmmsk[i]; }

BitArray<8> DTConfigTSPhi::TsmStatus (  )  const [inline]

TSM status.

Definition at line 147 of file DTConfigTSPhi.h.

References m_tsmword.

Referenced by DTTSPhi::ignoreSecondTrack(), print(), and DTTSPhi::runTSPhi().

00147 { return m_tsmword; };

bool DTConfigTSPhi::TssCorrEna ( int  i  )  const [inline]

Enable Correlation checking in TSS for sort1/2.

Definition at line 90 of file DTConfigTSPhi.h.

References m_tsscce.

Referenced by print(), and DTTSCand::setBitsTss().

00090 { return m_tsscce[i]; }

bool DTConfigTSPhi::TssCorrEnaCarry (  )  const [inline]

Enable Correlation checking in TSS for carry.

Definition at line 93 of file DTConfigTSPhi.h.

References m_tsscce.

Referenced by print(), and DTTSCand::setBitsTss().

00093 { return m_tsscce[2]; }

bool DTConfigTSPhi::TssGhost1Corr (  )  const [inline]

Correlated ghost 1 suppression option in TSS.

Definition at line 129 of file DTConfigTSPhi.h.

References m_tsscgs1.

Referenced by print(), and DTTSS::sortTSS1().

00129 { return m_tsscgs1; }

int DTConfigTSPhi::TssGhost1Flag (  )  const [inline]

Ghost 1 suppression option in TSS.

Definition at line 117 of file DTConfigTSPhi.h.

References m_tssgs1.

Referenced by print().

00117 { return (int)m_tssgs1; }

bool DTConfigTSPhi::TssGhost2Corr (  )  const [inline]

Correlated ghost 2 suppression option in TSS.

Definition at line 132 of file DTConfigTSPhi.h.

References m_tsscgs2.

Referenced by print(), and DTTSS::sortTSS2().

00132 { return m_tsscgs2; }

int DTConfigTSPhi::TssGhost2Flag (  )  const [inline]

Ghost 2 suppression option in TSS.

Definition at line 120 of file DTConfigTSPhi.h.

References m_tssgs2.

Referenced by print(), and DTTSS::sortTSS2().

00120 { return (int)m_tssgs2; }

bool DTConfigTSPhi::TssHtrigEna ( int  i  )  const [inline]

Enable Htrig checking in TSS for sort1/2.

Definition at line 78 of file DTConfigTSPhi.h.

References m_tsshte.

Referenced by print(), and DTTSCand::setBitsTss().

00078 { return m_tsshte[i]; }

bool DTConfigTSPhi::TssHtrigEnaCarry (  )  const [inline]

Enable Htrig checking in TSS for carry.

Definition at line 81 of file DTConfigTSPhi.h.

References m_tsshte.

Referenced by print(), and DTTSCand::setBitsTss().

00081 { return m_tsshte[2]; }

bool DTConfigTSPhi::TssInOutEna ( int  i  )  const [inline]

Enable Inner SL checking in TSS for sort1/2.

Definition at line 84 of file DTConfigTSPhi.h.

References m_tssnoe.

Referenced by print(), and DTTSCand::setBitsTss().

00084 { return m_tssnoe[i]; }

bool DTConfigTSPhi::TssInOutEnaCarry (  )  const [inline]

Enable Inner SL checking in TSS for carry.

Definition at line 87 of file DTConfigTSPhi.h.

References m_tssnoe.

Referenced by print(), and DTTSCand::setBitsTss().

00087 { return m_tssnoe[2]; }

int DTConfigTSPhi::TSSinTSMD ( int  stat,
int  sect 
)

Return the max nb. of TSSs in input to a single TSMD (called ONLY in back-up mode).

Definition at line 225 of file DTConfigTSPhi.cc.

References m_ntsstsmd.

Referenced by DTTSPhi::ignoreSecondTrack(), and DTTSPhi::runTSPhi().

00225                                            { //CB it should set value when constructor is called (it should be done when we have station by station config)  
00226 
00227   // Number of TSS for each TSMD (it changes from station to station) The DT stations are indicated in parenthesis
00228   // in the DT column.
00229   //
00230   //      MB                    nb.TSS        nb.TTS per TSMD
00231   //      1                       3             2   
00232   //      2                       4             2  
00233   //      3                       5             3  
00234   //      4(1,2,3,5,6,7)          6             3   
00235   //      4(8,12)                 6             3   
00236   //      4(9,11)                 3             2     
00237   //      4(4L)                   5             3    
00238   //      4(4R)                   5             3    
00239   //      4(10L)                  4             2     
00240   //      4(10R)                  4             2     
00241   
00242   if( stat==1 ||
00243       stat==2 ||
00244       ( stat==4 && (sect==9 || sect==11 ||
00245                     sect==10))) {
00246     m_ntsstsmd = 2;
00247   } else {
00248     m_ntsstsmd = 3;
00249   }
00250 
00251   return (int)m_ntsstsmd;
00252 
00253 }

int DTConfigTSPhi::TssMasking ( int  i  )  const [inline]

Order of quality bits in TSS for sort1/2.

Definition at line 75 of file DTConfigTSPhi.h.

References m_tssmsk.

Referenced by print(), DTTSCand::setBitsTsm(), and DTTSCand::setBitsTss().

00075 { return (int)m_tssmsk[i]; }

bool DTConfigTSPhi::usedTraco ( int  i  )  const [inline]

Enabled TRACOs in TS.

Definition at line 144 of file DTConfigTSPhi.h.

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

Referenced by DTTSPhi::loadTSPhi(), and print().

00144 { return (bool) m_tstren.element(i-1); }


Member Data Documentation

const int DTConfigTSPhi::default_gs = 1 [static]

Constant: default Ghost Suppression Option (1/2) parameter;.

Definition at line 54 of file DTConfigTSPhi.h.

Referenced by setDefaults().

const int DTConfigTSPhi::default_hsp = 1 [static]

Constant: default handling of 2nd track parameter;.

Definition at line 57 of file DTConfigTSPhi.h.

Referenced by setDefaults().

const int DTConfigTSPhi::default_tsmsk = 312 [static]

Constant: default TS mask parameter;.

Definition at line 51 of file DTConfigTSPhi.h.

Referenced by setDefaults().

const int DTConfigTSPhi::default_tsmword = 255 [static]

Constant: default tsmword parameter;.

Definition at line 60 of file DTConfigTSPhi.h.

Referenced by setDefaults().

bool DTConfigTSPhi::m_debug [private]

Definition at line 164 of file DTConfigTSPhi.h.

Referenced by debug(), and setDefaults().

unsigned short int DTConfigTSPhi::m_ntsstsmd [private]

Definition at line 190 of file DTConfigTSPhi.h.

Referenced by TSSinTSMD().

bool DTConfigTSPhi::m_tsmcce[3] [private]

Definition at line 180 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TsmCorrEna(), and TsmCorrEnaCarry().

bool DTConfigTSPhi::m_tsmcgs1 [private]

Definition at line 183 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmGhost1Corr().

bool DTConfigTSPhi::m_tsmcgs2 [private]

Definition at line 184 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmGhost2Corr().

unsigned short int DTConfigTSPhi::m_tsmgs1 [private]

Definition at line 181 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmGhost1Flag().

unsigned short int DTConfigTSPhi::m_tsmgs2 [private]

Definition at line 182 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmGhost2Flag().

unsigned short int DTConfigTSPhi::m_tsmhsp [private]

Definition at line 185 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmGetCarryFlag().

bool DTConfigTSPhi::m_tsmhte[3] [private]

Definition at line 178 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TsmHtrigEna(), and TsmHtrigEnaCarry().

unsigned short int DTConfigTSPhi::m_tsmmsk[2] [private]

Definition at line 177 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmMasking().

bool DTConfigTSPhi::m_tsmnoe[3] [private]

Definition at line 179 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TsmInOutEna(), and TsmInOutEnaCarry().

BitArray<8> DTConfigTSPhi::m_tsmword [private]

Definition at line 189 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TsmStatus().

bool DTConfigTSPhi::m_tsscce[3] [private]

Definition at line 170 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TssCorrEna(), and TssCorrEnaCarry().

bool DTConfigTSPhi::m_tsscgs1 [private]

Definition at line 173 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TssGhost1Corr().

bool DTConfigTSPhi::m_tsscgs2 [private]

Definition at line 174 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TssGhost2Corr().

unsigned short int DTConfigTSPhi::m_tssgs1 [private]

Definition at line 171 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TssGhost1Flag().

unsigned short int DTConfigTSPhi::m_tssgs2 [private]

Definition at line 172 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TssGhost2Flag().

bool DTConfigTSPhi::m_tsshte[3] [private]

Definition at line 168 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TssHtrigEna(), and TssHtrigEnaCarry().

unsigned short int DTConfigTSPhi::m_tssmsk[2] [private]

Definition at line 167 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and TssMasking().

bool DTConfigTSPhi::m_tssnoe[3] [private]

Definition at line 169 of file DTConfigTSPhi.h.

Referenced by setDefaults(), TssInOutEna(), and TssInOutEnaCarry().

BitArray<24> DTConfigTSPhi::m_tstren [private]

Definition at line 188 of file DTConfigTSPhi.h.

Referenced by setDefaults(), and usedTraco().

const int DTConfigTSPhi::NTSMD = 2 [static]

Constant: number of TSMD.

Definition at line 45 of file DTConfigTSPhi.h.

Referenced by DTTSPhi::DTTSPhi(), and DTTSPhi::runTSPhi().

const int DTConfigTSPhi::NTSSTSM = 7 [static]

Constant: maximum number of TSS in input to the TSM.

Definition at line 42 of file DTConfigTSPhi.h.

Referenced by DTTSPhi::addTracoT(), DTTSM::DTTSM(), DTTSPhi::DTTSPhi(), and DTTSPhi::ignoreSecondTrack().

const int DTConfigTSPhi::NTSSTSMD = 3 [static]

Constant: maximum number of TSS in input to a single TSMD.

Definition at line 48 of file DTConfigTSPhi.h.

Referenced by DTTSPhi::runTSPhi().


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