BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcxReco/MdcxReco/MdcxFindTracks.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcxFindTracks.h,v 1.6 2011/12/08 06:52:29 zhangy Exp $
4//
5// Description: Object to find tracks given event data
6// Class Header
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// S. Wagner
13// Zhang Yao([email protected]) Migration to BESIII
14//
15// Copyright Information:
16// Copyright (C) 1994 BEPCII
17//
18// History:
19// Migration for BESIII MDC
20//
21//------------------------------------------------------------------------
22#ifndef MDCXFINDTRACKS_HH
23#define MDCXFINDTRACKS_HH
24
25#include <iostream>
26#include <fstream>
27#include "CLHEP/Alist/AList.h"
28#include "MdcxReco/MdcxHel.h"
29#include "MdcxReco/MdcxFittedHel.h"
30#include "MdcxReco/MdcxSeg.h"
31
33 public:
35 MdcxFindTracks(const HepAList<MdcxSeg> &f, int debug = 0);
36 virtual ~MdcxFindTracks();
37
38 //functions
40 void process( const HepAList<MdcxSeg> &f);
41 void print(std::ostream &o);
42 void plot()const;
43
44
45 protected:
46 //data members
49 float probmin; // min probablity cut
50 float curvmax; // max curvature cut
51 int ngood; // number with prob>probmin
52 int npure; // prob>probmin & pure mc
53 int nbad; // number with prob<probmin
54 int nfail; // number with failed fit
55 int nhitsmc; // number of hits produced
56 int nhitsgd; //#of hits in pure clusters
57 int m_debug; //debug flag
58 bool m_doSag; //sag flag
59
60 //functions
61 void KillList(){HepAListDeleteAll(MdcxTrklist);}
62 void beginmore(); // begin specifics
63 void endmore(); // end specifics
64 double findz_sl(int i1, int i2, const HepAList<MdcxSeg> &slclus);
65 double findz_cyl(int i1, int i2, const HepAList<MdcxSeg> &slclus);
66 double dlen(int slay1, double p1, int slay2, double p2, double om);
67 //double dlen(double p1, double p2, double om);
70 void resout(MdcxFittedHel* f);
71 void printpar(std::ostream &o); // print out parameters
72 bool testFromSameTrack(MdcxSeg* seg1, MdcxSeg* seg2);
73
74};//endof MdcxFindTracks
75
76#endif
virtual ~MdcxFindTracks()
MdcxFittedHel drophits(MdcxFittedHel *f)
void process(const HepAList< MdcxSeg > &f)
double findz_sl(int i1, int i2, const HepAList< MdcxSeg > &slclus)
double findz_cyl(int i1, int i2, const HepAList< MdcxSeg > &slclus)
bool testFromSameTrack(MdcxSeg *seg1, MdcxSeg *seg2)
void resout(MdcxFittedHel *f)
double dlen(int slay1, double p1, int slay2, double p2, double om)
void print(std::ostream &o)
const HepAList< MdcxFittedHel > & GetMdcxTrklist()
void plot() const
MdcxHel TakeToOrigin(MdcxHel &)
void printpar(std::ostream &o)