StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcCalorimeterHit.hh
1 // $Id: StMcCalorimeterHit.hh,v 2.7 2005/09/28 21:30:14 fisyak Exp $
2 //
3 // $Log: StMcCalorimeterHit.hh,v $
4 // Revision 2.7 2005/09/28 21:30:14 fisyak
5 // Persistent StMcEvent
6 //
7 // Revision 2.6 2005/01/27 23:40:46 calderon
8 // Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
9 //
10 // Revision 2.5 2004/01/13 21:03:34 fisyak
11 // Replace iostream by Stiostream.h (for icc)
12 //
13 // Revision 2.4 2003/10/08 20:17:54 calderon
14 // -using <iostream>, std::cout, std::ostream.
15 // -changes in FTPC volume Id.
16 // o Causes changes in decoding of plane().
17 // o sector() is added.
18 // o print volumeId and sector() in the operator<<.
19 //
20 // Revision 2.3 2003/09/02 17:58:41 perev
21 // gcc 3.2 updates + WarnOff
22 //
23 // Revision 2.2 2000/06/06 02:58:40 calderon
24 // Introduction of Calorimeter classes. Modified several classes
25 // accordingly.
26 //
27 // Revision 2.1 2000/05/05 14:54:19 calderon
28 // Initial revision
29 //
30 //
31 #ifndef StMcCalorimeterHit_hh
32 #define StMcCalorimeterHit_hh
33 
34 #include "StObject.h"
35 #include "Stiostream.h"
36 
37 //#include "StMemoryPool.hh"
38 
39 class StMcTrack;
40 
41 class StMcCalorimeterHit : public StObject {
42 public:
44  StMcCalorimeterHit(int, int, int, float);
45  StMcCalorimeterHit(int, int, int, float, StMcTrack*);
46  virtual ~StMcCalorimeterHit();
47 
48  int operator==(const StMcCalorimeterHit&) const;
49  int operator!=(const StMcCalorimeterHit&) const;
50  void operator+=(const StMcCalorimeterHit&);
51 
52  bool sameCell(const StMcCalorimeterHit&) const;
53 
54  // "Get" Methods
55  virtual int module() const;
56  virtual int eta() const;
57  virtual int sub() const;
58  virtual float dE() const;
59  virtual StMcTrack* parentTrack() const;
60 
61  // "Set" Methods
62 
63  virtual void setModule(int);
64  virtual void setEta(int);
65  virtual void setSub(int);
66  virtual void setdE(float);
67  virtual void setParentTrack(StMcTrack*);
68 
69  // void* operator new(size_t) { return mPool.alloc(); }
70  // void operator delete(void* p) { mPool.free(p); }
71 
72 protected:
73  int mModule;
74  int mEta;
75  int mSub;
76  float mdE;
77  StMcTrack* mParentTrack;
78 
79  //private:
80  // static StMemoryPool mPool;
81  ClassDef(StMcCalorimeterHit,1)
82 };
83 
84 ostream& operator<<(ostream& os, const StMcCalorimeterHit&);
85 
86 inline int StMcCalorimeterHit::module() const {return mModule; }
87 inline int StMcCalorimeterHit::eta() const {return mEta; }
88 inline int StMcCalorimeterHit::sub() const {return mSub; }
89 inline float StMcCalorimeterHit::dE() const {return mdE; }
90 inline StMcTrack* StMcCalorimeterHit::parentTrack() const {return mParentTrack; }
91 
92 #endif
93 
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144