StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcFgtCorrelatorA.h
1 /***************************************************************************
2  *
3  * $Id: StEEmcFgtCorrelatorA.h,v 1.2 2012/05/09 21:11:58 sgliske Exp $
4  * Author: S. Gliske, May 2012
5  *
6  ***************************************************************************
7  *
8  * Description: looks for MIP response in the ESMD, forms a line
9  * between the ESMD position and the primary vertex, and then looks at
10  * the FGT response near the line.
11  *
12  ***************************************************************************
13  *
14  * $Log: StEEmcFgtCorrelatorA.h,v $
15  * Revision 1.2 2012/05/09 21:11:58 sgliske
16  * updates
17  *
18  * Revision 1.1 2012/05/09 17:26:26 sgliske
19  * creation
20  *
21  *
22  **************************************************************************/
23 
24 #ifndef _StEEmcFgtCorrelatorA_H_
25 #define _StEEmcFgtCorrelatorA_H_
26 
27 #include "StMaker.h"
28 #include "TVector3.h"
29 #include <string>
30 
31 class StEEmcRawMapMaker;
32 
33 class StEEmcFgtCorrelatorA : public StMaker {
34  public:
35  // constructors
36  StEEmcFgtCorrelatorA( const Char_t* name = "EEmcFgtCorA", const Char_t* rawMapMkrName = "EEmcRawMapMaker" );
37 
38  // deconstructor
39  virtual ~StEEmcFgtCorrelatorA();
40 
41  // default equals operator and copy constructor OK
42  virtual Int_t Init();
43  virtual Int_t Make();
44  virtual void Clear( Option_t *opt = "" );
45 
46  Int_t setInput( const Char_t *name, Int_t type ); // type = 0 is StEvent, type == 1 is MuDst
47  void setMipWindow( Float_t min, Float_t max );
48  void setSigThres( Float_t thres );
49 
50  protected:
51  Int_t mInputType;
52  std::string mInputName;
53  TVector3 mVertex;
54 
55  StEEmcRawMapMaker *mEEmcRawMapMkr;
56 
57  Float_t mMipMin, mMipMax, mSigThres;
58 
59  Int_t loadVertex();
60 
61  private:
62  ClassDef(StEEmcFgtCorrelatorA,1);
63 
64 };
65 
66 // inline functions
67 
68 inline void StEEmcFgtCorrelatorA::setMipWindow( Float_t min, Float_t max ){ mMipMin = min; mMipMax = max; };
69 inline void StEEmcFgtCorrelatorA::setSigThres( Float_t thres ){ mSigThres = thres; };
70 
71 #endif
virtual void Clear(Option_t *opt="")
User defined functions.