Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:00

0001 #include "L1Trigger/TrackFindingTracklet/interface/L1SimTrack.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003 
0004 using namespace std;
0005 using namespace trklet;
0006 
0007 L1SimTrack::L1SimTrack() {
0008   eventid_ = -1;
0009   trackid_ = -1;
0010 }
0011 
0012 L1SimTrack::L1SimTrack(
0013     int eventid, int trackid, int type, double pt, double eta, double phi, double vx, double vy, double vz) {
0014   eventid_ = eventid;
0015   trackid_ = trackid;
0016   type_ = type;
0017   pt_ = pt;
0018   eta_ = eta;
0019   phi_ = phi;
0020   vx_ = vx;
0021   vy_ = vy;
0022   vz_ = vz;
0023 }
0024 
0025 void L1SimTrack::write(ofstream& out) {
0026   if (pt_ > -2.0) {
0027     out << "SimTrack: " << eventid_ << "\t" << trackid_ << "\t" << type_ << "\t" << pt_ << "\t" << eta_ << "\t" << phi_
0028         << "\t" << vx_ << "\t" << vy_ << "\t" << vz_ << "\t" << endl;
0029   }
0030 }
0031 
0032 void L1SimTrack::write(ostream& out) {
0033   if (pt_ > -2) {
0034     out << "SimTrack: " << eventid_ << "\t" << trackid_ << "\t" << type_ << "\t" << pt_ << "\t" << eta_ << "\t" << phi_
0035         << "\t" << vx_ << "\t" << vy_ << "\t" << vz_ << "\t" << endl;
0036   }
0037 }