Changeset 3439


Ignore:
Timestamp:
03/08/04 10:29:17 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3438 r3439  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     72004/03/08: Abelardo Moralejo
     8  * macros/starmstereo.C
     9    - adapted to m. Gaug's changes: now one MBadPixelsCam containers is
     10      added for each telescope to the parameter list.
    611
    7122004/03/06: Markus Gaug
  • trunk/MagicSoft/Mars/macros/starmcstereo.C

    r3334 r3439  
    4646//
    4747
    48 void starmcstereo(Int_t ct1 = 1, Int_t ct2 = 2)
     48void starmcstereo(Int_t ct1 = 2, Int_t ct2 = 5)
    4949{
    5050  if (ct1 > sizeof(ctx)/sizeof(ctx[0]) ||
     
    6161  // ------------- user change -----------------
    6262
    63   Char_t* AnalysisFilename = "G_XX_*_w0.root";  // File to be analyzed
     63  Char_t* AnalysisFilename = "gam-yXX-00001.root";  // File to be analyzed
    6464  Char_t* OutFileTag      = "gammas";           // Output file tag
    6565
     
    8686  plist.AddToList(&tlist);
    8787
    88   TString s = " MSrcPosCam;";
    89   s += CT[0];
    90   MSrcPosCam src1(s);
    91   src1.SetReadyToSave();
    92   plist.AddToList(&src1);
    93 
    94   if (NCTs==2)
    95     {
    96       s = " MSrcPosCam;";
    97       s += CT[1];
    98       MSrcPosCam src2(s);
    99       src2.SetReadyToSave();
    100       plist.AddToList(&src2);
     88  MSrcPosCam src[NCTs];
     89  MBadPixelsCam badpix[NCTs];
     90
     91  for (Int_t ict = 0; ict < NCTs; ict++)
     92    {
     93      TString s = "MSrcPosCam;";
     94      s += CT[ict];
     95      src[ict].SetName(s);
     96      src[ict].SetReadyToSave();
     97      plist.AddToList(&(src[ict]));
     98
     99      TString b = "MBadPixelsCam;";
     100      b += CT[ict];
     101      badpix[ict].SetName(b);
     102      badpix[ict].SetReadyToSave();
     103      plist.AddToList(&(badpix[ict]));
    101104    }
    102105  //
Note: See TracChangeset for help on using the changeset viewer.