15 #define TRG_VERSION 0x32
23 #include "l3Coordinates.h"
24 #include "l3CoordinateTransformer.h"
27 #include "daqFormats.h"
30 #include "l3TrgReader.h"
33 #include "FtfGeneral.h"
36 #include "gl3Sector.h"
38 #include "gl3LMVertexFinder.h"
43 #include <evpReader.hh>
45 #include <DAQ_READER/daqReader.h>
49 #define GL3_READ_TPC_TRACKS 0x01
50 #define GL3_READ_TPC_CLUSTERS 0x02
51 #define GL3_READ_ALL 0xffff
59 int mxHits=szGL3_default_mHits,
int mxTracks=szGL3_default_mTracks);
63 int setup (
int mHits=szGL3_default_mHits,
int mTracks = szGL3_default_mTracks);
76 void readClustersFromEvpReader(
daqReader *rdr,
int sector);
77 int readITPCClustersFromEvpReader(
daqReader *rdr,
int sector);
79 int sectorFirstHit[25];
81 short getBusy ( ) {
return busy; };
86 int getNTracks ( ) {
return nTracks; };
87 int getNMergedTracks ( ) {
return nMergedTracks; };
88 int getNBadTracks ( ) {
return nBadTracks; };
89 int getNHits ( ) {
return nHits ; };
97 {
return coordinateTransformer; };
103 double getZDCVertex();
105 int getToken() {
return trgData.token; };
106 void setToken(
int tk) {trgData.token = tk;};
109 unsigned int getBXingLo();
110 unsigned int getBXingHi();
111 unsigned long long getBXing();
113 void setHitProcessing (
int hitPro ) { hitProcessing = hitPro; };
114 void setVertexFinderMethod (
int _in ) { vertexFinder = _in; };
117 void setMaxSectorNForTrackMerging (
int _in )
118 { maxSectorNForTrackMerging = _in; };
120 void setBField (
float _bField )
122 para.bField = fabs(_bField);
123 para.bFieldPolarity = int(_bField/fabs(_bField));
127 { coordinateTransformer = in; };
131 int readL3Data (
L3_P* buffer);
141 int finalizeReconstruction();
143 int readSectorHits (
char* buffer,
int nSectorTracks );
144 int readSectorTracks (
char* buffer );
150 int fillTracks (
int maxBytes,
char* buffer,
unsigned int token );
175 int minNoOfHitsOnTrackUsedForVertexCalc;
176 double minMomUsedForVertexCalc;
188 int maxSectorNForTrackMerging;
229 static const int nSectors = 24;
int readFromEvpReader(daqReader *rdr, float bField=1000)