MarlinTrkProcessors  2.4.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SimpleDiscDigiProcessor Class Reference

======= SimpleDiscDigiProcessor ==========
Produces a TrackerHit collection from SimTrackerHit collection. More...

#include <SimpleDiscDigiProcessor.h>

Inheritance diagram for SimpleDiscDigiProcessor:

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 Called at the begin of the job before anything is read. More...
 
virtual void processRunHeader (LCRunHeader *run)
 Called for every run.
 
virtual void processEvent (LCEvent *evt)
 Called for every event - the working horse.
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 Called after data processing for clean up.
 

Protected Member Functions

void process_hits_loi (LCEvent *evt, LCCollection *STHcol)
 
void process_hits_new (LCEvent *evt, LCCollection *STHcol)
 
bool hasCorrectZPos (SimTrackerHit *hit)
 
int getPetalNumber (int layer, double x, double y)
 
int getSensorNumber (int layer, double x, double y)
 

Protected Attributes

std::string _inColName
 Input collection name.
 
std::string _outColName
 
std::string _outRelColName
 
int _sub_det_id
 
int _nRun
 
int _nEvt
 
bool _SimHits_encoded_with_cellID
 
bool _use_FTDLayerLayout_from_GEAR
 
float _pointReso
 
bool _keepHitsFromDeltas
 
std::vector< double > _FTDZCoordinate
 
std::vector< double > _diskInnerRadius
 
std::vector< double > _diskOuterRadius
 
int _petalsPerDisk
 
int _sensorsPerPetal
 
gsl_rng * r
 

Detailed Description

======= SimpleDiscDigiProcessor ==========
Produces a TrackerHit collection from SimTrackerHit collection.


The positions of "digitized" TrackerHits are obtained by gaussian smearing positions of SimTrackerHits in (x,y) plane according to the specified point resolution.

Input collections and prerequisites

Processor requires collections of SimTrackerHits

Output

Processor produces collection of smeared TrackerHits

Parameters
CollectionNameThe name of input collection of the SimTrackerHits
(default name FTDCollection)
OutputCollectionNameThe name of output collection of TrackerHits
(default name FTDTrackerHits)
PointResolutionPoint resolution in (x,y) for the planar detectors (in mm)
(default value 0.01)
Sub_Detector_IDID of Sub-Detector using UTIL/ILDConf.h from lcio
(default value lcio::ILDDetID::FTD)
keepHitsFromDeltasWhether to include hits from secondary particles. Mokka also stores hits from secondary particles. Due to the way they are created by SensitiveDetector class in Mokka they are not on the exact detector measurement surface as the surface of a hit is calculated as (entrypoint+exitpoint)/2. Secondary particles however come to existence within the silicon and will die there too. So their entry point is not really the beginning of the silicon but already within. The same is true for the exit point. The middle between them is therefore usually not at the exact z-postion of the detector measurement plane. So only if keepHitsFromDeltas is set to true, will hits with a z-position not corresponding to the measurement plane produce TrackerHits.
(default value false)
PetalsPerDiskThe number of petals per disk. (Although there are no real petals implemented, hits get a CellID0 corresponding to the petal they would be on.) A value of 1 means there is only one petal spanning the whole disk. The petals start from the x-axis with the beginning of the first petal aligned with the axis.
(default value 1)
SensorsPerPetalThe number of sensors per Petal. A petal will be split up into n Sensors, equally distributed. So if the values is 1, there will be one sensor filling the whole petal. If the value is 2, there will be two sensors, splitting the petal at (Rmin-Rmax)/2. As this digitiser simulates a PixelDisk, there there are no sensors at the back.
(default value 1)

Member Function Documentation

void SimpleDiscDigiProcessor::init ( )
virtual

Called at the begin of the job before anything is read.

Use to initialize the processor, e.g. book histograms.


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