4 #include "marlin/Processor.h"
5 #include "marlin/EventModifier.h"
11 #ifdef MARLIN_USE_AIDA
13 #include <AIDA/AIDA.h>
14 typedef std::vector< AIDA::IHistogram1D* > Hist1DVec ;
18 #include "CLHEP/Vector/TwoVector.h"
25 CLHEP::Hep2Vector p0 ;
26 CLHEP::Hep2Vector p1 ;
29 typedef std::vector< std::vector< VXDLadder > > VXDLadders ;
37 VXDLayer(): nBX(0), width(0), ladderArea(0), nLadders(0) {}
39 typedef std::vector< VXDLayer > VXDLayers ;
94 class OverlayBX :
public marlin::Processor,
public marlin::EventModifier {
98 virtual marlin::Processor* newProcessor() {
return new OverlayBX ; }
103 virtual const std::string & name()
const {
return Processor::name() ; }
105 virtual void modifyEvent( LCEvent * evt ) ;
111 virtual void init() ;
122 virtual void check( LCEvent * evt ) ;
143 int mergeTPCColsFromBX( LCCollection* tpcCol , LCCollection* tpcBGCol ,
float zPosShift ) ;
146 StringVec _inputFileNames ;
149 float _tpcVdrift_mm_s ;
152 bool _keepPairsTruthInfo ;
153 bool _phiRotateTPCHits ;
155 FloatVec _vxdLayerReadOutTimes ;
157 StringVec _tpcCollections ;
160 std::string _mcpCollection ;
162 std::string _vxdCollection ;
163 StringVec _mergeCollections ;
167 typedef std::map<std::string, std::string> StrMap ;
172 std::vector< LCReader* > _lcReaders ;
177 VXDLayers _vxdLayers ;
183 #ifdef MARLIN_USE_AIDA
184 Hist1DVec _hist1DVec ;
virtual void init()
Called at the begin of the job before anything is read.
Definition: OverlayBX.cc:165
int mergeVXDColsFromBX(LCCollection *vxdCol, LCCollection *vxdBGCol, int bxNum)
helper function
Definition: OverlayBX.cc:659
Helper struct for VXD ladder geometry.
Definition: OverlayBX.h:23
LCEvent * readNextEvent(int bxNum)
helper function for (randomly) reading the next event
Definition: OverlayBX.cc:328
Helper struct for VXD layer geometry.
Definition: OverlayBX.h:32
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
Definition: OverlayBX.cc:266
virtual void end()
Called after data processing for clean up.
Definition: OverlayBX.cc:955
Helper struct for TPC parameters.
Definition: OverlayBX.h:94
virtual void check(LCEvent *evt)
Called for every event - the working horse.
Definition: OverlayBX.cc:845
int mergeTPCColsFromBX(LCCollection *tpcCol, LCCollection *tpcBGCol, float zPosShift)
helper function
Definition: OverlayBX.cc:729
void init_geometry()
helper function
Definition: OverlayBX.cc:990