Ignore:
Timestamp:
05/18/04 13:39:53 (21 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mmpi/macros
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mmpi/macros/cleaninghillas.C

    r4088 r4097  
    7575
    7676    MObservatory observ;
     77    pliston.AddToList(&observ);
     78
    7779    MPointingPos mpos;
    7880    pliston.AddToList(&mpos);
     
    105107    MSourcePosfromStarPos sourcefromstar;
    106108
    107 //    if (typeInput == "ON")
    108 //    {
    109             sourcefromstar.AddFile("~mazin/mars/MarsCVS/Mars/data/positions2103.txt", 0);
    110 //    }
    111 //    else if (typeInput == "OFF")
    112 //    {
    113 //        sourcefromstar.AddFile("~mazin/data/dataMrk421_15feb/positionsFeb04_0", 0);
    114 //    }
     109    if (typeInput == "ON")
     110    {
     111            sourcefromstar.AddFile("~mazin/mars/MarsCVS/Mars/positionsON", 0);
     112    }
     113    else if (typeInput == "OFF")
     114    {
     115        sourcefromstar.AddFile("~mazin/mars/MarsCVS/Mars/positionsOFF", 0);
     116    }
    115117
    116118
  • trunk/MagicSoft/Mars/mtemp/mmpi/macros/falsesourcemethod.C

    r4088 r4097  
    130130  if (TYPEOPTION == kTRUE)  // output of OFF data sample
    131131//      DATPARAMIN = "data/ressignOffMrk3004.dat";  // 3000
    132       DATPARAMIN = "data/ressignOffCrab1502_1005.dat";   // 2000
     132      DATPARAMIN = "paramOffCrab2701.dat";   // 2000
    133133
    134134
    135135   HILLASFILENAME = "~/data/Crab/2004_01_27/CrabHillasOFF.root";
    136    DATPARAMOUT = "data/paramOffCrab2701.dat";
     136   DATPARAMOUT = "paramOffCrab2701.dat";
    137137   ROOTPLOTNAME = "/.magic/magicserv01/scratch/Daniel/plots/RootPlots/Crab/2004_01_27/CrabOffSkyPlots.root";
    138138   hillasfileread();
  • trunk/MagicSoft/Mars/mtemp/mmpi/macros/hillasfileread.C

    r4088 r4097  
    9090    plist.AddToList(&mcevt);
    9191
     92    MPointingPos mpoint;
     93    plist.AddToList(&mpoint);
     94
    9295    MObservatory observ;
    9396    plist.AddToList(&observ);
    9497
    95 //    printf("observ: %f\n",observ);
     98    MHStarMap starmap;
     99    plist.AddToList(&starmap);
    96100
    97     MHStarMap starmap;
    98 //    plist.AddToList(&starmap);
    99     starmap.ReInit(&plist);
    100101//    MRawRunHeader header;
    101102//    plist.AddToList(&header);
     
    131132     if (ROTOPTION == kTRUE)
    132133     {
    133         theta = mcevt->GetTelescopeTheta();
    134         phi = mcevt->GetTelescopePhi();
     134//        theta = mcevt->GetTelescopeTheta();
     135        theta = mpoint->GetZd();
     136//        phi = mcevt->GetTelescopePhi();
     137        phi = mpoint->GetAz();
    135138//   printf("theta: %5.3f, phi: %5.3f\n", theta*180./4.1415, phi*180./4.1415);
    136139        observ.RotationAngle(theta, phi, singam(imnum), cosgam(imnum));
  • trunk/MagicSoft/Mars/mtemp/mmpi/macros/skyplot.h

    r4088 r4097  
    6767
    6868
    69 TH2F histskyplot("Sky Plot 1","Sky Plot of significance (2nd order fit)",
     69TH2F histskyplot("SPSignif2ndOrder","Sky Plot of significance (2nd order fit)",
    7070                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    7171                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    7676histskyplot.UseCurrentStyle();
    7777
    78 TH2F histNexOnOff("Sky Plot 2","Sky Plot of Number of excess events (using ON and OFF data)",
     78TH2F histNexOnOff("SPNexOnOff","Sky Plot of Number of excess events (using ON and OFF data)",
    7979                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    8080                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    8585histNexOnOff.UseCurrentStyle();
    8686
    87 TH2F histChi2Off("Sky Plot 3","Sky Plot of Chi2/ndf (2nd order fit, OFF data)",
     87TH2F histChi2Off("SPChi2PerNdf2ndOrderOff","Sky Plot of Chi2/ndf (2nd order fit, OFF data)",
    8888                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    8989                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    9494histChi2Off.UseCurrentStyle();
    9595
    96 TH2F histskyplotOnOff("Sky Plot 4","Sky Plot of significance (using ON and OFF data)",
     96TH2F histskyplotOnOff("SPSignifOnOff","Sky Plot of significance (using ON and OFF data)",
    9797                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    9898                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    103103histskyplotOnOff.UseCurrentStyle();
    104104
    105 TH2F histNex("Sky Plot 5","Sky Plot of Number of excess events (2nd order fit)",
     105TH2F histNex("SPNex2ndOrder","Sky Plot of Number of excess events (2nd order fit)",
    106106                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    107107                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    112112histNex.UseCurrentStyle();
    113113
    114 TH2F histChi2("Sky Plot 6","Sky Plot of Chi2/ndf (2nd order fit)",
     114TH2F histChi2("SPChi2PerNdf2ndOrderOn","Sky Plot of Chi2/ndf (2nd order fit)",
    115115                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    116116                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    121121histChi2.UseCurrentStyle();
    122122
    123 TH2F histskyplot4("Sky Plot 7","Sky Plot of significance (4th order fit)",
     123TH2F histskyplot4("SPSignif4thOrder","Sky Plot of significance (4th order fit)",
    124124                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    125125                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    130130histskyplot4.UseCurrentStyle();
    131131
    132 TH2F histskyLiMa("Sky Plot 9","Sky Plot of significance (ON - OFF LiMa17)",
     132TH2F histskyLiMa("SPSignifLiMaOnOff","Sky Plot of significance (ON - OFF LiMa17)",
    133133                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    134134                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
     
    139139histskyLiMa.UseCurrentStyle();
    140140
    141 TH2F histBerlin("Sky Plot Berlin","Sky Plot of Events below alpha 8 degrees",
     141TH2F histBerlin("SPBerlinMethod","Sky Plot of Events below alpha 8 degrees",
    142142                 NUMSTEPS, MINXGRID - 0.5*STEPGRID, MAXXGRID + 0.5*STEPGRID,
    143143                 NUMSTEPS, MINYGRID - 0.5*STEPGRID, MAXYGRID + 0.5*STEPGRID);
Note: See TracChangeset for help on using the changeset viewer.