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 //-----------------------------------------------------------------------------
AliDaqEventHeader::DumpIt
void DumpIt()
Definition: CocoaDaqRootEvent.cc:68
AliDaqTilt::fTilt
Float_t fTilt
Definition: CocoaDaqRootEvent.h:110
AliDaqPosition2D::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:56
mps_fire.i
i
Definition: mps_fire.py:428
AliDaqTemperature
Definition: CocoaDaqRootEvent.h:149
AliDaqPositionCOPS::fID
TString fID
Definition: CocoaDaqRootEvent.h:75
Header
Definition: MsgHeader.h:6
SiStripClientConfig_Tier0_cff.Name
Name
Definition: SiStripClientConfig_Tier0_cff.py:13
AliDaqPositionCOPS::fDCOPS_right_error
Float_t fDCOPS_right_error
Definition: CocoaDaqRootEvent.h:74
AliDaqTemperature::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:143
AliDaqTilt::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:115
AliDaqDistance::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:140
gather_cfg.cout
cout
Definition: gather_cfg.py:144
AliDaqTilt
Definition: CocoaDaqRootEvent.h:108
AliDaqEventHeader
Definition: CocoaDaqRootEvent.h:17
CocoaDaqRootEvent::Array_Temp
TClonesArray * Array_Temp
Definition: CocoaDaqRootEvent.h:176
CocoaDaqRootEvent::numPosCOPS
int numPosCOPS
Definition: CocoaDaqRootEvent.h:177
AliDaqPositionCOPS::fDCOPS_up_error
Float_t fDCOPS_up_error
Definition: CocoaDaqRootEvent.h:71
AliDaqPosition2D::fID
TString fID
Definition: CocoaDaqRootEvent.h:46
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
AliDaqDistance::fID
TString fID
Definition: CocoaDaqRootEvent.h:132
AliDaqPositionCOPS
Definition: CocoaDaqRootEvent.h:65
AliDaqTilt::fID
TString fID
Definition: CocoaDaqRootEvent.h:112
AliDaqDistance
Definition: CocoaDaqRootEvent.h:128
AliDaqDistance::fDistance
Float_t fDistance
Definition: CocoaDaqRootEvent.h:130
AliDaqPositionCOPS::fDCOPS_right
Float_t fDCOPS_right
Definition: CocoaDaqRootEvent.h:70
ClassImp
ClassImp(AliDaqEventHeader)
CocoaDaqRootEvent::numTemp
int numTemp
Definition: CocoaDaqRootEvent.h:181
AliDaqTilt::fTilt_error
Float_t fTilt_error
Definition: CocoaDaqRootEvent.h:111
CocoaDaqRootEvent::Array_Tilt
TClonesArray * Array_Tilt
Definition: CocoaDaqRootEvent.h:174
AliDaqPositionCOPS::fDCOPS_up
Float_t fDCOPS_up
Definition: CocoaDaqRootEvent.h:67
AliDaqPosition2D::fX
Float_t fX
Definition: CocoaDaqRootEvent.h:42
AliDaqPositionCOPS::fDCOPS_down_error
Float_t fDCOPS_down_error
Definition: CocoaDaqRootEvent.h:72
AliDaqPositionCOPS::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:76
AliDaqEventHeader::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:21
AliDaqEventHeader::fEvtNum
Int_t fEvtNum
Definition: CocoaDaqRootEvent.h:20
CocoaDaqRootEvent::CocoaDaqRootEvent
CocoaDaqRootEvent()
Definition: CocoaDaqRootEvent.cc:24
AliDaqPositionCOPS::fDCOPS_down
Float_t fDCOPS_down
Definition: CocoaDaqRootEvent.h:68
CocoaDaqRootEvent.h
AliDaqDistance::fDistance_error
Float_t fDistance_error
Definition: CocoaDaqRootEvent.h:131
CocoaDaqRootEvent::Array_Position2D
TClonesArray * Array_Position2D
Definition: CocoaDaqRootEvent.h:173
AliDaqPosition2D
Definition: CocoaDaqRootEvent.h:40
AliDaqPositionCOPS::fDCOPS_left
Float_t fDCOPS_left
Definition: CocoaDaqRootEvent.h:69
AliDaqPosition2D::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:79
CocoaDaqRootEvent
Definition: CocoaDaqRootEvent.h:169
AliDaqDistance::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:133
AliDaqTemperature::fTemperature_error
Float_t fTemperature_error
Definition: CocoaDaqRootEvent.h:152
AliDaqTilt::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:120
AliDaqDistance::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:129
CocoaDaqRootEvent::Array_PositionCOPS
TClonesArray * Array_PositionCOPS
Definition: CocoaDaqRootEvent.h:172
CocoaDaqRootEvent::numTilt
int numTilt
Definition: CocoaDaqRootEvent.h:179
AliDaqPositionCOPS::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:99
AliDaqTemperature::fID
TString fID
Definition: CocoaDaqRootEvent.h:153
AliDaqPosition2D::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:47
AliDaqPosition2D::fY_error
Float_t fY_error
Definition: CocoaDaqRootEvent.h:45
AliDaqPosition2D::fX_error
Float_t fX_error
Definition: CocoaDaqRootEvent.h:44
AliDaqPosition2D::fY
Float_t fY
Definition: CocoaDaqRootEvent.h:43
CocoaDaqRootEvent::numPos2D
int numPos2D
Definition: CocoaDaqRootEvent.h:178
AliDaqPositionCOPS::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:95
CocoaDaqRootEvent::DumpIt
void DumpIt()
Definition: CocoaDaqRootEvent.cc:41
mps_splice.line
line
Definition: mps_splice.py:76
AliDaqTemperature::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:154
AliDaqTilt::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:113
AliDaqEventHeader::fRunNum
Int_t fRunNum
Definition: CocoaDaqRootEvent.h:19
AliDaqPositionCOPS::fDCOPS_left_error
Float_t fDCOPS_left_error
Definition: CocoaDaqRootEvent.h:73
CocoaDaqRootEvent::numDist
int numDist
Definition: CocoaDaqRootEvent.h:180
AliDaqTemperature::fTemperature
Float_t fTemperature
Definition: CocoaDaqRootEvent.h:151
CocoaDaqRootEvent::Array_Dist
TClonesArray * Array_Dist
Definition: CocoaDaqRootEvent.h:175