1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: Muon.h,v 1.2 2008/06/05 16:03:35 bendavid Exp $
|
3 |
|
|
//
|
4 |
|
|
// Composite Particle
|
5 |
|
|
//
|
6 |
|
|
// Details to be worked out...
|
7 |
|
|
//
|
8 |
|
|
// Authors: J.Bendavid...
|
9 |
|
|
//
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
#ifndef DATATREE_COMPOSITEPARTICLE_H
|
14 |
|
|
#define DATATREE_COMPOSITEPARTICLE_H
|
15 |
|
|
|
16 |
|
|
#include "MitAna/DataTree/interface/RefArray.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/Particle.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Types.h"
|
19 |
|
|
|
20 |
|
|
namespace mithep
|
21 |
|
|
{
|
22 |
|
|
class CompositeParticle : public Particle
|
23 |
|
|
{
|
24 |
|
|
public:
|
25 |
|
|
CompositeParticle() {}
|
26 |
|
|
~CompositeParticle() {}
|
27 |
|
|
|
28 |
|
|
const RefArray<Particle> *GetDaughters() const { return &fDaughters; }
|
29 |
|
|
|
30 |
|
|
void AddDaughter(Particle* p) { fDaughters.Add(p); }
|
31 |
|
|
virtual Int_t Charge() const;
|
32 |
|
|
Bool_t HasDaughter(const Particle* p) const;
|
33 |
|
|
Bool_t HasSameDaughters(CompositeParticle* p) const;
|
34 |
|
|
Bool_t HasCommonDaughter(CompositeParticle* p) const;
|
35 |
|
|
virtual FourVector Mom() const;
|
36 |
|
|
|
37 |
|
|
protected:
|
38 |
|
|
RefArray<Particle> fDaughters; //
|
39 |
|
|
|
40 |
|
|
ClassDef(CompositeParticle, 1)
|
41 |
|
|
};
|
42 |
|
|
}
|
43 |
|
|
#endif
|