Changeset 17011 for branches/Mars_MC/mjobs/MJSimulation.cc
- Timestamp:
- 08/19/13 12:07:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mars_MC/mjobs/MJSimulation.cc
r15277 r17011 260 260 write.AddContainer("IncidentAngle", "Events", kFALSE); 261 261 } 262 263 void MJSimulation::SetupHeaderKeys(MWriteFitsFile &write) const 264 { 265 write.SetHeaderKey("TELESCOP", "FACT", ""); 266 write.SetHeaderKey("PACKAGE", "MARS Cheobs", ""); 267 write.SetHeaderKey("VERSION", "1.0", ""); 268 write.SetHeaderKey("CREATOR", "Ceres", ""); 269 write.SetHeaderKey("EXTREL", 1., ""); 270 write.SetHeaderKey("COMPILED", "1970-01-01T00:00:00", ""); 271 write.SetHeaderKey("REVISION", "0", ""); 272 write.SetHeaderKey("ORIGIN", "FACT", ""); 273 write.SetHeaderKey("DATE", "1970-01-01T00:00:00", ""); 274 write.SetHeaderKey("NIGHT", 19700101, ""); 275 write.SetHeaderKey("TIMESYS", "UTC", ""); 276 write.SetHeaderKey("TIMEUNIT", "d", ""); 277 write.SetHeaderKey("MJDREF", 40587, ""); 278 write.SetHeaderKey("BLDVER", 1, ""); 279 write.SetHeaderKey("RUNID", 1, ""); 280 write.SetHeaderKey("NBOARD", 40, ""); 281 write.SetHeaderKey("NPIX", 1440, ""); 282 write.SetHeaderKey("NROI", 150, ""); 283 write.SetHeaderKey("NROITM", 0, ""); 284 write.SetHeaderKey("TMSHIFT", 0, ""); 285 write.SetHeaderKey("CAMERA", "MGeomCamFACT", ""); 286 write.SetHeaderKey("DAQ", "DRS4", ""); 287 write.SetHeaderKey("ADCRANGE", 2000, "Dynamic range in mV"); 288 write.SetHeaderKey("ADC", 12, "Resolution in bits"); 289 write.SetHeaderKey("RUNTYPE", "data", ""); 290 write.SetHeaderKey("ID", 777, "Board 0: Board ID"); 291 write.SetHeaderKey("FMVER", 532, "Board 0: Firmware Version"); 292 write.SetHeaderKey("DNA", "0", ""); 293 write.SetHeaderKey("BOARD", 0, ""); 294 write.SetHeaderKey("PRESC", 40, ""); 295 write.SetHeaderKey("PHASE", 0, ""); 296 write.SetHeaderKey("DAC0", 26500, ""); 297 write.SetHeaderKey("DAC1", 0, ""); 298 write.SetHeaderKey("DAC2", 0, ""); 299 write.SetHeaderKey("DAC3", 0, ""); 300 write.SetHeaderKey("DAC4", 28800, ""); 301 write.SetHeaderKey("DAC5", 28800, ""); 302 write.SetHeaderKey("DAC6", 28800, ""); 303 write.SetHeaderKey("DAC7", 28800, ""); 304 write.SetHeaderKey("REFCLK", 2000.0768, ""); 305 write.SetHeaderKey("DRSCALIB", false, ""); 306 write.SetHeaderKey("TSTARTI", 0, ""); 307 write.SetHeaderKey("TSTARTF", 0., ""); 308 write.SetHeaderKey("TSTOPI", 0, ""); 309 write.SetHeaderKey("TSTOPF", 0., ""); 310 write.SetHeaderKey("DATE-OBS", "1970-01-01T00:00:00", ""); 311 write.SetHeaderKey("DATE-END", "1970-01-01T00:00:00", ""); 312 write.SetHeaderKey("NTRG", 0, ""); 313 write.SetHeaderKey("NTRGPED", 0, ""); 314 write.SetHeaderKey("NTRGLPE", 0, ""); 315 write.SetHeaderKey("NTRGTIM", 0, ""); 316 write.SetHeaderKey("NTRGLPI", 0, ""); 317 write.SetHeaderKey("NTRGEXT1", 0, ""); 318 write.SetHeaderKey("NTRGEXT2", 0, ""); 319 write.SetHeaderKey("NTRGMISC", 0, ""); 320 } 321 322 void MJSimulation::SetupVetoColumns(MWriteFitsFile &write) const 323 { 324 write.VetoColumn("MParameterD.fVal"); 325 write.VetoColumn("MRawEvtData.fLoGainPixId"); 326 write.VetoColumn("MRawEvtData.fLoGainFadcSamples"); 327 write.VetoColumn("MRawEvtData.fABFlags"); 328 write.VetoColumn("MRawEvtData.fIsSigned"); 329 write.VetoColumn("MRawEvtHeader.fNumTrigLvl2"); 330 write.VetoColumn("MRawEvtHeader.fTrigPattern"); 331 write.VetoColumn("MRawEvtHeader.fNumLoGainOn"); 332 } 333 262 334 Bool_t MJSimulation::Process(const MArgs &args, const MSequence &seq) 263 335 { … … 558 630 MTask &write3a = fWriteFitsFile ? static_cast<MTask&>(write3af) : static_cast<MTask&>(write3ar); 559 631 560 write3af.SetHeaderKey("DUMMY0", 3, "First dummy"); 561 write3af.SetHeaderKey("DUMMY1", 3.14159265358979323846, "Second dummy"); 562 write3af.SetHeaderKey("DUMMY2", true, "Third dummy"); 563 write3af.SetHeaderKey("DUMMY3", "one value", "Fourth dummy"); 564 565 write3af.VetoColumn("MParameterD.fVal"); 566 write3af.VetoColumn("MCorsikaEvtHeader.fEvtNumber"); 567 write3af.VetoColumn("MCorsikaEvtHeader.fNumReuse"); 568 write3af.VetoColumn("MCorsikaEvtHeader.fTotalEnergy"); 569 write3af.VetoColumn("MCorsikaEvtHeader.fStartAltitude"); 570 write3af.VetoColumn("MCorsikaEvtHeader.fFirstTargetNum"); 571 write3af.VetoColumn("MCorsikaEvtHeader.fFirstInteractionHeight"); 572 write3af.VetoColumn("MCorsikaEvtHeader.fMomentumX"); 573 write3af.VetoColumn("MCorsikaEvtHeader.fMomentumY"); 574 write3af.VetoColumn("MCorsikaEvtHeader.fMomentumZ"); 575 write3af.VetoColumn("MCorsikaEvtHeader.fAz"); 576 write3af.VetoColumn("MCorsikaEvtHeader.fWeightedNumPhotons"); 577 write3af.VetoColumn("MCorsikaEvtHeader.fZd"); 578 write3af.VetoColumn("MCorsikaEvtHeader.fAd"); 579 write3af.VetoColumn("MCorsikaEvtHeader.fX"); 580 write3af.VetoColumn("MCorsikaEvtHeader.fY"); 581 write3af.VetoColumn("MCorsikaEvtHeader.fWeightNumPhotons"); 582 write3af.VetoColumn("MMcEvt.fEvtNumber"); 583 write3af.VetoColumn("MMcEvt.fThick0"); 584 write3af.VetoColumn("MMcEvt.fFirstTarget"); 585 write3af.VetoColumn("MMcEvt.fZFirstInteraction"); 586 write3af.VetoColumn("MMcEvt.fCoreD"); 587 write3af.VetoColumn("MMcEvt.fCoreX"); 588 write3af.VetoColumn("MMcEvt.fCoreY"); 589 write3af.VetoColumn("MMcEvt.fTimeFirst"); 590 write3af.VetoColumn("MMcEvt.fTimeLast"); 591 write3af.VetoColumn("MMcEvt.fLongiNmax"); 592 write3af.VetoColumn("MMcEvt.fLongit0"); 593 write3af.VetoColumn("MMcEvt.fLongitmax"); 594 write3af.VetoColumn("MMcEvt.fLongia"); 595 write3af.VetoColumn("MMcEvt.fLongib"); 596 write3af.VetoColumn("MMcEvt.fLongic"); 597 write3af.VetoColumn("MMcEvt.fLongichi2"); 598 write3af.VetoColumn("MMcEvt.fPhotIni"); 599 write3af.VetoColumn("MMcEvt.fPassPhotAtm"); 600 write3af.VetoColumn("MMcEvt.fPassPhotRef"); 601 write3af.VetoColumn("MMcEvt.fPassPhotCone"); 602 write3af.VetoColumn("MMcEvt.fPhotElfromShower"); 603 write3af.VetoColumn("MMcEvt.fPhotElinCamera"); 604 write3af.VetoColumn("MMcEvt.fElecCphFraction"); 605 write3af.VetoColumn("MMcEvt.fMuonCphFraction"); 606 write3af.VetoColumn("MMcEvt.fOtherCphFraction"); 607 write3af.VetoColumn("MMcEvt.fFadcTimeJitter"); 608 write3af.VetoColumn("MMcEvt.fEventReuse"); 609 610 write3af.VetoColumn("MRawEvtData.fHiGainPixId"); 611 write3af.VetoColumn("MRawEvtData.fLoGainPixId"); 612 write3af.VetoColumn("MRawEvtData.fLoGainFadcSamples"); 613 write3af.VetoColumn("MRawEvtData.fABFlags"); 614 write3af.VetoColumn("MRawEvtData.fStartCells"); 615 write3af.VetoColumn("MRawEvtData.fNumBytesPerSample"); 616 write3af.VetoColumn("MRawEvtData.fIsSigned"); 617 write3af.VetoColumn("MRawEvtHeader.fDAQEvtNumber"); //EventNum ? 618 write3af.VetoColumn("MRawEvtHeader.fNumTrigLvl1"); 619 write3af.VetoColumn("MRawEvtHeader.fNumTrigLvl2"); 620 write3af.VetoColumn("MRawEvtHeader.fTrigPattern"); 621 write3af.VetoColumn("MRawEvtHeader.fNumLoGainOn"); 632 SetupHeaderKeys(write3af); 633 SetupVetoColumns(write3af); 622 634 623 635 write3af.SetBytesPerSample("Data", 2); … … 649 661 write3af.AddContainer("IntendedPulsePos", "RunHeaders"); 650 662 write3af.AddContainer("MRawEvtData", "Events"); 663 write3af.AddContainer("MPhotonEvent","Events"); 651 664 652 665 write3ar.AddContainer("ElectronicNoise", "RunHeaders");
Note:
See TracChangeset
for help on using the changeset viewer.