/[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 1.1.1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 6.2 by mocchiut, Fri Sep 29 10:19:12 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvspamela/yoda/event/PamelaRun.h,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/event/PamelaRun.h,v $
3   * $Id: PamelaRun.h,v 1.6 2004/03/16 10:18:28 nagni Exp $   * $Id: PamelaRun.h,v 6.1 2006/03/08 13:51:45 kusanagi Exp $
4   * $Author: nagni $   * $Author: kusanagi $
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       */       */
53      std::string Path;       std::string Path;
54        /**
55         * The path to the bases for Unpacking.
56         */
57        std::string UnpackPath;
58      /**      /**
59       * The run name;       * The run name;
60       */       */
# Line 66  namespace pamela { Line 64  namespace pamela {
64       */       */
65      int RunNumber;      int RunNumber;
66      /**      /**
67         * compression Level.
68         */
69        short compression;
70        /**
71         * Multiple/Single unpack.
72         */
73        bool Multiple;
74        /**
75         * single File.
76         */
77        TFile *SingleFile;
78        /**
79       * The information about the run to be stored in the ROOT files       * The information about the run to be stored in the ROOT files
80       */       */
81      pamela::RunInfo info;      pamela::RunInfo info;
82      std::string RunExists(std::string) throw (std::exception);      void RunExists(std::string) throw (std::exception);
83      std::string GetDirName(const pamela::PacketType*) const;      std::string GetDirName(const pamela::PacketType*) const;
84      std::string GetFileName(const pamela::SubPacket*, std::string) const;      std::string GetFileName(const pamela::SubPacket*, std::string) ;
85      std::string GetFileName(const pamela::SubPacket*) const;      std::string GetFileName(const pamela::SubPacket*) ;
86      TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception);      TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception);
87      TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name)      TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name)
88        throw (std::exception);        throw (std::exception);
# Line 112  namespace pamela { Line 122  namespace pamela {
122       * The map of all subpackets that are currently read from the trees.       * The map of all subpackets that are currently read from the trees.
123       */       */
124      SubPacketMap SubPacketAddresses;      SubPacketMap SubPacketAddresses;
125          
126        
127    
128    public:    public:
129      PamelaRun(std::string, std::string);      PamelaRun(std::string, std::string, bool, short);
130        virtual ~PamelaRun(){};
131      static std::string GetRunName(int run);      static std::string GetRunName(int run);
132      //static int RunExists(int = 1) throw (std::exception);      //static int RunExists(int = 1) throw (std::exception);
133            
# Line 135  namespace pamela { Line 147  namespace pamela {
147      void WriteFiles(void);      void WriteFiles(void);
148      void FillTrees(const pamela::PacketType*);      void FillTrees(const pamela::PacketType*);
149      std::string GetRun(){ return Run; }      std::string GetRun(){ return Run; }
150      ClassDef(PamelaRun, 1)      std::string GetPath(){ return Path; }
151        std::string GetUnpackPath(){ return UnpackPath; }
152        ClassDef(PamelaRun, 3)
153    };    };
154  }  }
155    

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.6.2

  ViewVC Help
Powered by ViewVC 1.1.23