forked from kvtsang/Supera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SuperaHit.h
75 lines (59 loc) · 1.46 KB
/
SuperaHit.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
/**
* \file SuperaHit.h
*
* \ingroup Package_Name
*
* \brief Class def header for a class SuperaHit
*
* @author kazuhiro
*/
/** \addtogroup Package_Name
@{*/
#ifndef __SUPERAHIT_H__
#define __SUPERAHIT_H__
//#ifndef __CINT__
//#ifndef __CLING__
#include "SuperaBase.h"
#include "FMWKInterface.h"
#include "ParamsImage2D.h"
#include "ImageMetaMaker.h"
#include "larcv/core/DataFormat/Image2D.h"
namespace larcv {
/**
\class ProcessBase
User defined class SuperaHit ... these comments are used to generate
doxygen documentation!
*/
class SuperaHit : public SuperaBase,
public supera::ParamsImage2D,
public supera::ImageMetaMaker {
public:
/// Default constructor
SuperaHit(const std::string name="SuperaHit");
/// Default destructor
~SuperaHit(){}
void configure(const PSet&);
void initialize();
bool process(IOManager& mgr);
void finalize();
private:
bool _smear;
};
/**
\class larcv::SuperaHitFactory
\brief A concrete factory class for larcv::SuperaHit
*/
class SuperaHitProcessFactory : public ProcessFactoryBase {
public:
/// ctor
SuperaHitProcessFactory() { ProcessFactory::get().add_factory("SuperaHit",this); }
/// dtor
~SuperaHitProcessFactory() {}
/// creation method
ProcessBase* create(const std::string instance_name) { return new SuperaHit(instance_name); }
};
}
#endif
//#endif
//#endif
/** @} */ // end of doxygen group