Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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
Short_t strip
Short_t plane
Float_t vtx [4]
Float_t mom [4]


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.

Referenced by NtpMCStdHep::Print().

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 PlaneView::AsString(), mom, 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]
 

Definition at line 39 of file NtpMCStdHepHit.h.

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

Short_t NtpMCStdHepHit::plane
 

Definition at line 37 of file NtpMCStdHepHit.h.

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

Char_t NtpMCStdHepHit::planeview
 

Definition at line 35 of file NtpMCStdHepHit.h.

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

Short_t NtpMCStdHepHit::strip
 

Definition at line 36 of file NtpMCStdHepHit.h.

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

Float_t NtpMCStdHepHit::vtx[4]
 

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 Mon Feb 15 11:09:42 2010 for loon by  doxygen 1.3.9.1