/[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 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 4.4 by kusanagi, Sat May 28 10:44:10 2005 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 4.0 2005/03/06 04:33:01 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 12  using namespace pamela; Line 12  using namespace pamela;
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)

Legend:
Removed from v.1.1  
changed lines
  Added in v.4.4

  ViewVC Help
Powered by ViewVC 1.1.23