Changeset 2754 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/06/04 17:42:21 (21 years ago)
Author:
raducci
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc

    r2752 r2754  
    9292                    ptr2[i]=(Double_t)ptr[i];
    9393                TSpline5 *spline = new TSpline5("spline",(Double_t) 0,(Double_t)(nSlice - 1),ptr2,nSlice);
     94//Now find the maximum evaluating the spline function at every 1/10 time slice
    9495                Double_t abscissa=0.0;
    9596                Double_t maxAb=0.0;
     
    119120                ptr2[i]=(Double_t)ptr[i];
    120121            TSpline5 *spline = new TSpline5("spline",(Double_t) 0,(Double_t)(nSlice - 1),ptr2,nSlice);
     122//Now find the maximum evaluating the spline function at every 1/10 time slice
    121123            Double_t abscissa=0.0;
    122124            Double_t maxAb=0.0;
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r2659 r2754  
    149149        fHist->SetYTitle("L");
    150150        break;
     151     case kEvtIdxMax:
     152        fHist->SetName("Max Slice Idx");
     153        fHist->SetYTitle("t [slice id]");
     154        fHist->SetPrettyPalette();
     155        break;
    151156     case kEvtArrTime:
    152157        fHist->SetName("Arrival Time");
     
    191196        }
    192197        break;
     198    case kEvtIdxMax:
     199        fHist->SetCamContent(*(MCamEvent*)par, 5);
     200        break;
    193201    case kEvtArrTime:
    194         fHist->SetCamContent(*(MCamEvent*)par, 5);
    195         break;
    196    
     202        fHist->SetCamContent(*(MCamEvent*)par, 0);
     203        break;
    197204    }
    198205
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r2656 r2754  
    2323        kEvtSignal, kEvtPedestal, kEvtPedestalRMS,
    2424        kEvtRelativeSignal, kEvtCleaningLevels,
    25         kEvtArrTime
     25        kEvtIdxMax, kEvtArrTime
    2626    };
    2727
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r2728 r2754  
    8181#include "MHCamera.h"            // MHCamera
    8282#include "MRawEvtData.h"         // MRawEvtData
    83 //#include "MArrivalTime.h"        // MArrivalTime
     83#include "MArrivalTime.h"        // MArrivalTime
    8484
    8585
     
    162162    MHEvent *evt5 = new MHEvent(MHEvent::kEvtRelativeSignal);
    163163    MHEvent *evt6 = new MHEvent(MHEvent::kEvtCleaningLevels);
    164     MHEvent *evt7 = new MHEvent(MHEvent::kEvtArrTime);
     164    MHEvent *evt7 = new MHEvent(MHEvent::kEvtIdxMax);
     165    MHEvent *evt8 = new MHEvent(MHEvent::kEvtArrTime);
    165166
    166167    evt1->SetName("Signal");
     
    170171    evt5->SetName("Signal/PedRMS");
    171172    evt6->SetName("CleanLevels");
    172     evt7->SetName("ArrivalTime");
     173    evt7->SetName("Max Slice Idx");
     174    evt8->SetName("Arrival Time");
    173175
    174176    plist->AddToList(evt1);
     
    179181    plist->AddToList(evt6);
    180182    plist->AddToList(evt7);
     183    plist->AddToList(evt8);
    181184
    182185
     
    197200    MArrivalTimeCalc  *tcalc = new MArrivalTimeCalc;
    198201    MFillH            *fill7 = new MFillH(evt7, "MRawEvtData",  "MFillH7");
    199 
     202    MFillH            *fill8 = new MFillH(evt8, "MArrivalTime", "MFillH8");
    200203
    201204    MFilter *f1=new MFDataMember("MRawRunHeader.fRunType", '>', 255.5);
     
    223226    tlist->AddToList(tcalc);
    224227    tlist->AddToList(fill7);
     228    tlist->AddToList(fill8);
    225229
    226230
Note: See TracChangeset for help on using the changeset viewer.