1#ifndef DotsConnection_H
2#define DotsConnection_H
4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
21 DotsConnection (
const std::string& name, ISvcLocator* pSvcLocator);
31 double myDriftTimeUpLimit;
32 double myMdcHitChi2Cut;
35 double getEventStartTime();
43 void getMcFinalChargedStates();
44 vector<int> myVecMCTrkId;
46 vector<double> myVecTrkLenFirstHalf;
47 vector< vector<double> > myVecHelix;
48 vector<Event::CgemMcHit*> myVecCgemMcHit;
49 vector<const RecCgemCluster*> myVecCgemXcluster;
50 vector<const RecCgemCluster*> myVecCgemVcluster;
51 vector<const RecCgemCluster*> myVecCgem1DCluster;
52 vector<int> myVecCgemXCluIdx[3][2];
53 vector<int> myVecCgemVCluIdx[3][2];
54 vector<const MdcDigi*> myVecMdcDigi;
56 void associateDigisToMcParticles();
60 const MdcDigi* myMdcDigiPointer[43][288];
61 void clearMdcDigiPointer();
62 vector<const MdcDigi*> getMdcDigiVec();
63 vector<const RecCgemCluster*> getCgemClusterVec(
int view=0);
73 int myOuterWire[43][288][2];
74 int myInnerWire[43][288][2];
75 double myWirePhi[43][288];
80 double dPhi(
double phi1,
double phi2);
87 double myChi2CutDiverge;
88 void testDotsHelixFitterAllHits();
89 void testDotsHelixFitterPartHits();
90 double myChiCut_circle;
91 int myNmaxDeact_circle;
92 double myChiCut_helix;
93 int myNmaxDeact_helix;
98 bool registerRecMdcTrack();
101 bool saveARecMdcTrack(
int iTrk);
108 NTuple::Tuple* myNtHelixFitter;
109 NTuple::Item<int> myRUN;
110 NTuple::Item<int> myEVT;
111 NTuple::Item<int> myPID;
112 NTuple::Item<int> myNPar;
113 NTuple::Item<int> myNXHits;
114 NTuple::Item<int> myNVHits;
115 NTuple::Item<int> myNXCluster;
116 NTuple::Item<int> myNVCluster;
118 NTuple::Array<double> myArrayHelixMC;
119 NTuple::Array<double> myArrayHelixFitted;
120 NTuple::Item<int> myNHitsCircle;
121 NTuple::Array<double> myLayerHitsCircle;
122 NTuple::Array<double> myChiHitsCircle;
123 NTuple::Item<int> myNHits;
124 NTuple::Array<double> myLayerHits;
125 NTuple::Array<double> myChiHits;
126 NTuple::Item<int> myTrkIdBest;
127 NTuple::Item<int> myNHitsBestTrk;
128 NTuple::Item<int> myNSameHitsBestTrk;
ObjectVector< RecMdcHit > RecMdcHitCol
ObjectVector< RecMdcTrack > RecMdcTrackCol