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

Set the LCIO Extensions to relate SimTrackerHits to TrackerHits via a pointer. More...

#include <CalcTrackerHitResiduals.h>

Inheritance diagram for CalcTrackerHitResiduals:

Public Member Functions

virtual marlin::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 createHistogramBuffers ()
 
void fill_histo (const std::string &name, float value)
 
void write_buffer_to_histo (std::map< std::string, std::list< float > * >::iterator it_buffer)
 
const LCObjectVec * getSimHits (TrackerHit *trkhit, const FloatVec *weights=NULL)
 
int getDetectorID (TrackerHit *hit)
 
int getSideID (TrackerHit *hit)
 
int getLayerID (TrackerHit *hit)
 
int getModuleID (TrackerHit *hit)
 
int getSensorID (TrackerHit *hit)
 
LCCollection * GetCollection (LCEvent *evt, std::string colName)
 helper function to get collection using try catch block
 
LCRelationNavigator * GetRelations (LCEvent *evt, std::string RelName)
 helper function to get relations using try catch block
 
void SetupInputCollections (LCEvent *evt)
 sets up the different collections
 

Protected Attributes

UTIL::BitField64 * _encoder
 
std::vector< std::string > _colNamesTrackerHits
 input TrackerHit collections
 
std::vector< std::string > _colNamesTrackerHitRelations
 input relation collections
 
int _n_run
 
int _n_evt
 
int _current_evt_number
 
std::vector< LCCollection * > _colTrackerHits
 
std::vector
< LCRelationNavigator * > 
_navTrackerHitRel
 
TFile * _root_file
 
std::map< std::string, TH1F * > _histo_map
 
std::map< std::string, TH1F * >
::iterator 
_histo_map_it
 
std::map< std::string,
std::list< float > * > 
_histo_buffer_map
 

Detailed Description

Set the LCIO Extensions to relate SimTrackerHits to TrackerHits via a pointer.

Input - Prerequisites

Needs a collections of LCIO TrackerHits.

Parameters
TrackerHitsInputCollectionsName of the tracker hit input collections
(default value: FTDTrackerHits SITTrackerHits TPCTrackerHits VXDTrackerHits )
TrackerHitsRelInputCollectionsName of the lcrelation collections, that link the TrackerHits to their SimTrackerHits. Have to be in same order as TrackerHitsInputCollections!!!
(default value: FTDTrackerHitRelations SITTrackerHitRelations TPCTrackerHitRelations VXDTrackerHitRelations )
Author
S. J. Aplin, DESY

Member Function Documentation

void CalcTrackerHitResiduals::init ( )
virtual

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

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

Write histogram to file


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