StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtCosmicTrackMaker.h
1 /***************************************************************************
2  *
3  * $Id: StFgtCosmicTrackMaker.h,v 1.1 2012/01/31 23:25:35 avossen Exp $
4  * Author: C. K. Riley (ckriley@bnl.gov), Oct. 10 2011
5  *
6  ***************************************************************************
7  *
8  * Description: CosmicTrackMaker for the cosmic stand
9  *
10  ***************************************************************************
11  *
12  * $Log: StFgtCosmicTrackMaker.h,v $
13  * Revision 1.1 2012/01/31 23:25:35 avossen
14  * moved StFgtCosmicTrackMaker to StFgtPool
15  *
16  * Revision 1.11 2011/11/25 20:24:59 ckriley
17  * now will look at all possible point combinations for tracks and pick the best one
18  *
19  * Revision 1.10 2011/11/16 22:15:07 ckriley
20  * now looks at all points on quadrants and gets best track
21  *
22  * Revision 1.9 2011/11/09 20:56:58 ckriley
23  * working version for new containers
24  *
25  * Revision 1.8 2011/11/01 18:50:13 sgliske
26  * Updated to correspond with StEvent containers, take 2.
27  *
28  * Revision 1.7 2011/10/28 18:30:09 ckriley
29  * make things up-to-date
30  *
31  * Revision 1.6 2011/10/28 14:54:11 sgliske
32  * Changed to get StFgtEvent from StEvent rather than another maker.
33  * Added some sanity checks to ensure the algo has been set.
34  * Also pClusterAlgo changed to mClusterAlgoPtr to conform with STAR guidelines.
35  *
36  * Revision 1.4 2011/10/20 17:13:44 ckriley
37  * major update -> headers, tracks stored in StFgtEvent instead of StFgtDisc, changes to trackmaker and algorithms
38  *
39  *
40  **************************************************************************/
41 
42 #ifndef _ST_FGT_COSMIC_TRACK_MAKER_
43 #define _ST_FGT_COSMIC_TRACK_MAKER_
44 
45 #include "StMaker.h"
47 #include "StFgtCosmicTrack.h"
48 
50  public:
51  // constructors
52  StFgtCosmicTrackMaker( const Char_t* name = "FGT_Cosmic_Track_Maker" );
53 
54  // deconstructor
56 
57  Int_t Init();
58  Int_t Make();
59  Int_t Finish();
60  void Clear( Option_t *opt = "" );
61 
62  Int_t setCosmicTrackAlgo(StFgtICosmicTrackAlgo*);
63  //void setRand( Float_t rndm=1 );
64 
65  StFgtCosmicTrackVec& getCosmicTrackVec();
66  const StFgtCosmicTrackVec& getCosmicTrackVec() const;
67 
68  protected:
69  // pointer to algo
70  StFgtICosmicTrackAlgo* mCosmicTrackAlgoPtr;
71 
72  // tracks are stored here
73  StFgtCosmicTrackVec mTrackVec;
74 
75  private:
76  Int_t eventCounter;
77 
78  ClassDef(StFgtCosmicTrackMaker,1);
79 
80 };
81 
82 // inline functions
83 inline StFgtCosmicTrackVec& StFgtCosmicTrackMaker::getCosmicTrackVec(){
84  return mTrackVec;
85 };
86 
87 inline const StFgtCosmicTrackVec& StFgtCosmicTrackMaker::getCosmicTrackVec() const{
88  return mTrackVec;
89 };
90 
91 
92 #endif
93 
void Clear(Option_t *opt="")
User defined functions.