BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcxReco/include/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(zhangyao@ihep.ac.cn) 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 "CLHEP/Alist/AList.h"
26#include "MdcxReco/MdcxFittedHel.h"
27#include "MdcxReco/MdcxHel.h"
28#include "MdcxReco/MdcxSeg.h"
29#include <fstream>
30#include <iostream>
31
32class MdcxFindTracks {
33public:
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
44protected:
45 // data members
48 float probmin; // min probablity cut
49 float curvmax; // max curvature cut
50 int ngood; // number with prob>probmin
51 int npure; // prob>probmin & pure mc
52 int nbad; // number with prob<probmin
53 int nfail; // number with failed fit
54 int nhitsmc; // number of hits produced
55 int nhitsgd; // #of hits in pure clusters
56 int m_debug; // debug flag
57 bool m_doSag; // sag flag
58
59 // functions
60 void KillList() { HepAListDeleteAll( MdcxTrklist ); }
61 void beginmore(); // begin specifics
62 void endmore(); // end specifics
63 double findz_sl( int i1, int i2, const HepAList<MdcxSeg>& slclus );
64 double findz_cyl( int i1, int i2, const HepAList<MdcxSeg>& slclus );
65 double dlen( int slay1, double p1, int slay2, double p2, double om );
66 // double dlen(double p1, double p2, double om);
70 void printpar( std::ostream& o ); // print out parameters
71 bool testFromSameTrack( MdcxSeg* seg1, MdcxSeg* seg2 );
72
73}; // endof MdcxFindTracks
74
75#endif
double p2[4]
double p1[4]
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
MdcxFittedHel drophits(MdcxFittedHel *f)
void process(const HepAList< MdcxSeg > &f)
MdcxFindTracks(const HepAList< MdcxSeg > &f, int debug=0)
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)
virtual ~MdcxFindTracks()
void plot() const
MdcxHel TakeToOrigin(MdcxHel &)
void printpar(std::ostream &o)