1 |
loizides |
1.1 |
// $Id: $
|
2 |
|
|
|
3 |
|
|
#include "MitEdm/DataFormats/interface/BasePartAction.h"
|
4 |
|
|
#include "MitEdm/DataFormats/interface/StablePart.h"
|
5 |
|
|
|
6 |
|
|
using namespace std;
|
7 |
|
|
using namespace mitedm;
|
8 |
|
|
|
9 |
|
|
StablePart::StablePart() :
|
10 |
|
|
BasePart(),
|
11 |
|
|
hits_(0),
|
12 |
|
|
stat_(0),
|
13 |
|
|
phi0_(0) ,phi0Err_(0),
|
14 |
|
|
d0_ (0) ,d0Err_ (0),
|
15 |
|
|
pt_ (0) ,ptErr_ (0),
|
16 |
|
|
z0_ (0) ,z0Err_ (0),
|
17 |
|
|
cotT_(0) ,cotTErr_(0)
|
18 |
|
|
{
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
StablePart::StablePart(int pid) :
|
22 |
|
|
BasePart(pid),
|
23 |
|
|
hits_(0),
|
24 |
|
|
stat_(0),
|
25 |
|
|
phi0_(0) ,phi0Err_(0),
|
26 |
|
|
d0_ (0) ,d0Err_ (0),
|
27 |
|
|
pt_ (0) ,ptErr_ (0),
|
28 |
|
|
z0_ (0) ,z0Err_ (0),
|
29 |
|
|
cotT_(0) ,cotTErr_(0)
|
30 |
|
|
{
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
StablePart::StablePart(int pid, double mass) :
|
34 |
|
|
BasePart(pid,mass),
|
35 |
|
|
hits_(0),
|
36 |
|
|
stat_(0),
|
37 |
|
|
phi0_(0) ,phi0Err_(0),
|
38 |
|
|
d0_ (0) ,d0Err_ (0),
|
39 |
|
|
pt_ (0) ,ptErr_ (0),
|
40 |
|
|
z0_ (0) ,z0Err_ (0),
|
41 |
|
|
cotT_(0) ,cotTErr_(0)
|
42 |
|
|
{
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
StablePart::StablePart(const StablePart &s) :
|
46 |
|
|
BasePart(s),
|
47 |
|
|
hits_(s.hits () ),
|
48 |
|
|
stat_(s.stat () ),
|
49 |
|
|
phi0_(s.phi0 () ), phi0Err_(s.phi0Err()),
|
50 |
|
|
d0_ (s.d0Raw() ), d0Err_ (s.d0Err ()),
|
51 |
|
|
pt_ (s.pt () ), ptErr_ (s.ptErr ()),
|
52 |
|
|
z0_ (s.z0Raw() ), z0Err_ (s.z0Err ()),
|
53 |
|
|
cotT_(s.cotT () ), cotTErr_(s.cotTErr())
|
54 |
|
|
{
|
55 |
|
|
}
|
56 |
|
|
|
57 |
|
|
void StablePart::print(ostream &os) const
|
58 |
|
|
{
|
59 |
|
|
os << " StablePart::print - pid: " << pid_ << " mass: " << mass_ << endl;
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
void StablePart::doAction(BasePartAction *action) const
|
63 |
|
|
{
|
64 |
|
|
action->doAction(this);
|
65 |
|
|
return;
|
66 |
|
|
}
|