00001 // TDragonEvent.cxx. 00019 #include <iostream> 00020 00021 #include "TDragonEvent.h" 00022 00023 using std::cout; 00024 using std::endl; 00025 using std::vector; 00026 00027 // Class implementation tag for ROOT. 00028 // 00029 ClassImp(TDragonEvent) 00030 00031 TDragonEvent::TDragonEvent() 00032 { 00035 } 00036 00037 TDragonEvent::~TDragonEvent() 00038 { 00041 } 00042 00043 void TDragonEvent::Clear(const Char_t *option) 00044 { 00048 fHmemSubEvents.clear(); 00049 fGmemSubEvents.clear(); 00050 fChmeSubEvents.clear(); 00051 fCgmeSubEvents.clear(); 00052 } 00053 00054 void TDragonEvent::Print(const Char_t *option) const 00055 { 00062 cout << "TDragonEvent:" << endl << "Subevents:" << endl 00063 << "Heavy-ion singles = " << fHmemSubEvents.size() << endl; 00064 for (UInt_t i = 0; i < fHmemSubEvents.size(); i++) { 00065 cout << "Heavy-ion event " << i << endl; 00066 fHmemSubEvents[i].Print(option); 00067 } 00068 cout << "Gamma-ray singles = " << fGmemSubEvents.size() << endl; 00069 for (UInt_t i = 0; i < fGmemSubEvents.size(); i++) 00070 fGmemSubEvents[i].Print(option); 00071 cout << "Heavy-ion coincidences = " << fChmeSubEvents.size() << endl; 00072 for (UInt_t i = 0; i < fChmeSubEvents.size(); i++) 00073 fChmeSubEvents[i].Print(option); 00074 cout << "Gamma-ray coincidences = " << fCgmeSubEvents.size() << endl; 00075 for (UInt_t i = 0; i < fCgmeSubEvents.size(); i++) 00076 fCgmeSubEvents[i].Print(option); 00077 }