Changeset 9027
- Timestamp:
- 07/22/08 16:28:14 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTime.cc
r9017 r9027 781 781 782 782 // recalculate tm_yday and tm_wday 783 if (mktime(&time)<0) 784 return ""; 783 mktime(&time); 784 785 // We get errors for example for 1910-01-01 786 // if (mktime(&time)<0) 787 // return ""; 785 788 786 789 char ret[128]; -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r9017 r9027 411 411 412 412 MH3 hpat("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled"); 413 hpat.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)"); 413 if (fSequence.IsMonteCarlo()) 414 hpat.SetWeight("100./MMcRunHeader.fNumSimulatedShowers"); 415 else 416 hpat.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)"); 414 417 hpat.SetName("TrigPat"); 415 418 hpat.SetTitle("Rate of the trigger pattern [Hz];File Id;Trigger Pattern;Rate [Hz]"); … … 756 759 // Build tasklist 757 760 758 MTaskList tlist2 ;761 MTaskList tlist2("PedEvents"); 759 762 760 763 tlist2.AddToList(&caldec); … … 768 771 // Pedestal extraction 769 772 770 MTaskList tlist3 ;773 MTaskList tlist3("CalEvents"); 771 774 tlist3.SetFilter(&fped); // Deny events with cal-trigger 772 775 -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r9024 r9027 277 277 // Plot the trigger pattern rates vs. run-number 278 278 MH3 hrate("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled"); 279 hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)"); 279 if (fSequence.IsMonteCarlo()) 280 hrate.SetWeight("100./MMcRunHeader.fNumSimulatedShowers"); 281 else 282 hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)"); 280 283 hrate.SetName("Rate"); 281 284 hrate.SetTitle("Event rate after cleaning [Hz];File Id;Trigger Type;");
Note:
See TracChangeset
for help on using the changeset viewer.