1 |
loizides |
1.1 |
// $Id: $
|
2 |
|
|
|
3 |
|
|
#include "MitEdm/DataFormats/interface/BasePart.h"
|
4 |
|
|
|
5 |
|
|
using namespace std;
|
6 |
|
|
using namespace mitedm;
|
7 |
|
|
|
8 |
|
|
BasePart::BasePart(int pid) :
|
9 |
|
|
pid_ (pid),
|
10 |
|
|
mass_(0.0) // need to have funtion to automatically get mass from database using the pid
|
11 |
|
|
{
|
12 |
|
|
}
|
13 |
|
|
|
14 |
|
|
BasePart::BasePart(int pid, double mass) :
|
15 |
|
|
pid_ (pid),
|
16 |
|
|
mass_(mass)
|
17 |
|
|
{
|
18 |
|
|
}
|
19 |
|
|
|
20 |
|
|
BasePart::BasePart(const BasePart &d) :
|
21 |
|
|
pid_ (d.pid ()),
|
22 |
|
|
mass_(d.mass())
|
23 |
|
|
{
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
void BasePart::print(ostream &os) const
|
27 |
|
|
{
|
28 |
|
|
os << " BasePart::print - pid: " << pid_ << " mass: " << mass_ << endl;
|
29 |
|
|
}
|