/[PAMELA software]/yoda/event/physics/calorimeter/CalorimeterEvent.cpp
ViewVC logotype

Diff of /yoda/event/physics/calorimeter/CalorimeterEvent.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 1.2 by kusanagi, Sat Jul 17 20:03:30 2004 UTC
# Line 1  Line 1 
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 1.1.1.1 2004/07/06 12:20:23 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   */   */
# Line 13  using namespace pamela::calorimeter; Line 13  using namespace pamela::calorimeter;
13    
14  CalorimeterEvent::CalorimeterEvent(void):  CalorimeterEvent::CalorimeterEvent(void):
15    SubPacket("Raw", PacketType::Physics, SubDetector::Calorimeter) {    SubPacket("Raw", 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)

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23