1 #include "gl3Cylinder.h"
3 #include "Stl3Util/base/FtfLog.h"
5 gl3Cylinder::gl3Cylinder() : minNoOfHitsOnTrack(10)
13 int gl3Cylinder::setParameters(
int GI1_in,
int GI2_in,
14 int GI3_in,
int GI4_in,
16 float GF1_in,
float GF2_in,
17 float GF3_in,
float GF4_in,
20 bool errorFlag =
false;
22 gl3Algorithm::setParameters(GI1_in, GI2_in, GI3_in, GI4_in, GI5_in,
23 GF1_in, GF2_in, GF3_in, GF4_in, GF5_in);
29 int & minTracksInCylinder = GI1;
33 ftfLog(
"%s: invalid parameters: minZ >= maxZ (%f >= %f)\n",
34 getAlgorithmName(), minZ, maxZ);
39 ftfLog(
"%s: invalid parameters: negative radius (%f)\n",
40 getAlgorithmName(), radius);
44 if (minTracksInCylinder < 1) {
45 ftfLog(
"%s: invalid parameters: invalid min no. of tracks in cylinder (%f)\n",
46 getAlgorithmName(), minTracksInCylinder);
56 int gl3Cylinder::decide ( )
64 int & minTracksInCylinder = GI1;
68 for (
int trkcnt = 0 ; trkcnt<
event->getNTracks(); trkcnt++ ) {
69 gl3Track *gTrack =
event->getTrack(trkcnt);
72 if(gTrack->nHits > minNoOfHitsOnTrack) {
76 if ( hit.x != 0. || hit.y != 0. || hit.z != 0. ) {
80 if ( hit.z >= minZ && hit.z <= maxZ) {
91 if( nTracksInCyl >= minTracksInCylinder )