Changeset 4868


Ignore:
Timestamp:
09/06/04 08:31:05 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C

    r4584 r4868  
    172172      //TString tag = "040126";
    173173      //TString tag = "040127";
    174       TString tag = "040215";
     174      //TString tag = "040215";
     175      TString tag = "040422";
    175176
    176177      //const char *offfile = "~magican/ct1test/wittek/offdata.preproc";
     
    184185      // 15 Feb 04
    185186      //const char *offfile  = "*.OFF";
    186       const char *offfile  = "174*.OFF";
    187 
     187      //const char *offfile  = "174*.OFF";
     188      const char *offfile  = "*.OffMrk421*";
    188189
    189190      //const char *onfile  = "~magican/ct1test/wittek/mkn421_on.preproc";
     
    199200      // 15 Feb 04
    200201      //const char *onfile  = "*.ON";
    201       const char *onfile  = "174*.ON";
     202      //const char *onfile  = "174*.ON";
     203      const char *onfile  = "*.Mrk421*";
    202204
    203205
     
    231233     //if (tag == "040215")
    232234     //  TString inPath = "/mnt/magicserv01/scratch/David/CalibratedData/Crab/2004_02_15/";
    233      if (tag == "040215")   
     235     if (tag == "040215") 
     236     {
    234237       TString inPathON = "/.magic/magicserv01/scratch/Daniel/CalibratedData/MispointingTest/2004_02_15ForgottenData/finesam20/";
    235238       TString inPathOFF = "/.magic/magicserv01/scratch/David/CalibratedData/Mkn421/2004_02_15/";
    236239       TString inPathMC = "/.magic/magicserv01/scratch/David/MCData/MCApril2004/Data/gammas_highnoise/";
     240     }
     241
     242     if (tag == "040422") 
     243     {
     244       TString inPathON  = "/.magic/data03a/mazin/calibrdata/2004_04_22/";
     245       TString inPathOFF = "/.magic/data03a/mazin/calibrdata/2004_04_22/";
     246       TString inPathMC  = "/.magic/magicserv01/scratch/David/MCData/MCApril2004/Data/gammas_highnoise/";
     247     }
    237248
    238249      // path for output from Mars
    239250      //TString outPath = "~wittek/datacrab_feb04/";
    240251     //TString outPath = "~wittek/datacrab_01march04/";
    241       TString outPath = "~wittek/datacrab_27april04/";
     252     // TString outPath = "~wittek/datacrab_27april04/";
     253     TString outPath = "/mnt/data03a/wittek/";
     254     outPath += tag;
     255     outPath += "/";
    242256
    243257      //-----------------------------------------------
     
    256270
    257271    Bool_t JobA    = kTRUE; 
    258     Bool_t GPadON  = kFALSE;    // \  generate padding histograms
     272    Bool_t GPadON  = kTRUE;    // \  generate padding histograms
    259273    Bool_t GPadOFF = kFALSE;    //  | and write them onto disk
    260274    Bool_t GPadMC  = kFALSE;    // /
    261275    Bool_t Merge   = kFALSE;   // merge padding histograms
    262276                               // and write them onto disk
    263     Bool_t Wout    = kTRUE;   // read in merged padding histograms and
     277    Bool_t Wout    = kFALSE;   // read in merged padding histograms and
    264278                              // write out root file of padded data
    265279                              // (ON1.root, OFF1.root or MC1.root)
     
    477491    MGeomApply        apply;
    478492
    479     MSourcePosfromStarPos sourcefromstaron;
    480     sourcefromstaron.AddFile("~wittek/datacrab_26feb04/positions040215.txt", 0);
    481 
    482       MBlindPixelsCalc2 blindon;
    483       //blindon.SetUseBlindPixels();
    484       blindon.SetCheckPedestalRms();
     493    TString pedphotcamname("MPedPhotCamFromData");
     494
     495    MBadPixelsCalc badcalcon;
     496    badcalcon.SetNamePedPhotContainer(pedphotcamname);
     497    badcalcon.SetPedestalLevel(2.0);
     498
     499    MBadPixelsTreat badtreaton;
     500    badtreaton.SetNamePedPhotCam(pedphotcamname);
     501    badtreaton.SetUseInterpolation();
     502    badtreaton.SetProcessPedestalEvt();
     503    badtreaton.SetProcessTimes();
    485504
    486505      MFSelBasic selbasicon;
    487506      MContinue contbasicon(&selbasicon);
    488507
    489       MHBlindPixels blindON("BlindPixelsON");
    490       MFillH fillblindON("BlindPixelsON[MHBlindPixels]", "MBlindPixels");
    491       fillblindON.SetName("FillBlind");
     508      MHBadPixels badON("BadPixelsON");
     509      MFillH fillbadON("BadPixelsON[MHBadPixels]", "MBadPixelsCam");
     510      fillbadON.SetName("FillBad");
    492511
    493512      MSigmabarCalc sigbarcalcon;
    494513
    495514      MHSigmaTheta sigthON("SigmaThetaON");
    496       MFillH fillsigthetaON ("SigmaThetaON[MHSigmaTheta]", "MPointingPos");
     515      sigthON.SetNamePedPhotCam(pedphotcamname);
     516      MFillH fillsigthetaON ("SigmaThetaON[MHSigmaTheta]", "");
    497517      fillsigthetaON.SetName("FillSigTheta");   
    498518 
     
    503523      InitBinnings(&pliston);
    504524      pliston.AddToList(&observon);
    505       pliston.AddToList(&blindON);
     525      pliston.AddToList(&badON);
    506526      pliston.AddToList(&sigthON);
    507527
     
    512532      tliston.AddToList(&readON);
    513533      tliston.AddToList(&apply);
    514       tliston.AddToList(&sourcefromstaron);
    515 
    516       tliston.AddToList(&blindon);
     534
     535      tliston.AddToList(&badcalcon);
     536      tliston.AddToList(&badtreaton);
    517537
    518538      tliston.AddToList(&contbasicon);
    519       tliston.AddToList(&fillblindON);
     539      tliston.AddToList(&fillbadON);
    520540      tliston.AddToList(&sigbarcalcon);
    521541      tliston.AddToList(&fillsigthetaON);
     
    533553      tliston.PrintStatistics(0, kTRUE);
    534554
    535       blindON.DrawClone();
     555      badON.DrawClone();
    536556      sigthON.DrawClone();
    537557
     
    541561      TH3D *diffpixthon = sigthON.GetDiffPixTheta();
    542562
    543       TH2D *blindidthon = blindON.GetBlindId();
    544       TH2D *blindnthon  = blindON.GetBlindN();
     563      TH2D *badidthon = badON.GetBadId();
     564      TH2D *badnthon  = baddON.GetBadN();
    545565
    546566      gLog << "" << endl;
     
    552572      sigpixthon->Write();
    553573      diffpixthon->Write();
    554       blindidthon->Write();
    555       blindnthon->Write();
     574      badidthon->Write();
     575      badnthon->Write();
    556576      filewriteon.Close();
    557577
  • trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C

    r4741 r4868  
    207207
    208208  //$$$$$$$$$$$$$$$$ ww
    209   Int_t InputType = 1;
     209  Int_t InputType = 0;
    210210  //findstars.SetUseCorrelatedGauss(kFALSE);
    211211
     
    265265  while (tlist.Process())
    266266    {
    267       gLog << "---------------------------------------------" << endl;
    268       gLog << "Macro : MStarPos content = " << endl;
    269       starcam.Print("namepossizchierr");
    270       gLog << "---------------------------------------------" << endl;
    271       gLog << "Macro : MSourcePos content = " << endl;
    272       sourcecam.Print("namepossizchierr");
    273       gLog << "---------------------------------------------" << endl;
     267      //gLog << "---------------------------------------------" << endl;
     268      //gLog << "Macro : MStarPos content = " << endl;
     269      //starcam.Print("namepossizchierr");
     270      //gLog << "---------------------------------------------" << endl;
     271      //gLog << "Macro : MSourcePos content = " << endl;
     272      //sourcecam.Print("namepossizchierr");
     273      //gLog << "---------------------------------------------" << endl;
    274274
    275275      numevents++;
     
    314314                   + source->GetYIdeal()*source->GetYIdeal() );
    315315
    316         cout << "R0, R = " << R0 << ",  " << R << endl;
     316        //cout << "R0, R = " << R0 << ",  " << R << endl;
    317317
    318318        aberr->Fill(R0, R, 1.0);
     
    345345  //$$$$$$$$$$$$$$$$ ww
    346346 
    347   gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl;
    348   TObject *srccam = plist.FindObject("MSourceCam");
    349 
    350   gLog << "srccam = " << srccam << endl;
     347  //gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl;
     348
     349  //TObject *srccam = plist.FindObject("MSourceCam");
     350  //gLog << "srccam = " << srccam << endl;
    351351
    352352  TObject *obj = plist.FindObject("MHTelAxisFromStars");
Note: See TracChangeset for help on using the changeset viewer.