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