Changeset 14792 for trunk/Mars/mjobs
- Timestamp:
- 01/28/13 10:55:44 (12 years ago)
- Location:
- trunk/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MJSimulation.cc
r9931 r14792 78 78 #include "MImgCleanStd.h" 79 79 #include "MWriteRootFile.h" 80 #include "MWriteFitsFile.h" 80 81 81 82 #include "MSimMMCS.h" … … 243 244 write.AddContainer("IncidentAngle", "Events", kFALSE); 244 245 } 245 246 //FIXME Etienne. I'm doing the same for fits and root. I probably should adapt somehow 247 void MJSimulation::SetupCommonFileStructure(MWriteFitsFile& write) const 248 { 249 // Common run headers 250 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE); 251 write.AddContainer("MCorsikaRunHeader", "RunHeaders", kFALSE); 252 write.AddContainer("MRawRunHeader", "RunHeaders"); 253 write.AddContainer("MGeomCam", "RunHeaders"); 254 write.AddContainer("MMcRunHeader", "RunHeaders"); 255 256 // Common events 257 write.AddContainer("MCorsikaEvtHeader", "Events", kFALSE); 258 write.AddContainer("MRawEvtHeader", "Events"); 259 write.AddContainer("MMcEvt", "Events"); 260 write.AddContainer("IncidentAngle", "Events", kFALSE); 261 } 246 262 Bool_t MJSimulation::Process(const MArgs &args, const MSequence &seq) 247 263 { … … 528 544 MWriteRootFile write4a( 2, rule4, fOverwrite?"RECREATE":"NEW", "Star file"); 529 545 MWriteRootFile write4b( 2, rule4, fOverwrite?"RECREATE":"NEW", "Star file"); 530 MWrite RootFile write3a( 2, rule3, fOverwrite?"RECREATE":"NEW", "Camera file");546 MWriteFitsFile write3a( 2, rule3, fOverwrite?"RECREATE":"NEW", "Camera file"); 531 547 MWriteRootFile write3b( 2, rule3, fOverwrite?"RECREATE":"NEW", "Camera file"); 532 548 MWriteRootFile write2a( 2, rule2, fOverwrite?"RECREATE":"NEW", "Signal file"); … … 534 550 MWriteRootFile write1a( 2, rule1, fOverwrite?"RECREATE":"NEW", "Reflector file"); 535 551 MWriteRootFile write1b( 2, rule1, fOverwrite?"RECREATE":"NEW", "Reflector file"); 552 553 write3a.VetoColumn("MParameterD.fVal"); 554 write3a.VetoColumn("MCorsikaEvtHeader.fEvtNumber"); 555 write3a.VetoColumn("MCorsikaEvtHeader.fNumReuse"); 556 write3a.VetoColumn("MCorsikaEvtHeader.fTotalEnergy"); 557 write3a.VetoColumn("MCorsikaEvtHeader.fStartAltitude"); 558 write3a.VetoColumn("MCorsikaEvtHeader.fFirstTargetNum"); 559 write3a.VetoColumn("MCorsikaEvtHeader.fFirstInteractionHeight"); 560 write3a.VetoColumn("MCorsikaEvtHeader.fMomentumX"); 561 write3a.VetoColumn("MCorsikaEvtHeader.fMomentumY"); 562 write3a.VetoColumn("MCorsikaEvtHeader.fMomentumZ"); 563 write3a.VetoColumn("MCorsikaEvtHeader.fAz"); 564 write3a.VetoColumn("MCorsikaEvtHeader.fWeightedNumPhotons"); 565 write3a.VetoColumn("MCorsikaEvtHeader.fZd"); 566 write3a.VetoColumn("MCorsikaEvtHeader.fAd"); 567 write3a.VetoColumn("MCorsikaEvtHeader.fX"); 568 write3a.VetoColumn("MCorsikaEvtHeader.fY"); 569 write3a.VetoColumn("MCorsikaEvtHeader.fWeightNumPhotons"); 570 write3a.VetoColumn("MMcEvt.fEvtNumber"); 571 write3a.VetoColumn("MMcEvt.fThick0"); 572 write3a.VetoColumn("MMcEvt.fFirstTarget"); 573 write3a.VetoColumn("MMcEvt.fZFirstInteraction"); 574 write3a.VetoColumn("MMcEvt.fCoreD"); 575 write3a.VetoColumn("MMcEvt.fCoreX"); 576 write3a.VetoColumn("MMcEvt.fCoreY"); 577 write3a.VetoColumn("MMcEvt.fTimeFirst"); 578 write3a.VetoColumn("MMcEvt.fTimeLast"); 579 write3a.VetoColumn("MMcEvt.fLongiNmax"); 580 write3a.VetoColumn("MMcEvt.fLongit0"); 581 write3a.VetoColumn("MMcEvt.fLongitmax"); 582 write3a.VetoColumn("MMcEvt.fLongia"); 583 write3a.VetoColumn("MMcEvt.fLongib"); 584 write3a.VetoColumn("MMcEvt.fLongic"); 585 write3a.VetoColumn("MMcEvt.fLongichi2"); 586 write3a.VetoColumn("MMcEvt.fPhotIni"); 587 write3a.VetoColumn("MMcEvt.fPassPhotAtm"); 588 write3a.VetoColumn("MMcEvt.fPassPhotRef"); 589 write3a.VetoColumn("MMcEvt.fPassPhotCone"); 590 write3a.VetoColumn("MMcEvt.fPhotElfromShower"); 591 write3a.VetoColumn("MMcEvt.fPhotElinCamera"); 592 write3a.VetoColumn("MMcEvt.fElecCphFraction"); 593 write3a.VetoColumn("MMcEvt.fMuonCphFraction"); 594 write3a.VetoColumn("MMcEvt.fOtherCphFraction"); 595 write3a.VetoColumn("MMcEvt.fFadcTimeJitter"); 596 write3a.VetoColumn("MMcEvt.fEventReuse"); 597 write3a.VetoColumn("MRawEvtData.fHiGainPixId"); 598 // write3a.VetoColumn("MRawEvtData.fHiGainFadcSamples"); 599 write3a.VetoColumn("MRawEvtData.fLoGainPixId"); 600 write3a.VetoColumn("MRawEvtData.fLoGainFadcSamples"); 601 write3a.VetoColumn("MRawEvtData.fABFlags"); 602 write3a.VetoColumn("MRawEvtData.fStartCells"); 603 write3a.VetoColumn("MRawEvtData.fNumBytesPerSample"); 604 write3a.VetoColumn("MRawEvtData.fIsSigned"); 605 // write3a.VetoColumn("MRawEvtHeader.fDAQEvtNumber"); //EventNum ? 606 write3a.VetoColumn("MRawEvtHeader.fNumTrigLvl1"); 607 write3a.VetoColumn("MRawEvtHeader.fNumTrigLvl2"); 608 write3a.VetoColumn("MRawEvtHeader.fTrigPattern"); 609 write3a.VetoColumn("MRawEvtHeader.fNumLoGainOn"); 610 611 write3a.SetBytesPerSample("Data", 2); 536 612 537 613 write1a.SetName("WriteRefData"); -
trunk/Mars/mjobs/MJSimulation.h
r9609 r14792 11 11 class MSequence; 12 12 class MWriteRootFile; 13 class MWriteFitsFile; 13 14 14 15 class MJSimulation : public MJob … … 31 32 void SetupHist(MHn &hist) const; 32 33 void SetupCommonFileStructure(MWriteRootFile &write) const; 34 void SetupCommonFileStructure(MWriteFitsFile& write) const; 33 35 34 36 public:
Note:
See TracChangeset
for help on using the changeset viewer.