16 #include "StEventBranch.h"
17 #include "TObjectSet.h"
19 #include "TDataSetIter.h"
25 :
StXRef(brName,evt, tally)
29 void StEventBranch::AddKlass(
const char* className)
36 void StEventBranch::Synchro(
int toMain)
46 StSPtrVecObject &cnt = ste->content();
47 int icl,cntSize = cnt.size();
49 if (ds->IsA() != TObjectSet::Class())
continue;
50 const char *className = ds->GetName();
51 if (strncmp(
"St",className,2)!=0)
continue;
53 for (icl=0;icl<cntSize;icl++) {
54 if (!(so = cnt[icl]))
continue;
55 if (strcmp(className,so->ClassName())!=0)
continue;
56 if (so->IsZombie())
continue;
59 if (icl>=cntSize) so = 0;
62 if (so) cnt.erase(cnt.begin()+icl);
64 if(to) cnt.StObjArray::push_back((
StObject*)to);
79 void StEventBranch::Streamer(TBuffer &buf)
81 StXRef::Streamer(buf);
virtual Bool_t DoOwner(Bool_t done=kTRUE)
virtual void SetObject(TObject *obj)
The depricated method (left here for the sake of the backward compatibility)
virtual TDataSet * FindByName(const char *name, const char *path="", Option_t *opt="") const
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)