10 #ifndef INCLUDE_EICSMEAR_SMEAR_EVENTFACTORY_H_
11 #define INCLUDE_EICSMEAR_SMEAR_EVENTFACTORY_H_
44 return T::Class()->GetName();
50 virtual TBranch*
Branch(TTree& tree,
const std::string&
name) {
52 TBranch* branch = tree.Branch(name.c_str(),
EventName().c_str(),
54 branch->ResetAddress();
64 virtual void Fill(TBranch& branch) {
66 branch.ResetAddress();
67 branch.SetAddress(&event);
68 branch.GetTree()->Fill();
77 #endif // INCLUDE_EICSMEAR_SMEAR_EVENTFACTORY_H_