StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStrip.h
1 #ifndef __StEEmcStrip_h__
2 #define __StEEmcStrip_h__
3 
4 #include "StEEmcElement.h"
5 #include "TString.h"
6 #include <vector>
7 
8 class StEEmcStrip : public StEEmcElement {
9 
10  public:
11 
12  StEEmcStrip();
13  ~StEEmcStrip(){ /* nada */ };
14 
16  void sector(Int_t s);
18  void plane(Int_t p);
20  void index(Int_t i);
21 
23  Int_t sector();
25  Int_t plane();
27  Int_t index();
28 
29  void print();
30 
31  Bool_t operator<( const StEEmcStrip &other) const { return (this->energy() < other.energy()); }
32 
33  private:
34  protected:
35 
36  Int_t mSector;
37  Int_t mPlane;
38  Int_t mIndex;
39 
40  ClassDef(StEEmcStrip,1);
41 
42 };
43 
44 inline void StEEmcStrip::sector(Int_t s){ mSector=s; }
45 inline void StEEmcStrip::plane(Int_t p){ mPlane=p; }
46 //inline void StEEmcStrip::index(Int_t i){ mIndex=i; }
47 
48 inline Int_t StEEmcStrip::sector(){ return mSector; }
49 inline Int_t StEEmcStrip::plane(){ return mPlane; }
50 inline Int_t StEEmcStrip::index(){ return mIndex; }
51 
52 typedef std::vector<StEEmcStrip> StEEmcStripVec_t;
53 
54 #endif
Int_t index() const
Returns the index containing this strip.
Definition: StEEmcStrip.h:28
StEEmcStrip()
Constructor.
Definition: StEEmcStrip.cxx:17
Float_t energy() const
Return the EM energy (towers) or energy deposit for this element (SMD,pre,post). If a fail bit is set...
Definition: StEEmcElement.h:34
virtual ~StEEmcStrip()
Destructor.
Definition: StEEmcStrip.h:14
Int_t plane() const
Returns the plane containing this strip.
Definition: StEEmcStrip.h:26
void print() const
Prints information about strip.
Definition: StEEmcStrip.cxx:26
Bool_t operator<(const StEEmcStrip &other) const
A strip is &quot;less than&quot; another strip if its energy is less.
Definition: StEEmcStrip.h:34
Base class for EEMC detectors.
Definition: StEEmcElement.h:9
void energy(Float_t e)
Set the energy (adc-ped+0.5)/gain for this element.
Definition: StEEmcElement.h:21
Int_t sector() const
Returns the sector containing this strip.
Definition: StEEmcStrip.h:24
Base class for describing an endcap SMD strip.
Definition: StEEmcStrip.h:8