// $Id$ // // File: Event.cc // Created: Tue Oct 13 09:55:12 EDT 2009 // Creator: davidl (on Darwin harriet.jlab.org 9.8.0 i386) // #include "Event.h" //------------------ // Event (ctor) //------------------ Event::Event() { eta = new TClonesArray("TLorentzVector", MAX_PART); } //------------------ // ~Event (dtor) //------------------ Event::~Event() { delete eta; } //------------------ // Clear //------------------ void Event::Clear(void) { Neta = 0; eta->Clear(); // delete entries in TClonesArray (without freeing memory) target.SetXYZT(0.0, 0.0, 0.0, 0.0); beam.SetXYZT(0.0, 0.0, 0.0, 0.0); }