CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
DTConfigTSPhi Class Reference

#include <DTConfigTSPhi.h>

Inheritance diagram for DTConfigTSPhi:
DTConfig

Public Member Functions

bool debug () const
 Return the debug flag. More...
 
 DTConfigTSPhi (const edm::ParameterSet &ps)
 Constructor. More...
 
 DTConfigTSPhi ()
 Constructor. More...
 
 DTConfigTSPhi (bool debug, unsigned short int tss_buffer[7][31], int ntss, unsigned short int tsm_buffer[9])
 Constructor. More...
 
void print () const
 Print the setup. More...
 
void setDebug (bool debug)
 Set debug flag. More...
 
void setTsmCarryFlag (unsigned short tsmhsp)
 Handling of second track (carry) in case of pile-up, in TSM. More...
 
void setTsmCorrEna (bool tsmcce, int i)
 Enable Correlation checking in TSM for sort1/2. More...
 
void setTsmCorrEnaCarry (bool tsmcce)
 Enable Correlation checking in TSM for carry. More...
 
void setTsmGhost1Corr (bool tsmcgs1)
 Correlated ghost 1 suppression option in TSM. More...
 
void setTsmGhost1Flag (unsigned short tsmgs1)
 Ghost 1 suppression option in TSM. More...
 
void setTsmGhost2Corr (bool tsmcgs2)
 Correlated ghost 2 suppression option in TSM. More...
 
void setTsmGhost2Flag (unsigned short tsmgs2)
 Ghost 2 suppression option in TSM. More...
 
void setTsmHtrigEna (bool tsmhte, int i)
 Enable Htrig checking in TSM for sort1/2. More...
 
void setTsmHtrigEnaCarry (bool tsmhte)
 Enable Htrig checking in TSM for carry. More...
 
void setTsmInOutEna (bool tsmnoe, int i)
 Enable Inner SL checking in TSM for sort1/2. More...
 
void setTsmInOutEnaCarry (bool tsmnoe)
 Enable Inner SL checking in TSM for carry. More...
 
void setTsmMasking (unsigned short int tsmmsk, int i)
 Order of quality bits in TSM for sort1/2. More...
 
void setTsmStatus (int i, int val)
 TSM status. More...
 
void setTssCorrEna (bool tsscce, int i)
 Enable Correlation checking in TSS for sort1/2. More...
 
void setTssCorrEnaCarry (bool tsscce)
 Enable Correlation checking in TSS for. More...
 
void setTssGhost1Corr (bool tsscgs1)
 Correlated ghost 1 suppression option in TSS. More...
 
void setTssGhost1Flag (unsigned short tssgs1)
 Ghost 1 suppression option in TSS. More...
 
void setTssGhost2Corr (bool tsscgs2)
 Correlated ghost 2 suppression option in TSS. More...
 
void setTssGhost2Flag (unsigned short tssgs2)
 Ghost 2 suppression option in TSS. More...
 
void setTssHtrigEna (bool tsshte, int i)
 Enable Htrig checking in TSS for sort1/2. More...
 
void setTssHtrigEnaCarry (bool tsshte)
 Enable Htrig checking in TSS for carry. More...
 
void setTssInOutEna (bool tssnoe, int i)
 Enable Inner SL checking in TSS for sort1/2. More...
 
void setTssInOutEnaCarry (bool tssnoe)
 Enable Inner SL checking in TSS for carry. More...
 
void setTssMasking (unsigned short int tssmsk, int i)
 Order of quality bits in TSS for sort1/2. More...
 
void setUsedTraco (int i, int val)
 Enabled TRACOs in TS. More...
 
bool TsmCorrEna (int i) const
 Enable Correlation checking in TSM for sort1/2. More...
 
bool TsmCorrEnaCarry () const
 Enable Correlation checking in TSM for carry. More...
 
int TsmGetCarryFlag () const
 Handling of second track (carry) in case of pile-up, in TSM. More...
 
bool TsmGhost1Corr () const
 Correlated ghost 1 suppression option in TSM. More...
 
int TsmGhost1Flag () const
 Ghost 1 suppression option in TSM. More...
 
bool TsmGhost2Corr () const
 Correlated ghost 2 suppression option in TSM. More...
 
int TsmGhost2Flag () const
 Ghost 2 suppression option in TSM. More...
 
bool TsmHtrigEna (int i) const
 Enable Htrig checking in TSM for sort1/2. More...
 
bool TsmHtrigEnaCarry () const
 Enable Htrig checking in TSM for carry. More...
 
bool TsmInOutEna (int i) const
 Enable Inner SL checking in TSM for sort1/2. More...
 
bool TsmInOutEnaCarry () const
 Enable Inner SL checking in TSM for carry. More...
 
int TsmMasking (int i) const
 Order of quality bits in TSM for sort1/2. More...
 
BitArray< 8 > TsmStatus () const
 TSM status. More...
 
bool TssCorrEna (int i) const
 Enable Correlation checking in TSS for sort1/2. More...
 
bool TssCorrEnaCarry () const
 Enable Correlation checking in TSS for carry. More...
 
bool TssGhost1Corr () const
 Correlated ghost 1 suppression option in TSS. More...
 
int TssGhost1Flag () const
 Ghost 1 suppression option in TSS. More...
 
bool TssGhost2Corr () const
 Correlated ghost 2 suppression option in TSS. More...
 
int TssGhost2Flag () const
 Ghost 2 suppression option in TSS. More...
 
bool TssHtrigEna (int i) const
 Enable Htrig checking in TSS for sort1/2. More...
 
bool TssHtrigEnaCarry () const
 Enable Htrig checking in TSS for carry. More...
 
bool TssInOutEna (int i) const
 Enable Inner SL checking in TSS for sort1/2. More...
 
bool TssInOutEnaCarry () const
 Enable Inner SL checking in TSS for carry. More...
 
int TSSinTSMD (int stat, int sect)
 Return the max nb. of TSSs in input to a single TSMD (called ONLY in back-up mode) More...
 
int TssMasking (int i) const
 Order of quality bits in TSS for sort1/2. More...
 
bool usedTraco (int i) const
 Enabled TRACOs in TS. More...
 
 ~DTConfigTSPhi ()
 Destructor. More...
 
- Public Member Functions inherited from DTConfig
 DTConfig ()
 Constructor. More...
 
virtual ~DTConfig ()
 Destructor. More...
 

Static Public Attributes

static const int NTSMD = 2
 Constant: number of TSMD. More...
 
static const int NTSSTSM = 7
 Constant: maximum number of TSS in input to the TSM. More...
 
static const int NTSSTSMD = 3
 Constant: maximum number of TSS in input to a single TSMD. More...
 
- Static Public Attributes inherited from DTConfig
static const int NBTITC =4
 
static const int NSTEPF =9
 
static const int NSTEPL =24
 Constants: first and last step to start trigger finding. More...
 
static const int NTCTSS = 4
 Constant: number of TRACOs in input to a TSS. More...
 

Private Member Functions

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

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 34 of file DTConfigTSPhi.cc.

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

34  {
35 
36  setDefaults(ps);
37  if (debug()) print();
38 }
bool debug() const
Return the debug flag.
Definition: DTConfigTSPhi.h:63
void setDefaults(const edm::ParameterSet &ps)
Load pset values into class variables.
void print() const
Print the setup.
DTConfigTSPhi::DTConfigTSPhi ( )
inline

Constructor.

Definition at line 54 of file DTConfigTSPhi.h.

54 {};
DTConfigTSPhi::DTConfigTSPhi ( bool  debug,
unsigned short int  tss_buffer[7][31],
int  ntss,
unsigned short int  tsm_buffer[9] 
)

Constructor.

Definition at line 40 of file DTConfigTSPhi.cc.

References gather_cfg::cout, debug(), edm::hlt::Exception, i, m_debug, setTsmCarryFlag(), setTsmCorrEna(), setTsmCorrEnaCarry(), setTsmGhost1Corr(), setTsmGhost1Flag(), setTsmGhost2Corr(), setTsmGhost2Flag(), setTsmHtrigEna(), setTsmHtrigEnaCarry(), setTsmInOutEna(), setTsmInOutEnaCarry(), setTsmMasking(), setTsmStatus(), setTssCorrEna(), setTssCorrEnaCarry(), setTssGhost1Corr(), setTssGhost1Flag(), setTssGhost2Corr(), setTssGhost2Flag(), setTssHtrigEna(), setTssHtrigEnaCarry(), setTssInOutEna(), setTssInOutEnaCarry(), setTssMasking(), and setUsedTraco().

40  {
41 
42  if (ntss == 0) {
43  throw cms::Exception("DTTPG") << "DTConfigTSPhi::DTConfigTSPhi : ntss=" << ntss << std::endl
44  << "configuration from CCB strings not possible " << std::endl
45  << "if error occurs configuring from DB this is " << std::endl
46  << "likely to be a DTCCBConfigRcd issue" << std::endl;
47  }
48 
49  m_debug = debugTS;
50 
51  bool tstren[24];
52  bool tsscgs2, tsscgs1, tsscce1, tsshte1, tssnoe1, carrytss;
53  bool tsscce2, tsshte2, tssnoe2, tssccec, tsshtec, tssnoec;
54  unsigned short tssgs1, tssgs2, tssmsk1, tssmsk2;
55 
56  tsscgs2 = tsscgs1 = tsscce1 = tsshte1 = tssnoe1 = carrytss = 0;
57  tsscce2 = tsshte2 = tssnoe2 = tssccec = tsshtec = tssnoec = 0;
58  tssgs1 = tssgs2 = tssmsk1 = tssmsk2 = 0;
59 
60  memset(tstren,true,24*sizeof(bool));
61 
62  // TSS unpacking
63  for (int itss=0; itss<ntss; itss++) {
64  unsigned short int memory_tss[27];
65 
66  for(int ts=0;ts<27;ts++){
67  memory_tss[ts] = tss_buffer[itss][ts+4];
68  //std::cout << std::hex << memory_tss[ts] << " ";
69  }
70 
71  tstren[itss*4] = !(memory_tss[1]&0x08);
72  tstren[itss*4+1] = !(memory_tss[1]&0x80);
73  tstren[itss*4+2] = !(memory_tss[2]&0x08);
74  tstren[itss*4+3] = !(memory_tss[2]&0x80);
75 
76  if(!itss) {
77  tsscgs2 = !(memory_tss[0]&0x08);
78  tssgs2 = memory_tss[0]&0x04 ? 0 : 1;
79  tsscgs1 = !(memory_tss[0]&0x02);
80  tssgs1 = memory_tss[0]&0x01 ? 0 : 1;
81  tsscce1 = !(memory_tss[4]&0x04);
82  tsshte1 = !(memory_tss[4]&0x02);
83  tssnoe1 = !(memory_tss[4]&0x01);
84  tsscce2 = !(memory_tss[3]&0x40);
85  tsshte2 = !(memory_tss[3]&0x20);
86  tssnoe2 = !(memory_tss[3]&0x10);
87  tssccec = !(memory_tss[3]&0x04);
88  tsshtec = !(memory_tss[3]&0x02);
89  tssnoec = !(memory_tss[3]&0x01);
90  carrytss= !(memory_tss[4]&0x40);
91  tssmsk1 = memory_tss[4]&0x10 ? 132 : 312;
92  tssmsk2 = memory_tss[4]&0x20 ? 132 : 312;
93  }
94  }
95 
96  // TSM unpacking
97  unsigned short int memory_tsms[2], memory_tsmdu[2], memory_tsmdd[2];
98 
99  for(int ts=0;ts<2;ts++){
100  memory_tsms[ts] = tsm_buffer[ts+3];
101  memory_tsmdu[ts] = tsm_buffer[ts+5];
102  memory_tsmdd[ts] = tsm_buffer[ts+7];
103  //std::cout << std::hex << memory_tsms[ts] << " "
104  //<< memory_tsmdu[ts] << " " << memory_tsmdd[ts] << " " << std::endl;
105  }
106 
107  bool tsmcgs1 = true;
108  unsigned short tsmgs1 = memory_tsms[1]&0x02 ? 0 : 1;
109  bool tsmcgs2 = true;
110  unsigned short tsmgs2 = 1;
111  bool tsmcce1 = true;
112  bool tsmhte1 = true;
113  bool tsmnoe1 = true;
114  bool tsmcce2 = true;
115  bool tsmhte2 = true;
116  bool tsmnoe2 = true;
117  bool tsmccec = true;
118  bool tsmhtec = true;
119  bool tsmnoec = true;
120  bool carrytsms = !(memory_tsms[1]&0x01);
121  unsigned short tsmmsk1 = memory_tsms[1]&0x08 ? 321 : 312;
122  unsigned short tsmmsk2 = tsmmsk1;
123  bool tsmword[8];
124  tsmword[0] = !((memory_tsmdu[0]&0x80)&&(memory_tsmdd[0]&0x80));
125  tsmword[1] = !(memory_tsms[0]&0x01);
126  tsmword[2] = !(memory_tsms[0]&0x02);
127  tsmword[3] = !(memory_tsms[0]&0x04);
128  tsmword[4] = !(memory_tsms[0]&0x08);
129  tsmword[5] = !(memory_tsms[0]&0x10);
130  tsmword[6] = !(memory_tsms[0]&0x20);
131  tsmword[7] = !(memory_tsms[0]&0x40);
132  bool carrytsmd = !((memory_tsmdu[0]&0x10)&&(memory_tsmdd[0]&0x10));
133 
134  unsigned short tsmhsp = carrytss && carrytsms && carrytsmd;
135 
136  if (debug()) {
137  std::cout << "TSS :" << std::dec << std::endl << "tstren= " ;
138  for (int i=0; i<24 ;i++) std::cout << tstren[i] << " ";
139  std::cout << " tsscgs1=" << tsscgs1
140  << " tssgs1=" << tssgs1
141  << " tsscgs2=" << tsscgs2
142  << " tssgs2=" << tssgs2
143  << " tsscce1=" << tsscce1
144  << " tsshte1=" << tsshte1
145  << " tssnoe1=" << tssnoe1
146  << " tsscce2=" << tsscce2
147  << " tsshte2=" << tsshte2
148  << " tssnoe2=" << tssnoe2
149  << " tssccec=" << tssccec
150  << " tsshtec=" << tsshtec
151  << " tssnoec=" << tssnoec
152  << " carrytss=" << carrytss
153  << " tssmsk1=" << tssmsk1
154  << " tssmsk2=" << tssmsk2 << std::endl;
155 
156  std::cout << "TSM : "<< std::endl
157  << "tsmcgs1=" << tsmcgs1
158  << " tsmgs1=" << tsmgs1
159  << " tsmcgs2=" << tsmcgs2
160  << " tsmgs2=" << tsmgs2
161  << " tsmcce1=" << tsmcce1
162  << " tsmhte1=" << tsmhte1
163  << " tsmnoe1=" << tsmnoe1
164  << " tsmcce2=" << tsmcce2
165  << " tsmhte2=" << tsmhte2
166  << " tsmnoe2=" << tsmnoe2
167  << " tsmccec=" << tsmccec
168  << " tsmhtec=" << tsmhtec
169  << " tsmnoec=" << tsmnoec
170  << " tsmhsp=" << tsmhsp
171  << " carrytsms=" << carrytsms
172  << " carrytsmd=" << carrytsmd
173  << " tsmword=";
174  for (int i=0;i<8;i++) std::cout << tsmword[i] << " ";
175  std::cout << " tsmmsk1=" << tsmmsk1
176  << " tsmmsk2=" << tsmmsk2 << std::endl;
177  }
178 
179  setTssMasking(tssmsk1,1);
180  setTssMasking(tssmsk2,2);
181  setTssHtrigEna(tsshte1,1);
182  setTssHtrigEna(tsshte2,2);
183  setTssHtrigEnaCarry(tsshtec);
184  setTssInOutEna(tssnoe1,1);
185  setTssInOutEna(tssnoe2,2);
186  setTssInOutEnaCarry(tssnoec);
187  setTssCorrEna(tsscce1,1);
188  setTssCorrEna(tsscce2,2);
189  setTssCorrEnaCarry(tssccec);
190  setTssGhost1Flag(tssgs1);
191  setTssGhost2Flag(tssgs2);
192  setTssGhost1Corr(tsscgs1);
193  setTssGhost2Corr(tsscgs2);
194 
195  setTsmMasking(tsmmsk1,1);
196  setTsmMasking(tsmmsk2,2);
197  setTsmHtrigEna(tsmhte1,1);
198  setTsmHtrigEna(tsmhte2,2);
199  setTsmHtrigEnaCarry(tsmhtec);
200  setTsmInOutEna(tsmnoe1,1);
201  setTsmInOutEna(tsmnoe2,2);
202  setTsmInOutEnaCarry(tsmnoec);
203  setTsmCorrEna(tsmcce1,1);
204  setTsmCorrEna(tsmcce2,2);
205  setTsmCorrEnaCarry(tsmccec);
206  setTsmGhost1Flag(tsmgs1);
207  setTsmGhost2Flag(tsmgs2);
208  setTsmGhost1Corr(tsmcgs1);
209  setTsmGhost2Corr(tsmcgs2);
210  setTsmCarryFlag(tsmhsp);
211 
212  for (int i=0;i<24;i++) setUsedTraco(i,tstren[i]);
213  for (int i=0;i<8;i++) setTsmStatus(i,tsmword[i]);
214 
215 
216 }
void setTssGhost2Corr(bool tsscgs2)
Correlated ghost 2 suppression option in TSS.
int i
Definition: DBlmapReader.cc:9
void setTsmCorrEna(bool tsmcce, int i)
Enable Correlation checking in TSM for sort1/2.
void setTsmInOutEnaCarry(bool tsmnoe)
Enable Inner SL checking in TSM for carry.
void setTssHtrigEna(bool tsshte, int i)
Enable Htrig checking in TSS for sort1/2.
void setTssGhost1Corr(bool tsscgs1)
Correlated ghost 1 suppression option in TSS.
void setTssMasking(unsigned short int tssmsk, int i)
Order of quality bits in TSS for sort1/2.
void setTssGhost1Flag(unsigned short tssgs1)
Ghost 1 suppression option in TSS.
void setTsmCorrEnaCarry(bool tsmcce)
Enable Correlation checking in TSM for carry.
void setUsedTraco(int i, int val)
Enabled TRACOs in TS.
void setTsmInOutEna(bool tsmnoe, int i)
Enable Inner SL checking in TSM for sort1/2.
void setTssGhost2Flag(unsigned short tssgs2)
Ghost 2 suppression option in TSS.
void setTsmGhost1Corr(bool tsmcgs1)
Correlated ghost 1 suppression option in TSM.
bool debug() const
Return the debug flag.
Definition: DTConfigTSPhi.h:63
void setTsmCarryFlag(unsigned short tsmhsp)
Handling of second track (carry) in case of pile-up, in TSM.
void setTssHtrigEnaCarry(bool tsshte)
Enable Htrig checking in TSS for carry.
void setTsmGhost2Corr(bool tsmcgs2)
Correlated ghost 2 suppression option in TSM.
void setTssCorrEna(bool tsscce, int i)
Enable Correlation checking in TSS for sort1/2.
void setTsmGhost2Flag(unsigned short tsmgs2)
Ghost 2 suppression option in TSM.
void setTsmGhost1Flag(unsigned short tsmgs1)
Ghost 1 suppression option in TSM.
void setTsmHtrigEna(bool tsmhte, int i)
Enable Htrig checking in TSM for sort1/2.
void setTsmStatus(int i, int val)
TSM status.
void setTssCorrEnaCarry(bool tsscce)
Enable Correlation checking in TSS for.
tuple cout
Definition: gather_cfg.py:41
void setTsmMasking(unsigned short int tsmmsk, int i)
Order of quality bits in TSM for sort1/2.
void setTsmHtrigEnaCarry(bool tsmhte)
Enable Htrig checking in TSM for carry.
void setTssInOutEnaCarry(bool tssnoe)
Enable Inner SL checking in TSS for carry.
void setTssInOutEna(bool tssnoe, int i)
Enable Inner SL checking in TSS for sort1/2.
DTConfigTSPhi::~DTConfigTSPhi ( )

Destructor.

Definition at line 221 of file DTConfigTSPhi.cc.

221 {}

Member Function Documentation

bool DTConfigTSPhi::checkMask ( unsigned short  msk)
private

Check mask correctness.

Definition at line 478 of file DTConfigTSPhi.cc.

References i.

Referenced by setDefaults(), setTsmMasking(), and setTssMasking().

478  {
479 
480  bool hasone = false;
481  bool hastwo = false;
482  bool hasthree = false;
483  for(int i=0;i<3;i++){
484  int mynum = msk%10;
485  switch (mynum){
486  case 1:
487  hasone = true;
488  break;
489  case 2:
490  hastwo = true;
491  break;
492  case 3:
493  hasthree =true;
494  break;
495  }
496  msk /= 10;
497  }
498  if (hasone==true && hastwo==true && hasthree==true) return true;
499  return false;
500 
501 }
int i
Definition: DBlmapReader.cc:9
bool DTConfigTSPhi::debug ( ) const
inline

Return the debug flag.

Definition at line 63 of file DTConfigTSPhi.h.

References m_debug.

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

63 { return m_debug; }
void DTConfigTSPhi::print ( void  ) const

Print the setup.

Definition at line 426 of file DTConfigTSPhi.cc.

References gather_cfg::cout, debug(), 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().

426  {
427 
428  std::cout << "******************************************************************************" << std::endl;
429  std::cout << "* DTTrigger configuration : TSPhi chips *" << std::endl;
430  std::cout << "******************************************************************************" << std::endl << std::endl;
431  std::cout << "Debug flag : " << debug() << std::endl;
432  std::cout << " TSS Parameters:" << std::endl;
433  std::cout << "TSSMSK 1/2:" << TssMasking(0) << " " << TssMasking(1) << std::endl;
434  std::cout << "TSSHTE 1/2/carry :" << TssHtrigEna(0) << " " << TssHtrigEna(1) << " " << TssHtrigEnaCarry() << std::endl;
435  std::cout << "TSSNOE 1/2/carry :" << TssInOutEna(0) << " " << TssInOutEna(1) << " " << TssInOutEnaCarry() << std::endl;
436  std::cout << "TSSCCE 1/2/carry :" << TssCorrEna(0) << " " << TssCorrEna(1) << " " << TssCorrEnaCarry() << std::endl;
437  std::cout << "TSSGS 1/2:" << TssGhost1Flag() << " " << TssGhost2Flag() << std::endl;
438  std::cout << "TSSCGS 1/2:" << TssGhost1Corr() << " " << TssGhost2Corr() << std::endl;
439  std::cout << " TSM Parameters:" << std::endl;
440  std::cout << "TSMMSK 1/2:" << TsmMasking(0) << " " << TsmMasking(1) << std::endl;
441  std::cout << "TSMHTE 1/2/carry :" << TsmHtrigEna(0) << " " << TsmHtrigEna(1) << " " << TsmHtrigEnaCarry() << std::endl;
442  std::cout << "TSMNOE 1/2/carry :" << TsmInOutEna(0) << " " << TsmInOutEna(1) << " " << TsmInOutEnaCarry() << std::endl;
443  std::cout << "TSMCCE 1/2/carry :" << TsmCorrEna(0) << " " << TsmCorrEna(1) << " " << TsmCorrEnaCarry() << std::endl;
444  std::cout << "TSMGS 1/2:" << TsmGhost1Flag() << " " << TsmGhost2Flag() << std::endl;
445  std::cout << "TSMCGS 1/2:" << TsmGhost1Corr() << " " << TsmGhost2Corr() << std::endl;
446  std::cout << "TSMHSP :" << TsmGetCarryFlag() << std::endl;
447  std::cout << "TSTREN[i] :";
448  for (int i=1;i<25;i++) std::cout << usedTraco(i) << " ";
449  std::cout << std::endl;
450  std::cout << "TSMWORD :";
451  TsmStatus().print();
452  std::cout << std::endl;
453 // int stat=4, sect=5;
454 // std::cout << "TSSTSMD(4,14 :" << TSSinTSMD(stat,sect) << std::endl;
455  std::cout << "******************************************************************************" << std::endl;
456 
457 }
int i
Definition: DBlmapReader.cc:9
bool TsmInOutEna(int i) const
Enable Inner SL checking in TSM for sort1/2.
Definition: DTConfigTSPhi.h:96
bool TssInOutEnaCarry() const
Enable Inner SL checking in TSS for carry.
Definition: DTConfigTSPhi.h:78
bool TsmHtrigEna(int i) const
Enable Htrig checking in TSM for sort1/2.
Definition: DTConfigTSPhi.h:90
bool TsmGhost2Corr() const
Correlated ghost 2 suppression option in TSM.
int TsmMasking(int i) const
Order of quality bits in TSM for sort1/2.
Definition: DTConfigTSPhi.h:87
int TssMasking(int i) const
Order of quality bits in TSS for sort1/2.
Definition: DTConfigTSPhi.h:66
bool debug() const
Return the debug flag.
Definition: DTConfigTSPhi.h:63
bool TssCorrEnaCarry() const
Enable Correlation checking in TSS for carry.
Definition: DTConfigTSPhi.h:84
bool TsmHtrigEnaCarry() const
Enable Htrig checking in TSM for carry.
Definition: DTConfigTSPhi.h:93
int TsmGetCarryFlag() const
Handling of second track (carry) in case of pile-up, in TSM.
int TsmGhost1Flag() const
Ghost 1 suppression option in TSM.
bool TssHtrigEnaCarry() const
Enable Htrig checking in TSS for carry.
Definition: DTConfigTSPhi.h:72
bool TssGhost1Corr() const
Correlated ghost 1 suppression option in TSS.
int TssGhost2Flag() const
Ghost 2 suppression option in TSS.
int TssGhost1Flag() const
Ghost 1 suppression option in TSS.
int TsmGhost2Flag() const
Ghost 2 suppression option in TSM.
bool TsmCorrEnaCarry() const
Enable Correlation checking in TSM for carry.
bool TsmCorrEna(int i) const
Enable Correlation checking in TSM for sort1/2.
bool TssInOutEna(int i) const
Enable Inner SL checking in TSS for sort1/2.
Definition: DTConfigTSPhi.h:75
bool TsmInOutEnaCarry() const
Enable Inner SL checking in TSM for carry.
Definition: DTConfigTSPhi.h:99
BitArray< 8 > TsmStatus() const
TSM status.
bool TssGhost2Corr() const
Correlated ghost 2 suppression option in TSS.
tuple cout
Definition: gather_cfg.py:41
std::ostream & print(std::ostream &o=std::cout) const
Definition: BitArray.h:345
bool TsmGhost1Corr() const
Correlated ghost 1 suppression option in TSM.
bool TssCorrEna(int i) const
Enable Correlation checking in TSS for sort1/2.
Definition: DTConfigTSPhi.h:81
bool usedTraco(int i) const
Enabled TRACOs in TS.
bool TssHtrigEna(int i) const
Enable Htrig checking in TSS for sort1/2.
Definition: DTConfigTSPhi.h:69
void DTConfigTSPhi::setDebug ( bool  debug)
inline

Set debug flag.

Definition at line 146 of file DTConfigTSPhi.h.

References debug(), and m_debug.

146 { m_debug=debug; }
bool debug() const
Return the debug flag.
Definition: DTConfigTSPhi.h:63
void DTConfigTSPhi::setDefaults ( const edm::ParameterSet ps)
private

Load pset values into class variables.

Enabled TRACOs in TS

Definition at line 228 of file DTConfigTSPhi.cc.

References checkMask(), edm::hlt::Exception, 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().

228  {
229 
230  // Debug flag
231  m_debug = ps.getUntrackedParameter<bool>("Debug");
232 
233  // Order of quaity bits in TSS for sort1
234  int mymsk = ps.getParameter<int>("TSSMSK1");
235  if (checkMask(mymsk))
236  m_tssmsk[0] = mymsk;
237  else {
238  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSSMSK1 not in correct form: " << mymsk << std::endl;
239  }
240 
241  // Order of quaity bits in TSS for sort2
242  mymsk= ps.getParameter<int>("TSSMSK2");
243  if (checkMask(mymsk))
244  m_tssmsk[1] = mymsk;
245  else {
246  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSSMSK2 not in correct form: " << mymsk << std::endl;
247  }
248 
249  // Htrig checking in TSS for sort1
250  m_tsshte[0] = ps.getParameter<bool>("TSSHTE1");
251 
252  // Htrig checking in TSS for sort2
253  m_tsshte[1] = ps.getParameter<bool>("TSSHTE2");
254 
255  // Htrig checking in TSS for carry
256  m_tsshte[2] = ps.getParameter<bool>("TSSHTEC");
257 
258  // Inner SL checking in TSS for sort1
259  m_tssnoe[0] = ps.getParameter<bool>("TSSNOE1");
260 
261  // Inner SL checking in TSS for sort2
262  m_tssnoe[1] = ps.getParameter<bool>("TSSNOE2");
263 
264  // Inner SL checking in TSS for carry
265  m_tssnoe[2] = ps.getParameter<bool>("TSSNOEC");
266 
267  // Correlation checking in TSS for sort1
268  m_tsscce[0] = ps.getParameter<bool>("TSSCCE1");
269 
270  // Correlation checking in TSS for sort2
271  m_tsscce[1] = ps.getParameter<bool>("TSSCCE2");
272 
273  // Correlation checking in TSS for carry
274  m_tsscce[2] = ps.getParameter<bool>("TSSCCEC");
275 
276  // Ghost 1 supperssion option in TSS
277  int mygs = ps.getParameter<int>("TSSGS1");
278  if (mygs>=0 && mygs<3)
279  m_tssgs1 = mygs;
280  else {
281  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSSGS1 value is not correct: " << mygs << std::endl;
282  }
283 
284  // Ghost 2 supperssion option in TSS
285  mygs= ps.getParameter<int>("TSSGS2");
286  if (mygs>=0 && mygs<5)
287  m_tssgs2 = mygs;
288  else {
289  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSSGS2 value is not correct: " << mygs << std::endl;
290  }
291 
292  // Correlated ghost 1 supperssion option in TSS
293  m_tsscgs1 = ps.getParameter<bool>("TSSCGS1");
294 
295  // Correlated ghost 2 supperssion option in TSS
296  m_tsscgs2 = ps.getParameter<bool>("TSSCGS2");
297 
298  // Order of quaity bits in TSM for sort1
299  mymsk = ps.getParameter<int>("TSMMSK1");
300  if (checkMask(mymsk))
301  m_tsmmsk[0] = mymsk;
302  else {
303  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMMSK1 not in correct form: " << mymsk << std::endl;
304  }
305 
306  // Order of quaity bits in TSM for sort2
307  mymsk= ps.getParameter<int>("TSMMSK2");
308  if (checkMask(mymsk))
309  m_tsmmsk[1] = mymsk;
310  else {
311  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMMSK2 not in correct form: " << mymsk << std::endl;
312  }
313 
314  // Htrig checking in TSM for sort1
315  m_tsmhte[0] = ps.getParameter<bool>("TSMHTE1");
316 
317  // Htrig checking in TSM for sort2
318  m_tsmhte[1] = ps.getParameter<bool>("TSMHTE2");
319 
320  // Htrig checking in TSM for carry
321  m_tsmhte[2] = ps.getParameter<bool>("TSMHTEC");
322 
323  // Inner SL checking in TSM for sort1
324  m_tsmnoe[0] = ps.getParameter<bool>("TSMNOE1");
325 
326  // Inner SL checking in TSM for sort2
327  m_tsmnoe[1] = ps.getParameter<bool>("TSMNOE2");
328 
329  // Inner SL checking in TSM for carry
330  m_tsmnoe[2] = ps.getParameter<bool>("TSMNOEC");
331 
332  // Correlation checking in TSM for sort1
333  m_tsmcce[0] = ps.getParameter<bool>("TSMCCE1");
334 
335  // Correlation checking in TSM for sort2
336  m_tsmcce[1] = ps.getParameter<bool>("TSMCCE2");
337 
338  // Correlation checking in TSM for carry
339  m_tsmcce[2] = ps.getParameter<bool>("TSMCCEC");
340 
341  // Ghost 1 supperssion option in TSM
342  mygs = ps.getParameter<int>("TSMGS1");
343  if (mygs>=0 && mygs<3)
344  m_tsmgs1 = mygs;
345  else {
346  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMGS1 value is not correct: " << mygs << std::endl;
347  }
348 
349  // Ghost 2 supperssion option in TSM
350  mygs= ps.getParameter<int>("TSMGS2");
351  if (mygs>=0 && mygs<5)
352  m_tsmgs2 = mygs;
353  else {
354  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMGS2 value is not correct: " << mygs << std::endl;
355  }
356 
357  // Correlated ghost 1 supperssion option in TSM
358  m_tsmcgs1 = ps.getParameter<bool>("TSMCGS1");
359 
360  // Correlated ghost 2 supperssion option in TSM
361  m_tsmcgs2 = ps.getParameter<bool>("TSMCGS2");
362 
363  // Handling carry in case of pile-up
364  int myhsp = ps.getParameter<int>("TSMHSP");
365  if (myhsp>=0 && myhsp<3)
366  m_tsmhsp = myhsp;
367  else {
368  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMHSP value is not correct: " << myhsp << std::endl;
369  }
370 
371  // Handling TSMS masking parameters
372  m_tsmword.one();
373  int word = ps.getParameter<int>("TSMWORD");
374  if (word<0 || word>255){
375  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setDefaults : TSMWORD value is not correct: " << word << std::endl;
376  }
377  for (int i=0;i<7;i++){
378  short int bit = word%2;
379  word /= 2;
380  if (bit==0) m_tsmword.unset(i);
381  }
382 
384  m_tstren.one();
385  for (int i=0;i<24;i++){
386  std::stringstream os;
387  os << "TSTREN" << i;
388  if (ps.getParameter<bool>(os.str())== 0)
389  m_tstren.unset(i);
390  }
391 
392 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
bool m_tssnoe[3]
unsigned short int m_tssgs1
unsigned short int m_tsmgs2
unsigned short int m_tsmhsp
unsigned short int m_tsmmsk[2]
bool m_tsmcce[3]
bool m_tsmhte[3]
void one()
Definition: BitArray.h:223
bool m_tsshte[3]
BitArray< 8 > m_tsmword
unsigned short int m_tsmgs1
BitArray< 24 > m_tstren
void unset(const int i)
Definition: BitArray.h:231
bool m_tsmnoe[3]
bool m_tsscce[3]
bool checkMask(unsigned short)
Check mask correctness.
unsigned short int m_tssmsk[2]
unsigned short int m_tssgs2
void DTConfigTSPhi::setTsmCarryFlag ( unsigned short  tsmhsp)
inline

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

Definition at line 215 of file DTConfigTSPhi.h.

References m_tsmhsp.

Referenced by DTConfigTSPhi().

215 { m_tsmhsp = tsmhsp; }
unsigned short int m_tsmhsp
void DTConfigTSPhi::setTsmCorrEna ( bool  tsmcce,
int  i 
)
inline

Enable Correlation checking in TSM for sort1/2.

Definition at line 185 of file DTConfigTSPhi.h.

References m_tsmcce.

Referenced by DTConfigTSPhi().

185 { m_tsmcce[i-1] = tsmcce; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmcce[3]
void DTConfigTSPhi::setTsmCorrEnaCarry ( bool  tsmcce)
inline

Enable Correlation checking in TSM for carry.

Definition at line 188 of file DTConfigTSPhi.h.

References m_tsmcce.

Referenced by DTConfigTSPhi().

188 { m_tsmcce[2] = tsmcce; }
bool m_tsmcce[3]
void DTConfigTSPhi::setTsmGhost1Corr ( bool  tsmcgs1)
inline

Correlated ghost 1 suppression option in TSM.

Definition at line 209 of file DTConfigTSPhi.h.

References m_tsmcgs1.

Referenced by DTConfigTSPhi().

209 { m_tsmcgs1 = tsmcgs1; }
void DTConfigTSPhi::setTsmGhost1Flag ( unsigned short  tsmgs1)
inline

Ghost 1 suppression option in TSM.

Definition at line 197 of file DTConfigTSPhi.h.

References m_tsmgs1.

Referenced by DTConfigTSPhi().

197 { m_tsmgs1 = tsmgs1; }
unsigned short int m_tsmgs1
void DTConfigTSPhi::setTsmGhost2Corr ( bool  tsmcgs2)
inline

Correlated ghost 2 suppression option in TSM.

Definition at line 212 of file DTConfigTSPhi.h.

References m_tsmcgs2.

Referenced by DTConfigTSPhi().

212 { m_tsmcgs2 = tsmcgs2; }
void DTConfigTSPhi::setTsmGhost2Flag ( unsigned short  tsmgs2)
inline

Ghost 2 suppression option in TSM.

Definition at line 200 of file DTConfigTSPhi.h.

References m_tsmgs2.

Referenced by DTConfigTSPhi().

200 { m_tsmgs2 = tsmgs2; }
unsigned short int m_tsmgs2
void DTConfigTSPhi::setTsmHtrigEna ( bool  tsmhte,
int  i 
)
inline

Enable Htrig checking in TSM for sort1/2.

Definition at line 173 of file DTConfigTSPhi.h.

References m_tsmhte.

Referenced by DTConfigTSPhi().

173 { m_tsmhte[i-1] = tsmhte; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmhte[3]
void DTConfigTSPhi::setTsmHtrigEnaCarry ( bool  tsmhte)
inline

Enable Htrig checking in TSM for carry.

Definition at line 176 of file DTConfigTSPhi.h.

References m_tsmhte.

Referenced by DTConfigTSPhi().

176 { m_tsmhte[2] = tsmhte; }
bool m_tsmhte[3]
void DTConfigTSPhi::setTsmInOutEna ( bool  tsmnoe,
int  i 
)
inline

Enable Inner SL checking in TSM for sort1/2.

Definition at line 179 of file DTConfigTSPhi.h.

References m_tsmnoe.

Referenced by DTConfigTSPhi().

179 { m_tsmnoe[i-1] = tsmnoe; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmnoe[3]
void DTConfigTSPhi::setTsmInOutEnaCarry ( bool  tsmnoe)
inline

Enable Inner SL checking in TSM for carry.

Definition at line 182 of file DTConfigTSPhi.h.

References m_tsmnoe.

Referenced by DTConfigTSPhi().

182 { m_tsmnoe[2] = tsmnoe; }
bool m_tsmnoe[3]
void DTConfigTSPhi::setTsmMasking ( unsigned short int  tsmmsk,
int  i 
)

Order of quality bits in TSM for sort1/2.

Definition at line 469 of file DTConfigTSPhi.cc.

References checkMask(), edm::hlt::Exception, and m_tsmmsk.

Referenced by DTConfigTSPhi().

469  {
470  if (checkMask(tsmmsk))
471  m_tsmmsk[i-1] = tsmmsk;
472  else {
473  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setTsmMasking : TSMMSK" << i << " not in correct form: " << tsmmsk << std::endl;
474  }
475 }
int i
Definition: DBlmapReader.cc:9
unsigned short int m_tsmmsk[2]
bool checkMask(unsigned short)
Check mask correctness.
void DTConfigTSPhi::setTsmStatus ( int  i,
int  val 
)
inline

TSM status.

Definition at line 221 of file DTConfigTSPhi.h.

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

Referenced by DTConfigTSPhi().

221 { m_tsmword.set(i,val); };
int i
Definition: DBlmapReader.cc:9
BitArray< 8 > m_tsmword
void set(const int i)
Definition: BitArray.h:230
void DTConfigTSPhi::setTssCorrEna ( bool  tsscce,
int  i 
)
inline

Enable Correlation checking in TSS for sort1/2.

Definition at line 164 of file DTConfigTSPhi.h.

References m_tsscce.

Referenced by DTConfigTSPhi().

164 { m_tsscce[i-1] = tsscce; }
int i
Definition: DBlmapReader.cc:9
bool m_tsscce[3]
void DTConfigTSPhi::setTssCorrEnaCarry ( bool  tsscce)
inline

Enable Correlation checking in TSS for.

Definition at line 167 of file DTConfigTSPhi.h.

References m_tsscce.

Referenced by DTConfigTSPhi().

167 { m_tsscce[2] = tsscce; }
bool m_tsscce[3]
void DTConfigTSPhi::setTssGhost1Corr ( bool  tsscgs1)
inline

Correlated ghost 1 suppression option in TSS.

Definition at line 203 of file DTConfigTSPhi.h.

References m_tsscgs1.

Referenced by DTConfigTSPhi().

203 { m_tsscgs1 = tsscgs1; }
void DTConfigTSPhi::setTssGhost1Flag ( unsigned short  tssgs1)
inline

Ghost 1 suppression option in TSS.

Definition at line 191 of file DTConfigTSPhi.h.

References m_tssgs1.

Referenced by DTConfigTSPhi().

191 { m_tssgs1 = tssgs1; }
unsigned short int m_tssgs1
void DTConfigTSPhi::setTssGhost2Corr ( bool  tsscgs2)
inline

Correlated ghost 2 suppression option in TSS.

Definition at line 206 of file DTConfigTSPhi.h.

References m_tsscgs2.

Referenced by DTConfigTSPhi().

206 { m_tsscgs2 = tsscgs2; }
void DTConfigTSPhi::setTssGhost2Flag ( unsigned short  tssgs2)
inline

Ghost 2 suppression option in TSS.

Definition at line 194 of file DTConfigTSPhi.h.

References m_tssgs2.

Referenced by DTConfigTSPhi().

194 { m_tssgs2 = tssgs2; }
unsigned short int m_tssgs2
void DTConfigTSPhi::setTssHtrigEna ( bool  tsshte,
int  i 
)
inline

Enable Htrig checking in TSS for sort1/2.

Definition at line 152 of file DTConfigTSPhi.h.

References m_tsshte.

Referenced by DTConfigTSPhi().

152 { m_tsshte[i-1] = tsshte; }
int i
Definition: DBlmapReader.cc:9
bool m_tsshte[3]
void DTConfigTSPhi::setTssHtrigEnaCarry ( bool  tsshte)
inline

Enable Htrig checking in TSS for carry.

Definition at line 155 of file DTConfigTSPhi.h.

References m_tsshte.

Referenced by DTConfigTSPhi().

155 { m_tsshte[2] = tsshte; }
bool m_tsshte[3]
void DTConfigTSPhi::setTssInOutEna ( bool  tssnoe,
int  i 
)
inline

Enable Inner SL checking in TSS for sort1/2.

Definition at line 158 of file DTConfigTSPhi.h.

References m_tssnoe.

Referenced by DTConfigTSPhi().

158 { m_tssnoe[i-1] = tssnoe; }
int i
Definition: DBlmapReader.cc:9
bool m_tssnoe[3]
void DTConfigTSPhi::setTssInOutEnaCarry ( bool  tssnoe)
inline

Enable Inner SL checking in TSS for carry.

Definition at line 161 of file DTConfigTSPhi.h.

References m_tssnoe.

Referenced by DTConfigTSPhi().

161 { m_tssnoe[2] = tssnoe; }
bool m_tssnoe[3]
void DTConfigTSPhi::setTssMasking ( unsigned short int  tssmsk,
int  i 
)

Order of quality bits in TSS for sort1/2.

Definition at line 460 of file DTConfigTSPhi.cc.

References checkMask(), edm::hlt::Exception, and m_tssmsk.

Referenced by DTConfigTSPhi().

460  {
461  if (checkMask(tssmsk))
462  m_tssmsk[i-1] = tssmsk;
463  else {
464  throw cms::Exception("DTTPG") << "DTConfigTSPhi::setTssMasking : TSSMSK" << i << " not in correct form: " << tssmsk << std::endl;
465  }
466 }
int i
Definition: DBlmapReader.cc:9
bool checkMask(unsigned short)
Check mask correctness.
unsigned short int m_tssmsk[2]
void DTConfigTSPhi::setUsedTraco ( int  i,
int  val 
)
inline

Enabled TRACOs in TS.

Definition at line 218 of file DTConfigTSPhi.h.

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

Referenced by DTConfigTSPhi().

218 { m_tstren.set(i,val); }
int i
Definition: DBlmapReader.cc:9
BitArray< 24 > m_tstren
void set(const int i)
Definition: BitArray.h:230
bool DTConfigTSPhi::TsmCorrEna ( int  i) const
inline

Enable Correlation checking in TSM for sort1/2.

Definition at line 102 of file DTConfigTSPhi.h.

References i, and m_tsmcce.

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

102 { return m_tsmcce[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmcce[3]
bool DTConfigTSPhi::TsmCorrEnaCarry ( ) const
inline

Enable Correlation checking in TSM for carry.

Definition at line 105 of file DTConfigTSPhi.h.

References m_tsmcce.

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

105 { return m_tsmcce[2]; }
bool m_tsmcce[3]
int DTConfigTSPhi::TsmGetCarryFlag ( ) const
inline

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

Definition at line 132 of file DTConfigTSPhi.h.

References m_tsmhsp.

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

132 { return (int)m_tsmhsp; }
unsigned short int m_tsmhsp
bool DTConfigTSPhi::TsmGhost1Corr ( ) const
inline

Correlated ghost 1 suppression option in TSM.

Definition at line 126 of file DTConfigTSPhi.h.

References m_tsmcgs1.

Referenced by print().

126 { return m_tsmcgs1; }
int DTConfigTSPhi::TsmGhost1Flag ( ) const
inline

Ghost 1 suppression option in TSM.

Definition at line 114 of file DTConfigTSPhi.h.

References m_tsmgs1.

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

114 { return (int)m_tsmgs1; }
unsigned short int m_tsmgs1
bool DTConfigTSPhi::TsmGhost2Corr ( ) const
inline

Correlated ghost 2 suppression option in TSM.

Definition at line 129 of file DTConfigTSPhi.h.

References m_tsmcgs2.

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

129 { return m_tsmcgs2; }
int DTConfigTSPhi::TsmGhost2Flag ( ) const
inline

Ghost 2 suppression option in TSM.

Definition at line 117 of file DTConfigTSPhi.h.

References m_tsmgs2.

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

117 { return (int)m_tsmgs2; }
unsigned short int m_tsmgs2
bool DTConfigTSPhi::TsmHtrigEna ( int  i) const
inline

Enable Htrig checking in TSM for sort1/2.

Definition at line 90 of file DTConfigTSPhi.h.

References i, and m_tsmhte.

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

90 { return m_tsmhte[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmhte[3]
bool DTConfigTSPhi::TsmHtrigEnaCarry ( ) const
inline

Enable Htrig checking in TSM for carry.

Definition at line 93 of file DTConfigTSPhi.h.

References m_tsmhte.

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

93 { return m_tsmhte[2]; }
bool m_tsmhte[3]
bool DTConfigTSPhi::TsmInOutEna ( int  i) const
inline

Enable Inner SL checking in TSM for sort1/2.

Definition at line 96 of file DTConfigTSPhi.h.

References i, and m_tsmnoe.

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

96 { return m_tsmnoe[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tsmnoe[3]
bool DTConfigTSPhi::TsmInOutEnaCarry ( ) const
inline

Enable Inner SL checking in TSM for carry.

Definition at line 99 of file DTConfigTSPhi.h.

References m_tsmnoe.

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

99 { return m_tsmnoe[2]; }
bool m_tsmnoe[3]
int DTConfigTSPhi::TsmMasking ( int  i) const
inline

Order of quality bits in TSM for sort1/2.

Definition at line 87 of file DTConfigTSPhi.h.

References i, and m_tsmmsk.

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

87 { return (int)m_tsmmsk[i]; }
int i
Definition: DBlmapReader.cc:9
unsigned short int m_tsmmsk[2]
BitArray<8> DTConfigTSPhi::TsmStatus ( ) const
inline

TSM status.

Definition at line 138 of file DTConfigTSPhi.h.

References m_tsmword.

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

138 { return m_tsmword; };
BitArray< 8 > m_tsmword
bool DTConfigTSPhi::TssCorrEna ( int  i) const
inline

Enable Correlation checking in TSS for sort1/2.

Definition at line 81 of file DTConfigTSPhi.h.

References i, and m_tsscce.

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

81 { return m_tsscce[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tsscce[3]
bool DTConfigTSPhi::TssCorrEnaCarry ( ) const
inline

Enable Correlation checking in TSS for carry.

Definition at line 84 of file DTConfigTSPhi.h.

References m_tsscce.

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

84 { return m_tsscce[2]; }
bool m_tsscce[3]
bool DTConfigTSPhi::TssGhost1Corr ( ) const
inline

Correlated ghost 1 suppression option in TSS.

Definition at line 120 of file DTConfigTSPhi.h.

References m_tsscgs1.

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

120 { return m_tsscgs1; }
int DTConfigTSPhi::TssGhost1Flag ( ) const
inline

Ghost 1 suppression option in TSS.

Definition at line 108 of file DTConfigTSPhi.h.

References m_tssgs1.

Referenced by print().

108 { return (int)m_tssgs1; }
unsigned short int m_tssgs1
bool DTConfigTSPhi::TssGhost2Corr ( ) const
inline

Correlated ghost 2 suppression option in TSS.

Definition at line 123 of file DTConfigTSPhi.h.

References m_tsscgs2.

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

123 { return m_tsscgs2; }
int DTConfigTSPhi::TssGhost2Flag ( ) const
inline

Ghost 2 suppression option in TSS.

Definition at line 111 of file DTConfigTSPhi.h.

References m_tssgs2.

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

111 { return (int)m_tssgs2; }
unsigned short int m_tssgs2
bool DTConfigTSPhi::TssHtrigEna ( int  i) const
inline

Enable Htrig checking in TSS for sort1/2.

Definition at line 69 of file DTConfigTSPhi.h.

References i, and m_tsshte.

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

69 { return m_tsshte[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tsshte[3]
bool DTConfigTSPhi::TssHtrigEnaCarry ( ) const
inline

Enable Htrig checking in TSS for carry.

Definition at line 72 of file DTConfigTSPhi.h.

References m_tsshte.

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

72 { return m_tsshte[2]; }
bool m_tsshte[3]
bool DTConfigTSPhi::TssInOutEna ( int  i) const
inline

Enable Inner SL checking in TSS for sort1/2.

Definition at line 75 of file DTConfigTSPhi.h.

References i, and m_tssnoe.

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

75 { return m_tssnoe[i]; }
int i
Definition: DBlmapReader.cc:9
bool m_tssnoe[3]
bool DTConfigTSPhi::TssInOutEnaCarry ( ) const
inline

Enable Inner SL checking in TSS for carry.

Definition at line 78 of file DTConfigTSPhi.h.

References m_tssnoe.

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

78 { return m_tssnoe[2]; }
bool m_tssnoe[3]
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 395 of file DTConfigTSPhi.cc.

References m_ntsstsmd.

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

395  { //CB it should set value when constructor is called (it should be done when we have station by station config)
396 
397  // Number of TSS for each TSMD (it changes from station to station) The DT stations are indicated in parenthesis
398  // in the DT column.
399  //
400  // MB nb.TSS nb.TTS per TSMD
401  // 1 3 2
402  // 2 4 2
403  // 3 5 3
404  // 4(1,2,3,5,6,7) 6 3
405  // 4(8,12) 6 3
406  // 4(9,11) 3 2
407  // 4(4L) 5 3
408  // 4(4R) 5 3
409  // 4(10L) 4 2
410  // 4(10R) 4 2
411 
412  if( stat==1 ||
413  stat==2 ||
414  ( stat==4 && (sect==9 || sect==11 ||
415  sect==10))) {
416  m_ntsstsmd = 2;
417  } else {
418  m_ntsstsmd = 3;
419  }
420 
421  return (int)m_ntsstsmd;
422 
423 }
unsigned short int m_ntsstsmd
int DTConfigTSPhi::TssMasking ( int  i) const
inline

Order of quality bits in TSS for sort1/2.

Definition at line 66 of file DTConfigTSPhi.h.

References i, and m_tssmsk.

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

66 { return (int)m_tssmsk[i]; }
int i
Definition: DBlmapReader.cc:9
unsigned short int m_tssmsk[2]
bool DTConfigTSPhi::usedTraco ( int  i) const
inline

Enabled TRACOs in TS.

Definition at line 135 of file DTConfigTSPhi.h.

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

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

135 { return (bool) m_tstren.element(i-1); }
int i
Definition: DBlmapReader.cc:9
BitArray< 24 > m_tstren
int element(const int pos) const
Definition: BitArray.h:210

Member Data Documentation

bool DTConfigTSPhi::m_debug
private

Definition at line 234 of file DTConfigTSPhi.h.

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

unsigned short int DTConfigTSPhi::m_ntsstsmd
private

Definition at line 260 of file DTConfigTSPhi.h.

Referenced by TSSinTSMD().

bool DTConfigTSPhi::m_tsmcce[3]
private
bool DTConfigTSPhi::m_tsmcgs1
private

Definition at line 253 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmGhost1Corr(), and TsmGhost1Corr().

bool DTConfigTSPhi::m_tsmcgs2
private

Definition at line 254 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmGhost2Corr(), and TsmGhost2Corr().

unsigned short int DTConfigTSPhi::m_tsmgs1
private

Definition at line 251 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmGhost1Flag(), and TsmGhost1Flag().

unsigned short int DTConfigTSPhi::m_tsmgs2
private

Definition at line 252 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmGhost2Flag(), and TsmGhost2Flag().

unsigned short int DTConfigTSPhi::m_tsmhsp
private

Definition at line 255 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmCarryFlag(), and TsmGetCarryFlag().

bool DTConfigTSPhi::m_tsmhte[3]
private
unsigned short int DTConfigTSPhi::m_tsmmsk[2]
private

Definition at line 247 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmMasking(), and TsmMasking().

bool DTConfigTSPhi::m_tsmnoe[3]
private
BitArray<8> DTConfigTSPhi::m_tsmword
private

Definition at line 259 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTsmStatus(), and TsmStatus().

bool DTConfigTSPhi::m_tsscce[3]
private
bool DTConfigTSPhi::m_tsscgs1
private

Definition at line 243 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTssGhost1Corr(), and TssGhost1Corr().

bool DTConfigTSPhi::m_tsscgs2
private

Definition at line 244 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTssGhost2Corr(), and TssGhost2Corr().

unsigned short int DTConfigTSPhi::m_tssgs1
private

Definition at line 241 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTssGhost1Flag(), and TssGhost1Flag().

unsigned short int DTConfigTSPhi::m_tssgs2
private

Definition at line 242 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTssGhost2Flag(), and TssGhost2Flag().

bool DTConfigTSPhi::m_tsshte[3]
private
unsigned short int DTConfigTSPhi::m_tssmsk[2]
private

Definition at line 237 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setTssMasking(), and TssMasking().

bool DTConfigTSPhi::m_tssnoe[3]
private
BitArray<24> DTConfigTSPhi::m_tstren
private

Definition at line 258 of file DTConfigTSPhi.h.

Referenced by setDefaults(), setUsedTraco(), 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().