1 |
bpollack |
1.1 |
#ifndef _TCPHOTON_H
|
2 |
|
|
#define _TCPHOTON_H
|
3 |
|
|
|
4 |
|
|
#include "TObject.h"
|
5 |
|
|
#include "TLorentzVector.h"
|
6 |
|
|
#include "TArrayF.h"
|
7 |
|
|
#include <vector>
|
8 |
|
|
#include <map>
|
9 |
|
|
#include <utility>
|
10 |
|
|
#include <string>
|
11 |
|
|
|
12 |
|
|
using namespace std;
|
13 |
|
|
|
14 |
|
|
class TCPhoton : public TLorentzVector {
|
15 |
|
|
private:
|
16 |
|
|
//std::pair<TLorentzVector, TLorentzVector> _convP4;
|
17 |
|
|
TVector3 _vtx;
|
18 |
|
|
map<int, float> _PhotonIndexMap;
|
19 |
|
|
map<string, float> _PhotonTrueMap;
|
20 |
|
|
int _charge;
|
21 |
|
|
|
22 |
|
|
vector<float> _trkIsoVtxDR04;
|
23 |
|
|
vector<float> _trkIsoVtxDR03;
|
24 |
|
|
|
25 |
|
|
public:
|
26 |
|
|
TCPhoton();
|
27 |
|
|
virtual ~TCPhoton();
|
28 |
|
|
|
29 |
|
|
// "get" methods -----------
|
30 |
|
|
|
31 |
|
|
map<string, float> PhotonMap();
|
32 |
|
|
|
33 |
|
|
TVector3 Vtx() const;
|
34 |
|
|
int Charge() const;
|
35 |
|
|
vector<float> TrkIsoVtxDR04() const;
|
36 |
|
|
vector<float> TrkIsoVtxDR03() const;
|
37 |
|
|
|
38 |
|
|
// "set" methods ---------
|
39 |
|
|
void LoadMap(vector<string> svec);
|
40 |
|
|
void SetMap(string s, float v, vector<string>* svec);
|
41 |
|
|
void SetVtx(float vx, float vy, float vz);
|
42 |
|
|
|
43 |
|
|
void SetCharge(int c);
|
44 |
|
|
void SetTRKIsoVtxDR04(float t);
|
45 |
|
|
void SetTRKIsoVtxDR03(float t);
|
46 |
|
|
|
47 |
|
|
ClassDef(TCPhoton, 1);
|
48 |
|
|
};
|
49 |
|
|
|
50 |
|
|
#endif
|
51 |
|
|
|
52 |
|
|
|