Changeset 7101 for trunk/MagicSoft
- Timestamp:
- 05/27/05 17:16:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/macros
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r7090 r7101 103 103 } 104 104 105 TGraph g2; 106 g2.SetNameTitle(name, Form("%s vs ZdMin", name.Data())); 107 g2.SetMarkerStyle(kFullDotMedium); 108 105 109 Int_t first = -1; 106 110 Int_t last = -1; … … 109 113 { 110 114 const char *date = (*row)[0]; 111 const char *val = (*row)[1]; 112 if (!date || !val) 115 const char *zd = (*row)[1]; 116 const char *val = (*row)[2]; 117 if (!date || !val || !zd) 113 118 continue; 114 119 … … 125 130 126 131 Float_t value = atof(val); 132 Float_t zenith = atof(zd); 127 133 g.SetPoint(g.GetN(), t.GetAxisTime(), value); 134 g2.SetPoint(g2.GetN(), zenith, value); 128 135 } 129 136 … … 176 183 pad->cd(1); 177 184 gPad->SetBorderMode(0); 185 gPad->Divide(2,1); 186 187 TVirtualPad *pad2 = gPad; 188 pad2->cd(1); 189 gPad->SetBorderMode(0); 178 190 gPad->SetGridx(); 179 191 gPad->SetGridy(); … … 192 204 193 205 hist.DrawCopy(""); 206 207 pad2->cd(2); 208 gPad->SetBorderMode(0); 209 gPad->SetGridy(); 210 211 TH1 *h2 = g2.GetHistogram(); 212 213 h2->SetXTitle("Zd"); 214 h2->SetYTitle(name); 215 216 g2.DrawClone("AP"); 217 194 218 } 195 219 … … 212 236 { 213 237 TString named = "Sequences.fRunStart"; 238 TString named2 = "Sequences.fZenithDistanceMin"; 214 239 TString namev = value; 215 240 TString join = "fSequenceFirst"; … … 221 246 TString valued = named(named.First('.')+1, named.Length()); 222 247 248 TString tabled2 = named2(0, named2.First('.')); 249 TString valued2 = named2(named2.First('.')+1, named2.Length()); 250 223 251 TString query; 224 query = Form("select %s, %s ", valued.Data(), valuev.Data());252 query = Form("select %s, %s, %s ", valued.Data(), valued2.Data(), valuev.Data()); 225 253 query += Form("from %s left join %s ", tabled.Data(), tablev.Data()); 226 254 query += Form("on %s.%s=%s.%s ", tabled.Data(), join.Data(), tablev.Data(), join.Data()); … … 231 259 232 260 query += "order by fRunStart"; 261 262 cout << "q: " << query << endl; 233 263 234 264 TSQLResult *res = fServer.Query(query); … … 255 285 //from calib*.root 256 286 plot.SetDescription("Conversion Factor inner Camera;C_{I} [phe/fadc cnts]", "ConvI"); 257 plot.Plot("Calibration.fConvFactorInner", 0, 0.5, 0.0 1);287 plot.Plot("Calibration.fConvFactorInner", 0, 0.5, 0.001); 258 288 plot.SetDescription("Mean Arrival Time inner Camera;T_{I} [sl]", "ArrTmI"); 259 289 plot.Plot("Calibration.fArrTimeMeanInner", 0, 9.0, 0.1);
Note:
See TracChangeset
for help on using the changeset viewer.