1 |
bpollack |
1.1 |
#ifndef _TCMUON_H
|
2 |
|
|
#define _TCMUON_H
|
3 |
|
|
|
4 |
|
|
#include "TObject.h"
|
5 |
|
|
#include "TLorentzVector.h"
|
6 |
|
|
#include "TVector2.h"
|
7 |
|
|
#include "TVector3.h"
|
8 |
|
|
#include <map>
|
9 |
|
|
#include <utility>
|
10 |
|
|
#include <string>
|
11 |
|
|
#include <iostream>
|
12 |
|
|
|
13 |
|
|
using namespace std;
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
class TCMuon : public TLorentzVector {
|
17 |
|
|
private:
|
18 |
|
|
TVector3 _vtx;
|
19 |
|
|
map<int, float> _MuonIndexMap;
|
20 |
|
|
map<string, float> _MuonTrueMap;
|
21 |
|
|
int _charge;
|
22 |
|
|
float _caloComp;
|
23 |
|
|
float _segComp;
|
24 |
|
|
float _ptError;
|
25 |
|
|
|
26 |
|
|
public:
|
27 |
|
|
TCMuon();
|
28 |
|
|
virtual ~TCMuon();
|
29 |
|
|
|
30 |
|
|
// "get" methods -----------
|
31 |
|
|
|
32 |
|
|
map<string, float> MuonMap();
|
33 |
|
|
TVector2 P2() const;
|
34 |
|
|
float PtError() const;
|
35 |
|
|
TVector3 Vtx() const;
|
36 |
|
|
int Charge() const;
|
37 |
|
|
float CaloComp() const;
|
38 |
|
|
float SegComp() const;
|
39 |
|
|
float Dxy(TVector3 *primVtx) const;
|
40 |
|
|
float Dz(TVector3 *primVtx) const;
|
41 |
|
|
|
42 |
|
|
// "set" methods ---------
|
43 |
|
|
void LoadMap(vector<string> svec);
|
44 |
|
|
void SetMap(string s, float v, vector<string>* svec);
|
45 |
|
|
void SetPtError(float er);
|
46 |
|
|
void SetVtx(float vx, float vy, float vz);
|
47 |
|
|
void SetCharge(int c);
|
48 |
|
|
void SetCaloComp(float c);
|
49 |
|
|
void SetSegComp(float s);
|
50 |
|
|
|
51 |
|
|
ClassDef(TCMuon, 1);
|
52 |
|
|
|
53 |
|
|
};
|
54 |
|
|
|
55 |
|
|
#endif /* _TCMUON_H */
|
56 |
|
|
|
57 |
|
|
|