NtpMCStdHepHit Class Reference

#include <NtpMCStdHepHit.h>

List of all members.

Public Member Functions

 NtpMCStdHepHit ()
virtual ~NtpMCStdHepHit ()
virtual bool IsValid () const
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (const Option_t *option="") const

Public Attributes

Char_t planeview
 planeview (ala PlaneView::EPlaneView)
Short_t strip
 strip number
Short_t plane
 plane number
Float_t vtx [4]
 global track pos + time at entry to this strip
Float_t mom [4]
 global track mom + energy at entry to this strip

Detailed Description

Definition at line 18 of file NtpMCStdHepHit.h.


Constructor & Destructor Documentation

NtpMCStdHepHit::NtpMCStdHepHit (  ) 

Definition at line 26 of file NtpMCStdHepHit.cxx.

References mom, and vtx.

00026                               : planeview(0),strip(-1),plane(-1) {
00027   // Default constructor
00028   
00029   for ( int ic = 0; ic < 4; ic++ ) vtx[ic] = 0.;
00030   for ( int ic = 0; ic < 4; ic++ ) mom[ic] = 0.;
00031   
00032 }

virtual NtpMCStdHepHit::~NtpMCStdHepHit (  )  [inline, virtual]

Definition at line 23 of file NtpMCStdHepHit.h.

00023 {}


Member Function Documentation

virtual bool NtpMCStdHepHit::IsValid (  )  const [inline, virtual]

Definition at line 26 of file NtpMCStdHepHit.h.

References plane.

00026 { return ( plane >= 0 ) ? true : false; }

void NtpMCStdHepHit::Print ( const Option_t *  option = ""  )  const [virtual]

Definition at line 51 of file NtpMCStdHepHit.cxx.

References Print().

00051                                                              {
00052   //
00053   //  Purpose:  Print stdhep hit data in form supported by TObject::Print.
00054   //
00055   //  Arguments: option (not used)
00056   //
00057 
00058   Print(std::cout);
00059   return;
00060 
00061 }

std::ostream & NtpMCStdHepHit::Print ( std::ostream &  os  )  const [virtual]

Definition at line 34 of file NtpMCStdHepHit.cxx.

References bfld::AsString(), mom, Munits::nanosecond, plane, planeview, strip, and vtx.

Referenced by Print().

00034                                                       {
00035   //
00036   //  Purpose:  Print stdhep hit data on ostream.
00037   //
00038   
00039   os << setw(4) << setfill('0') << plane 
00040      << PlaneView::AsString((PlaneView::PlaneView_t)planeview) 
00041      << "t" << setw(3) << setfill('0') << strip
00042      << " v:" << vtx[0] << "," << vtx[1] << "," << vtx[2] 
00043      << " t(ns):" << vtx[3]/Munits::nanosecond << " p:" 
00044      << mom[0] << "," << mom[1] << "," << mom[2] << " E:"
00045      << mom[3] << endl;
00046   
00047   return os;
00048 
00049 }


Member Data Documentation

Float_t NtpMCStdHepHit::mom[4]

global track mom + energy at entry to this strip

Definition at line 39 of file NtpMCStdHepHit.h.

Referenced by NtpMCModule::FillNtpMCStdHep(), NuReco::GetMuonFirstHitEnergy(), NuReco::GetMuonLastHitEnergy(), NtpMCStdHepHit(), and Print().

plane number

Definition at line 37 of file NtpMCStdHepHit.h.

Referenced by NtpMCModule::FillNtpMCStdHep(), IsValid(), and Print().

planeview (ala PlaneView::EPlaneView)

Definition at line 35 of file NtpMCStdHepHit.h.

Referenced by NtpMCModule::FillNtpMCStdHep(), and Print().

strip number

Definition at line 36 of file NtpMCStdHepHit.h.

Referenced by NtpMCModule::FillNtpMCStdHep(), and Print().

Float_t NtpMCStdHepHit::vtx[4]

global track pos + time at entry to this strip

Definition at line 38 of file NtpMCStdHepHit.h.

Referenced by NtpMCModule::FillNtpMCStdHep(), NtpMCStdHepHit(), and Print().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1