GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TSharc2 Class Reference

Detailed Description

Definition at line 20 of file TSharc2.h.

Public Member Functions

 TSharc2 ()
 
 TSharc2 (const TSharc2 &rhs)
 
 TSharc2 (TSharc2 &&) noexcept=default
 
 ~TSharc2 () override=default
 
void AddFragment (const std::shared_ptr< const TFragment > &, TChannel *) override
 
virtual void AddHit (TDetectorHit *hit)
 
void BuildHits () override
 
void Clear (Option_t *="") override
 
virtual void ClearTransients ()
 
void Copy (TObject &) const override
 
virtual TDetectorHitGetHit (const int &index) const
 
virtual const std::vector< TDetectorHit * > & GetHitVector () const
 
virtual Short_t GetMultiplicity () const
 
TSharc2HitGetSharc2Hit (const int &i) const
 
int GetSize () const
 
std::vector< TDetectorHit * > & Hits ()
 
const std::vector< TDetectorHit * > & Hits () const
 
virtual bool NoHits () const
 
TSharc2operator= (const TSharc2 &rhs)
 
TSharc2operator= (TSharc2 &&) noexcept=default
 
void Print (Option_t *="") const override
 
void Print (std::ostream &out) const override
 

Static Public Member Functions

static double GetDeadLayerThickness (TSharc2Hit &hit)
 
static double GetDetectorThickness (TSharc2Hit &hit, double dist=-1.0)
 
static TVector3 GetOffset ()
 
static TVector3 GetPosition (int detector, int frontstrip, int backstrip, double X=0.00, double Y=0.00, double Z=0.00)
 
static double GetXOffset ()
 
static double GetYOffset ()
 
static double GetZOffset ()
 
static void SetXYZOffset (const double x, const double y, const double z)
 

Private Member Functions

int CombineHits (TSharc2Hit *, TSharc2Hit *, int, int)
 
void RemoveHits (std::vector< TSharc2Hit > *, std::set< int > *)
 

Private Attributes

std::vector< TFragmentfBackFragments
 
std::vector< TFragmentfFrontFragments
 
std::vector< TDetectorHit * > fHits
 

Static Private Attributes

static double fRingPitch
 
static double fSectorWidthDS2 = 2 * TMath::Pi() / 16.0
 
static double fSectorWidthUS2 = 2 * TMath::Pi() / 16.0
 
static double fSegmentPitch
 
static double fStripBPitch = TSharc2::fZdim / 48.0
 
static double fStripFPitch = TSharc2::fYdim / 24.0
 
static double fStripPitchDS2 = 0.5
 
static double fStripPitchUS2 = 0.5
 
static double fXdim = +72.0
 
static double fXminDS2 = 11.0
 
static double fXminUS2 = 11.0
 
static double fXoffset = +0.00
 
static double fXposUB = +42.5
 
static double fYdim = +72.0
 
static double fYminUB = -36.0
 
static double fYoffset = +0.00
 
static double fZdim = +48.0
 
static double fZminUB = -5.00
 
static double fZoffset = +0.00
 
static double fZposDS2 = 58.5
 
static double fZposUS2 = 72.0
 
+ Inheritance diagram for TSharc2:
+ Collaboration diagram for TSharc2:

Constructor & Destructor Documentation

◆ TSharc2() [1/3]

TSharc2::TSharc2 ( )

Definition at line 59 of file TSharc2.cxx.

References Clear().

◆ TSharc2() [2/3]

TSharc2::TSharc2 ( const TSharc2 & rhs)

Definition at line 64 of file TSharc2.cxx.

References Clear(), and Copy().

◆ TSharc2() [3/3]

TSharc2::TSharc2 ( TSharc2 && )
defaultnoexcept

◆ ~TSharc2()

TSharc2::~TSharc2 ( )
overridedefault

Member Function Documentation

◆ AddFragment()

void TSharc2::AddFragment ( const std::shared_ptr< const TFragment > & frag,
TChannel * chan )
overridevirtual

◆ AddHit()

◆ BuildHits()

void TSharc2::BuildHits ( )
overridevirtual

!

Reimplemented from TDetector.

Definition at line 89 of file TSharc2.cxx.

References TDetector::AddHit(), fBackFragments, fFrontFragments, and TSharc2Hit::SetFront().

◆ Clear()

void TSharc2::Clear ( Option_t * option = "")
override

!

Definition at line 128 of file TSharc2.cxx.

References TDetector::Clear(), fBackFragments, fFrontFragments, fXoffset, fYoffset, and fZoffset.

Referenced by TSharc2(), and TSharc2().

◆ ClearTransients()

void TDetector::ClearTransients ( )
virtualinherited

!

Reimplemented in TGriffin, TS3, TTigress, and TTrific.

Definition at line 54 of file TDetector.cxx.

References TDetector::fHits.

Referenced by TGriffin::ClearTransients(), TTigress::ClearTransients(), and TTrific::ClearTransients().

◆ CombineHits()

int TSharc2::CombineHits ( TSharc2Hit * ,
TSharc2Hit * ,
int ,
int  )
private

!

◆ Copy()

void TSharc2::Copy ( TObject & rhs) const
override

!

Definition at line 154 of file TSharc2.cxx.

References TDetector::Copy().

Referenced by TSharc2().

◆ GetDeadLayerThickness()

double TSharc2::GetDeadLayerThickness ( TSharc2Hit & hit)
static

Definition at line 224 of file TSharc2.cxx.

References TDetectorHit::GetDetector(), and GetDetectorThickness().

◆ GetDetectorThickness()

double TSharc2::GetDetectorThickness ( TSharc2Hit & hit,
double dist = -1.0 )
static

Definition at line 205 of file TSharc2.cxx.

References TDetectorHit::GetDetector(), and TSharc2Hit::GetPosition().

Referenced by GetDeadLayerThickness().

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ GetOffset()

static TVector3 TSharc2::GetOffset ( )
inlinestatic

Definition at line 41 of file TSharc2.h.

References fXoffset, fYoffset, and fZoffset.

◆ GetPosition()

TVector3 TSharc2::GetPosition ( int detector,
int frontstrip,
int backstrip,
double X = 0.00,
double Y = 0.00,
double Z = 0.00 )
static

◆ GetSharc2Hit()

TSharc2Hit * TSharc2::GetSharc2Hit ( const int & i) const
inline

Definition at line 35 of file TSharc2.h.

References TDetector::GetHit().

◆ GetSize()

int TSharc2::GetSize ( ) const
inline

!

Definition at line 49 of file TSharc2.h.

References TDetector::Hits().

◆ GetXOffset()

static double TSharc2::GetXOffset ( )
inlinestatic

Definition at line 38 of file TSharc2.h.

References fXoffset.

Referenced by TSharc2Hit::GetPosition().

◆ GetYOffset()

static double TSharc2::GetYOffset ( )
inlinestatic

Definition at line 39 of file TSharc2.h.

References fYoffset.

Referenced by TSharc2Hit::GetPosition().

◆ GetZOffset()

static double TSharc2::GetZOffset ( )
inlinestatic

Definition at line 40 of file TSharc2.h.

References fZoffset.

Referenced by TSharc2Hit::GetPosition().

◆ Hits() [1/2]

◆ Hits() [2/2]

const std::vector< TDetectorHit * > & TDetector::Hits ( ) const
inlineinherited

Definition at line 79 of file TDetector.h.

References TDetector::fHits.

◆ NoHits()

virtual bool TDetector::NoHits ( ) const
inlinevirtualinherited

◆ operator=() [1/2]

TSharc2 & TSharc2::operator= ( const TSharc2 & rhs)
inline

!

Definition at line 26 of file TSharc2.h.

◆ operator=() [2/2]

TSharc2 & TSharc2::operator= ( TSharc2 && )
defaultnoexcept

◆ Print() [1/2]

void TSharc2::Print ( Option_t * = "") const
override

!

Definition at line 142 of file TSharc2.cxx.

References Print().

Referenced by Print().

◆ Print() [2/2]

void TSharc2::Print ( std::ostream & out) const
overridevirtual

!

Reimplemented from TDetector.

Definition at line 147 of file TSharc2.cxx.

◆ RemoveHits()

void TSharc2::RemoveHits ( std::vector< TSharc2Hit > * hits,
std::set< int > * to_remove )
private

!

Definition at line 118 of file TSharc2.cxx.

◆ SetXYZOffset()

static void TSharc2::SetXYZOffset ( const double x,
const double y,
const double z )
inlinestatic

Definition at line 42 of file TSharc2.h.

References fXoffset, fYoffset, and fZoffset.

Member Data Documentation

◆ fBackFragments

std::vector<TFragment> TSharc2::fBackFragments
private

Definition at line 70 of file TSharc2.h.

Referenced by AddFragment(), BuildHits(), and Clear().

◆ fFrontFragments

std::vector<TFragment> TSharc2::fFrontFragments
private

Definition at line 69 of file TSharc2.h.

Referenced by AddFragment(), BuildHits(), and Clear().

◆ fHits

◆ fRingPitch

double TSharc2::fRingPitch
staticprivate

Definition at line 108 of file TSharc2.h.

◆ fSectorWidthDS2

double TSharc2::fSectorWidthDS2 = 2 * TMath::Pi() / 16.0
staticprivate

Definition at line 94 of file TSharc2.h.

Referenced by GetPosition().

◆ fSectorWidthUS2

double TSharc2::fSectorWidthUS2 = 2 * TMath::Pi() / 16.0
staticprivate

Definition at line 100 of file TSharc2.h.

Referenced by GetPosition().

◆ fSegmentPitch

double TSharc2::fSegmentPitch
staticprivate

Definition at line 109 of file TSharc2.h.

◆ fStripBPitch

double TSharc2::fStripBPitch = TSharc2::fZdim / 48.0
staticprivate

Definition at line 107 of file TSharc2.h.

Referenced by GetPosition().

◆ fStripFPitch

double TSharc2::fStripFPitch = TSharc2::fYdim / 24.0
staticprivate

Definition at line 106 of file TSharc2.h.

Referenced by GetPosition().

◆ fStripPitchDS2

double TSharc2::fStripPitchDS2 = 0.5
staticprivate

Definition at line 93 of file TSharc2.h.

Referenced by GetPosition().

◆ fStripPitchUS2

double TSharc2::fStripPitchUS2 = 0.5
staticprivate

Definition at line 99 of file TSharc2.h.

Referenced by GetPosition().

◆ fXdim

double TSharc2::fXdim = +72.0
staticprivate

Definition at line 83 of file TSharc2.h.

◆ fXminDS2

double TSharc2::fXminDS2 = 11.0
staticprivate

Definition at line 92 of file TSharc2.h.

Referenced by GetPosition().

◆ fXminUS2

double TSharc2::fXminUS2 = 11.0
staticprivate

Definition at line 98 of file TSharc2.h.

Referenced by GetPosition().

◆ fXoffset

double TSharc2::fXoffset = +0.00
staticprivate

!

Definition at line 77 of file TSharc2.h.

Referenced by Clear(), GetOffset(), GetXOffset(), and SetXYZOffset().

◆ fXposUB

double TSharc2::fXposUB = +42.5
staticprivate

total Z dimension of all boxes

Definition at line 86 of file TSharc2.h.

Referenced by GetPosition().

◆ fYdim

double TSharc2::fYdim = +72.0
staticprivate

total X dimension of all boxes

Definition at line 84 of file TSharc2.h.

◆ fYminUB

double TSharc2::fYminUB = -36.0
staticprivate

Definition at line 87 of file TSharc2.h.

Referenced by GetPosition().

◆ fYoffset

double TSharc2::fYoffset = +0.00
staticprivate

!

Definition at line 78 of file TSharc2.h.

Referenced by Clear(), GetOffset(), GetYOffset(), and SetXYZOffset().

◆ fZdim

double TSharc2::fZdim = +48.0
staticprivate

total Y dimension of all boxes

Definition at line 85 of file TSharc2.h.

◆ fZminUB

double TSharc2::fZminUB = -5.00
staticprivate

Definition at line 88 of file TSharc2.h.

Referenced by GetPosition().

◆ fZoffset

double TSharc2::fZoffset = +0.00
staticprivate

!

Definition at line 79 of file TSharc2.h.

Referenced by Clear(), GetOffset(), GetZOffset(), and SetXYZOffset().

◆ fZposDS2

double TSharc2::fZposDS2 = 58.5
staticprivate

Definition at line 91 of file TSharc2.h.

Referenced by GetPosition().

◆ fZposUS2

double TSharc2::fZposUS2 = 72.0
staticprivate

Definition at line 97 of file TSharc2.h.

Referenced by GetPosition().