1 #ifndef SpacePointBuilder_h
2 #define SpacePointBuilder_h 1
4 #include "marlin/Processor.h"
7 #include <EVENT/TrackerHit.h>
8 #include <EVENT/TrackerHitPlane.h>
9 #include <IMPL/TrackerHitImpl.h>
11 #include "CLHEP/Vector/ThreeVector.h"
14 using namespace lcio ;
15 using namespace marlin ;
72 virtual void processRunHeader( LCRunHeader* run ) ;
76 virtual void processEvent( LCEvent * evt ) ;
79 virtual void check( LCEvent * evt ) ;
114 static int calculateXingPoint(
double x1,
double y1,
float ex1,
float ey1,
double x2,
double y2,
float ex2,
float ey2,
double& x,
double& y );
138 static int calculatePointBetweenTwoLines(
139 const CLHEP::Hep3Vector& P1,
140 const CLHEP::Hep3Vector& V1,
141 const CLHEP::Hep3Vector& P2,
142 const CLHEP::Hep3Vector& V2,
143 CLHEP::Hep3Vector& point );
158 static int calculatePointBetweenTwoLines_UsingVertex(
159 const CLHEP::Hep3Vector& PA,
160 const CLHEP::Hep3Vector& PB,
161 const CLHEP::Hep3Vector& PC,
162 const CLHEP::Hep3Vector& PD,
163 const CLHEP::Hep3Vector& Vertex,
164 CLHEP::Hep3Vector& point);
168 TrackerHitImpl* createSpacePoint( TrackerHitPlane* a , TrackerHitPlane* b,
double stripLength );
177 std::vector< int > getCellID0sAtBack(
int cellID0 );
179 std::vector< int > getCellID0sAtBackOfFTD(
int cellID0 );
181 std::vector< int > getCellID0sAtBackOfSET(
int cellID0 );
183 std::vector< int > getCellID0sAtBackOfSIT(
int cellID0 );
187 std::string getCellID0Info(
int cellID0 );
193 unsigned _nOutOfBoundary;
194 unsigned _nStripsTooParallel;
195 unsigned _nPlanesNotParallel;
197 float _nominal_vertex_x;
198 float _nominal_vertex_y;
199 float _nominal_vertex_z;
201 CLHEP::Hep3Vector _nominal_vertex;
203 float _striplength_tolerance;
std::string _relColName
Output relations collection name.
Definition: SpacePointBuilder.h:107
std::string _TrackerHitCollection
Input collection name.
Definition: SpacePointBuilder.h:95
================= FTD Space Point Builder =================
Definition: SpacePointBuilder.h:56
std::string _TrackerHitSimHitRelCollection
Input relation collection name.
Definition: SpacePointBuilder.h:99
std::string _SpacePointsCollection
Output collection name.
Definition: SpacePointBuilder.h:103