| 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 2.0 2004/09/21 20:49:57 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Header file for the PamelaRun class. |
* Header file for the PamelaRun class. |
| 41 |
#include "Algorithm.h" |
#include "Algorithm.h" |
| 42 |
#include "EventHeader.h" |
#include "EventHeader.h" |
| 43 |
#include "RunInfo.h" |
#include "RunInfo.h" |
| 44 |
|
#include <sstream> |
| 45 |
|
|
| 46 |
|
|
| 47 |
/** |
/** |
| 48 |
* pamela is the base namespace of this package. |
* pamela is the base namespace of this package. |
| 55 |
*/ |
*/ |
| 56 |
class PamelaRun { |
class PamelaRun { |
| 57 |
private: |
private: |
| 58 |
|
std::stringstream oss; |
| 59 |
/** |
/** |
| 60 |
* The path to the bases of the ROOT repository. |
* The path to the bases of the ROOT repository. |
| 61 |
*/ |
*/ |
| 72 |
* The information about the run to be stored in the ROOT files |
* The information about the run to be stored in the ROOT files |
| 73 |
*/ |
*/ |
| 74 |
pamela::RunInfo info; |
pamela::RunInfo info; |
| 75 |
std::string RunExists(std::string) throw (std::exception); |
void RunExists(std::string) throw (std::exception); |
| 76 |
std::string GetDirName(const pamela::PacketType*) const; |
std::string GetDirName(const pamela::PacketType*) const; |
| 77 |
std::string GetFileName(const pamela::SubPacket*, std::string) const; |
std::string GetFileName(const pamela::SubPacket*, std::string) ; |
| 78 |
std::string GetFileName(const pamela::SubPacket*) const; |
std::string GetFileName(const pamela::SubPacket*) ; |
| 79 |
TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception); |
TChain* ReadHeaderTree(const pamela::PacketType*) throw (std::exception); |
| 80 |
TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name) |
TTree* CreateTTree(pamela::Algorithm*, const pamela::SubPacket*, std::string name) |
| 81 |
throw (std::exception); |
throw (std::exception); |
| 115 |
* The map of all subpackets that are currently read from the trees. |
* The map of all subpackets that are currently read from the trees. |
| 116 |
*/ |
*/ |
| 117 |
SubPacketMap SubPacketAddresses; |
SubPacketMap SubPacketAddresses; |
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
public: |
public: |
| 122 |
PamelaRun(std::string, std::string); |
PamelaRun(std::string, std::string); |