CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
Cgem2DStripBase Class Referenceabstract

#include <Cgem2DStrip.h>

+ Inheritance diagram for Cgem2DStripBase:

Public Member Functions

 Cgem2DStripBase (const char *name, const char *title, Int_t layer, Int_t sheet, Int_t strip)
 
virtual ~Cgem2DStripBase ()
 
virtual void SetStyle ()
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)=0
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)=0
 
virtual void SetHighlighted (bool status=true)
 
virtual void SetFired (bool status=true)
 
virtual bool IsHighlighted () const
 
virtual bool IsFired () const
 
virtual void AddInfo (TString info)
 
virtual void CloseInfo ()=0
 
virtual void ClearInfo ()
 
virtual void Draw (Option_t *option="")=0
 
virtual void Paint (Option_t *option="")=0
 
virtual ECgemStripType GetType () const =0
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Int_t GetLayer () const
 
virtual Int_t GetSheet () const
 
virtual Int_t GetStrip () const
 

Protected Attributes

std::vector< TString > fInfoCon
 
BesPaveTextfTip
 
Int_t fLayer
 
Int_t fSheet
 
Int_t fStrip
 
bool fHighlighted
 
bool fFired
 
Int_t lcStrip
 
Int_t lwStrip
 
Int_t fcStrip
 
Int_t fsStrip
 
Int_t lcStripFired
 
Int_t lwStripFired
 
Int_t fcStripFired
 
Int_t fsStripFired
 
Int_t lcStripHL
 
Int_t lwStripHL
 
Int_t fcStripHL
 
Int_t fsStripHL
 

Detailed Description

Definition at line 25 of file Cgem2DStrip.h.

Constructor & Destructor Documentation

◆ Cgem2DStripBase()

Cgem2DStripBase::Cgem2DStripBase ( const char *  name,
const char *  title,
Int_t  layer,
Int_t  sheet,
Int_t  strip 
)

◆ ~Cgem2DStripBase()

Cgem2DStripBase::~Cgem2DStripBase ( )
virtual

Definition at line 36 of file Cgem2DStrip.cxx.

37{
38 delete fTip;
39}
BesPaveText * fTip
Definition: Cgem2DStrip.h:55

Member Function Documentation

◆ AddInfo()

virtual void Cgem2DStripBase::AddInfo ( TString  info)
inlinevirtual

Definition at line 40 of file Cgem2DStrip.h.

40{ fInfoCon.push_back(info); }
std::vector< TString > fInfoCon
Definition: Cgem2DStrip.h:54

Referenced by CgemROOTGeo::ClearHits(), and CgemROOTGeo::SetHits().

◆ ClearInfo()

void Cgem2DStripBase::ClearInfo ( )
virtual

Definition at line 41 of file Cgem2DStrip.cxx.

42{
43 fInfoCon.clear();
44 fTip->DeleteText();
45}

Referenced by CgemROOTGeo::ClearHits().

◆ CloseInfo()

virtual void Cgem2DStripBase::CloseInfo ( )
pure virtual

◆ DistancetoPrimitive()

virtual Int_t Cgem2DStripBase::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
pure virtual

Implemented in Cgem2DXStrip, and Cgem2DVStrip.

◆ Draw()

virtual void Cgem2DStripBase::Draw ( Option_t *  option = "")
pure virtual

Implemented in Cgem2DXStrip, and Cgem2DVStrip.

Referenced by CgemROOTGeo::DrawHits().

◆ ExecuteEvent()

virtual void Cgem2DStripBase::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
pure virtual

Implemented in Cgem2DXStrip, and Cgem2DVStrip.

◆ GetLayer()

virtual Int_t Cgem2DStripBase::GetLayer ( ) const
inlinevirtual

Definition at line 49 of file Cgem2DStrip.h.

49{ return fLayer; }

Referenced by CgemROOTGeo::DrawHits().

◆ GetObjectInfo()

char * Cgem2DStripBase::GetObjectInfo ( Int_t  px,
Int_t  py 
) const
virtual

Definition at line 47 of file Cgem2DStrip.cxx.

48{
49 BesView *view = dynamic_cast<BesView*>(gPad->GetView());
50 if (view) return view->GetObjectInfo(px, py);
51 else return TObject::GetObjectInfo(px, py);
52}
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Definition: BesView.cxx:965

◆ GetSheet()

virtual Int_t Cgem2DStripBase::GetSheet ( ) const
inlinevirtual

Definition at line 50 of file Cgem2DStrip.h.

50{ return fSheet; }

◆ GetStrip()

virtual Int_t Cgem2DStripBase::GetStrip ( ) const
inlinevirtual

Definition at line 51 of file Cgem2DStrip.h.

51{ return fStrip; }

◆ GetType()

virtual ECgemStripType Cgem2DStripBase::GetType ( ) const
pure virtual

Implemented in Cgem2DXStrip, and Cgem2DVStrip.

Referenced by CgemROOTGeo::DrawHits().

◆ IsFired()

virtual bool Cgem2DStripBase::IsFired ( ) const
inlinevirtual

◆ IsHighlighted()

virtual bool Cgem2DStripBase::IsHighlighted ( ) const
inlinevirtual

◆ Paint()

virtual void Cgem2DStripBase::Paint ( Option_t *  option = "")
pure virtual

Implemented in Cgem2DXStrip, and Cgem2DVStrip.

◆ SetFired()

virtual void Cgem2DStripBase::SetFired ( bool  status = true)
inlinevirtual

Definition at line 36 of file Cgem2DStrip.h.

36{ fFired = status; }

Referenced by CgemROOTGeo::Draw(), CgemROOTGeo::DrawHits(), and CgemROOTGeo::DrawUF().

◆ SetHighlighted()

virtual void Cgem2DStripBase::SetHighlighted ( bool  status = true)
inlinevirtual

Definition at line 35 of file Cgem2DStrip.h.

35{ fHighlighted = status; }

Referenced by Cgem2DXStrip::ExecuteEvent(), and Cgem2DVStrip::ExecuteEvent().

◆ SetStyle()

virtual void Cgem2DStripBase::SetStyle ( )
inlinevirtual

Reimplemented in Cgem2DXStrip, and Cgem2DVStrip.

Definition at line 31 of file Cgem2DStrip.h.

31{}

Member Data Documentation

◆ fcStrip

Int_t Cgem2DStripBase::fcStrip
protected

◆ fcStripFired

Int_t Cgem2DStripBase::fcStripFired
protected

◆ fcStripHL

Int_t Cgem2DStripBase::fcStripHL
protected

◆ fFired

bool Cgem2DStripBase::fFired
protected

Definition at line 61 of file Cgem2DStrip.h.

Referenced by Cgem2DXStrip::DistancetoPrimitive(), IsFired(), and SetFired().

◆ fHighlighted

bool Cgem2DStripBase::fHighlighted
protected

Definition at line 60 of file Cgem2DStrip.h.

Referenced by IsHighlighted(), and SetHighlighted().

◆ fInfoCon

std::vector<TString> Cgem2DStripBase::fInfoCon
protected

Definition at line 54 of file Cgem2DStrip.h.

Referenced by AddInfo(), ClearInfo(), Cgem2DXStrip::CloseInfo(), and Cgem2DVStrip::CloseInfo().

◆ fLayer

Int_t Cgem2DStripBase::fLayer
protected

◆ fSheet

Int_t Cgem2DStripBase::fSheet
protected

Definition at line 58 of file Cgem2DStrip.h.

Referenced by GetSheet().

◆ fsStrip

Int_t Cgem2DStripBase::fsStrip
protected

◆ fsStripFired

Int_t Cgem2DStripBase::fsStripFired
protected

◆ fsStripHL

Int_t Cgem2DStripBase::fsStripHL
protected

◆ fStrip

Int_t Cgem2DStripBase::fStrip
protected

Definition at line 59 of file Cgem2DStrip.h.

Referenced by GetStrip().

◆ fTip

◆ lcStrip

Int_t Cgem2DStripBase::lcStrip
protected

◆ lcStripFired

Int_t Cgem2DStripBase::lcStripFired
protected

◆ lcStripHL

Int_t Cgem2DStripBase::lcStripHL
protected

◆ lwStrip

Int_t Cgem2DStripBase::lwStrip
protected

◆ lwStripFired

Int_t Cgem2DStripBase::lwStripFired
protected

◆ lwStripHL

Int_t Cgem2DStripBase::lwStripHL
protected

The documentation for this class was generated from the following files: