-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenParticleTree.h
More file actions
74 lines (60 loc) · 1.56 KB
/
Copy pathGenParticleTree.h
File metadata and controls
74 lines (60 loc) · 1.56 KB
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
#ifndef GENPARTICLETREE_H
#define GENPARTICLETREE_H
#include <vector>
#include <string>
#include "Math/LorentzVector.h"
class TTree;
// typedefs
typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> > LorentzVector;
typedef std::vector<LorentzVector> vecLorentzVector;
typedef std::vector<float> vecd;
typedef std::vector<std::string> vecs;
typedef std::vector<int> veci;
typedef std::vector<bool> vecb;
enum TauDecay {NoTau, Lep_e, Lep_mu, Had_1prong, Had_3prong, other};
class GenParticleTree
{
public:
GenParticleTree ();
GenParticleTree (const std::string &prefix);
virtual ~GenParticleTree () {}
void Reset ();
void SetBranches (TTree* tree);
void SetAliases (TTree* tree) const;
void FillCommon (int idx);
protected:
std::string prefix_;
public:
//commented out variables are available on CMS3 but not stored
veci gentaudecay;
//TauDecay gentaudecay;
/*event level genps info
float alphaQCD;
float pthat;
float qScale;
float weight;
unsigned int signalProcessID;*/
vecLorentzVector p4;
// LorentzVector prod_vtx;
// vecLorentzVector lepdaughter_p4;
vecd charge;
vecd iso;
vecd mass;
veci id;
veci genpsidx;
vecb isfromt;
// veci id_simplegrandma;
// veci id_simplemother;
// veci idx_mother;
// veci idx_simplemother;
veci status;
std::vector<veci> lepdaughter_id;
// veci lepdaughter_idx;
int gen_nfromt;
vecLorentzVector motherp4;
vecd mothercharge;
veci motherid;
veci motheridx;
veci motherstatus;
};
#endif