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

Diff of /yoda/event/PamelaRun.h

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

revision 2.0 by kusanagi, Tue Sep 21 20:49:57 2004 UTC revision 5.1 by kusanagi, Sat Feb 4 12:37:43 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/event/PamelaRun.h,v $   * $Source: /home/cvsmanager/yoda/event/PamelaRun.h,v $
3   * $Id: PamelaRun.h,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $   * $Id: PamelaRun.h,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $
4   * $Author: kusanagi $   * $Author: Maurizio Nagni $
5   *   *
6   * Header file for the PamelaRun class.   * Header file for the PamelaRun class.
7   */   */
# Line 19  Line 19 
19   * <H2> <A HREF="yoda6.html">Existing subpackets</A></H2>   * <H2> <A HREF="yoda6.html">Existing subpackets</A></H2>
20   * <H2> <A HREF="yoda7.html">Writing new subpackets</A></H2>   * <H2> <A HREF="yoda7.html">Writing new subpackets</A></H2>
21   * <H2> <A HREF="yoda8.html">Writing Algorithms</A></H2>   * <H2> <A HREF="yoda8.html">Writing Algorithms</A></H2>
22     * <H2> <A HREF="yoda9.html">Bibliography</A></H2>
23   *   *
24   */   */
25  #ifndef PAMELA_RUN_H  #ifndef PAMELA_RUN_H
26  #define PAMELA_RUN_H  #define PAMELA_RUN_H
27    
28  //#include <string>  
 //#include <map>  
 //#include <list>  
   
 //#include <root/TFile.h>  
 //#include <root/TTree.h>  
 //#include <root/TChain.h>  
29  #include <TFile.h> //Substituted by Maurizio 05 Feb 2004  #include <TFile.h> //Substituted by Maurizio 05 Feb 2004
30  #include <TTree.h> //Substituted by Maurizio 05 Feb 2004  #include <TTree.h> //Substituted by Maurizio 05 Feb 2004
31  #include <TChain.h> //Substituted by Maurizio 05 Feb 2004  #include <TChain.h> //Substituted by Maurizio 05 Feb 2004
32    
   
 #include "PacketType.h"  
 #include "SubPacket.h"  
33  #include "Algorithm.h"  #include "Algorithm.h"
34  #include "EventHeader.h"  #include "EventHeader.h"
35  #include "RunInfo.h"  #include "RunInfo.h"
36    #include <list>
37    
38  /**  /**
39   * pamela is the base namespace of this package.   * pamela is the base namespace of this package.
# Line 53  namespace pamela { Line 46  namespace pamela {
46     */     */
47    class PamelaRun {    class PamelaRun {
48    private:    private:
49        std::stringstream oss;
50      /**      /**
51       * The path to the bases of the ROOT repository.       * The path to the bases of the ROOT repository.
52       */       */
# Line 66  namespace pamela { Line 60  namespace pamela {
60       */       */
61      int RunNumber;      int RunNumber;
62      /**      /**
63         * compression Level.
64         */
65        short compression;
66        /**
67         * Multiple/Single unpack.
68         */
69        bool Multiple;
70        /**
71         * single File.
72         */
73        TFile *SingleFile;
74        /**
75       * The information about the run to be stored in the ROOT files       * The information about the run to be stored in the ROOT files
76       */       */
77      pamela::RunInfo info;      pamela::RunInfo info;
78      std::string RunExists(std::string) throw (std::exception);      void RunExists(std::string) throw (std::exception);
79      std::string GetDirName(const pamela::PacketType*) const;      std::string GetDirName(const pamela::PacketType*) const;
80      std::string GetFileName(const pamela::SubPacket*, std::string) const;      std::string GetFileName(const pamela::SubPacket*, std::string) ;
81      std::string GetFileName(const pamela::SubPacket*) const;      std::string GetFileName(const pamela::SubPacket*) ;
82      TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception);      TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception);
83      TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name)      TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name)
84        throw (std::exception);        throw (std::exception);
# Line 112  namespace pamela { Line 118  namespace pamela {
118       * The map of all subpackets that are currently read from the trees.       * The map of all subpackets that are currently read from the trees.
119       */       */
120      SubPacketMap SubPacketAddresses;      SubPacketMap SubPacketAddresses;
121          
122        
123    
124    public:    public:
125      PamelaRun(std::string, std::string);      PamelaRun(std::string, std::string, bool, short);
126      static std::string GetRunName(int run);      static std::string GetRunName(int run);
127      //static int RunExists(int = 1) throw (std::exception);      //static int RunExists(int = 1) throw (std::exception);
128            
# Line 135  namespace pamela { Line 142  namespace pamela {
142      void WriteFiles(void);      void WriteFiles(void);
143      void FillTrees(const pamela::PacketType*);      void FillTrees(const pamela::PacketType*);
144      std::string GetRun(){ return Run; }      std::string GetRun(){ return Run; }
145      ClassDef(PamelaRun, 1)      ClassDef(PamelaRun, 2)
146    };    };
147  }  }
148    

Legend:
Removed from v.2.0  
changed lines
  Added in v.5.1

  ViewVC Help
Powered by ViewVC 1.1.23