Changeset 14792
- Timestamp:
- 01/28/13 10:55:44 (12 years ago)
- Location:
- trunk/Mars
- Files:
-
- 6 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/runceres
r10041 r14792 1 #!/bin/ sh1 #!/bin/bash 2 2 # 3 3 # ======================================================================== -
trunk/Mars/mcore/fits.h
r14484 r14792 6 6 #define uint64_t ULong64_t 7 7 #define uint8_t UChar_t 8 #define uint32_t UInt_t 8 9 #else 9 10 #include <stdint.h> … … 415 416 416 417 #ifdef __CINT__ 417 typedef map<string, void*> Pointers;418 typedef char Pointers[56]; 418 419 #else 419 420 typedef unordered_map<string, void*> Pointers; -
trunk/Mars/mcore/ofits.h
r14199 r14792 253 253 254 254 if (!entry.check()) 255 return false; 256 255 {//ETIENNE 256 //looks like something went wrong. Maybe entry is too long ? 257 //try to remove the comment 258 entry.comment = ""; 259 if (!entry.check()) 260 return false; 261 gLog << "WARNING: removed comment from over-sized entry " << key << endl; 262 } 257 263 fKeys.push_back(entry); 258 264 return true; -
trunk/Mars/mfileio/FileIOLinkDef.h
r9527 r14792 18 18 #pragma link C++ class MWriteAsciiFile+; 19 19 #pragma link C++ class MWriteRootFile+; 20 #pragma link C++ class MWriteFitsFile+; 20 21 21 22 #endif -
trunk/Mars/mfileio/Makefile
r11873 r14792 30 30 MWriteFile.cc \ 31 31 MWriteAsciiFile.cc \ 32 MWriteRootFile.cc 32 MWriteRootFile.cc \ 33 MWriteFitsFile.cc \ 34 MTopFitsGroup.cc \ 35 MFitsArray.cc 33 36 34 37 ############################################################ -
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: -
trunk/Mars/mraw/MRawEvtData.h
r14447 r14792 30 30 31 31 MArrayS *fHiGainPixId; //-> list of pixel IDs of hi gain channel 32 MArrayB *fHiGainFadcSamples; //-> list of hi gain samples of all pixels (ordering: see fHiGainPixId) 32 MArrayB *fHiGainFadcSamples; //-> list of hi gain samples of all pixels (ordering: see fHiGainPixId) [fits: unit=mV ; name = Data] 33 33 34 34 MArrayS *fLoGainPixId; //-> list of pixel IDs of lo gain channel -
trunk/Mars/mraw/MRawEvtHeader.h
r14447 r14792 53 53 MTime *fTime; //! object to store the time in (ReadEvt) 54 54 55 UInt_t fDAQEvtNumber; // Number of Event 55 UInt_t fDAQEvtNumber; // Number of Event [fits: name=EventNum] 56 56 57 57 UInt_t fNumTrigLvl1; // Number of 1st level tiggers between 2 events
Note:
See TracChangeset
for help on using the changeset viewer.