00001 #include "AtmosEvent.h" 00002 #include "AtmosTrack.h" 00003 #include "AtmosShower.h" 00004 #include "AtmosStrip.h" 00005 #include "AtmosDeadChip.h" 00006 #include "AtmosShieldPlank.h" 00007 #include "AtmosScintHit.h" 00008 #include "AtmosStdHEP.h" 00009 //#include <vector> 00010 00011 //using std::vector; 00012 00013 ClassImp(AtmosEvent) 00014 00015 AtmosEvent::AtmosEvent() 00016 { 00017 TrackList = new TClonesArray("AtmosTrack",1000); 00018 ShowerList = new TClonesArray("AtmosShower",1000); 00019 StripList = new TClonesArray("AtmosStrip",1000); 00020 DeadChipList = new TClonesArray("AtmosDeadChip",1000); 00021 ShieldPlankList = new TClonesArray("AtmosShieldPlank",1000); 00022 ScintHitList = new TClonesArray("AtmosScintHit",1000); 00023 StdHEPList = new TClonesArray("AtmosStdHEP",1000); 00024 00025 this->Reset(); 00026 } 00027 00028 AtmosEvent::~AtmosEvent() 00029 { 00030 delete TrackList; 00031 delete ShowerList; 00032 delete StripList; 00033 delete DeadChipList; 00034 delete ShieldPlankList; 00035 delete ScintHitList; 00036 delete StdHEPList; 00037 } 00038 00039 void AtmosEvent::Reset() 00040 { 00041 Run = -1; 00042 SubRun = -1; 00043 Snarl = -1; 00044 RunType = -1; 00045 TrigSrc = -1; 00046 TimeFrame = -1; 00047 Date = -1; 00048 Time = -1; 00049 MicroSec = -1; 00050 NanoSec = -1; 00051 UnixTime = -1; 00052 Ndigits = -1; 00053 SimFlag = -1; 00054 00055 SpillInfo.Reset(); 00056 DataInfo.Reset(); 00057 RecoInfo.Reset(); 00058 FilterInfo.Reset(); 00059 MCInfo.Reset(); 00060 00061 for(Int_t i=0;i<1+TrackList->GetLast();i++){ 00062 TrackList->At(i)->Clear(); 00063 } 00064 TrackList->Delete(); 00065 00066 for(Int_t i=0;i<1+ShowerList->GetLast();i++){ 00067 ShowerList->At(i)->Clear(); 00068 } 00069 ShowerList->Delete(); 00070 00071 for(Int_t i=0;i<1+StripList->GetLast();i++){ 00072 StripList->At(i)->Clear(); 00073 } 00074 StripList->Delete(); 00075 00076 for(Int_t i=0;i<1+DeadChipList->GetLast();i++){ 00077 DeadChipList->At(i)->Clear(); 00078 } 00079 DeadChipList->Delete(); 00080 00081 for(Int_t i=0;i<1+ShieldPlankList->GetLast();i++){ 00082 ShieldPlankList->At(i)->Clear(); 00083 } 00084 ShieldPlankList->Delete(); 00085 00086 for(Int_t i=0;i<1+ScintHitList->GetLast();i++){ 00087 ScintHitList->At(i)->Clear(); 00088 } 00089 ScintHitList->Delete(); 00090 00091 for(Int_t i=0;i<1+StdHEPList->GetLast();i++){ 00092 StdHEPList->At(i)->Clear(); 00093 } 00094 StdHEPList->Delete(); 00095 00096 NFits = 0; 00097 NTracks = 0; 00098 NShowers = 0; 00099 NStrips = 0; 00100 NDeadChips = 0; 00101 NShieldPlanks = 0; 00102 NScintHits = 0; 00103 NStdHEPs = 0; 00104 }
1.3.9.1