1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.8 |
// $Id: Muon.h,v 1.7 2008/06/24 14:01:41 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// Muon
|
5 |
|
|
//
|
6 |
|
|
// Details to be worked out...
|
7 |
|
|
//
|
8 |
paus |
1.5 |
// Authors: C.Loizides, J.Bendavid, C.Paus
|
9 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
10 |
loizides |
1.6 |
|
11 |
paus |
1.5 |
#ifndef DATATREE_MUON_H
|
12 |
|
|
#define DATATREE_MUON_H
|
13 |
loizides |
1.8 |
|
14 |
|
|
#include <TRef.h>
|
15 |
paus |
1.5 |
#include "MitAna/DataTree/interface/Lepton.h"
|
16 |
loizides |
1.8 |
#include "MitAna/DataTree/interface/Track.h"
|
17 |
loizides |
1.1 |
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class Muon : public Lepton
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
Muon() {}
|
24 |
|
|
~Muon() {}
|
25 |
bendavid |
1.2 |
|
26 |
loizides |
1.8 |
Track* GetGlobalTrack() const { return (Track*)fGlobalTrackRef.GetObject(); }
|
27 |
|
|
Track* GetStandaloneTrack() const { return (Track*)fStandaloneTrackRef.GetObject(); }
|
28 |
|
|
Track* GetTrackerTrack() const { return (Track*)fTrackerTrackRef.GetObject(); }
|
29 |
|
|
|
30 |
|
|
Track* GetTrack() const {return 0;}
|
31 |
|
|
|
32 |
|
|
Double_t Mass() const { return 105.658369e-3; }
|
33 |
|
|
|
34 |
|
|
void SetGlobalTrack(Track* globalTrack) { fGlobalTrackRef = globalTrack; }
|
35 |
|
|
void SetStandaloneTrack(Track* standaloneTrack) { fStandaloneTrackRef = standaloneTrack; }
|
36 |
|
|
void SetTrackerTrack(Track* trackerTrack) { fTrackerTrackRef = trackerTrack; }
|
37 |
|
|
|
38 |
|
|
protected:
|
39 |
|
|
TRef fGlobalTrackRef;
|
40 |
|
|
TRef fStandaloneTrackRef;
|
41 |
|
|
TRef fTrackerTrackRef;
|
42 |
|
|
|
43 |
loizides |
1.7 |
ClassDef(Muon, 1) // Muon class
|
44 |
loizides |
1.1 |
};
|
45 |
loizides |
1.4 |
}
|
46 |
loizides |
1.8 |
|
47 |
|
|
#if 0
|
48 |
|
|
> using namespace mithep;
|
49 |
|
|
>
|
50 |
|
|
> Track* Muon::GetTrack() const {
|
51 |
|
|
> if (GetGlobalTrack())
|
52 |
|
|
> return GetGlobalTrack();
|
53 |
|
|
> else if (GetStandaloneTrack())
|
54 |
|
|
> return GetStandaloneTrack();
|
55 |
|
|
> else if (GetTrackerTrack())
|
56 |
|
|
> return GetTrackerTrack();
|
57 |
|
|
> else return (Track*)0;
|
58 |
|
|
> }
|
59 |
|
|
#endif
|
60 |
|
|
|
61 |
loizides |
1.4 |
#endif
|