StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
StPxlFastSim Class Reference

Class to simulate PXL hits from Monte Carlo. More...

#include <StPxlFastSim.h>

Inheritance diagram for StPxlFastSim:
StPxlISim

Public Member Functions

 StPxlFastSim (const Char_t *name="pxlFastSim", Bool_t randomSeed=kFALSE)
 Constructor.
 
 ~StPxlFastSim ()
 This class does not own any hit containers. mRandom is deleted here.
 
Int_t initRun (const TDataSet &calib_db, const TObjectSet *pxlDbDataSet, const Int_t run)
 A random seed is passed to mRandom PXL smearing resolutions (PixelHitError) are fetched from calib_db. More...
 
Int_t addPxlHits (const StMcPxlHitCollection &, StPxlHitCollection &)
 creates an StPxlHit object for every StMcPxlHit, and fills the hit StPxlHitCollection container. More...
 
virtual const char * GetCVS () const
 Documentation method. GetCVS can be called from the chain, providing a list of all maker versions in use.
 
- Public Member Functions inherited from StPxlISim
 StPxlISim (const Char_t *name)
 
virtual Int_t addPxlRawHits (const StMcPxlHitCollection &in, StPxlRawHitCollection &out)
 this function is to be implemented by algorithms which create raw PXL hits
 

Detailed Description

Class to simulate PXL hits from Monte Carlo.

This class has the responsibility to create StPxlHit objects and store them in StPxlHitCollection.

StPxlHit is a Gaussian smeared StMcPxlHit. The smearing parameters are fetched from Calibrations/tracker/PixelHitError*

This class conforms to the STAR StMaker standards.

Definition at line 56 of file StPxlFastSim.h.

Member Function Documentation

Int_t StPxlFastSim::addPxlHits ( const StMcPxlHitCollection mcPxlHitCol,
StPxlHitCollection pxlHitCol 
)
virtual

creates an StPxlHit object for every StMcPxlHit, and fills the hit StPxlHitCollection container.

Returns: kStOk: if hits have been loaded to StPxlHitCollection successfully.

Reimplemented from StPxlISim.

Definition at line 159 of file StPxlFastSim.cxx.

References kStOK, StMcPxlHit::ladder(), StMcPxlHit::sector(), and StMcPxlHit::sensor().

Int_t StPxlFastSim::initRun ( const TDataSet calib_db,
const TObjectSet pxlDbDataSet,
const Int_t  run 
)
virtual

A random seed is passed to mRandom PXL smearing resolutions (PixelHitError) are fetched from calib_db.

returns kStOk if resolutions have been fetched successfully. kStErr otherwise.

Implements StPxlISim.

Definition at line 93 of file StPxlFastSim.cxx.

References TDataSet::Find(), TObjectSet::GetObject(), kStErr, and kStOk.


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