PaMChit Class Reference

MonteCarlo hit. More...

#include <PaMChit.h>

List of all members.

Public Member Functions

const double X () const
 X coordinate.
const double Y () const
 Y coordinate.
const double Z () const
 Z coordinate.
const double Px () const
 Px momentum component.
const double Py () const
 Py momentum component.
const double Pz () const
 Pz momentum component.
const double ELos () const
 Total energy lost in detector volume [GeV].
const double Time () const
 Time in [ns] (with respect to GEANT's time "zero".).
const int iMCtrack () const
 index of MC track this hit belongs to
const int & iDet () const
 Tracking detector's position in the vector vecDetect of PaSetup.
const int & iOrig () const
 GEANT's "origin" flag: != 0 for "secondary" MC hits (showers, delta-rays etc.).
const PaDetectDetRef () const
 returns reference to detector this MC hit belongs to.
void Print (int level=0) const
 Print MC hit info.

Detailed Description

MonteCarlo hit.

Information on MC trajectory parameters at crossing with GEANT sensitive volumes.

Author:
Sergei.Gerassimov@cern.ch

Member Function Documentation

const PaDetect& PaMChit::DetRef (  )  const [inline]

returns reference to detector this MC hit belongs to.

Warning:
valid for tracking detectors only. Check iDet() first (must be >= 0)

References PaSetup::Detector(), and PaSetup::Ref().

Referenced by Print().

const int& PaMChit::iDet (  )  const [inline]

Tracking detector's position in the vector vecDetect of PaSetup.

Returns -1 if MC hit comes from non-tracking detector such as RICH, HCAL etc. (In this case detector of origin could be easily recognized just by Z coordinate)

Referenced by Print().

const double PaMChit::Time (  )  const [inline]

Time in [ns] (with respect to GEANT's time "zero".).

Warning:
c*L is subtracted, where c - speed of light, L is minimal path length of trajectory from vertex of origin to position of this hit.

Referenced by Print().


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

Generated by  doxygen 1.6.2