MarlinTrkProcessors
2.4.1
|
Set the LCIO Extensions to relate SimTrackerHits to TrackerHits via a pointer. More...
#include <CalcTrackerHitResiduals.h>
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 |
Set the LCIO Extensions to relate SimTrackerHits to TrackerHits via a pointer.
Needs a collections of LCIO TrackerHits.
TrackerHitsInputCollections | Name of the tracker hit input collections (default value: FTDTrackerHits SITTrackerHits TPCTrackerHits VXDTrackerHits ) |
TrackerHitsRelInputCollections | Name 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 ) |
|
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