Changeset 3534


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3530 r3534  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/03/17: Abelardo Moralejo
     22
     23   * manalysis/MSourcePosfromStarPos.cc
     24     - added cast fabs((Double_t)ival), line 703. Otherwise it does not
     25       compile.
     26
     27   * macros/starmc.C
     28     - added parameter accepted_fraction to select fraction of events
     29       to be processed (useful to make smaller outputs).
     30
    2031
    2132 2004/03/17: Wolfgang Wittek
  • trunk/MagicSoft/Mars/macros/starmc.C

    r3441 r3534  
    5252  // differences in gain of outer pixels)
    5353  //
    54   CalibrationFilename = new TString("nonoise/Gamma_zbin0_90_7_507*.root");
     54  CalibrationFilename = new TString("nonoise/Gamma_zbin0_90_*.root");
    5555  // File to be used in the calibration (must be a camera file without added noise)
    5656
    57   Char_t* AnalysisFilename = "Gamma_zbin0*.root";  // File to be analyzed
     57  Char_t* AnalysisFilename = "Gamma_zbin*.root";  // File to be analyzed
    5858
    5959  // ------------- user change -----------------
     
    6363
    6464  OutFilename1 = new TString("star_train.root");   // Output file name 1 (test)
    65   //  OutFilename2 = new TString("star_test.root");    // Output file name 2 (train)
    66 
     65  OutFilename2 = new TString("star_test.root");    // Output file name 2 (train)
     66  //
     67  // Fraction of events (taken at random) which one wants to process from the
     68  // file to be analyzed (useful to make smaller files if starting sample is
     69  // too large).
     70  //
     71  Float_t accepted_fraction = 1.;
    6772
    6873  Float_t CleanLev[2] = {4., 3.}; // Tail cuts for image analysis
     
    206211  read2.AddFile(AnalysisFilename);
    207212  read2.DisableAutoScheme();
    208   tlist.AddToListBefore(&read2, &read, "All");
     213  tlist.AddToListBefore(&read2, &read);
    209214  tlist.RemoveFromList(&read);
     215
     216  //
     217  // Analyzed only the desired fraction of events, skip the rest:
     218  //
     219  MFEventSelector eventselector;
     220  Float_t rejected_fraction = 1. - accepted_fraction;
     221  eventselector.SetSelectionRatio(rejected_fraction);
     222  MContinue skip(&eventselector);
     223  tlist.AddToListBefore(&skip, &sigextract);
    210224
    211225  bar.SetWindowName("Analyzing...");
  • trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc

    r3532 r3534  
    701701
    702702    // run number must be greater than 10000
    703     if (fabs(ival) < 10000)
     703    if (fabs((Double_t)ival) < 10000)
    704704    {
    705705      *fLog << err << "===========> Error when reading file with theta and phi <========="
Note: See TracChangeset for help on using the changeset viewer.