/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.82 by mocchiut, Thu Jun 4 15:10:47 2009 UTC revision 1.85 by mocchiut, Tue May 11 03:57:52 2010 UTC
# Line 467  void PamLevel2::Initialize() { Line 467  void PamLevel2::Initialize() {
467    runfirstentry = 0LL;    runfirstentry = 0LL;
468    runlastentry = 0LL;    runlastentry = 0LL;
469    gltsync = 0; // Emiliano    gltsync = 0; // Emiliano
470      fUpdateRunInfo = true; // Emiliano
471    
472    l0_file = NULL;    l0_file = NULL;
473    l0_tree = NULL;    l0_tree = NULL;
# Line 633  void PamLevel2::Delete() { Line 634  void PamLevel2::Delete() {
634      //      //
635      TIter next2(contents);      TIter next2(contents);
636      TChain *questa = 0;      TChain *questa = 0;
637      while (questa = (TChain*) next2()) {      while ( (questa = (TChain*)next2()) ) {
638        TString name = questa->GetName();        TString name = questa->GetName();
639        questa->Delete();        questa->Delete();
640        questa = NULL;        questa = NULL;
# Line 747  void PamLevel2::Reset() { Line 748  void PamLevel2::Reset() {
748      //      //
749      TIter next2(contents);      TIter next2(contents);
750      TChain *questa = 0;      TChain *questa = 0;
751      while (questa = (TChain*) next2()) {      while ( (questa = (TChain*) next2()) ) {
752        TString name = questa->GetName();        TString name = questa->GetName();
753        questa->Delete();        questa->Delete();
754        questa = NULL;        questa = NULL;
# Line 2113  TList* PamLevel2::GetListOfLevel2Files(T Line 2114  TList* PamLevel2::GetListOfLevel2Files(T
2114          if (file.EndsWith(".root")) {          if (file.EndsWith(".root")) {
2115            TString filedir;            TString filedir;
2116            cout << ddir << endl;            cout << ddir << endl;
2117            if (ddir != "") {            if ( ddir != "" ) {
2118              filedir = ddir; // take the input dir              filedir = ddir; // take the input dir
2119            }            }
2120            else {            else {
# Line 2121  TList* PamLevel2::GetListOfLevel2Files(T Line 2122  TList* PamLevel2::GetListOfLevel2Files(T
2122              filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir              filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir
2123            };            };
2124            filedir.Append("/");            filedir.Append("/");
2125            char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file));            //          char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file));
2126              char *fullpath = gSystem->ConcatFileName(filedir.Data(), gSystem->BaseName(file));
2127            contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list            contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list
2128            cout << fullpath << endl;            cout << fullpath << endl;
2129            delete fullpath;            delete fullpath;
# Line 4222  Int_t PamLevel2::GetEntry(Long64_t iee) Line 4224  Int_t PamLevel2::GetEntry(Long64_t iee)
4224    ii = iee;    ii = iee;
4225    //    Bool_t UPDATED = UpdateRunInfo(run_tree,ii);    //    Bool_t UPDATED = UpdateRunInfo(run_tree,ii);
4226    //    Bool_t UPDATED = UpdateRunInfo(ii);    //    Bool_t UPDATED = UpdateRunInfo(ii);
4227    UpdateRunInfo(ii);    if ( fUpdateRunInfo ) UpdateRunInfo(ii); // Emiliano
4228    if (SELLI == 0 || SELLI == 2)    if (SELLI == 0 || SELLI == 2)
4229      irunentry = iee - runfirstentry;      irunentry = iee - runfirstentry;
4230    //    if(UPDATED && run_tree_clone)run_tree_clone->Fill();    //    if(UPDATED && run_tree_clone)run_tree_clone->Fill();

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.23