StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcDataDrivenMcEventInfo.cxx
1 //
2 // Ilya Selyuzhenkov <ilya.selyuzhenkov@gmail.com>
3 // Indiana University Cyclotron Facility
4 //
5 // Pibero Djawotho <pibero@indiana.edu>
6 // Indiana University Cyclotron Facility
7 //
8 
9 #include "StEEmcDataDrivenMcEventInfo.h"
10 
12 
13 StEEmcDataDrivenMcEventInfo::StEEmcDataDrivenMcEventInfo()
14 {
15  InitArrays();
16  Clear();
17 }
18 
19 StEEmcDataDrivenMcEventInfo::~StEEmcDataDrivenMcEventInfo(){}
20 
21 void StEEmcDataDrivenMcEventInfo::Clear(Option_t* options)
22 {
23  mRunId = -999;
24  mEventId = -999;
25  mReplaceInfo->Clear();
26 }
27 
28 void StEEmcDataDrivenMcEventInfo::InitArrays()
29 {
30  mReplaceInfo = new TClonesArray("StEEmcDataDrivenMcReplaceInfo",100);
31 }
32 
33 StEEmcDataDrivenMcReplaceInfo *StEEmcDataDrivenMcEventInfo::newReplaceInfo()
34 {
35  TClonesArray &replaceInfos = *mReplaceInfo;
36  return new (replaceInfos[replaceInfos.GetEntriesFast()]) StEEmcDataDrivenMcReplaceInfo;
37 }