test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTracoTrigData.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTTracoTrigData
4 //
5 // Description: TRACO Trigger Data
6 //
7 //
8 // Author List:
9 // C. Grandi
10 // Modifications:
11 // 22/VI/04 SV: last trigger code update
12 //
13 //
14 //--------------------------------------------------
15 
16 //-----------------------
17 // This Class's Header --
18 //-----------------------
20 
21 //-------------------------------
22 // Collaborating Class Headers --
23 //-------------------------------
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <iostream>
29 
30 using namespace std;
31 
32 //----------------
33 // Constructors --
34 //----------------
36  : _tracoid(tracoid), _step(step) {
37  clear();
38 }
39 
40 
41 //--------------
42 // Operations --
43 //--------------
44 
45 int
47  // This is consistent with memo
48  if (_codeIn==8 && _codeOut==8) return 6; // HH
49  if (_codeIn==8 && _codeOut==0) return 2; // Hinner
50  if (_codeIn==0 && _codeOut==8) return 3; // Houter
51  if (_codeIn >0 && _codeOut==8) return 5; // LH
52  if (_codeIn==8 && _codeOut> 0) return 5; // HL
53  if (_codeIn> 0 && _codeOut> 0) return 4; // LL
54  if (_codeIn> 0 && _codeOut==0) return 0; // Linner
55  if (_codeIn==0 && _codeOut> 0) return 1; // Louter
56  return 7; // null
57 }
58 
59 void
61  cout << "TRACO Id=" << " ( " << _tracoid.wheel() ;
62  cout << " , " << _tracoid.station() ;
63  cout << " , " << _tracoid.sector() ;
64  cout << " # " << _tracoid.traco() ;
65  cout << " ) " << " step: " << step();
66 
67  cout << dec << " code=" << code() << " K=" << K() << " X=" << X();
68  cout << dec << " PVcode=" << pvCode() << " PVk=" << pvK() << " qdec=" << qdec();
69  cout << " qdec=" << qdec();
70  cout << hex << " psiR=" << psiR() << " DeltaPsiR=" << DeltaPsiR() << dec << endl;
71  if(isFirst())
72  cout << " I trk";
73  if(!isFirst())
74  cout << " II trk";
75  cout << " (";
76  if(!pvCorr()) cout << "NOT ";
77  cout << "correlated)" << endl;
78 }
DTTracoTrigData()
Constructor.
void print() const
print
int psiR() const
Return trigger X parameter converted to angle.
int step() const
Return step.
int pvCorr() const
Return the preview correaltion bit.
int X() const
Return trigger X parameter.
int sector() const
Returns sector number.
Definition: DTTracoId.h:68
int traco() const
Returns the traco.
Definition: DTTracoId.h:70
void clear()
Clear.
int station() const
Returns station number.
Definition: DTTracoId.h:66
int isFirst() const
Return non 0 if the track is a first track.
int pvK() const
Return the preview K.
int DeltaPsiR() const
Return DeltaPsiR.
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:64
int pvCode() const
Return the preview code.
int qdec() const
Return the trigger code in new format.
int code() const
Return trigger code.
int K() const
Return trigger K parameter.
tuple cout
Definition: gather_cfg.py:145