Changeset 7061 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/19/05 11:55:44 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7060 r7061  
    2626     - simplified a really cryptical use of the ?:-operator when
    2727       the fLoGainFirst is calculated
     28     - fixed a bug introduced in the calculation of the derivatives
     29
     30   * mmain/MEventDisplay.cc:
     31     - removed MC trigger display
    2832
    2933
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r6856 r7061  
    8383#include "MMcCalibrationUpdate.h" // MMcCalibrationUpdate
    8484#include "MCalibrateData.h"       // MCalibrateData
    85 #include "MMcTriggerLvl2Calc.h"   // MMcTriggerLvl2Calc
     85//#include "MMcTriggerLvl2Calc.h"   // MMcTriggerLvl2Calc
    8686
    8787//
     
    100100#include "MPedPhotCam.h"           // MPedPhotCam
    101101#include "MCalibrationChargeCam.h" // MCalibrationChargeCam
    102 #include "MMcTriggerLvl2.h"        // MMcTriggerLvl2
     102//#include "MMcTriggerLvl2.h"        // MMcTriggerLvl2
    103103
    104104using namespace std;
     
    220220    MHEvent *evt07 = new MHEvent(MHEvent::kEvtIdxMax);
    221221    MHEvent *evt08 = new MHEvent(MHEvent::kEvtArrTime);
    222     MHEvent *evt09 = new MHEvent(MHEvent::kEvtTrigPix);
     222    //MHEvent *evt09 = new MHEvent(MHEvent::kEvtTrigPix);
    223223    MHEvent *evt10 = new MHEvent(MHEvent::kEvtIslandIndex);
    224224
     
    231231    evt07->SetName("Max Slice Idx");
    232232    evt08->SetName("Arrival Time");
    233     evt09->SetName("Trigger");
     233    //evt09->SetName("Trigger");
    234234    evt10->SetName("Islands");
    235235
     
    243243    plist->AddToList(evt07);
    244244    plist->AddToList(evt08);
    245     plist->AddToList(evt09);
     245    //plist->AddToList(evt09);
    246246    plist->AddToList(evt10);
    247247
     
    262262    MFillH             *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b");
    263263    MHillasCalc        *hcalc  = new MHillasCalc;
    264     MMcTriggerLvl2Calc *trcal  = new MMcTriggerLvl2Calc;
    265     MFillH             *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09");
     264    //MMcTriggerLvl2Calc *trcal  = new MMcTriggerLvl2Calc;
     265    //MFillH             *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09");
    266266    MFillH             *fill10 = new MFillH(evt10, "MSignalCam",    "MFillH10");
    267267
     
    296296        // MC
    297297        mcupd->SetFilter(f1);
    298         trcal->SetFilter(f1);
     298        //trcal->SetFilter(f1);
    299299
    300300        // TaskList
     
    327327        tlist->AddToList(fill08);
    328328
    329         tlist->AddToList(trcal);
    330         tlist->AddToList(fill09);
     329        //tlist->AddToList(trcal);
     330        //tlist->AddToList(fill09);
    331331    }
    332332    if (type==1)
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r7057 r7061  
    369369                                                          Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag)
    370370{
    371  
    372371  Int_t range = fHiGainLast - fHiGainFirst + 1;
    373372  const Byte_t *end = first + range;
     
    442441      const Float_t pp = fHiGainSecondDeriv[i-1] + 4.;
    443442      fHiGainSecondDeriv[i] = -1.0/pp;
    444       fHiGainFirstDeriv [i] = 2*(fHiGainSignal[i+1] - fHiGainSignal[i]);
     443      fHiGainFirstDeriv [i] = fHiGainSignal[i+1] - 2*fHiGainSignal[i] + fHiGainSignal[i-1];
    445444      fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp;
    446445    }
     
    724723                                                          Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag)
    725724{
    726  
    727725  Int_t range = fLoGainLast - fLoGainFirst + 1;
    728726  const Byte_t *end = first + range;
     
    768766      const Float_t pp = fLoGainSecondDeriv[i-1] + 4.;
    769767      fLoGainSecondDeriv[i] = -1.0/pp;
    770       fLoGainFirstDeriv [i] = 2*(fLoGainSignal[i+1] - fLoGainSignal[i]);
     768      fLoGainFirstDeriv [i] = fLoGainSignal[i+1] - 2*fLoGainSignal[i] + fLoGainSignal[i-1];
    771769      fLoGainFirstDeriv [i] = (6.0*fLoGainFirstDeriv[i]-fLoGainFirstDeriv[i-1])/pp;
    772770    }
Note: See TracChangeset for help on using the changeset viewer.