1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.8 |
// $Id: Electron.h,v 1.7 2008/06/24 14:01:41 loizides Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
paus |
1.3 |
// Electron
|
5 |
bendavid |
1.1 |
//
|
6 |
|
|
// Details to be worked out...
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Loizides, J. Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
loizides |
1.6 |
#ifndef DATATREE_ELECTRON_H
|
12 |
|
|
#define DATATREE_ELECTRON_H
|
13 |
|
|
|
14 |
|
|
#include "MitAna/DataTree/interface/Lepton.h"
|
15 |
|
|
|
16 |
bendavid |
1.1 |
namespace mithep
|
17 |
|
|
{
|
18 |
|
|
class Electron : public Lepton
|
19 |
|
|
{
|
20 |
|
|
public:
|
21 |
|
|
Electron() {}
|
22 |
|
|
~Electron() {}
|
23 |
|
|
|
24 |
loizides |
1.8 |
Track* GetGsfTrack() const { return (Track*)fGsfTrackRef.GetObject(); }
|
25 |
|
|
Track* GetTrackerTrack() const { return (Track*)fTrackerTrackRef.GetObject(); }
|
26 |
|
|
|
27 |
|
|
Track* GetTrack() const {return 0;}
|
28 |
|
|
|
29 |
|
|
Double_t Mass() const { return 0.51099892e-3; }
|
30 |
|
|
|
31 |
|
|
void SetGsfTrack(Track* gsfTrack) { fGsfTrackRef = gsfTrack; }
|
32 |
|
|
void SetTrackerTrack(Track* trackerTrack) { fTrackerTrackRef = trackerTrack; }
|
33 |
|
|
|
34 |
|
|
protected:
|
35 |
|
|
TRef fGsfTrackRef;
|
36 |
|
|
TRef fTrackerTrackRef;
|
37 |
|
|
|
38 |
loizides |
1.7 |
ClassDef(Electron, 1) // Electron class
|
39 |
bendavid |
1.1 |
};
|
40 |
loizides |
1.4 |
}
|
41 |
|
|
#endif
|
42 |
loizides |
1.8 |
|
43 |
|
|
#if 0
|
44 |
|
|
> Track* Electron::GetTrack() const {
|
45 |
|
|
> if (GetGsfTrack())
|
46 |
|
|
> return GetGsfTrack();
|
47 |
|
|
> else if (GetTrackerTrack())
|
48 |
|
|
> return GetTrackerTrack();
|
49 |
|
|
> else return (Track*)0;
|
50 |
|
|
> }
|
51 |
|
|
#endif
|