1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.2 |
// $Id: Conversion.h,v 1.1 2008/07/02 19:28:43 bendavid Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
loizides |
1.2 |
// Conversion
|
5 |
bendavid |
1.1 |
//
|
6 |
|
|
// Details to be worked out...
|
7 |
|
|
//
|
8 |
loizides |
1.2 |
// Authors: J.Bendavid
|
9 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef DATATREE_CONVERSION_H
|
12 |
|
|
#define DATATREE_CONVERSION_H
|
13 |
|
|
|
14 |
|
|
#include "MitAna/DataTree/interface/CompositeParticle.h"
|
15 |
|
|
#include "MitAna/DataTree/interface/FitVertex.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Electron.h"
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class Conversion : public CompositeParticle
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
Conversion() : fVertex(0,0,0) {}
|
24 |
|
|
Conversion(Double_t x, Double_t y, Double_t z) : fVertex(x,y,z) {}
|
25 |
loizides |
1.2 |
Conversion(Double_t x, Double_t y, Double_t z, Double_t xErr, Double_t yErr, Double_t zErr) :
|
26 |
|
|
fVertex(x,y,z,xErr,yErr,zErr) {}
|
27 |
bendavid |
1.1 |
~Conversion() {}
|
28 |
|
|
|
29 |
|
|
const Electron *GetDaughter(UInt_t i) const;
|
30 |
|
|
const FitVertex &GetVertex() const { return fVertex; }
|
31 |
|
|
FitVertex &GetVertex() { return fVertex; }
|
32 |
|
|
|
33 |
|
|
protected:
|
34 |
loizides |
1.2 |
FitVertex fVertex; //reconstructed decay vertex
|
35 |
bendavid |
1.1 |
|
36 |
loizides |
1.2 |
ClassDef(Conversion,1) // Conversion class
|
37 |
bendavid |
1.1 |
};
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
//--------------------------------------------------------------------------------------------------
|
41 |
|
|
inline const mithep::Electron *mithep::Conversion::GetDaughter(UInt_t i) const
|
42 |
|
|
{
|
43 |
|
|
// Return reference to electron daughters.
|
44 |
|
|
|
45 |
|
|
return static_cast<const mithep::Electron*>(fDaughters.At(i));
|
46 |
|
|
}
|
47 |
|
|
#endif
|