Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
factory.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file factory.h
1 
9 #ifndef _PYTHIAERHIC_FACTORY_H_
10 #define _PYTHIAERHIC_FACTORY_H_
11 
12 #include <string>
13 
14 #include <eicsmear/erhic/EventFactory.h>
15 
16 class TBranch;
17 class TTree;
18 
19 // Forward declaration of erhic::EventPythia.
20 namespace erhic {
21  class EventPythia;
22 } // namespace erhic
23 
29 class Factory : public erhic::VirtualEventFactory {
30 public:
31 
33  Factory();
34 
36  virtual ~Factory();
37 
42  erhic::EventPythia* Create();
43 
50  virtual std::string EventName() const;
51 
57  virtual TBranch* Branch(TTree& tree, const std::string& name);
58 
59 private:
60 
61  erhic::EventPythia* mEvent;
62 }; // class Factory
63 
64 #endif // _PYTHIAERHIC_FACTORY_H_