1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/physics/calorimeter/CalorimeterEvent.cpp,v $ |
* $Source: /home/cvsmanager/yoda/event/physics/calorimeter/CalorimeterEvent.cpp,v $ |
3 |
* $Id: CalorimeterEvent.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $ |
* $Id: CalorimeterEvent.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the raw calorimeter physics event class |
* Implementation of the raw calorimeter physics event class |
7 |
*/ |
*/ |
12 |
using namespace pamela::calorimeter; |
using namespace pamela::calorimeter; |
13 |
|
|
14 |
CalorimeterEvent::CalorimeterEvent(void): |
CalorimeterEvent::CalorimeterEvent(void): |
15 |
SubPacket("Raw", PacketType::Physics, SubDetector::Calorimeter) { |
SubPacket("Event", PacketType::Physics, SubDetector::Calorimeter) { |
|
NValue = 0; |
|
|
Value = new Short_t[1055]; |
|
16 |
} |
} |
17 |
|
|
18 |
CalorimeterEvent::~CalorimeterEvent(void) { |
CalorimeterEvent::~CalorimeterEvent(void) { |
19 |
} |
} |
20 |
|
|
|
void CalorimeterEvent::Set(int nvalue, short* value) { |
|
|
delete Value; |
|
|
Value = new Short_t[nvalue]; |
|
|
for (int i = 0; i < nvalue; i++) { |
|
|
Value[i] = value[i]; |
|
|
} |
|
|
NValue = nvalue; |
|
|
} |
|
|
|
|
21 |
ClassImp(CalorimeterEvent) |
ClassImp(CalorimeterEvent) |