-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMCPfoMaker.h
88 lines (70 loc) · 2.26 KB
/
MCPfoMaker.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
/**
* @file PandoraAnalysis/include/MCPfoMaker.h
*
* @brief Header file for mc pfo maker class.
*
* $Log: $
*/
#ifndef MC_PFO_MAKER_H
#define MC_PFO_MAKER_H 1
#include "marlin/Processor.h"
namespace pandora_analysis {class AnalysisMCTree;}
//------------------------------------------------------------------------------------------------------------------------------------------
/**
* @brief MCPfoMaker class
*/
class MCPfoMaker : public marlin::Processor
{
public:
/**
* @brief Default constructor
*/
MCPfoMaker();
/**
* @brief Create new processor
*/
virtual Processor *newProcessor();
/**
* @brief Initialize, called at startup
*/
virtual void init();
/**
* @brief Process run header
*
* @param pLCRunHeader the lc run header
*/
virtual void processRunHeader(lcio::LCRunHeader *pLCRunHeader);
/**
* @brief Process event, main entry point
*
* @param pLCEvent the lc event
*/
virtual void processEvent(EVENT::LCEvent *pLCEvent);
/**
* @brief Checks for event
*
* @param pLCEvent the lc event
*/
virtual void check(EVENT::LCEvent *pLCEvent);
/**
* @brief End, called at shutdown
*/
virtual void end();
private:
/**
* @brief Clear current mc tree details
*/
void Clear();
typedef std::vector<std::string> StringVector;
StringVector m_inputMCParticleCollections; ///< The names of the input mc particle collections
std::string m_outputMCParticleCollection; ///< The output mc particle collection name
std::string m_outputQuarkParticleCollection; ///< The output quark particle collection name
bool m_lookForQuarksWithMotherZ; ///< Flag to look for quarks with mother
pandora_analysis::AnalysisMCTree *m_pAnalysisMCTree; ///< Address of the analysis mc tree
};
//------------------------------------------------------------------------------------------------------------------------------------------
inline marlin::Processor *MCPfoMaker::newProcessor()
{
return new MCPfoMaker;
}
#endif // #ifndef MC_PFO_MAKER_H