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 Attributes
DTConfigTraco Class Reference

#include <DTConfigTraco.h>

Inheritance diagram for DTConfigTraco:
DTConfig

Public Member Functions

int BendingAngleCut () const
 Bending angle cut for all stations and triggers : KPRGCOM. More...
 
int BTIC () const
 BTIC traco parameter: must be equal to Btis ST parameter. More...
 
int DD () const
 DD traco parameter: this is fixed. More...
 
int debug () const
 Debug flag. More...
 
 DTConfigTraco (const edm::ParameterSet &ps)
 Constructor. More...
 
 DTConfigTraco ()
 Constructor. More...
 
 DTConfigTraco (int debug, unsigned short int *buffer)
 Constructor from string. More...
 
int IBTIOFF () const
 IBTIOFF traco parameter. More...
 
int KRAD () const
 KRAD traco parameter. More...
 
int LVALIDIFH () const
 Flag for Low validation parameter. More...
 
int prefHtrig (int i) const
 Preference to HTRIG on first/second tracks: F(S)HTPRF. More...
 
int prefInner (int i) const
 Preference to inner on first/second tracks: F(S)SLMSK. More...
 
void print () const
 Print the setup. More...
 
void setBendingAngleCut (int BendingAngleCut)
 Set Bending angle cut for all stations and triggers : KPRGCOM. More...
 
void setBTIC (int BTIC)
 Set BTIC traco parameter: must be equal to Btis ST parameter. More...
 
void setDD (int DD)
 Set DD traco parameter: this is fixed. More...
 
void setDebug (int debug)
 
void setDefaults (const edm::ParameterSet &ps)
 Set default parameters. More...
 
void setIBTIOFF (int IBTIOFF)
 Set IBTIOFF traco parameter. More...
 
void setKRAD (int KRAD)
 Set KRAD traco parameter. More...
 
void setLVALIDIFH (int LVALIDIFH)
 Set Flag for Low validation parameter. More...
 
void setPrefHtrig (int i, int prefHtrig)
 Set Preference to HTRIG on first/second tracks: F(S)HTPRF. More...
 
void setPrefInner (int i, int prefInner)
 Set Preference to inner on first/second tracks: F(S)SLMSK. More...
 
void setSingleHflag (int i, int singleHflag)
 Set Single HTRIG enabling on first/second tracks F(S)HTMSK. More...
 
void setSingleLenab (int i, int singleLenab)
 Set Single LTRIG accept enabling on first/second tracks LTF. More...
 
void setSingleLflag (int i, int singleLflag)
 Set Single LTRIG enabling on first/second tracks: F(S)LTMSK. More...
 
void setSortKascend (int i, int sortKascend)
 Set Ascend. order for K sorting first/second tracks: F(S)HISM. More...
 
void setTcBxLts (int TcBxLts)
 Set Suppr. of LTRIG in 4 BX before HTRIG: LTS. More...
 
void setTcKToll (int i, int TcKToll)
 Set K tollerance for correlation in TRACO: F(S)PRGCOMP. More...
 
void setTcReuse (int i, int TcReuse)
 Set Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO. More...
 
void setUsedBti (int bti, int mask)
 Set Connected bti in traco: bti mask. More...
 
int singleHflag (int i) const
 Single HTRIG enabling on first/second tracks F(S)HTMSK. More...
 
int singleLenab (int i) const
 Single LTRIG accept enabling on first/second tracks LTF. More...
 
int singleLflag (int i) const
 Single LTRIG enabling on first/second tracks: F(S)LTMSK. More...
 
int sortKascend (int i) const
 Ascend. order for K sorting first/second tracks: F(S)HISM. More...
 
int TcBxLts () const
 Suppr. of LTRIG in 4 BX before HTRIG: LTS. More...
 
int TcKToll (int i) const
 K tollerance for correlation in TRACO: F(S)PRGCOMP. More...
 
int TcReuse (int i) const
 Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO. More...
 
int usedBti (int bti) const
 Connected bti in traco: bti mask. More...
 
 ~DTConfigTraco ()
 Destructor. More...
 
- Public Member Functions inherited from DTConfig
 DTConfig ()
 Constructor. More...
 
virtual ~DTConfig ()
 Destructor. More...
 

Static Public Attributes

static const int NMAXCAND
 Costant: maximum number of TRACO output candidates to TS. More...
 
static const int RESOLPSI =512
 Costants: esolution for psi and DeltaPsiR (phi_B) More...
 
static const int RESOLPSIR =4096
 Costant: resulution for psiR (phi) 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 Attributes

int8_t m_btic
 
int8_t m_dd
 
int8_t m_debug
 
int8_t m_fhism
 
int8_t m_fhtmsk
 
int8_t m_fhtprf
 
int8_t m_fltmsk
 
int8_t m_fprgcomp
 
int8_t m_fslmsk
 
int8_t m_ibtioff
 
int16_t m_kprgcom
 
int8_t m_krad
 
int8_t m_ltf
 
int8_t m_lts
 
int8_t m_lvalidifh
 
int8_t m_reusei
 
int8_t m_reuseo
 
int8_t m_shism
 
int8_t m_shtmsk
 
int8_t m_shtprf
 
int8_t m_sltmsk
 
int8_t m_sprgcomp
 
int8_t 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 40 of file DTConfigTraco.cc.

References setDefaults().

40  {
41 
42  setDefaults(ps);
43 
44 }
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
DTConfigTraco::DTConfigTraco ( )
inline

Constructor.

Definition at line 55 of file DTConfigTraco.h.

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

Constructor from string.

Definition at line 46 of file DTConfigTraco.cc.

References gather_cfg::cout, createTree::dd, debug(), Exception, i, m_debug, setBendingAngleCut(), setBTIC(), setDD(), setIBTIOFF(), setKRAD(), setLVALIDIFH(), setPrefHtrig(), setPrefInner(), setSingleHflag(), setSingleLenab(), setSingleLflag(), setSortKascend(), setTcBxLts(), setTcKToll(), setTcReuse(), setUsedBti(), and lumiQTWidget::t.

46  {
47 
48  m_debug = debugTRACO;
49 
50  // check if this is a TRACO configuration string
51  if (buffer[2]!=0x15){
52  throw cms::Exception("DTTPG") << "===> ConfigTraco constructor : not a TRACO string!" << std::endl;
53  }
54 
55  // decode
56  unsigned short int memory_traco[38];
57 
58  for(int i=0;i<38;i++){
59  memory_traco[i] = buffer[i+5];
60  //std::cout << hex << memory_traco[i];
61  }
62  int btic = memory_traco[0] & 0x3f ;
63  int rad = ( ( memory_traco[0] & 0xc0 ) >> 6 ) | ( ( memory_traco[1] & 0x7 ) << 2 ) ;
64  int dd = ( memory_traco[1] & 0xf8 ) >> 3 ;
65  int fprgcomp = memory_traco[2] & 0x3 ;
66  int sprgcomp = memory_traco[3] & 0x3 ;
67  int fhism = ( memory_traco[2] & 0x4 ) != 0 ;
68  int fhtprf = ( memory_traco[2] & 0x8 ) != 0 ;
69  int fslmsk = ( memory_traco[2] & 0x10 ) != 0 ;
70  int fltmsk = ( memory_traco[2] & 0x20 ) != 0 ;
71  int fhtmsk = ( memory_traco[2] & 0x40 ) != 0 ;
72  int shism = ( memory_traco[3] & 0x4 ) != 0 ;
73  int shtprf = ( memory_traco[3] & 0x8 ) != 0 ;
74  int sslmsk = ( memory_traco[3] & 0x10 ) != 0 ;
75  int sltmsk = ( memory_traco[3] & 0x20 ) != 0 ;
76  int shtmsk = ( memory_traco[3] & 0x40 ) != 0 ;
77  int reusei = ( memory_traco[2] & 0x80 ) != 0 ;
78  int reuseo = ( memory_traco[3] & 0x80 ) != 0 ;
79  int ltf = ( memory_traco[4] & 1 ) != 0 ;
80  int lts = ( memory_traco[4] & 2 ) != 0 ;
81  int prgdel = ( memory_traco[4] & 0x1c ) >> 2 ;
82  int snapcor = ( memory_traco[4] & 0xe0 ) >> 5 ;
83  int trgenb[16];
84  for(int it=0; it<2; it++)
85  {
86  trgenb[0+it*8] = memory_traco[5+it] & 0x01;
87  trgenb[1+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
88  trgenb[2+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
89  trgenb[3+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
90  trgenb[4+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
91  trgenb[5+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
92  trgenb[6+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
93  trgenb[7+it*8] = (memory_traco[5+it] >> 1 ) & 0x01;
94  }
95  int trgadel = memory_traco[7] & 0x3 ;
96  int ibtioff = ( memory_traco[7] & 0xfc ) >> 2 ;
97  int kprgcom = ( memory_traco[8] & 0xff ) ;
98  int testmode = ( memory_traco[9] & 1 ) != 0 ;
99  int starttest = ( memory_traco[9] & 2 ) != 0 ;
100  int prvsignmux = ( memory_traco[9] & 4 ) != 0 ;
101  int lth = ( memory_traco[9] & 8 ) != 0 ;
102 
103  if(debug()==1)
104  {
105  std::cout << "btic=" << btic
106  << " rad=" << rad
107  << " dd=" << dd
108  << " fprgcomp=" << fprgcomp
109  << " sprgcomp=" << sprgcomp
110  << " fhism=" << fhism
111  << " fhtprf=" << fhtprf
112  << " fslmsk=" << fslmsk
113  << " fltmsk=" << fltmsk
114  << " fhtmsk=" << fhtmsk
115  << " shism=" << shism
116  << " shtprf=" << shtprf
117  << " sslmsk=" << sslmsk
118  << " sltmsk=" << sltmsk
119  << " shtmsk=" << shtmsk
120  << " reusei=" << reusei
121  << " reuseo=" << reuseo
122  << " ltf=" << ltf
123  << " lts=" << lts
124  << " prgdel=" << prgdel
125  << " snapcor=" << snapcor
126  << " trgenb=";
127  for(int t=0; t<16; t++)
128  std::cout << trgenb[t] << " ";
129  std::cout << " trgadel=" << trgadel
130  << " ibtioff=" << ibtioff
131  << " kprgcom=" << kprgcom
132  << " testmode=" << testmode
133  << " starttest=" << starttest
134  << " prvsignmux=" << prvsignmux
135  << " lth=" << lth << std::endl;
136 
137  }
138 
139  // set parameters
140  setBTIC(btic);
141  setKRAD(rad);
142  setDD(dd);
143  setTcKToll(0,fprgcomp);
144  setTcKToll(1,sprgcomp);
145  setSortKascend(0,fhism);
146  setSortKascend(1,shism);
147  setPrefHtrig(0,fhtprf);
148  setPrefHtrig(1,shtprf);
149  setPrefInner(0,fslmsk);
150  setPrefInner(1,sslmsk);
151  setSingleLflag(0,fltmsk);
152  setSingleLflag(1,sltmsk);
153  setSingleHflag(0,fhtmsk);
154  setSingleHflag(1,shtmsk);
155  setTcReuse(0,reusei);
156  setTcReuse(1,reuseo);
157  setSingleLenab(0,ltf);
158  setSingleLenab(1,ltf);
159  setTcBxLts(lts);
160  setIBTIOFF(ibtioff);
161  setBendingAngleCut(kprgcom);
162  setLVALIDIFH(lth);
163  for(int t=0; t<16; t++)
164  setUsedBti(t+1,trgenb[t]);
165 
166  // the following are not relevant for simulation
167  // prgdel, snapcor, trgadel, testmode, starttest, prvsignmux
168 }
int i
Definition: DBlmapReader.cc:9
void setPrefInner(int i, int prefInner)
Set Preference to inner on first/second tracks: F(S)SLMSK.
void setBTIC(int BTIC)
Set BTIC traco parameter: must be equal to Btis ST parameter.
void setSingleLenab(int i, int singleLenab)
Set Single LTRIG accept enabling on first/second tracks LTF.
void setSortKascend(int i, int sortKascend)
Set Ascend. order for K sorting first/second tracks: F(S)HISM.
void setIBTIOFF(int IBTIOFF)
Set IBTIOFF traco parameter.
void setUsedBti(int bti, int mask)
Set Connected bti in traco: bti mask.
void setDD(int DD)
Set DD traco parameter: this is fixed.
void setPrefHtrig(int i, int prefHtrig)
Set Preference to HTRIG on first/second tracks: F(S)HTPRF.
void setBendingAngleCut(int BendingAngleCut)
Set Bending angle cut for all stations and triggers : KPRGCOM.
void setTcKToll(int i, int TcKToll)
Set K tollerance for correlation in TRACO: F(S)PRGCOMP.
void setSingleHflag(int i, int singleHflag)
Set Single HTRIG enabling on first/second tracks F(S)HTMSK.
void setTcReuse(int i, int TcReuse)
Set Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
void setKRAD(int KRAD)
Set KRAD traco parameter.
void setSingleLflag(int i, int singleLflag)
Set Single LTRIG enabling on first/second tracks: F(S)LTMSK.
void setTcBxLts(int TcBxLts)
Set Suppr. of LTRIG in 4 BX before HTRIG: LTS.
tuple cout
Definition: gather_cfg.py:145
void setLVALIDIFH(int LVALIDIFH)
Set Flag for Low validation parameter.
int debug() const
Debug flag.
Definition: DTConfigTraco.h:67
DTConfigTraco::~DTConfigTraco ( )

Destructor.

Definition at line 173 of file DTConfigTraco.cc.

173 {}

Member Function Documentation

int DTConfigTraco::BendingAngleCut ( ) const
inline

Bending angle cut for all stations and triggers : KPRGCOM.

Definition at line 148 of file DTConfigTraco.h.

References m_kprgcom.

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

148 { return m_kprgcom; }
int16_t m_kprgcom
int DTConfigTraco::BTIC ( ) const
inline

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

Definition at line 73 of file DTConfigTraco.h.

References m_btic.

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

73 { return m_btic;}
int DTConfigTraco::DD ( ) const
inline

DD traco parameter: this is fixed.

Definition at line 76 of file DTConfigTraco.h.

References m_dd.

Referenced by print(), and setDD().

76 { return m_dd;}
int DTConfigTraco::debug ( ) const
inline
int DTConfigTraco::IBTIOFF ( ) const
inline

IBTIOFF traco parameter.

Definition at line 145 of file DTConfigTraco.h.

References m_ibtioff.

Referenced by print(), and setIBTIOFF().

145 { return m_ibtioff; }
int DTConfigTraco::KRAD ( ) const
inline

KRAD traco parameter.

Definition at line 70 of file DTConfigTraco.h.

References m_krad.

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

70 { return m_krad;}
int DTConfigTraco::LVALIDIFH ( ) const
inline

Flag for Low validation parameter.

Definition at line 151 of file DTConfigTraco.h.

References m_lvalidifh.

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

151 { return m_lvalidifh;}
int8_t m_lvalidifh
int DTConfigTraco::prefHtrig ( int  i) const
inline

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

Definition at line 111 of file DTConfigTraco.h.

References m_fhtprf, and m_shtprf.

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

111  {
112  if(i==0)
113  return m_fhtprf;
114  else
115  return m_shtprf;
116  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::prefInner ( int  i) const
inline

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

Definition at line 103 of file DTConfigTraco.h.

References m_fslmsk, and m_sslmsk.

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

103  {
104  if(i==0)
105  return m_fslmsk;
106  else
107  return m_sslmsk;
108  }
int i
Definition: DBlmapReader.cc:9
void DTConfigTraco::print ( void  ) const

Print the setup.

Definition at line 252 of file DTConfigTraco.cc.

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

252  {
253  std::cout << "******************************************************************************" << std::endl;
254  std::cout << "* DTTrigger configuration : TRACO chips *" << std::endl;
255  std::cout << "******************************************************************************" << std::endl;
256  std::cout << "* *" << std::endl;
257  std::cout << "Debug flag : " << debug() << std::endl;
258  std::cout << "KRAD traco parameter : " << KRAD() << std::endl;
259  std::cout << "BTIC traco parameter : " << BTIC() << std::endl;
260  std::cout << "DD traco parameter : " << DD() << std::endl;
261  std::cout << "REUSEI, REUSEO : " << TcReuse(0) << ", " << TcReuse(1) << std::endl;
262  std::cout << "FHTMSK, SHTMSK : " << singleHflag(0) << ", " << singleHflag(1) << std::endl;
263  std::cout << "FLTMSK, SLTMSK: " << singleLflag(0) << ", " << singleLflag(1) << std::endl;
264  std::cout << "FSLMSK, SSLMSK : " << prefInner(0) << ", " << prefInner(1) << std::endl;
265  std::cout << "FHTPRF, SHTPRF : " << prefHtrig(0) << ", " << prefHtrig(1) << std::endl;
266  std::cout << "FHISM, SHISM : " << sortKascend(0) << ", " << sortKascend(1) << std::endl;
267  std::cout << "FPRGCOMP, SPRGCOMP : " << TcKToll(0) << ", " << TcKToll(1) << std::endl;
268  std::cout << "LTS : " << TcBxLts() << std::endl;
269  std::cout << "LTF : " << singleLenab(0) << std::endl;
270  std::cout << "Connected bti in traco - bti mask : ";
271  for(int b=1; b<=16; b++)
272  std::cout << usedBti(b) << " ";
273  std::cout << std::endl;
274  std::cout << "IBTIOFF : " << IBTIOFF() << std::endl;
275  std::cout << "bending angle cut : " << BendingAngleCut() << std::endl;
276  std::cout << "flag for Low validation parameter : " << LVALIDIFH() << std::endl;
277  std::cout << "******************************************************************************" << std::endl;
278 
279 }
int KRAD() const
KRAD traco parameter.
Definition: DTConfigTraco.h:70
int prefHtrig(int i) const
Preference to HTRIG on first/second tracks: F(S)HTPRF.
int LVALIDIFH() const
Flag for Low validation parameter.
int singleLenab(int i) const
Single LTRIG accept enabling on first/second tracks LTF.
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:73
int BendingAngleCut() const
Bending angle cut for all stations and triggers : KPRGCOM.
int TcBxLts() const
Suppr. of LTRIG in 4 BX before HTRIG: LTS.
int singleHflag(int i) const
Single HTRIG enabling on first/second tracks F(S)HTMSK.
Definition: DTConfigTraco.h:87
int TcKToll(int i) const
K tollerance for correlation in TRACO: F(S)PRGCOMP.
int prefInner(int i) const
Preference to inner on first/second tracks: F(S)SLMSK.
double b
Definition: hdecay.h:120
int usedBti(int bti) const
Connected bti in traco: bti mask.
int DD() const
DD traco parameter: this is fixed.
Definition: DTConfigTraco.h:76
int singleLflag(int i) const
Single LTRIG enabling on first/second tracks: F(S)LTMSK.
Definition: DTConfigTraco.h:95
tuple cout
Definition: gather_cfg.py:145
int TcReuse(int i) const
Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
Definition: DTConfigTraco.h:79
int debug() const
Debug flag.
Definition: DTConfigTraco.h:67
int sortKascend(int i) const
Ascend. order for K sorting first/second tracks: F(S)HISM.
int IBTIOFF() const
IBTIOFF traco parameter.
void DTConfigTraco::setBendingAngleCut ( int  BendingAngleCut)
inline

Set Bending angle cut for all stations and triggers : KPRGCOM.

Definition at line 236 of file DTConfigTraco.h.

References BendingAngleCut(), and m_kprgcom.

Referenced by DTConfigTraco().

int BendingAngleCut() const
Bending angle cut for all stations and triggers : KPRGCOM.
int16_t m_kprgcom
void DTConfigTraco::setBTIC ( int  BTIC)
inline

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

Definition at line 161 of file DTConfigTraco.h.

References BTIC(), and m_btic.

Referenced by DTConfigTraco().

161 { m_btic=BTIC;}
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:73
void DTConfigTraco::setDD ( int  DD)
inline

Set DD traco parameter: this is fixed.

Definition at line 164 of file DTConfigTraco.h.

References DD(), and m_dd.

Referenced by DTConfigTraco().

164 { m_dd=DD;}
int DD() const
DD traco parameter: this is fixed.
Definition: DTConfigTraco.h:76
void DTConfigTraco::setDebug ( int  debug)
inline

Set single parameter functions Set debug flag

Definition at line 155 of file DTConfigTraco.h.

References debug(), and m_debug.

155 { m_debug=debug; }
int debug() const
Debug flag.
Definition: DTConfigTraco.h:67
void DTConfigTraco::setDefaults ( const edm::ParameterSet ps)

Set default parameters.

Definition at line 180 of file DTConfigTraco.cc.

References b, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), diffTwoXMLs::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, BitArray< N >::set(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by DTConfigTraco().

180  {
181 
182  // Debug flag
183  m_debug = ps.getUntrackedParameter<int>("Debug");
184 
185  // KRAD traco parameter
186  m_krad = ps.getParameter<int>("KRAD");
187 
188  // BTIC traco parameter
189  m_btic = ps.getParameter<int>("BTIC");
190 
191  // DD traco parameter: this is fixed
192  m_dd = ps.getParameter<int>("DD");
193 
194  // recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO
195  m_reusei = ps.getParameter<int>("REUSEI");
196  m_reuseo = ps.getParameter<int>("REUSEO");
197 
198  // single HTRIG enabling on first/second tracks F(S)HTMSK
199  m_fhtmsk = ps.getParameter<int>("FHTMSK");
200  m_shtmsk = ps.getParameter<int>("SHTMSK");
201 
202  // single LTRIG enabling on first/second tracks: F(S)LTMSK
203  m_fltmsk = ps.getParameter<int>("FLTMSK");
204  m_sltmsk = ps.getParameter<int>("SLTMSK");
205 
206  // preference to inner on first/second tracks: F(S)SLMSK
207  m_fslmsk = ps.getParameter<int>("FSLMSK");
208  m_sslmsk = ps.getParameter<int>("SSLMSK");
209 
210  // preference to HTRIG on first/second tracks: F(S)HTPRF
211  m_fhtprf = ps.getParameter<int>("FHTPRF");
212  m_shtprf = ps.getParameter<int>("SHTPRF");
213 
214  // ascend. order for K sorting first/second tracks: F(S)HISM
215  m_fhism = ps.getParameter<int>("FHISM");
216  m_shism = ps.getParameter<int>("SHISM");
217 
218  // K tollerance for correlation in TRACO: F(S)PRGCOMP
219  m_fprgcomp = ps.getParameter<int>("FPRGCOMP");
220  m_sprgcomp = ps.getParameter<int>("SPRGCOMP");
221 
222  // suppr. of LTRIG in 4 BX before HTRIG: LTS
223  m_lts = ps.getParameter<int>("LTS");
224 
225  // single LTRIG accept enabling on first/second tracks LTF
226  m_ltf = ps.getParameter<int>("LTF");
227 
228  // Connected bti in traco: bti mask
229  for(int b=0; b<16; b++)
230  {
231  std::string label = "TRGENB";
232  char p0 = (b/10)+'0';
233  char p1 = (b%10)+'0';
234  if ( p0 != '0' )
235  label = label + p0;
236  label = label + p1;
237 
238  m_trgenb.set(b,ps.getParameter<int>(label));
239  }
240 
241  // IBTIOFF traco parameter
242  m_ibtioff = ps.getParameter<int>("IBTIOFF");
243 
244  // bending angle cut for all stations and triggers : KPRGCOM
245  m_kprgcom = ps.getParameter<int>("KPRGCOM");
246 
247  // flag for Low validation parameter
248  m_lvalidifh = ps.getParameter<int>("LVALIDIFH");
249 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int8_t m_lvalidifh
BitArray< 16 > m_trgenb
int16_t m_kprgcom
double b
Definition: hdecay.h:120
double p1[4]
Definition: TauolaWrapper.h:89
void set(const int i)
Definition: BitArray.h:230
void DTConfigTraco::setIBTIOFF ( int  IBTIOFF)
inline

Set IBTIOFF traco parameter.

Definition at line 233 of file DTConfigTraco.h.

References IBTIOFF(), and m_ibtioff.

Referenced by DTConfigTraco().

233 { m_ibtioff=IBTIOFF; }
int IBTIOFF() const
IBTIOFF traco parameter.
void DTConfigTraco::setKRAD ( int  KRAD)
inline

Set KRAD traco parameter.

Definition at line 158 of file DTConfigTraco.h.

References KRAD(), and m_krad.

Referenced by DTConfigTraco().

158 { m_krad=KRAD;}
int KRAD() const
KRAD traco parameter.
Definition: DTConfigTraco.h:70
void DTConfigTraco::setLVALIDIFH ( int  LVALIDIFH)
inline

Set Flag for Low validation parameter.

Definition at line 239 of file DTConfigTraco.h.

References LVALIDIFH(), and m_lvalidifh.

Referenced by DTConfigTraco().

int LVALIDIFH() const
Flag for Low validation parameter.
int8_t m_lvalidifh
void DTConfigTraco::setPrefHtrig ( int  i,
int  prefHtrig 
)
inline

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

Definition at line 199 of file DTConfigTraco.h.

References m_fhtprf, m_shtprf, and prefHtrig().

Referenced by DTConfigTraco().

199  {
200  if(i==0)
202  else
204  }
int i
Definition: DBlmapReader.cc:9
int prefHtrig(int i) const
Preference to HTRIG on first/second tracks: F(S)HTPRF.
void DTConfigTraco::setPrefInner ( int  i,
int  prefInner 
)
inline

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

Definition at line 191 of file DTConfigTraco.h.

References m_fslmsk, m_sslmsk, and prefInner().

Referenced by DTConfigTraco().

191  {
192  if(i==0)
194  else
196  }
int i
Definition: DBlmapReader.cc:9
int prefInner(int i) const
Preference to inner on first/second tracks: F(S)SLMSK.
void DTConfigTraco::setSingleHflag ( int  i,
int  singleHflag 
)
inline

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

Definition at line 175 of file DTConfigTraco.h.

References m_fhtmsk, m_shtmsk, and singleHflag().

Referenced by DTConfigTraco().

175  {
176  if(i==0)
178  else
180  }
int i
Definition: DBlmapReader.cc:9
int singleHflag(int i) const
Single HTRIG enabling on first/second tracks F(S)HTMSK.
Definition: DTConfigTraco.h:87
void DTConfigTraco::setSingleLenab ( int  i,
int  singleLenab 
)
inline

Set Single LTRIG accept enabling on first/second tracks LTF.

Definition at line 227 of file DTConfigTraco.h.

References m_ltf, and singleLenab().

Referenced by DTConfigTraco().

227 { m_ltf=singleLenab; }
int singleLenab(int i) const
Single LTRIG accept enabling on first/second tracks LTF.
void DTConfigTraco::setSingleLflag ( int  i,
int  singleLflag 
)
inline

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

Definition at line 183 of file DTConfigTraco.h.

References m_fltmsk, m_sltmsk, and singleLflag().

Referenced by DTConfigTraco().

183  {
184  if(i==0)
186  else
188  }
int i
Definition: DBlmapReader.cc:9
int singleLflag(int i) const
Single LTRIG enabling on first/second tracks: F(S)LTMSK.
Definition: DTConfigTraco.h:95
void DTConfigTraco::setSortKascend ( int  i,
int  sortKascend 
)
inline

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

Definition at line 207 of file DTConfigTraco.h.

References m_fhism, m_shism, and sortKascend().

Referenced by DTConfigTraco().

207  {
208  if(i==0)
210  else
212  }
int i
Definition: DBlmapReader.cc:9
int sortKascend(int i) const
Ascend. order for K sorting first/second tracks: F(S)HISM.
void DTConfigTraco::setTcBxLts ( int  TcBxLts)
inline

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

Definition at line 224 of file DTConfigTraco.h.

References m_lts, and TcBxLts().

Referenced by DTConfigTraco().

224 { m_lts=TcBxLts; }
int TcBxLts() const
Suppr. of LTRIG in 4 BX before HTRIG: LTS.
void DTConfigTraco::setTcKToll ( int  i,
int  TcKToll 
)
inline

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

Definition at line 216 of file DTConfigTraco.h.

References m_fprgcomp, m_sprgcomp, and TcKToll().

Referenced by DTConfigTraco().

216  {
217  if(i==0)
219  else
221  }
int i
Definition: DBlmapReader.cc:9
int TcKToll(int i) const
K tollerance for correlation in TRACO: F(S)PRGCOMP.
void DTConfigTraco::setTcReuse ( int  i,
int  TcReuse 
)
inline

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

Definition at line 167 of file DTConfigTraco.h.

References m_reusei, m_reuseo, and TcReuse().

Referenced by DTConfigTraco().

167  {
168  if(i==0)
170  else
172  }
int i
Definition: DBlmapReader.cc:9
int TcReuse(int i) const
Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
Definition: DTConfigTraco.h:79
void DTConfigTraco::setUsedBti ( int  bti,
int  mask 
)
inline

Set Connected bti in traco: bti mask.

Definition at line 230 of file DTConfigTraco.h.

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

Referenced by DTConfigTraco().

230 { m_trgenb.set(bti-1,mask); }
BitArray< 16 > m_trgenb
void set(const int i)
Definition: BitArray.h:230
int DTConfigTraco::singleHflag ( int  i) const
inline

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

Definition at line 87 of file DTConfigTraco.h.

References m_fhtmsk, and m_shtmsk.

Referenced by print(), and setSingleHflag().

87  {
88  if(i==0)
89  return m_fhtmsk;
90  else
91  return m_shtmsk;
92  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::singleLenab ( int  i) const
inline

Single LTRIG accept enabling on first/second tracks LTF.

Definition at line 139 of file DTConfigTraco.h.

References m_ltf.

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

139 { return m_ltf; }
int DTConfigTraco::singleLflag ( int  i) const
inline

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

Definition at line 95 of file DTConfigTraco.h.

References m_fltmsk, and m_sltmsk.

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

95  {
96  if(i==0)
97  return m_fltmsk;
98  else
99  return m_sltmsk;
100  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::sortKascend ( int  i) const
inline

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

Definition at line 119 of file DTConfigTraco.h.

References m_fhism, and m_shism.

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

119  {
120  if(i==0)
121  return m_fhism;
122  else
123  return m_shism;
124  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::TcBxLts ( ) const
inline

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

Definition at line 136 of file DTConfigTraco.h.

References m_lts.

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

136 { return m_lts; }
int DTConfigTraco::TcKToll ( int  i) const
inline

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

Definition at line 128 of file DTConfigTraco.h.

References m_fprgcomp, and m_sprgcomp.

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

128  {
129  if(i==0)
130  return m_fprgcomp;
131  else
132  return m_sprgcomp;
133  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::TcReuse ( int  i) const
inline

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

Definition at line 79 of file DTConfigTraco.h.

References m_reusei, and m_reuseo.

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

79  {
80  if(i==0)
81  return m_reusei;
82  else
83  return m_reuseo;
84  }
int i
Definition: DBlmapReader.cc:9
int DTConfigTraco::usedBti ( int  bti) const
inline

Connected bti in traco: bti mask.

Definition at line 142 of file DTConfigTraco.h.

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

Referenced by print().

142 { return m_trgenb.element(bti-1); }
BitArray< 16 > m_trgenb
int element(const int pos) const
Definition: BitArray.h:210

Member Data Documentation

int8_t DTConfigTraco::m_btic
private

Definition at line 253 of file DTConfigTraco.h.

Referenced by BTIC(), setBTIC(), and setDefaults().

int8_t DTConfigTraco::m_dd
private

Definition at line 254 of file DTConfigTraco.h.

Referenced by DD(), setDD(), and setDefaults().

int8_t DTConfigTraco::m_debug
private

Definition at line 251 of file DTConfigTraco.h.

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

int8_t DTConfigTraco::m_fhism
private

Definition at line 265 of file DTConfigTraco.h.

Referenced by setDefaults(), setSortKascend(), and sortKascend().

int8_t DTConfigTraco::m_fhtmsk
private

Definition at line 257 of file DTConfigTraco.h.

Referenced by setDefaults(), setSingleHflag(), and singleHflag().

int8_t DTConfigTraco::m_fhtprf
private

Definition at line 263 of file DTConfigTraco.h.

Referenced by prefHtrig(), setDefaults(), and setPrefHtrig().

int8_t DTConfigTraco::m_fltmsk
private

Definition at line 259 of file DTConfigTraco.h.

Referenced by setDefaults(), setSingleLflag(), and singleLflag().

int8_t DTConfigTraco::m_fprgcomp
private

Definition at line 267 of file DTConfigTraco.h.

Referenced by setDefaults(), setTcKToll(), and TcKToll().

int8_t DTConfigTraco::m_fslmsk
private

Definition at line 261 of file DTConfigTraco.h.

Referenced by prefInner(), setDefaults(), and setPrefInner().

int8_t DTConfigTraco::m_ibtioff
private

Definition at line 272 of file DTConfigTraco.h.

Referenced by IBTIOFF(), setDefaults(), and setIBTIOFF().

int16_t DTConfigTraco::m_kprgcom
private

Definition at line 273 of file DTConfigTraco.h.

Referenced by BendingAngleCut(), setBendingAngleCut(), and setDefaults().

int8_t DTConfigTraco::m_krad
private

Definition at line 252 of file DTConfigTraco.h.

Referenced by KRAD(), setDefaults(), and setKRAD().

int8_t DTConfigTraco::m_ltf
private

Definition at line 270 of file DTConfigTraco.h.

Referenced by setDefaults(), setSingleLenab(), and singleLenab().

int8_t DTConfigTraco::m_lts
private

Definition at line 269 of file DTConfigTraco.h.

Referenced by setDefaults(), setTcBxLts(), and TcBxLts().

int8_t DTConfigTraco::m_lvalidifh
private

Definition at line 274 of file DTConfigTraco.h.

Referenced by LVALIDIFH(), setDefaults(), and setLVALIDIFH().

int8_t DTConfigTraco::m_reusei
private

Definition at line 255 of file DTConfigTraco.h.

Referenced by setDefaults(), setTcReuse(), and TcReuse().

int8_t DTConfigTraco::m_reuseo
private

Definition at line 256 of file DTConfigTraco.h.

Referenced by setDefaults(), setTcReuse(), and TcReuse().

int8_t DTConfigTraco::m_shism
private

Definition at line 266 of file DTConfigTraco.h.

Referenced by setDefaults(), setSortKascend(), and sortKascend().

int8_t DTConfigTraco::m_shtmsk
private

Definition at line 258 of file DTConfigTraco.h.

Referenced by setDefaults(), setSingleHflag(), and singleHflag().

int8_t DTConfigTraco::m_shtprf
private

Definition at line 264 of file DTConfigTraco.h.

Referenced by prefHtrig(), setDefaults(), and setPrefHtrig().

int8_t DTConfigTraco::m_sltmsk
private

Definition at line 260 of file DTConfigTraco.h.

Referenced by setDefaults(), setSingleLflag(), and singleLflag().

int8_t DTConfigTraco::m_sprgcomp
private

Definition at line 268 of file DTConfigTraco.h.

Referenced by setDefaults(), setTcKToll(), and TcKToll().

int8_t DTConfigTraco::m_sslmsk
private

Definition at line 262 of file DTConfigTraco.h.

Referenced by prefInner(), setDefaults(), and setPrefInner().

BitArray<16> DTConfigTraco::m_trgenb
private

Definition at line 271 of file DTConfigTraco.h.

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

const int DTConfigTraco::RESOLPSIR =4096
static

Costant: resulution for psiR (phi)

Definition at line 46 of file DTConfigTraco.h.

Referenced by DTTracoChip::calculateAngles().