StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtRobustPedMaker.h
1 
6 /***************************************************************************
7  *
8  * $Id: StFgtRobustPedMaker.h,v 1.2 2014/08/06 11:43:11 jeromel Exp $
9  * Author: S. Gliske, Jan 2012
10  *
11  ***************************************************************************
12  *
13  * Description: More robust method of computing the pedistals.
14  *
15  ***************************************************************************
16  *
17  * $Log: StFgtRobustPedMaker.h,v $
18  * Revision 1.2 2014/08/06 11:43:11 jeromel
19  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
20  *
21  * Revision 1.1 2012/01/31 08:52:51 sgliske
22  * StFgtPedMaker moved to StFgtPool
23  *
24  * Revision 1.2 2012/01/25 11:25:02 sgliske
25  * Added GetCVS tag
26  *
27  * Revision 1.1 2012/01/17 20:08:49 sgliske
28  * creation
29  *
30  *
31  *
32  **************************************************************************/
33 
34 #ifndef _ST_FGT_ROBUST_PED_MAKER_
35 #define _ST_FGT_ROBUST_PED_MAKER_
36 
37 #include "StFgtPedMaker.h"
38 
40  public:
41  // constructors
42  StFgtRobustPedMaker( const Char_t* name = "FgtPedMaker" );
43 
44  // default OK
45  // StFgtRobustPedMaker(const StFgtRobustPedMaker&);
46 
47  // equals operator -- default OK
48  // StFgtRobustPedMaker& operator=(const StFgtRobustPedMaker&);
49 
50  // deconstructor
51  virtual ~StFgtRobustPedMaker();
52 
53  Int_t Make();
54  Int_t Finish();
55 
56  // modifiers
57  void setNumBins( Int_t val );
58  void setMaxAdc( Int_t val );
59  void setNumSmooth( Int_t val );
60 
61  // Get CVS
62  virtual const char *GetCVS() const;
63 
64  protected:
65  // parameters
66  Int_t mNumBins, mMaxAdc, mNumSmooth;
67 
68  // internal data
69 /* typedef std::map< Int_t, TH1F* > histMap_t; */
70 /* histMap_t mHistMap; */
71 /* histMap_t::iterator mHistMapIter; */
72  std::vector< TH1F* > mHistVec;
73 
74  private:
75  ClassDef(StFgtRobustPedMaker,1);
76 
77  Int_t mInternalEventNum;
78 };
79 
80 // inline functions
81 
82 // deconstructor
83 inline StFgtRobustPedMaker::~StFgtRobustPedMaker(){ /* */ };
84 
85 inline void StFgtRobustPedMaker::setNumBins( Int_t val ){ mNumBins = val; };
86 inline void StFgtRobustPedMaker::setMaxAdc( Int_t val ){ mMaxAdc = val; };
87 inline void StFgtRobustPedMaker::setNumSmooth( Int_t val ){ mNumSmooth = val; };
88 
89 inline const char *StFgtRobustPedMaker::GetCVS() const {
90  static const char cvs[] = "Tag $Name: $ $Id: StFgtRobustPedMaker.h,v 1.2 2014/08/06 11:43:11 jeromel Exp $ built " __DATE__ " " __TIME__ ;
91  return cvs;
92 }
93 
94 #endif