- Timestamp:
- 09/23/19 18:22:46 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MJSimulation.cc
r19541 r19667 385 385 MBinning *binsew = (MBinning*) plist.FindCreateObj("MBinning","BinningMedLength"); 386 386 binsew->SetEdges(150, 0, 15); 387 plist.FindCreateObj("MBinning","BinningWidth"); 388 plist.FindCreateObj("MBinning","BinningLength"); 387 389 plist.FindCreateObj("MBinning","BinningDistC"); 388 390 plist.FindCreateObj("MBinning","BinningDist"); … … 502 504 // -------------------------------------------------------------------------------- 503 505 // Dominik and Sebastian on: fix time offsets 504 MMatrix fix_time_offsets_between_pixels_in_ns( 505 "MFixTimeOffset","titel" 506 ); 506 MMatrix fix_time_offsets_between_pixels_in_ns("MFixTimeOffset", 0); 507 507 plist.AddToList(&fix_time_offsets_between_pixels_in_ns); 508 508 … … 540 540 else 541 541 read.AddFiles(iter); 542 543 if (read.GetNumFiles()==0) 544 { 545 *fLog << err << "No files to read." << endl; 546 return kFALSE; 547 } 542 548 543 549 // -------------------------------------------------------------------------------- … … 714 720 SetupHist(mhn4); 715 721 716 MH3 mhtp("TriggerPos.fVal-IntendedPulsePos.fVal-PulseShape.GetWidth ");722 MH3 mhtp("TriggerPos.fVal-IntendedPulsePos.fVal-PulseShape.GetWidth*1000/MRawRunHeader.GetFreqSampling"); 717 723 mhtp.SetName("TrigPos"); 718 mhtp.SetTitle("Trigger position w.r.t. the first photon hitting a detector ");724 mhtp.SetTitle("Trigger position w.r.t. the first photon hitting a detector [ns]"); 719 725 720 726 MH3 mhew("MPhotonStatistics.fLength"); … … 1064 1070 MBinning *binstr = (MBinning*) plist.FindObject("BinningTrigPos"); 1065 1071 if (binstr->IsDefault()) 1066 binstr->SetEdgesLin(150, - shape.GetWidth(),1067 header.GetFreqSampling()/1000.*header.GetNumSamples()+shape.GetWidth());1072 binstr->SetEdgesLin(150, -header.GetFreqSampling()/1000.*shape.GetWidth(), 1073 header.GetFreqSampling()/1000.*(header.GetNumSamples()+shape.GetWidth())); 1068 1074 1069 1075 if (binsd->IsDefault() && cam)
Note:
See TracChangeset
for help on using the changeset viewer.