Changeset 9482 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 07/29/09 15:15:59 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9462 r9482 74 74 #include "MFillH.h" 75 75 #include "MGeomApply.h" 76 #include "MParameterCalc.h" 76 77 #include "MHillasCalc.h" 77 78 #include "MImgCleanStd.h" … … 166 167 cont.Add(plist.FindObject("GeomCones")); 167 168 169 TNamed cmdline("CommandLine", fCommandLine.Data()); 170 cont.Add(&cmdline); 171 168 172 if (fDisplay) 169 173 { … … 219 223 hist.SetAutoRange(); 220 224 221 TString sin2 = "sin(MCorsikaEvtHeader.fZd)*sin(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; 222 TString cos2 = "cos(MCorsikaEvtHeader.fZd)*cos(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; 223 TString cos = "cos(MCorsikaEvtHeader.fAz-MCorsikaRunHeader.fAzMin*TMath::DegToRad())"; 224 225 TString form = "acos("+sin2+"*"+cos+"+"+cos2+")*TMath::RadToDeg()"; 226 227 hist.AddHist(form); 225 hist.AddHist("IncidentAngle.fVal"); 228 226 hist.InitName("ViewCone"); 229 227 hist.InitTitle("Incident Angle;\\alpha [\\deg]"); … … 243 241 write.AddContainer("MRawEvtHeader", "Events"); 244 242 write.AddContainer("MMcEvt", "Events"); 243 write.AddContainer("IncidentAngle", "Events", kFALSE); 245 244 } 246 245 … … 372 371 plist.AddToList(&splinemirror); 373 372 plist.AddToList(&splinecones); 373 374 const TString sin2 = "sin(MCorsikaEvtHeader.fZd)*sin(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; 375 const TString cos2 = "cos(MCorsikaEvtHeader.fZd)*cos(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; 376 const TString cos = "cos(MCorsikaEvtHeader.fAz-MCorsikaRunHeader.fAzMin*TMath::DegToRad())"; 377 378 const TString form = "acos("+sin2+"*"+cos+"+"+cos2+")*TMath::RadToDeg()"; 379 380 MParameterCalc calcangle(form, "CalcIncidentAngle"); 381 calcangle.SetNameParameter("IncidentAngle"); 374 382 375 383 MSimAtmosphere simatm; … … 637 645 if (1) 638 646 tasks.AddToList(&simatm); // Here because before fillh1 647 tasks.AddToList(&calcangle); 639 648 tasks.AddToList(&fillh1); 640 649 tasks.AddToList(&fillG); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r9367 r9482 1963 1963 { 1964 1964 TNamed ganame("ganymed.root", fPathIn.Data()); 1965 TNamed cmdline("CommandLine", fCommandLine.Data()); 1965 1966 1966 1967 // Write the output … … 1974 1975 cont.Add(&hest); 1975 1976 cont.Add(&ganame); 1977 cont.Add(&cmdline); 1976 1978 1977 1979 if (fDisplay) -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r9434 r9482 118 118 cont.Add(const_cast<MSequence*>(&fSequence)); 119 119 120 TNamed cmdline("CommandLine", fCommandLine.Data()); 121 cont.Add(&cmdline); 122 120 123 if (fDisplay) 121 124 { … … 155 158 MDirIter iter; 156 159 if (fSequence.GetRuns(iter, MSequence::kCalibrated)<=0) 160 { 161 *fLog << err << "ERROR - Sequence valid but without files." << endl; 157 162 return kFALSE; 163 } 158 164 159 165 // Setup Parlist … … 267 273 plist.AddToList(&par); // without MTriggerPattern stored in the file 268 274 269 // For the effective on-time calculation we don't want SUM-only events 275 // For the effective on-time calculation and the muon statistics 276 // we don't want SUM-only events 270 277 MFTriggerPattern fsum; 271 278 fsum.SetDefault(kTRUE); … … 336 343 write.AddContainer("MMcEvt", "Events"); 337 344 write.AddContainer("MMcTrig", "Events", kFALSE); 345 write.AddContainer("MCorsikaEvtHeader", "Events", kFALSE); 338 346 write.AddContainer("MSrcPosCam", "Events"); 339 347 // Monte Carlo Run Headers … … 342 350 write.AddContainer("MMcFadcHeader", "RunHeaders", kFALSE); 343 351 write.AddContainer("MMcConfigRunHeader", "RunHeaders", kFALSE); 344 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 352 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE); 353 write.AddContainer("MCorsikaRunHeader", "RunHeaders", kFALSE); 345 354 } 346 355 else -
trunk/MagicSoft/Mars/mjobs/MJob.h
r9245 r9482 38 38 // FIXME: Split into MJobSequence and MJobDataSet 39 39 MSequence fSequence; // Sequence 40 41 TString fCommandLine; // Command line for possible storage 40 42 41 43 const TEnv *GetEnv() const; … … 79 81 void SetNullOut(Bool_t b=kTRUE) { fNullOut=b; } 80 82 83 void SetCommandLine(const TString &s) { fCommandLine = s; } 84 81 85 // Getter 82 86 TString GetPathOut() const { return fPathOut; }
Note:
See TracChangeset
for help on using the changeset viewer.