/[PAMELA software]/yoda/event/PamelaRun.cpp
ViewVC logotype

Diff of /yoda/event/PamelaRun.cpp

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

revision 6.8 by pam-rm2, Wed Aug 23 14:39:44 2006 UTC revision 6.10 by mocchiut, Mon Oct 16 16:02:20 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: pam-rm2 $
3   * $Date: 2006/06/26 08:43:20 $   * $Date: 2006/08/23 14:39:44 $
4   * $Revision: 6.6 $   * $Revision: 6.8 $
5   *   *
6   * Implementation of the PamelaRun class.   * Implementation of the PamelaRun class.
7   */   */
# Line 29  extern "C" { Line 29  extern "C" {
29  #include <dirent.h>  #include <dirent.h>
30  #include "DirectoryStructure.h"  #include "DirectoryStructure.h"
31  }  }
32    
33    #include "yodaversion.h"
34    //#define version 60313
35    //extern int GetYODAver();
36    
37  using namespace pamela;  using namespace pamela;
38    
# Line 504  void PamelaRun::WriteFiles(void) { Line 508  void PamelaRun::WriteFiles(void) {
508      }      }
509    }    }
510    
511      TTree *softinfo = 0;
512      Int_t version=GetYODAver();
513      //Int_t version= 60312;
514      //printf("version = %f \n",version);
515      softinfo = new TTree("SoftInfo","YODA software info");
516      softinfo->Branch("SoftInfo",&version,"version/I");
517      softinfo->Fill();
518    
519    for (TTreeListMap::iterator i = WritingRootTrees.begin();    for (TTreeListMap::iterator i = WritingRootTrees.begin();
520         i != WritingRootTrees.end(); i++) {         i != WritingRootTrees.end(); i++) {
521      for (TTreeList::iterator j = i->second.begin();      for (TTreeList::iterator j = i->second.begin();
# Line 511  void PamelaRun::WriteFiles(void) { Line 523  void PamelaRun::WriteFiles(void) {
523        (*j)->GetCurrentFile()->Write(0,TObject::kOverwrite);        (*j)->GetCurrentFile()->Write(0,TObject::kOverwrite);
524      }      }
525    }    }
526      
527      softinfo->Delete();
528  }  }
529    
530  /**  /**

Legend:
Removed from v.6.8  
changed lines
  Added in v.6.10

  ViewVC Help
Powered by ViewVC 1.1.23