1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/PamelaRun.h,v $ |
* $Source: /home/cvsmanager/yoda/event/PamelaRun.h,v $ |
3 |
* $Id: PamelaRun.h,v 1.6 2004/03/16 10:18:28 nagni Exp $ |
* $Id: PamelaRun.h,v 4.4 2005/05/28 10:44:09 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the PamelaRun class. |
* Header file for the PamelaRun class. |
7 |
*/ |
*/ |
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 |
42 |
#include "Algorithm.h" |
#include "Algorithm.h" |
43 |
#include "EventHeader.h" |
#include "EventHeader.h" |
44 |
#include "RunInfo.h" |
#include "RunInfo.h" |
45 |
|
#include <sstream> |
46 |
|
|
47 |
|
|
48 |
/** |
/** |
49 |
* pamela is the base namespace of this package. |
* pamela is the base namespace of this package. |
56 |
*/ |
*/ |
57 |
class PamelaRun { |
class PamelaRun { |
58 |
private: |
private: |
59 |
|
std::stringstream oss; |
60 |
/** |
/** |
61 |
* The path to the bases of the ROOT repository. |
* The path to the bases of the ROOT repository. |
62 |
*/ |
*/ |
73 |
* The information about the run to be stored in the ROOT files |
* The information about the run to be stored in the ROOT files |
74 |
*/ |
*/ |
75 |
pamela::RunInfo info; |
pamela::RunInfo info; |
76 |
std::string RunExists(std::string) throw (std::exception); |
void RunExists(std::string) throw (std::exception); |
77 |
std::string GetDirName(const pamela::PacketType*) const; |
std::string GetDirName(const pamela::PacketType*) const; |
78 |
std::string GetFileName(const pamela::SubPacket*, std::string) const; |
std::string GetFileName(const pamela::SubPacket*, std::string) ; |
79 |
std::string GetFileName(const pamela::SubPacket*) const; |
std::string GetFileName(const pamela::SubPacket*) ; |
80 |
TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception); |
TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception); |
81 |
TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name) |
TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name) |
82 |
throw (std::exception); |
throw (std::exception); |
116 |
* The map of all subpackets that are currently read from the trees. |
* The map of all subpackets that are currently read from the trees. |
117 |
*/ |
*/ |
118 |
SubPacketMap SubPacketAddresses; |
SubPacketMap SubPacketAddresses; |
119 |
|
|
120 |
|
|
121 |
|
|
122 |
public: |
public: |
123 |
PamelaRun(std::string, std::string); |
PamelaRun(std::string, std::string); |
140 |
void WriteFiles(void); |
void WriteFiles(void); |
141 |
void FillTrees(const pamela::PacketType*); |
void FillTrees(const pamela::PacketType*); |
142 |
std::string GetRun(){ return Run; } |
std::string GetRun(){ return Run; } |
143 |
ClassDef(PamelaRun, 1) |
ClassDef(PamelaRun, 2) |
144 |
}; |
}; |
145 |
} |
} |
146 |
|
|