CMS 3D CMS Logo

L1SimTrack.cc
Go to the documentation of this file.
3 
4 using namespace std;
5 using namespace trklet;
6 
7 L1SimTrack::L1SimTrack() {
8  eventid_ = -1;
9  trackid_ = -1;
10 }
11 
12 L1SimTrack::L1SimTrack(
13  int eventid, int trackid, int type, double pt, double eta, double phi, double vx, double vy, double vz) {
14  eventid_ = eventid;
15  trackid_ = trackid;
16  type_ = type;
17  pt_ = pt;
18  eta_ = eta;
19  phi_ = phi;
20  vx_ = vx;
21  vy_ = vy;
22  vz_ = vz;
23 }
24 
25 void L1SimTrack::write(ofstream& out) {
26  if (pt_ > -2.0) {
27  out << "SimTrack: " << eventid_ << "\t" << trackid_ << "\t" << type_ << "\t" << pt_ << "\t" << eta_ << "\t" << phi_
28  << "\t" << vx_ << "\t" << vy_ << "\t" << vz_ << "\t" << endl;
29  }
30 }
31 
32 void L1SimTrack::write(ostream& out) {
33  if (pt_ > -2) {
34  out << "SimTrack: " << eventid_ << "\t" << trackid_ << "\t" << type_ << "\t" << pt_ << "\t" << eta_ << "\t" << phi_
35  << "\t" << vx_ << "\t" << vy_ << "\t" << vz_ << "\t" << endl;
36  }
37 }