Changeset 19667 for trunk


Ignore:
Timestamp:
09/23/19 18:22:46 (5 years ago)
Author:
tbretz
Message:
Added Width and Length to adjustable binnings, return an error in case no file was given, fixed the display of the delay between the first photon and the trigger, fixed th e binning of the corresponding histogram (adjusted to nanoseconds)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjobs/MJSimulation.cc

    r19541 r19667  
    385385    MBinning *binsew = (MBinning*) plist.FindCreateObj("MBinning","BinningMedLength");
    386386    binsew->SetEdges(150,     0,       15);
     387    plist.FindCreateObj("MBinning","BinningWidth");
     388    plist.FindCreateObj("MBinning","BinningLength");
    387389    plist.FindCreateObj("MBinning","BinningDistC");
    388390    plist.FindCreateObj("MBinning","BinningDist");
     
    502504    // --------------------------------------------------------------------------------
    503505    // 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);
    507507    plist.AddToList(&fix_time_offsets_between_pixels_in_ns);
    508508
     
    540540    else
    541541        read.AddFiles(iter);
     542
     543    if (read.GetNumFiles()==0)
     544    {
     545        *fLog << err << "No files to read." << endl;
     546        return kFALSE;
     547    }
    542548
    543549    // --------------------------------------------------------------------------------
     
    714720    SetupHist(mhn4);
    715721
    716     MH3 mhtp("TriggerPos.fVal-IntendedPulsePos.fVal-PulseShape.GetWidth");
     722    MH3 mhtp("TriggerPos.fVal-IntendedPulsePos.fVal-PulseShape.GetWidth*1000/MRawRunHeader.GetFreqSampling");
    717723    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]");
    719725
    720726    MH3 mhew("MPhotonStatistics.fLength");
     
    10641070    MBinning *binstr = (MBinning*) plist.FindObject("BinningTrigPos");
    10651071    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()));
    10681074
    10691075    if (binsd->IsDefault() && cam)
Note: See TracChangeset for help on using the changeset viewer.