ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/DataFormats/src/BasePart.cc
Revision: 1.1
Committed: Tue Jul 29 13:16:22 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Have our dedicated edm classes in MitEdm/DataFormats.

File Contents

# User Rev Content
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     }