-
Notifications
You must be signed in to change notification settings - Fork 0
/
MC_change.h
52 lines (44 loc) · 1008 Bytes
/
MC_change.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
#ifndef MC_change_h
#define MC_change_h
#include "SniperKernel/AlgBase.h"
#include "TROOT.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1.h"
#include "TH2.h"
#include <vector>
#include "TVector3.h"
#include "TObject.h"
#include "TBranch.h"
class MC_change: public AlgBase
{
public:
MC_change(const std::string& name);
~MC_change();
bool initialize();
bool execute();
bool finalize();
// void GetGen();
private:
std::string InputMCName;
std::string InputMCDir;
int EVENT;
TFile *f;
TTree *t1;
int fEventNumber;
double fGenX;
double fGenY;
double fGenZ;
double fTotalEventEnergy;
int fInitNOP;
int fNTE;
std::vector<float> *fpTEEnergy;
std::vector<float> *fpTEX;
std::vector<float> *fpTEY;
std::vector<float> *fpTEZ;
std::vector<double> fTEEnergy;
std::vector<double> fTEX;
std::vector<double> fTEY;
std::vector<double> fTEZ;
};
#endif