ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MPIAnalyzer/src/TCMuon.h
Revision: 1.1
Committed: Tue Dec 7 09:49:19 2010 UTC (14 years, 4 months ago) by naodell
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Log Message:
Container class for storage of muon variables.

File Contents

# Content
1 #ifndef _NUMUON_H
2 #define _NUMUON_H
3
4 #include "TObject.h"
5 #include "TLorentzVector.h"
6
7 class TCMuon : public TObject {
8 private:
9 TLorentzVector _p4;
10 TVector3 _vtx;
11 // TVector3 _assocPV;
12 float _eta;
13 float _phi;
14 int _charge;
15 bool _isTRK;
16 bool _isGLB;
17 float _dxy;
18 int _nPXLHits;
19 int _nTRKHits;
20 int _nMatchSeg;
21 int _nValidMuHits;
22 float _normChi2;
23 float _caloComp;
24 float _segComp;
25 float _emIso;
26 float _hadIso;
27 float _trkIso;
28
29 public:
30 TCMuon();
31 TCMuon(const TCMuon& orig);
32 virtual ~TCMuon();
33
34 // "get" methods -----------
35
36 TLorentzVector p4() const;
37 float pT() const;
38 TVector3 Vtx() const;
39 float eta() const;
40 float phi() const;
41 int charge() const;
42 bool isGLB() const;
43 bool isTRK() const;
44 float dxy() const;
45 int nPXLHits() const;
46 int nTRKHits() const;
47 int nMatchSeg() const;
48 int nValidMuHits() const;
49 float normChi2() const;
50 float caloComp() const;
51 float segComp() const;
52 float emIso() const;
53 float hadIso() const;
54 float trkIso() const;
55 // TVector3 AssocVtx() const;
56
57 // "set" methods ---------
58 void Setp4(TLorentzVector p4);
59 void Setp4(float px, float py, float pz, float e);
60 void SetVtx(float vx, float vy, float vz);
61 // void SetAssocVtx(float vx, float vy, float vz);
62
63 void SetEta(float e);
64 void SetPhi(float p);
65 void SetCharge(int c);
66 void SetisGLB(bool t);
67 void SetisTRK(bool t);
68 void Setdxy(float d);
69 void SetnPXLHits(int n);
70 void SetnTRKHits(int n);
71 void SetnValidMuHits(int n);
72 void SetnMatchSeg(int n);
73 void SetNormChi2(float c);
74 void SetCaloComp(float c);
75 void SetSegComp(float s);
76 void SetEMIso(float e);
77 void SetHADIso(float h);
78 void SetTRKIso(float t);
79
80 ClassDef(TCMuon, 1);
81
82 };
83
84 #endif /* _NUMUON_H */
85
86