CMS 3D CMS Logo

CocoaDaqRootEvent.cc
Go to the documentation of this file.
1 //
3 // Alignment_Cocoa classes
4 // =======================
5 //
6 // see Alignment_Cocoa.hh for class defintions
7 //
8 // Author: Gervasio Gomez
9 //
11 
12 #include <iostream>
14 
22 
23 //-----------------------------------------------------------------------------
25  Header = new AliDaqEventHeader();
26  // define arrays of sensors
27  numPosCOPS = 0;
28  numPos2D = 0;
29  numTilt = 0;
30  numDist = 0;
31  numTemp = 0;
32  Array_PositionCOPS = new TClonesArray("AliDaqPositionCOPS", 50);
33  Array_Position2D = new TClonesArray("AliDaqPosition2D", 50);
34  Array_Tilt = new TClonesArray("AliDaqTilt", 50);
35  Array_Dist = new TClonesArray("AliDaqDistance", 50);
36  Array_Temp = new TClonesArray("AliDaqTemperature", 50);
37 }
38 
39 //-----------------------------------------------------------------------------
40 
42  // Dump to screen all Alignment info
43  Header->DumpIt();
44  for (int i = 0; i < numPosCOPS; i++) {
46  posCOPS->DumpIt(posCOPS->GetID());
47  }
48  for (int i = 0; i < numPos2D; i++) {
50  pos2D->DumpIt(pos2D->GetID());
51  }
52  for (int i = 0; i < numTilt; i++) {
53  AliDaqTilt* tilt = (AliDaqTilt*)Array_Tilt->At(i);
54  tilt->DumpIt(tilt->GetID());
55  }
56  for (int i = 0; i < numDist; i++) {
58  dist->DumpIt(dist->GetID());
59  }
60  for (int i = 0; i < numTemp; i++) {
62  temp->DumpIt(temp->GetID());
63  }
64 }
65 
66 //-----------------------------------------------------------------------------
67 
69  std::cout << std::endl;
70  std::cout << "------------------------------- Event Header ------------------------------" << std::endl;
71  std::cout << "Time stamp = " << fTimeStamp << std::endl;
72  std::cout << "Run number = " << fRunNum << std::endl;
73  std::cout << "Event number = " << fEvtNum << std::endl;
74  std::cout << std::endl;
75 }
76 
77 //-----------------------------------------------------------------------------
78 
79 void AliDaqPosition2D::DumpIt(const TString& Name) {
80  TString dashes = "------------------------------";
81  TString line = dashes + Name + dashes;
82  std::cout << std::endl;
83  std::cout << line << std::endl;
84  std::cout << "Time stamp = " << fTimeStamp << std::endl;
85  std::cout << "X = " << fX << std::endl;
86  std::cout << "Y = " << fY << std::endl;
87  std::cout << "X error = " << fX_error << std::endl;
88  std::cout << "Y error = " << fY_error << std::endl;
89  std::cout << "ID = " << fID << std::endl;
90  std::cout << std::endl;
91 }
92 
93 //-----------------------------------------------------------------------------
94 
95 void AliDaqPositionCOPS::DumpIt(const TString& Name) {
96  TString dashes = "------------------------------";
97  TString line = dashes + Name + dashes;
98  std::cout << std::endl;
99  std::cout << line << std::endl;
100  std::cout << "Time stamp = " << fTimeStamp << std::endl;
101  std::cout << "DCOPS_up = " << fDCOPS_up << std::endl;
102  std::cout << "DCOPS_down = " << fDCOPS_down << std::endl;
103  std::cout << "DCOPS_left = " << fDCOPS_left << std::endl;
104  std::cout << "DCOPS_right = " << fDCOPS_right << std::endl;
105  std::cout << "DCOPS_up_error = " << fDCOPS_up_error << std::endl;
106  std::cout << "DCOPS_down_error = " << fDCOPS_down_error << std::endl;
107  std::cout << "DCOPS_left_error = " << fDCOPS_left_error << std::endl;
108  std::cout << "DCOPS_right_error = " << fDCOPS_right_error << std::endl;
109  std::cout << "ID = " << fID << std::endl;
110  std::cout << std::endl;
111 }
112 
113 //-----------------------------------------------------------------------------
114 
115 void AliDaqTilt::DumpIt(const TString& Name) {
116  TString dashes = "------------------------------";
117  TString line = dashes + Name + dashes;
118  std::cout << std::endl;
119  std::cout << line << std::endl;
120  std::cout << "Time stamp = " << fTimeStamp << std::endl;
121  std::cout << "Tilt = " << fTilt << std::endl;
122  std::cout << "Tilt error = " << fTilt_error << std::endl;
123  std::cout << "ID = " << fID << std::endl;
124  std::cout << std::endl;
125 }
126 
127 //-----------------------------------------------------------------------------
128 
129 void AliDaqDistance::DumpIt(const TString& Name) {
130  TString dashes = "------------------------------";
131  TString line = dashes + Name + dashes;
132  std::cout << std::endl;
133  std::cout << line << std::endl;
134  std::cout << "Time stamp = " << fTimeStamp << std::endl;
135  std::cout << "AliDaqDistance = " << fDistance << std::endl;
136  std::cout << "AliDaqDistance error = " << fDistance_error << std::endl;
137  std::cout << "ID = " << fID << std::endl;
138  std::cout << std::endl;
139 }
140 
141 //-----------------------------------------------------------------------------
142 
143 void AliDaqTemperature::DumpIt(const TString& Name) {
144  TString dashes = "------------------------------";
145  TString line = dashes + Name + dashes;
146  std::cout << std::endl;
147  std::cout << line << std::endl;
148  std::cout << "Time stamp = " << fTimeStamp << std::endl;
149  std::cout << "AliDaqTemperature = " << fTemperature << std::endl;
150  std::cout << "AliDaqTemperature error = " << fTemperature_error << std::endl;
151  std::cout << "ID = " << fID << std::endl;
152  std::cout << std::endl;
153 }
154 
155 //-----------------------------------------------------------------------------
void DumpIt(const TString &Name)
TClonesArray * Array_Dist
void DumpIt(const TString &Name)
TString GetID()
TClonesArray * Array_Temp
TClonesArray * Array_Position2D
ClassImp(AliDaqEventHeader)
void DumpIt(const TString &Name)
TClonesArray * Array_Tilt
void DumpIt(const TString &Name)
Float_t fTilt_error
TClonesArray * Array_PositionCOPS
void DumpIt(const TString &Name)