1 #ifndef HIT_TRACK_COUNTER_PROCESSOR_H
2 #define HIT_TRACK_COUNTER_PROCESSOR_H 1
4 #define N_1D_HISTOS_HIT_TRACK_COUNTER_PROCESSOR 2
5 #define N_2D_HISTOS_HIT_TRACK_COUNTER_PROCESSOR 0
8 #include "marlin/Processor.h"
11 #include <EVENT/TrackerHit.h>
14 #include "ZBinTemplateProcessor.h"
47 N_2D_HISTOS_HIT_TRACK_COUNTER_PROCESSOR>{
59 virtual void processRunHeader(lcio::LCRunHeader* run ) ;
61 virtual void processEvent(lcio::LCEvent * evt ) ;
65 static bool compareHit(
const std::pair<TrackerHit*, double> & pair1,
66 const std::pair<TrackerHit*, double> & pair2)
68 return pair1.second < pair2.second;
76 const std::string _hitsPerTrackHistosName;
77 const std::string _hitsPerEventHistosName;
78 const std::string _tracksPerEventHistosName;
79 const std::string _hitsPerTrackLengthHistosName;
85 static const unsigned int _hitsPerTrackLengthHistosIndex;
104 #endif // HIT_TRACK_COUNTER_PROCESSOR_H
Count hits in events and tracks, and tracks per event.
Definition: HitAndTrackCounterProcessor.h:46
std::string _hitsColName
the name of the input hits collection
Definition: HitAndTrackCounterProcessor.h:74
std::string _tracksColName
the name of the input tracks collection
Definition: HitAndTrackCounterProcessor.h:73
A template to create processors wich create 1D or 2D distribution histograms, one histogram per z bin...
Definition: ZBinTemplateProcessor.h:76
double _maxHitsPerTrackLength
Maximum value in TracksPerEvent histogram.
Definition: HitAndTrackCounterProcessor.h:100
double _maxHitsPerTrack
Maximum value in HitsPerTrack histogram.
Definition: HitAndTrackCounterProcessor.h:97
double _maxHitsPerEvent
Maximum value in HitsPerEvent histogram.
Definition: HitAndTrackCounterProcessor.h:98
AIDA::IHistogram1D * _tracksPerEventHisto
number of tracks per event
Definition: HitAndTrackCounterProcessor.h:95
virtual void init()
Register the AIDA histograms at the AIDAProcessor.
Definition: HitAndTrackCounterProcessor.cc:90
virtual Processor * newProcessor()
The newProcessor() function does not make sense for this template class, so it throws an lcio::Except...
Definition: HitAndTrackCounterProcessor.h:51
AIDA::IHistogram1D * _hitsPerEventHisto
For the following histograms a z binning does not make sense.
Definition: HitAndTrackCounterProcessor.h:94
static const unsigned int _hitsPerTrackHistosIndex
The index of the template parameter for the hitsPerTrack histos We want to have these values divided ...
Definition: HitAndTrackCounterProcessor.h:84
double _maxTracksPerEvent
Maximum value in TracksPerEvent histogram.
Definition: HitAndTrackCounterProcessor.h:99