Ignore:
Timestamp:
02/18/09 12:07:41 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r9328 r9347  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.69 2009-02-12 20:05:06 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.70 2009-02-18 12:06:39 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    9292#include "MContinue.h"                 // MContinue
    9393#include "MTriggerPatternDecode.h"     // MTriggerPatternDecode
     94#include "MSimSignalCam.h"             // MSimSignalCam
     95#include "MSimGeomCam.h"               // MSimGeomCam
    9496//#include "MMcTriggerLvl2Calc.h"        // MMcTriggerLvl2Calc
    9597
     
    112114#include "MCalibrationChargeCam.h"     // MCalibrationChargeCam
    113115#include "MMuonSearchPar.h"            // MMuonCalibPar
     116#include "MHPhotonEvent.h"             // MHPhotonEvent
    114117//#include "MMcTriggerLvl2.h"            // MMcTriggerLvl2
    115118
     
    180183        return 2;
    181184
     185    if (t->FindBranch("MPhotonEvent."))
     186        return 3;
     187
    182188    return -2;
    183189}
     
    197203    case  1: gLog << all << "Calibrated Data File detected..." << endl; break;
    198204    case  2: gLog << all << "Raw Data File detected..." << endl; break;
     205    case  3: gLog << all << "Ceres reflector file detected..." << endl; break;
    199206    case -2: gLog << err << "File type unknown... abort." << endl; return;
    200207    case -1: gLog << err << "Tree " << tname << " not found... abort." << endl; return;
     
    237244    tlist->AddToList(read);
    238245
     246    MGeomApply *apl = new MGeomApply;
     247    tlist->AddToList(apl);
     248
     249    if (type==3)
     250    {
     251        MHPhotonEvent *phevt = new MHPhotonEvent;
     252        phevt->PermanentReset();
     253        plist->AddToList(phevt);
     254
     255        MFillH *fillh = new MFillH(phevt, "MPhotonEvent");
     256        fillh->SetNameTab("Detector");
     257        tlist->AddToList(fillh);
     258
     259        MSimGeomCam *simgeom = new MSimGeomCam;
     260        tlist->AddToList(simgeom);
     261
     262        MSimSignalCam *sim = new MSimSignalCam;
     263        tlist->AddToList(sim);
     264    }
     265
    239266    MContinue *mcevts = new MContinue("MRawEvtData.GetNumPixels==0", "ContEmpty");
    240267    if (type==2)
     
    247274    contevt->SetInverted();
    248275    tlist->AddToList(contevt);
    249 
    250     MGeomApply *apl = new MGeomApply;
    251     tlist->AddToList(apl);
    252276
    253277    MTriggerPatternDecode *decode = new MTriggerPatternDecode;
     
    297321    plist->AddToList(evt10);
    298322
    299     MExtractTimeAndChargeDigitalFilter *digf = new MExtractTimeAndChargeDigitalFilter;
    300     digf->SetNameWeightsFile("msignal/cosmics_weights46.dat");
    301 
    302     MTaskEnv *taskenv1=new MTaskEnv("ExtractSignal");
    303     taskenv1->SetDefault(digf);
    304     taskenv1->SetOwner();
    305 
    306     MSignalCalc     *nanal   = new MSignalCalc;
    307323    MFillH          *fill01  = new MFillH(evt01, "MSignalCam", "MFillH01");
    308324    MImgCleanStd    *clean   = new MImgCleanStd;
     
    317333    MFillH          *fill10  = new MFillH(evt10, "MSignalCam",    "MFillH10");
    318334
     335    MExtractTimeAndChargeDigitalFilter *digf = new MExtractTimeAndChargeDigitalFilter;
     336    digf->SetNameWeightsFile("msignal/cosmics_weights46.dat");
     337
     338    MTaskEnv *taskenv1=new MTaskEnv("ExtractSignal");
     339    taskenv1->SetDefault(digf);
     340    taskenv1->SetOwner();
     341
     342    MSignalCalc     *nanal   = new MSignalCalc;
     343
    319344    MBadPixelsCalc  *bcalc   = new MBadPixelsCalc;
    320345    MBadPixelsTreat *btreat  = new MBadPixelsTreat;
     
    379404    if (type==2)
    380405        tlist->AddToList(fill03);
    381     tlist->AddToList(fill04);
     406    if (type!=3)
     407        tlist->AddToList(fill04);
    382408    tlist->AddToList(fill06a);
    383409    tlist->AddToList(fill06b);
     
    393419        //tlist->AddToList(fill09);
    394420    }
    395     if (type==1)
     421    if (type==1 || type==3)
    396422    {
    397423        MFillH *fill08 = new MFillH(evt08, "MSignalCam", "MFillH8");
     
    662688    *fLog << all;
    663689    fLog->Separator(MString::Format("Entry %d", reader->GetNumEntry()+1));
     690
    664691    ((MHillas*)     plist->FindObject("MHillas"))->Print(*geom);
    665692    ((MHillasExt*)  plist->FindObject("MHillasExt"))->Print(*geom);
     
    716743    };
    717744
     745    const Int_t ismc = plist->FindObject("MHPhotonEvent") ? 1 : 0;
    718746
    719747    for (int i=1; i<7; i++)
    720748    {
    721         TCanvas *c = GetCanvas(i);
     749        TCanvas *c = GetCanvas(i+ismc);
     750        if (!c)
     751            continue;
     752
    722753        c->cd(1);
    723754
  • trunk/MagicSoft/Mars/mmain/Makefile

    r9328 r9347  
    2424           -I../mdata -I../msignal -I../mcalib -I../mbadpixels            \
    2525           -I../mpointing -I../mpedestal -I../mmuon -I../mfilter -I../mjobs \
    26            -I../mtrigger
     26           -I../mtrigger -I../mcorsika -I../msimcamera -I../msim
    2727
    2828SRCFILES = MBrowser.cc \
Note: See TracChangeset for help on using the changeset viewer.