NtpMCDigiScintHit Class Reference

#include <NtpMCDigiScintHit.h>

List of all members.

Public Member Functions

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

Public Attributes

UInt_t index
 index of this digiscinthit entry in digihit array
Char_t planeview
 planeview (ala PlaneView::EPlaneView)
UShort_t strip
 strip number
UShort_t plane
 plane number
Int_t trkId
 id of track that produced hit
Int_t pId
 parent particle id
Float_t t0
 time at start of segment (sec)
Float_t x0
 global x pos. at start of segment (m)
Float_t y0
 global y pos. at start of segment (m)
Float_t z0
 global z pos. at start of segment (m)
Float_t t1
 time at end of segment (sec)
Float_t x1
 global x pos. at end of segment (m)
Float_t y1
 global y pos. at end of segment (m)
Float_t z1
 global z pos. at end of segment (m)
Float_t dS
 path length (m)
Float_t dE
 energy deposited (GeV)
Float_t pE
 parent particle energy (GeV)
UShort_t failbits
 failure set if hit was rejected by PhotonTransport

Detailed Description

Definition at line 17 of file NtpMCDigiScintHit.h.


Constructor & Destructor Documentation

NtpMCDigiScintHit::NtpMCDigiScintHit (  ) 

Definition at line 24 of file NtpMCDigiScintHit.cxx.

References LoadMinosPDG().

00024                                     : index(0), planeview(0), strip(0),
00025 plane(0), trkId(0), pId(0), t0(0), x0(0), y0(0), z0(0), t1(0), x1(0), y1(0), 
00026 z1(0), dS(0), dE(0), pE(0), failbits(0) {
00027   // Default constructor
00028 
00029   LoadMinosPDG();
00030   
00031 }

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

Definition at line 22 of file NtpMCDigiScintHit.h.

00022 {}


Member Function Documentation

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

Definition at line 63 of file NtpMCDigiScintHit.cxx.

References Print().

00063                                                                 {
00064   //
00065   //  Purpose:  Print digiscinthit data in form supported by TObject::Print.
00066   //
00067   //  Arguments: option (not used)
00068   //
00069 
00070   Print(std::cout);
00071   return;
00072 
00073 }

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

Definition at line 33 of file NtpMCDigiScintHit.cxx.

References bfld::AsString(), dE, dS, failbits, index, Munits::nanosecond, pE, pId, plane, planeview, strip, t0, t1, trkId, x0, x1, y0, y1, z0, and z1.

Referenced by Print().

00033                                                          {
00034   //
00035   //  Purpose:  Print digiscinthit data on ostream.
00036   //
00037 
00038   os << "NtpMCDigiScintHit::Print" << endl;
00039   const TDatabasePDG& dbpdg = *(TDatabasePDG::Instance());
00040   std::string partname = "???";
00041   if ( dbpdg.GetParticle(pId) ) partname=dbpdg.GetParticle(pId)->GetName();
00042 
00043   os.precision(6); // 6 is the def, but sometimes is set elsewhere & not reset
00044   os << "index " << index << " Parent Particle Id " << pId 
00045      << "/" << partname.c_str()
00046      << ", Energy " << pE << "(GeV), Track Id " << trkId << endl;
00047   os << "Plane " << plane << ", Strip " << strip << ", view " 
00048      << PlaneView::AsString((PlaneView::PlaneView_t)planeview) << endl;
00049   os << "Start ((x,y,z)(m),t(nsec)) (" << x0 << "," << y0 << "," 
00050      << z0 << "," << t0/Munits::nanosecond << ")" << endl;
00051   os << "End ((x,y,z)(m),t(nsec)) (" << x1 << "," << y1 << "," 
00052      << z1 << "," << t1/Munits::nanosecond << ")" << endl;
00053   os << "Path length " << dS 
00054      << "(m), energy deposit " << dE << "(GeV)" 
00055      << " FailBits 0x" << std::hex << failbits << std::dec << endl;
00056   
00057   
00058   
00059   return os;
00060 
00061 }


Member Data Documentation

failure set if hit was rejected by PhotonTransport

Definition at line 57 of file NtpMCDigiScintHit.h.

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

index of this digiscinthit entry in digihit array

Definition at line 33 of file NtpMCDigiScintHit.h.

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

time at start of segment (sec)

Definition at line 46 of file NtpMCDigiScintHit.h.

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

time at end of segment (sec)

Definition at line 50 of file NtpMCDigiScintHit.h.

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

id of track that produced hit

abs(trkid) is index back into stdhep array for track associated with this hit. Negative trkid indicates that the hit came from a descendent of the abs(trkid) track in stdhep, but that the descendent track was not recorded in stdhep. (stdhep does not record all intermediates in showers, brems, or all delta-rays.)

Definition at line 44 of file NtpMCDigiScintHit.h.

Referenced by NtpMCModule::FillNtpMCDigiScintHit(), MCMonitorCosmicHistograms::FillTrueDigiHitTrkId(), Print(), and ParticleTruthMaker::Reco().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1