test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
15 ClassImp(AliDaqEventHeader)
16 ClassImp(AliDaqPosition2D)
17 ClassImp(AliDaqPositionCOPS)
18 ClassImp(AliDaqTilt)
19 ClassImp(AliDaqDistance)
20 ClassImp(AliDaqTemperature)
21 ClassImp(CocoaDaqRootEvent)
22 
23 //-----------------------------------------------------------------------------
25 {
26  Header = new AliDaqEventHeader();
27  // define arrays of sensors
28  numPosCOPS = 0;
29  numPos2D = 0;
30  numTilt = 0;
31  numDist = 0;
32  numTemp = 0;
33  Array_PositionCOPS = new TClonesArray("AliDaqPositionCOPS",50);
34  Array_Position2D = new TClonesArray("AliDaqPosition2D",50);
35  Array_Tilt = new TClonesArray("AliDaqTilt",50);
36  Array_Dist = new TClonesArray("AliDaqDistance",50);
37  Array_Temp = new TClonesArray("AliDaqTemperature",50);
38 }
39 
40 //-----------------------------------------------------------------------------
41 
43 {
44  // Dump to screen all Alignment info
45  Header->DumpIt();
46  for(int i=0;i<numPosCOPS;i++){
48  posCOPS -> DumpIt(posCOPS->GetID());
49  }
50  for(int i=0;i<numPos2D;i++){
52  pos2D -> DumpIt(pos2D->GetID());
53  }
54  for(int i=0;i<numTilt;i++){
55  AliDaqTilt *tilt = (AliDaqTilt*) Array_Tilt->At(i);
56  tilt -> DumpIt(tilt->GetID());
57  }
58  for(int i=0;i<numDist;i++){
59  AliDaqDistance *dist = (AliDaqDistance*) Array_Dist->At(i);
60  dist -> DumpIt(dist->GetID());
61  }
62  for(int i=0;i<numTemp;i++){
64  temp -> DumpIt(temp->GetID());
65  }
66 }
67 
68 //-----------------------------------------------------------------------------
69 
71 {
72  std::cout<<std::endl;
73  std::cout<<"------------------------------- Event Header ------------------------------"<<std::endl;
74  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
75  std::cout<<"Run number = "<<fRunNum<<std::endl;
76  std::cout<<"Event number = "<<fEvtNum<<std::endl;
77  std::cout<<std::endl;
78 }
79 
80 //-----------------------------------------------------------------------------
81 
82 void AliDaqPosition2D::DumpIt(const TString& Name)
83 {
84  TString dashes = "------------------------------";
85  TString line = dashes+Name+dashes;
86  std::cout<<std::endl;
87  std::cout<<line<<std::endl;
88  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
89  std::cout<<"X = "<<fX<<std::endl;
90  std::cout<<"Y = "<<fY<<std::endl;
91  std::cout<<"X error = "<<fX_error<<std::endl;
92  std::cout<<"Y error = "<<fY_error<<std::endl;
93  std::cout<<"ID = "<<fID<<std::endl;
94  std::cout<<std::endl;
95 }
96 
97 //-----------------------------------------------------------------------------
98 
99 void AliDaqPositionCOPS::DumpIt(const TString& Name)
100 {
101  TString dashes = "------------------------------";
102  TString line = dashes+Name+dashes;
103  std::cout<<std::endl;
104  std::cout<<line<<std::endl;
105  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
106  std::cout<<"DCOPS_up = "<<fDCOPS_up<<std::endl;
107  std::cout<<"DCOPS_down = "<<fDCOPS_down<<std::endl;
108  std::cout<<"DCOPS_left = "<<fDCOPS_left<<std::endl;
109  std::cout<<"DCOPS_right = "<<fDCOPS_right<<std::endl;
110  std::cout<<"DCOPS_up_error = "<<fDCOPS_up_error<<std::endl;
111  std::cout<<"DCOPS_down_error = "<<fDCOPS_down_error<<std::endl;
112  std::cout<<"DCOPS_left_error = "<<fDCOPS_left_error<<std::endl;
113  std::cout<<"DCOPS_right_error = "<<fDCOPS_right_error<<std::endl;
114  std::cout<<"ID = "<<fID<<std::endl;
115  std::cout<<std::endl;
116 }
117 
118 //-----------------------------------------------------------------------------
119 
120 void AliDaqTilt::DumpIt(const TString& Name)
121 {
122  TString dashes = "------------------------------";
123  TString line = dashes+Name+dashes;
124  std::cout<<std::endl;
125  std::cout<<line<<std::endl;
126  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
127  std::cout<<"Tilt = "<<fTilt<<std::endl;
128  std::cout<<"Tilt error = "<<fTilt_error<<std::endl;
129  std::cout<<"ID = "<<fID<<std::endl;
130  std::cout<<std::endl;
131 }
132 
133 //-----------------------------------------------------------------------------
134 
135 void AliDaqDistance::DumpIt(const TString& Name)
136 {
137  TString dashes = "------------------------------";
138  TString line = dashes+Name+dashes;
139  std::cout<<std::endl;
140  std::cout<<line<<std::endl;
141  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
142  std::cout<<"AliDaqDistance = "<<fDistance<<std::endl;
143  std::cout<<"AliDaqDistance error = "<<fDistance_error<<std::endl;
144  std::cout<<"ID = "<<fID<<std::endl;
145  std::cout<<std::endl;
146 }
147 
148 //-----------------------------------------------------------------------------
149 
150 void AliDaqTemperature::DumpIt(const TString& Name)
151 {
152  TString dashes = "------------------------------";
153  TString line = dashes+Name+dashes;
154  std::cout<<std::endl;
155  std::cout<<line<<std::endl;
156  std::cout<<"Time stamp = "<<fTimeStamp<<std::endl;
157  std::cout<<"AliDaqTemperature = "<<fTemperature<<std::endl;
158  std::cout<<"AliDaqTemperature error = "<<fTemperature_error<<std::endl;
159  std::cout<<"ID = "<<fID<<std::endl;
160  std::cout<<std::endl;
161 }
162 
163 //-----------------------------------------------------------------------------
164 
int i
Definition: DBlmapReader.cc:9
void DumpIt(const TString &Name)
TClonesArray * Array_Dist
void DumpIt(const TString &Name)
TString GetID()
TClonesArray * Array_Temp
TClonesArray * Array_Position2D
void DumpIt(const TString &Name)
TClonesArray * Array_Tilt
tuple cout
Definition: gather_cfg.py:145
void DumpIt(const TString &Name)
Float_t fTilt_error
TClonesArray * Array_PositionCOPS
void DumpIt(const TString &Name)