Changeset 7388
- Timestamp:
- 11/10/05 10:05:31 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r7358 r7388 59 59 #include <TLine.h> 60 60 #include <TText.h> 61 #include <TFrame.h> 61 62 #include <TStyle.h> 62 63 #include <TGraph.h> … … 142 143 TString title = fNameTab.IsNull() ? name(name.First('.')+2, name.Length()) : fNameTab; 143 144 TCanvas &c = fDisplay ? fDisplay->AddTab(title) : *new TCanvas; 145 c.SetFillColor(kWhite); 146 c.SetBorderMode(0); 144 147 c.Divide(1,2); 145 148 … … 218 221 219 222 g2.DrawClone("AP"); 220 221 223 } 222 224 … … 293 295 plot.SetDescription("Mean Pedestal RMS inner Camera;\\sigma_{P,I} [phe]", "PedRmsI"); 294 296 plot.Plot("Calibration.fMeanPedRmsInner", 0, 3.5, 0.05); 297 plot.SetDescription("Mean Signal inner Camera;S_{I} [phe]", "SignalI"); 298 plot.Plot("Calibration.fMeanSignalInner", 0, 7.0, 0.05); 295 299 //from star*.root 296 300 //muon … … 324 328 plot.SetDescription("Mean Pedestal RMS outer Camera;\\sigma_{P,O} [phe]", "PedRmsO"); 325 329 plot.Plot("Calibration.fMeanPedRmsOuter", 0, 4.0, 0.05); 330 plot.SetDescription("Mean Signal outer Camera;S_{O} [phe]", "SignalO"); 331 plot.Plot("Calibration.fMeanSignalOuter", 0, 4.0, 0.05); 326 332 } 327 333 … … 349 355 plot.SetRequestRange(from, to); 350 356 plotall(plot); 357 //d->SaveAsPS("plotdb.ps"); 351 358 } 352 359 … … 369 376 370 377 MStatusDisplay *d = new MStatusDisplay; 371 372 378 MPlot plot(serv); 373 379 plot.SetDisplay(d); 374 380 plot.SetRequestPeriod(period); 375 381 plotall(plot); 382 //d->SaveAsPS("plotdb.ps"); 376 383 } -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r7142 r7388 266 266 { 267 267 // Project into EnergyEst_ey 268 TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex"); 269 TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey"); 268 TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex"); // E_Est 269 TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey"); // E_mc 270 270 271 271 h2->Copy(hist); -
trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc
r7214 r7388 52 52 MSrcPosCorrect::MSrcPosCorrect(const char *name, const char *title) 53 53 : fSrcPosCam(NULL), fSrcPosAnti(NULL), fAxis(NULL), fGeom(NULL) 54 , fDx(-14.24) , fDy(-9.495) 55 54 56 { 55 57 fName = name ? name : "MSrcPosCorrect"; … … 105 107 { 106 108 *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl; 107 *fLog << "A mis sfocussing correction (-0.048deg/0.034deg) will be applied." << endl;109 *fLog << "A misfocussing correction (" << fDx << "mm/" << fDy << "mm) will be applied." << endl; 108 110 } 109 111 … … 160 162 { 161 163 // dx=-0.048deg, dy=0.034deg, d=0.059deg 162 static const TVector2 dxy( -14.24, -9.495);164 static const TVector2 dxy(fDx, fDy); 163 165 164 166 d -= dxy; … … 175 177 return kTRUE; 176 178 } 179 180 Int_t MSrcPosCorrect::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 181 { 182 Bool_t rc = kFALSE; 183 if (IsEnvDefined(env, prefix, "Dx", print)) 184 { 185 fDx = GetEnvValue(env, prefix, "Dx", fDx); 186 rc = kTRUE; 187 } 188 if (IsEnvDefined(env, prefix, "Dy", print)) 189 { 190 fDy = GetEnvValue(env, prefix, "Dy", fDy); 191 rc = kTRUE; 192 } 193 194 return rc; 195 } -
trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.h
r7214 r7388 23 23 UInt_t fRunNumber; 24 24 25 Float_t fDx; 26 Float_t fDy; 27 25 28 // MTask 26 29 Bool_t ReInit(MParList *pList); 27 30 Int_t PreProcess(MParList *pList); 28 31 Int_t Process(); 32 33 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 29 34 30 35 public: -
trunk/MagicSoft/Mars/mreport/MReportTrigger.cc
r4971 r7388 469 469 } 470 470 471 n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len); if (n!=2) 471 n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len); 472 if (n!=2) 472 473 { 473 474 *fLog << warn << "WARNING - Couldn't read Trigger rates." << endl; -
trunk/MagicSoft/Mars/msql/MSQLServer.h
r4877 r7388 53 53 } 54 54 55 const char *GetNameDataBase() const { return fDataBase; }56 55 const char *GetNameTable() const { return Form("%s/%s", (const char*)fDataBase, (const char*)fTable); } 57 56 const char *GetNameColumn() const { return Form("%s/%s/%s", (const char*)fDataBase, (const char*)fTable, (const char*)fColumn); } … … 93 92 94 93 const char *GetName() const; 94 const char *GetNameDataBase() const { return fDataBase; } 95 95 96 96 void Print(Option_t *o) const;
Note:
See TracChangeset
for help on using the changeset viewer.