StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPreEclMaker.h
1 
8 #ifndef STAR_StPreEclMaker
9 #define STAR_StPreEclMaker
10 
11 #include "StMaker.h"
12 #include "StMessMgr.h"
13 #include "StEmcVirtualFinder.h"
14 #include "StEmcOldFinder.h"
15 #include "StEmcUtil/others/emcInternalDef.h"
16 #include "StEmcRawMaker/defines.h"
17 
18 #include "EmcClusterAlgorithm.h"
19 
20 class StPreEclMaker : public StMaker
21 {
22 private:
23  StEmcVirtualFinder *mFinder;
24  EmcClusterAlgorithm mAlg;
25 
26  StEvent* getEvent();
27 
28 protected:
29 public:
30  StPreEclMaker(const char *name="ecl", const char *title="event/data/emc/hits");
31  virtual ~StPreEclMaker();
32  virtual Int_t Init();
33  virtual Int_t Make();
34  virtual Int_t Finish();
35 
36  void setPrint(Bool_t a)
37  {
38  LOG_INFO << "::setPrint() is obsolete. Use logger config file to set verbosity instead." << endm;
39  }
40  void setAlgorithm(EmcClusterAlgorithm a)
41  {
42  mAlg = a;
43  }
44 
45  EmcClusterAlgorithm algorithm()
46  {
47  return mAlg;
48  }
50  {
51  return mFinder;
52  }
53 
54  // this method is for background compatibility with the old cluster finder interface
55  // it will work only if the algorithm used is kEmcClOld
56  void SetClusterConditions(char*,Int_t, Float_t, Float_t, Float_t, Bool_t = kFALSE);
57 
58  virtual const char *GetCVS() const {
59  static const char cvs[]="Tag $Name: $ $Id: StPreEclMaker.h,v 1.21 2014/08/06 11:43:33 jeromel Exp $ built " __DATE__ " " __TIME__ ;
60  return cvs;
61  }
62 
63  ClassDef(StPreEclMaker,1)
64 };
65 
66 #endif
virtual Int_t Finish()
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
Definition: StPreEclMaker.h:36
EmcClusterAlgorithm algorithm()
returns the cluster finder algorithm id being used
Definition: StPreEclMaker.h:45
void SetClusterConditions(char *, Int_t, Float_t, Float_t, Float_t, Bool_t=kFALSE)
this is for background compatibility with the old finder
virtual Int_t Make()
StEmcVirtualFinder * finder()
returns a pointer to the finder. The pointer is available only after Init() is called ...
Definition: StPreEclMaker.h:49
void setAlgorithm(EmcClusterAlgorithm a)
defines the cluster algorithm. Should be set before Init() is called
Definition: StPreEclMaker.h:40