StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiTpcIsActiveFunctor.h
Go to the documentation of this file.
1 
11 #ifndef STI_TPC_IS_ACTIVE_FUNCTOR
12 #define STI_TPC_IS_ACTIVE_FUNCTOR
13 #include "Sti/StiIsActiveFunctor.h"
14 
19 {
20  public:
21  StiTpcIsActiveFunctor(Bool_t active=kTRUE, Bool_t west=kTRUE, Bool_t east=kTRUE) :
22  StiIsActiveFunctor(active,kTRUE), _eastActive(east), _westActive(west) {}
23  virtual ~StiTpcIsActiveFunctor() {}
24  virtual Bool_t operator()(Double_t /* dYlocal */, Double_t /* dZlocal */) const {return isActive();}
25 // correct version not swiched on yet
26 //Bool_t operator()(Double_t /* dYlocal */, Double_t dZlocal) const
27 // {if (dZlocal<-1) return _eastActive;
28 // if (dZlocal> 1) return _westActive;
29 // if return _eastActive || _westActive;}
30  virtual Bool_t isActive() const {return _active && (_eastActive || _westActive);}
31  virtual Bool_t isEastActive() const {return _eastActive;}
32  virtual Bool_t isWestActive() const {return _westActive;}
33  void setEastActive(Bool_t value) {_eastActive = value;}
34  void setWestActive(Bool_t value) {_westActive = value;}
35 
36  protected:
38  Bool_t _eastActive;
40  Bool_t _westActive;
41 };
42 #endif // ifndef STI_TPC_IS_ACTIVE_FUNCTOR
Bool_t _eastActive
is the east half of the padrow on?
virtual Bool_t operator()(Double_t, Double_t) const
virtual Bool_t isActive() const
Returns whether the object is active.
function object for determine a TPC padrow&#39;s active regions
function object for determine a detector&#39;s active regions
Bool_t _westActive
is the west half of the padrow on?