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 public:
10 
12  StEEmcStrip();
14  virtual ~StEEmcStrip(){ /* nada */ };
15 
17  void sector(Int_t s) { mSector=s; }
19  void plane(Int_t p) { mPlane=p; }
21  void index(Int_t i);
22 
24  Int_t sector()const { return mSector; }
26  Int_t plane()const { return mPlane; }
28  Int_t index()const { return mIndex; }
29 
31  void print() const;
32 
34  Bool_t operator<( const StEEmcStrip &other) const { return (this->energy() < other.energy()); }
36  Bool_t operator==( const StEEmcStrip &other) const { return (this->mIndex == other.mIndex); }
37 
38 protected:
39  Int_t mSector; // Sector containing this strip
40  Int_t mPlane; // Plane containing this strip (0=U,1=V)
41  Int_t mIndex; // Index of this strip [0,288)
42 
43  ClassDef(StEEmcStrip,1);
44 };
45 
46 typedef std::vector<StEEmcStrip> StEEmcStripVec_t;
47 
48 #endif
Int_t index() const
Returns the index containing this strip.
Definition: StEEmcStrip.h:28
Bool_t operator==(const StEEmcStrip &other) const
A strip is &quot;equal to&quot; another strip if they have the same StEEmcElement::mIndex.
Definition: StEEmcStrip.h:36
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
void plane(Int_t p)
Sets the plane for this SMD strip, 0=U, 1=V.
Definition: StEEmcStrip.h:19
void sector(Int_t s)
Sets the sector for this SMD strip.
Definition: StEEmcStrip.h:17
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