Ignore:
Timestamp:
01/31/13 15:12:16 (12 years ago)
Author:
Jens Buss
Message:
changed saveHistograms to SaveList
Location:
fact/tools/rootmacros/PulseTemplates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/rootfilehandler.C

    r14807 r14817  
    109109
    110110void
    111 SaveHistograms(
     111SaveList(
    112112        TString         loc_fname,
    113113        TString         subdirectory,
    114         TList*          histList,
     114        TList*          list,
    115115        bool            saveResults,
    116116        int             verbosityLevel
     
    119119
    120120    if (!saveResults) return;
    121     if (histList==NULL) return;
     121    if (list==NULL) return;
    122122    if (verbosityLevel > 2) cout << endl
    123                                  << "...saving pixel histograms to subdirectory: "
     123                                 << "...saving pixel's list to subdirectory: "
    124124                                 << subdirectory << endl ;
    125125
     
    128128
    129129    if (verbosityLevel > 2) cout << endl
    130                                  << "...writing histogram list to root file "
     130                                 << "...writing list to root file "
    131131                                 << endl ;
    132132    gFile->mkdir(subdirectory.Data());
     
    136136        gDirectory->pwd();
    137137    }
    138 //    cout << histList;
    139     for ( int idx = 0; idx < histList->GetSize(); idx++)
    140     {
    141         histList->At(idx)->Write();
    142     }
    143 //    gFile->WriteTObject(histList, subdirectory); // write the histograms into one Key in the top level directory
     138//    cout << list;
     139    for ( int idx = 0; idx < list->GetSize(); idx++)
     140    {
     141        list->At(idx)->Write();
     142    }
     143//    gFile->WriteTObject(list, subdirectory); // write the histograms into one Key in the top level directory
    144144    gFile->cd("..");
    145145
  • fact/tools/rootmacros/PulseTemplates/rootfilehandler.h

    r13858 r14817  
    1616
    1717void
    18 SaveHistograms( TString ,TString, TList*, bool, int );
     18SaveList( TString ,TString, TList*, bool, int );
    1919
    2020TString
Note: See TracChangeset for help on using the changeset viewer.