-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathSuperaSimEnergyDeposit.h
94 lines (76 loc) · 2.35 KB
/
SuperaSimEnergyDeposit.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/**
* \file SuperaSimEnergyDeposit.h
*
* \ingroup Package_Name
*
* \brief Class def header for a class SuperaSimEnergyDeposit
*
* @author kazuhiro
*/
/** \addtogroup Package_Name
@{*/
#ifndef __SUPERASIMENERGYDEPOSIT_H__
#define __SUPERASIMENERGYDEPOSIT_H__
//#ifndef __CINT__
//#ifndef __CLING__
#include "SuperaBase.h"
#include "larcv/core/DataFormat/BBox.h"
#include "larcv/core/DataFormat/EventParticle.h"
#include "larcv/core/DataFormat/EventVoxel3D.h"
namespace larcv {
/**
\class ProcessBase
User defined class SuperaSimEnergyDeposit ... these comments are used to generate
doxygen documentation!
*/
class SuperaSimEnergyDeposit : public SuperaBase {
public:
/// Default constructor
SuperaSimEnergyDeposit(const std::string name = "SuperaSimEnergyDeposit");
/// Default destructor
~SuperaSimEnergyDeposit() {}
void configure(const PSet&);
void initialize();
void fill_sedep_v(
const std::vector<larcv::Particle> mcp_v,
std::vector<int>& part_idx_v,
larcv::Voxel3DMeta meta,
larcv::EventClusterVoxel3D& event_de_v
);
void fill_sedep_v(
const std::vector<larcv::Particle> mcp_v,
std::vector<int>& part_idx_v,
larcv::Voxel3DMeta meta,
larcv::EventClusterVoxel3D& event_de_v,
larcv::EventClusterVoxel3D* event_dq_v,
larcv::EventClusterVoxel3D* event_dp_v,
larcv::EventClusterVoxel3D* event_dx_v,
larcv::EventClusterVoxel3D* event_dt_v,
larcv::EventClusterVoxel3D* event_at_v,
larcv::EventClusterVoxel3D* event_dedx_v
);
bool process(IOManager& mgr);
void finalize();
private:
bool _store_dx, _store_dq, _store_dp, _store_dt, _store_at, _store_dedx, _use_lite;
std::string _output_label, _particle_label;
BBox3D _world_bounds;
};
/**
\class larcv::SuperaSimEnergyDepositFactory
\brief A concrete factory class for larcv::SuperaSimEnergyDeposit
*/
class SuperaSimEnergyDepositProcessFactory : public ProcessFactoryBase {
public:
/// ctor
SuperaSimEnergyDepositProcessFactory() { ProcessFactory::get().add_factory("SuperaSimEnergyDeposit", this); }
/// dtor
~SuperaSimEnergyDepositProcessFactory() {}
/// creation method
ProcessBase* create(const std::string instance_name) { return new SuperaSimEnergyDeposit(instance_name); }
};
}
//#endif
//#endif
#endif
/** @} */ // end of doxygen group