1 |
mocchiut |
1.1 |
/** @file |
2 |
mocchiut |
1.2 |
* $Author: mocchiut $ |
3 |
|
|
* $Date: 2008/09/23 07:19:54 $ |
4 |
mocchiut |
1.1 |
* $Version: 1.1 $ |
5 |
|
|
* |
6 |
|
|
* Header file for the SubPacket class. |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
////#include <log4cxx/logger.h> |
10 |
|
|
|
11 |
|
|
#include "SubPacket.h" |
12 |
|
|
|
13 |
|
|
////static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.EventCounter")); |
14 |
|
|
|
15 |
|
|
using namespace pamela; |
16 |
|
|
|
17 |
|
|
/** |
18 |
|
|
* Constructor for the SubPacket. |
19 |
|
|
* @param name Name of the SubPacket. |
20 |
|
|
* @param type Packet type. |
21 |
|
|
* @param detector SubDetector, if the SubPacket is detector specific. |
22 |
|
|
*/ |
23 |
|
|
SubPacket::SubPacket(std::string name, const PacketType* type, |
24 |
|
|
const SubDetector* detector): |
25 |
mocchiut |
1.2 |
Type(type), Detector(detector), SubPacketName(name) { |
26 |
mocchiut |
1.1 |
} |
27 |
|
|
|
28 |
|
|
/** |
29 |
|
|
* Default constructor. Note that this should never be used; it is here |
30 |
|
|
* just for some thumb requirements of ROOT. |
31 |
|
|
*/ |
32 |
mocchiut |
1.2 |
SubPacket::SubPacket(void): Type(0), Detector(0), SubPacketName("ERROR") { |
33 |
mocchiut |
1.1 |
} |
34 |
|
|
|
35 |
|
|
ClassImp(SubPacket) |