CMS 3D CMS Logo

PFBlockElementBrem.cc

Go to the documentation of this file.
00001 #include "DataFormats/ParticleFlowReco/interface/PFBlockElementBrem.h"
00002 #include "DataFormats/ParticleFlowReco/interface/PFRecTrack.h"
00003 #include "DataFormats/Common/interface/Ref.h" 
00004 #include "DataFormats/TrackReco/interface/Track.h"
00005 #include "DataFormats/ParticleFlowReco/interface/PFTrajectoryPoint.h"
00006 
00007 #include <iomanip>
00008 
00009 using namespace reco;
00010 using namespace std;
00011 
00012 
00013 PFBlockElementBrem::PFBlockElementBrem(const GsfPFRecTrackRef& gsfref, const double DeltaP, 
00014                                        const double SigmaDeltaP, const unsigned int indTrajPoint):
00015   PFBlockElement( BREM ),
00016   GsftrackRefPF_( gsfref ), 
00017   GsftrackRef_( gsfref->gsfTrackRef() ),
00018   deltaP_(DeltaP),
00019   sigmadeltaP_(SigmaDeltaP),
00020   indPoint_(indTrajPoint){}
00021 
00022 
00023 void PFBlockElementBrem::Dump(ostream& out, 
00024                                const char* tab ) const {
00025   
00026   if(! out ) return;
00027  
00028   if( !GsftrackRefPF_.isNull() ) {
00029 
00030     double charge = 0.;
00031     double dp =  deltaP_;
00032     double sigmadp = sigmadeltaP_;
00033     int indextrj = (indPoint_-2);
00034     out<<setprecision(0);
00035     out<<tab<<setw(7)<<"charge="<<setw(3)<<charge;
00036     out<<setprecision(3);
00037     out<<setiosflags(ios::right);
00038     out<<setiosflags(ios::fixed);
00039     out<<", DeltaP=  "<< dp;
00040     out<<", SigmaDeltaP=  " << sigmadp;
00041     out<<", Traj Point=  " << indextrj;
00042     out<<resetiosflags(ios::right|ios::fixed); }
00043 
00044 }
00045 

Generated on Tue Jun 9 17:31:23 2009 for CMSSW by  doxygen 1.5.4