StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcEnergyMaker.h
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: maker to fill the EEmcEnergy_t structure.
5  *
6  */
7 
8 #ifndef StEEmcEnergyMaker_H_
9 #define StEEmcEnergyMaker_H_
10 
11 #include <Rtypes.h>
12 #include "StMaker.h"
13 #include "StRoot/StEEmcPool/./EEmcTreeContainers/EEmcEnergy.h"
14 
15 class StEEmcA2EMaker;
16 
17 class StEEmcEnergyMaker_t : public StMaker {
18  public:
20  StEEmcEnergyMaker_t( const Char_t *myName, const Char_t *a2EMakerName );
21 
23  virtual ~StEEmcEnergyMaker_t();
24 
26  Int_t Init();
27 
29  Int_t Make();
30 
32  void Clear(Option_t *opts="");
33 
34  // accessor/modifier for energy
35  EEmcEnergy_t* getEEmcEnergyPtr();
36  const EEmcEnergy_t* getEEmcEnergyPtr() const;
37 
38  // modifiers for parameters
39  void setTowerThres( Float_t thres ); // for counting number of "high" towers
40  void setStripThres( Float_t thres ); // for counting number of "high" strips
41  void setNumTowerThres( UInt_t num ); // for placing a cut on the number of "high" towers
42 
46 
47  protected:
48  // data
50 
51  // for input
52  std::string mA2EMkrName;
53  StEEmcA2EMaker *mA2EMkr;
54 
55  // parameters
56  UInt_t mNumTowers;
57  Float_t mTowerThres, mStripThres;
58 
59  private:
60  // for ROOT
61  ClassDef( StEEmcEnergyMaker_t, 1 );
62 
63 };
64 
65 // inline functions
66 
67 inline EEmcEnergy_t* StEEmcEnergyMaker_t::getEEmcEnergyPtr() { return &mEEmcEnergy; };
68 inline const EEmcEnergy_t* StEEmcEnergyMaker_t::getEEmcEnergyPtr() const { return &mEEmcEnergy; };
69 
70 inline void StEEmcEnergyMaker_t::setTowerThres( Float_t thres ){ mTowerThres = thres; };
71 inline void StEEmcEnergyMaker_t::setStripThres( Float_t thres ){ mStripThres = thres; };
72 inline void StEEmcEnergyMaker_t::setNumTowerThres( UInt_t num ){ mNumTowers = num; };
73 
74 #endif
75 
76 /*
77  * $Id: StEEmcEnergyMaker.h,v 1.2 2013/02/21 21:59:02 sgliske Exp $
78  * $Log: StEEmcEnergyMaker.h,v $
79  * Revision 1.2 2013/02/21 21:59:02 sgliske
80  * general update
81  *
82  * Revision 1.1 2012/11/26 19:06:10 sgliske
83  * moved from offline/users/sgliske/StRoot/StEEmcPool/StEEmcTreeMaker to StRoot/StEEmcPool/StEEmcTreeMaker
84  *
85  *
86  */
EEmc ADC –&gt; energy maker.
EEmcEnergy_t mEEmcEnergy
void Clear(Option_t *opts="")
Clear for next event.
StEEmcEnergyMaker_t(const Char_t *myName, const Char_t *a2EMakerName)
constructor
Int_t Init()
Initialize.
virtual ~StEEmcEnergyMaker_t()
deconstructor
Int_t Make()
Build an event.