Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef GenAlgo_h
#define GenAlgo_h
#include <GaudiKernel/Algorithm.h>
#include "GaudiKernel/Property.h"
#include "GaudiAlg/GaudiAlgorithm.h"
#include "FWCore/DataHandle.h"
#include "GenEvent.h"
class IGenTool;
namespace plcio {
class MCParticleCollection;
}
using namespace std;
class GenAlgo: public GaudiAlgorithm {
friend class AlgFactory<GenAlgo>;
public:
GenAlgo(const std::string& name, ISvcLocator* pSvcLocator);
StatusCode initialize() override;
StatusCode execute() override;
StatusCode finalize() override;
private:
Gaudi::Property<std::string> m_input_file{this, "Input", "NULL"};
Gaudi::Property<std::string> m_input_format{this, "FileFormat", "NULL"};
Gaudi::Property<std::string> m_output_file{this, "OutputRootFile", "NULL"};
Gaudi::Property<bool> m_print{this, "PrintEvent", "NULL"};
Gaudi::Property<bool> m_do_write{this, "WriteFile", "NULL"};
std::vector<std::string> m_genToolNames;
std::vector<IGenTool*> m_genTools;
int m_evtid;
int m_evtMax;
//MyHepMC::GenEvent m_event;
DataHandle<plcio::MCParticleCollection> m_hdl{"MCParticle", Gaudi::DataHandle::Writer, this};