Definition at line 25 of file TTigress.h.
Public Types | |
enum | ETigressBits { ETigressBits::kAddbackSet = BIT(0), ETigressBits::kSuppression = BIT(1), ETigressBits::kBit2 = BIT(2), ETigressBits::kBit3 = BIT(3), ETigressBits::kBit4 = BIT(4), ETigressBits::kBit5 = BIT(5), ETigressBits::kBit6 = BIT(6), ETigressBits::kBit7 = BIT(7) } |
enum | ETigressGlobalBits { ETigressGlobalBits::kSetBGOWave = BIT(0), ETigressGlobalBits::kSetCoreWave = BIT(1), ETigressGlobalBits::kSetSegWave = BIT(2), ETigressGlobalBits::kSetBGOHits = BIT(3), ETigressGlobalBits::kForceCrystal = BIT(4), ETigressGlobalBits::kArrayBackPos = BIT(5), ETigressGlobalBits::kVectorsBuilt = BIT(6) } |
Public Member Functions | |
TTigress () | |
TTigress (const TTigress &) | |
~TTigress () override | |
void | AddBGO (TBgoHit &bgo) |
void | AddFragment (const std::shared_ptr< const TFragment > &, TChannel *) override |
void | BuildHits () override |
void | Clear (Option_t *opt="") override |
void | ClearTransients () override |
void | Copy (TObject &) const override |
std::function< bool(TDetectorHit *, TDetectorHit *)> | GetAddbackCriterion () const |
TTigressHit * | GetAddbackHit (const int &) |
Int_t | GetAddbackMultiplicity () |
TBgoHit | GetBGO (int &i) const |
TBgoHit & | GetBGO (int &i) |
Short_t | GetBGOMultiplicity () const |
virtual TDetectorHit * | GetHit (const int &) const |
virtual const std::vector< TDetectorHit * > & | GetHitVector () const |
virtual Short_t | GetMultiplicity () const |
UShort_t | GetNAddbackFrags (size_t idx) const |
int | GetNBGOs () const |
std::function< bool(TDetectorHit *, TBgoHit &)> | GetSuppressionCriterion () const |
TTigressHit * | GetTigressHit (const int &i) const |
TTigress & | operator= (const TTigress &) |
void | Print (Option_t *opt="") const override |
void | Print (std::ostream &out) const override |
void | ResetAddback () |
void | SetAddbackCriterion (std::function< bool(TDetectorHit *, TDetectorHit *)> criterion) |
void | SetSuppressionCriterion (std::function< bool(TDetectorHit *, TBgoHit &)> criterion) |
Static Public Member Functions | |
static bool | GetArrayBackPos () |
static bool | GetBGOWave () |
static bool | GetCoreWave () |
static double | GetFaceDistance () |
static bool | GetForceCrystal () |
static TVector3 | GetPosition (int DetNbr, int CryNbr, int SegNbr, double dist=0., bool smear=false) |
static TVector3 | GetPosition (const TTigressHit &, double dist=0., bool smear=false) |
static bool | GetSegmentWave () |
static bool | GetVectorsBuilt () |
static bool | SetArrayBackPos (bool set=true) |
static bool | SetBGOWave (bool set=true) |
static bool | SetCoreWave (bool set=true) |
static bool | SetForceCrystal (bool set=true) |
static void | SetRadialOffset (double offset) |
static bool | SetSegmentWave (bool set=true) |
static void | SetTargetOffset (double offset) |
Public Attributes | |
std::vector< TBgoHit > | fBgos |
std::vector< std::vector< std::shared_ptr< const TFragment > > > | SegmentFragments |
Static Public Attributes | |
static bool | BGOSuppression [4][4][5] |
Protected Attributes | |
std::vector< TDetectorHit * > | fHits |
Static Private Member Functions | |
static void | BuildVectors () |
static void | SetGlobalBit (ETigressGlobalBits bit, Bool_t set=true) |
static Bool_t | TestGlobalBit (ETigressGlobalBits bit) |
Private Attributes | |
std::vector< UShort_t > | fAddbackFrags |
std::vector< TDetectorHit * > | fAddbackHits |
TTransientBits< UShort_t > | fTigressBits |
Static Private Attributes | |
static std::function< bool(TDetectorHit *, TDetectorHit *)> | fAddbackCriterion = DefaultAddback |
static TVector3 | fCloverCross [17][2] |
static TVector3 | fCloverRadial [17] |
static TTransientBits< UShort_t > | fgTigressBits |
static TVector3 | fPositionVectors [2][17][4][9] |
static double | fRadialOffset = 0. |
static std::function< bool(TDetectorHit *, TBgoHit &)> | fSuppressionCriterion = DefaultSuppression |
static double | fTargetOffset = 0. |
static double | GeBluePosition [17][9][3] |
static double | GeBluePositionBack [17][9][3] |
static double | GeGreenPosition [17][9][3] |
static double | GeGreenPositionBack [17][9][3] |
static double | GeRedPosition [17][9][3] |
static double | GeRedPositionBack [17][9][3] |
static double | GeWhitePosition [17][9][3] |
static double | GeWhitePositionBack [17][9][3] |
#include <TTigress.h>
|
strong |
Enumerator | |
---|---|
kAddbackSet | |
kSuppression | |
kBit2 | |
kBit3 | |
kBit4 | |
kBit5 | |
kBit6 | |
kBit7 |
Definition at line 27 of file TTigress.h.
|
strong |
Enumerator | |
---|---|
kSetBGOWave | |
kSetCoreWave | |
kSetSegWave | |
kSetBGOHits | |
kForceCrystal | |
kArrayBackPos | |
kVectorsBuilt |
Definition at line 38 of file TTigress.h.
TTigress::TTigress | ( | ) |
Definition at line 83 of file TTigress.cxx.
References Clear().
TTigress::TTigress | ( | const TTigress & | rhs | ) |
Definition at line 88 of file TTigress.cxx.
References Copy().
|
overridedefault |
|
inline |
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 228 of file TTigress.cxx.
References TTigressHit::AddSegment(), ALERTTEXT, TTigressHit::CopyFragment(), TTigressHit::CoreSet(), fBgos, TDetector::fHits, TDetectorHit::GetChannel(), TDetectorHit::GetCrystal(), TChannel::GetCrystalNumber(), TDetectorHit::GetDetector(), TChannel::GetDetectorNumber(), TChannel::GetMnemonic(), TChannel::GetSegmentNumber(), GetTigressHit(), TMnemonic::kA, TMnemonic::kB, TMnemonic::kG, TMnemonic::kS, kSetCoreWave, kSetSegWave, TMnemonic::OutputSensor(), RESET_COLOR, TDetectorHit::SetAddress(), TMnemonic::SubSystem(), and TestGlobalBit().
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 193 of file TTigress.cxx.
References TGRSIOptions::AnalysisOptions(), fBgos, TDetector::fHits, fSuppressionCriterion, TSingleton< TSortingDiagnostics >::Get(), TAnalysisOptions::IsWaveformFitting(), TSortingDiagnostics::RemovedHits(), and TTigressHit::SortSegments().
|
staticprivate |
!
Definition at line 354 of file TTigress.cxx.
References fCloverCross, fCloverRadial, fPositionVectors, fRadialOffset, fTargetOffset, GeBluePosition, GeBluePositionBack, GeGreenPosition, GeGreenPositionBack, GeRedPosition, GeRedPositionBack, GeWhitePosition, GeWhitePositionBack, kVectorsBuilt, and SetGlobalBit().
Referenced by GetPosition(), SetArrayBackPos(), SetRadialOffset(), and SetTargetOffset().
|
override |
!
Definition at line 107 of file TTigress.cxx.
References TDetector::Clear(), fAddbackFrags, fAddbackHits, fBgos, and fTigressBits.
Referenced by TTigress().
|
inlineoverridevirtual |
!
Reimplemented from TDetector.
Definition at line 79 of file TTigress.h.
References TDetector::ClearTransients(), and fTigressBits.
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 95 of file TTigress.cxx.
References TDetector::Copy(), fAddbackFrags, fAddbackHits, fBgos, and fTigressBits.
Referenced by operator=(), and TTigress().
|
inline |
Definition at line 93 of file TTigress.h.
References fAddbackCriterion.
TTigressHit * TTigress::GetAddbackHit | ( | const int & | i | ) |
Get the ith addback hit. This function calls GetAddbackMultiplicity to check the range of the index. This automatically calculates all addback hits if they haven't been calculated before.
Definition at line 181 of file TTigress.cxx.
References fAddbackHits, and GetAddbackMultiplicity().
Int_t TTigress::GetAddbackMultiplicity | ( | ) |
Definition at line 138 of file TTigress.cxx.
References fAddbackCriterion, fAddbackFrags, fAddbackHits, TDetector::fHits, fTigressBits, kAddbackSet, TTransientBits< T >::SetBit(), and TTransientBits< T >::TestBit().
Referenced by GetAddbackHit().
|
inlinestatic |
!
Definition at line 172 of file TTigress.h.
References kArrayBackPos, and TestGlobalBit().
Referenced by GetFaceDistance(), and GetPosition().
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 186 of file TTigress.h.
References GetArrayBackPos().
|
inlinestatic |
!
Definition at line 171 of file TTigress.h.
References kForceCrystal, and TestGlobalBit().
Referenced by DefaultAddback().
|
virtualinherited |
Definition at line 70 of file TDetector.cxx.
References TDetector::fHits.
Referenced by exAnalysis(), TBgo::GetBgoHit(), TCSM::GetCSMHit(), TDescant::GetDescantHit(), TEagle::GetEagleHit(), TEmma::GetEmmaHit(), TGenericDetector::GetGenericDetectorHit(), TLaBrBgo::GetLaBrBgoHit(), TFippsLaBr::GetLaBrHit(), TLaBr::GetLaBrHit(), TPaces::GetPacesHit(), TS3::GetS3Hit(), TSceptar::GetSceptarHit(), TSharc::GetSharcHit(), TSiLi::GetSiLiHit(), TTAC::GetTACHit(), TFippsTAC::GetTACHit(), TTdrClover::GetTdrCloverHit(), TTdrPlastic::GetTdrPlasticHit(), TTdrSiLi::GetTdrSiLiHit(), TTdrTigress::GetTdrTigressHit(), GetTigressHit(), TTip::GetTipHit(), TTrific::GetTrificHit(), TZeroDegree::GetZeroDegreeHit(), and MakeAnalysisHistograms().
|
inlinevirtualinherited |
Reimplemented in TGriffin.
Definition at line 64 of file TDetector.h.
References TDetector::fHits.
Referenced by TSuppressed::CreateSuppressed(), TSuppressed::CreateSuppressedAddback(), TFipps::FixCrossTalk(), TIfin::FixCrossTalk(), TTdrClover::GetAddbackMultiplicity(), TTdrTigress::GetAddbackMultiplicity(), TFipps::GetAddbackMultiplicity(), TIfin::GetAddbackMultiplicity(), TTdrClover::GetSuppressedAddbackMultiplicity(), TTdrTigress::GetSuppressedAddbackMultiplicity(), TFipps::GetSuppressedMultiplicity(), and TIfin::GetSuppressedMultiplicity().
|
inlinevirtualinherited |
Reimplemented in TTrific, and TGriffin.
Definition at line 62 of file TDetector.h.
References TDetector::fHits.
Referenced by exAnalysis(), TimeWalkSelector::FillHistograms(), ExampleEventSelector::FillHistograms(), ExampleTreeSelector::FillHistograms(), AngularCorrelationSelector::FillHistograms(), main(), MakeAnalysisHistograms(), TBgo::Print(), TTdrClover::Print(), TTdrTigress::Print(), TFipps::Print(), TIfin::Print(), and Print().
UShort_t TTigress::GetNAddbackFrags | ( | size_t | idx | ) | const |
Definition at line 315 of file TTigress.cxx.
References fAddbackFrags.
|
inline |
|
static |
!
Definition at line 330 of file TTigress.cxx.
References BuildVectors(), fCloverCross, fPositionVectors, GetArrayBackPos(), and GetVectorsBuilt().
Referenced by TTigressHit::GetLastPosition(), GetPosition(), and TTigressHit::GetPosition().
|
static |
!
Definition at line 325 of file TTigress.cxx.
References TDetectorHit::GetCrystal(), TDetectorHit::GetDetector(), TTigressHit::GetFirstSeg(), and GetPosition().
|
inlinestatic |
|
inline |
Definition at line 98 of file TTigress.h.
References fSuppressionCriterion.
|
inline |
Definition at line 58 of file TTigress.h.
References TDetector::GetHit().
Referenced by AddFragment().
|
inlinestatic |
!
Definition at line 173 of file TTigress.h.
References kVectorsBuilt, and TestGlobalBit().
Referenced by GetPosition().
|
override |
!
Definition at line 117 of file TTigress.cxx.
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 122 of file TTigress.cxx.
References TDetector::fHits, and TDetector::GetMultiplicity().
void TTigress::ResetAddback | ( | ) |
!
Used to clear the addback hits. When playing back a tree, this must be called before building the new addback hits, otherwise, a copy of the old addback hits will be stored instead. This should have changed now, we're using the stored tigress bits to reset the addback
Definition at line 304 of file TTigress.cxx.
References fAddbackFrags, fAddbackHits, fTigressBits, kAddbackSet, and TTransientBits< T >::SetBit().
|
inline |
Definition at line 88 of file TTigress.h.
References fAddbackCriterion.
|
inlinestatic |
!
Definition at line 161 of file TTigress.h.
References BuildVectors(), kArrayBackPos, and SetGlobalBit().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
Definition at line 130 of file TTigress.h.
References fgTigressBits, and TTransientBits< T >::SetBit().
Referenced by BuildVectors(), SetArrayBackPos(), SetBGOWave(), SetCoreWave(), SetForceCrystal(), and SetSegmentWave().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 94 of file TTigress.h.
References fSuppressionCriterion.
|
inlinestatic |
|
inlinestaticprivate |
Definition at line 131 of file TTigress.h.
References fgTigressBits, and TTransientBits< T >::TestBit().
Referenced by AddFragment(), GetArrayBackPos(), GetBGOWave(), GetCoreWave(), GetForceCrystal(), GetSegmentWave(), and GetVectorsBuilt().
|
static |
!
Definition at line 175 of file TTigress.h.
|
staticprivate |
Definition at line 103 of file TTigress.h.
Referenced by GetAddbackCriterion(), GetAddbackMultiplicity(), and SetAddbackCriterion().
|
private |
! Number of crystals involved in creating in the addback hit
Definition at line 134 of file TTigress.h.
Referenced by Clear(), Copy(), GetAddbackMultiplicity(), GetNAddbackFrags(), and ResetAddback().
|
private |
! Used to create addback hits on the fly
Definition at line 133 of file TTigress.h.
Referenced by Clear(), Copy(), GetAddbackHit(), GetAddbackMultiplicity(), and ResetAddback().
std::vector<TBgoHit> TTigress::fBgos |
Definition at line 62 of file TTigress.h.
Referenced by AddBGO(), AddFragment(), BuildHits(), Clear(), Copy(), GetBGO(), GetBGOMultiplicity(), and GetNBGOs().
|
staticprivate |
! clover perpendicular vectors, for smearing
Definition at line 116 of file TTigress.h.
Referenced by BuildVectors(), and GetPosition().
|
staticprivate |
! clover direction vectors
Definition at line 115 of file TTigress.h.
Referenced by BuildVectors().
|
staticprivate |
Definition at line 106 of file TTigress.h.
Referenced by SetGlobalBit(), and TestGlobalBit().
|
protectedinherited |
Definition at line 72 of file TDetector.h.
Referenced by TSiLi::AddCluster(), TEaglePulser::AddFragment(), TFippsPulser::AddFragment(), TGenericDetector::AddFragment(), TPaces::AddFragment(), TTdrSiLi::AddFragment(), TBgo::AddFragment(), TSiLi::AddFragment(), TTip::AddFragment(), TSceptar::AddFragment(), TTdrPlastic::AddFragment(), TTAC::AddFragment(), TFippsTAC::AddFragment(), TEagle::AddFragment(), TDescant::AddFragment(), TZeroDegree::AddFragment(), TTdrClover::AddFragment(), TTdrTigress::AddFragment(), TFipps::AddFragment(), TIfin::AddFragment(), TTrific::AddFragment(), TLaBr::AddFragment(), TFippsLaBr::AddFragment(), AddFragment(), TEmma::BuildHits(), TCSM::BuildHits(), TSharc::BuildHits(), BuildHits(), TSharc::Clear(), TDetector::Clear(), TEmma::Clear(), TTrific::Clear(), TDetector::ClearTransients(), TDetector::Copy(), TSiLi::GetAddbackMultiplicity(), GetAddbackMultiplicity(), TFipps::GetFippsHit(), TDetector::GetHit(), TDetector::GetHitVector(), TIfin::GetIfinHit(), TDetector::GetMultiplicity(), TTrific::GetMultiplicity(), TSharc::GetSize(), TFippsLaBr::GetSuppressedMultiplicity(), TLaBr::GetSuppressedMultiplicity(), TTdrTigress::GetSuppressedMultiplicity(), TTdrClover::GetSuppressedMultiplicity(), TSiLi::Print(), TTdrSiLi::Print(), TTAC::Print(), TPaces::Print(), TFippsTAC::Print(), TTip::Print(), TZeroDegree::Print(), TTdrPlastic::Print(), TSceptar::Print(), TEagle::Print(), TDetector::Print(), TDescant::Print(), TEmma::Print(), TFippsLaBr::Print(), TLaBr::Print(), TTrific::Print(), Print(), TSiLi::UseFitCharge(), and TDetector::~TDetector().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 104 of file TTigress.h.
Referenced by BuildHits(), GetSuppressionCriterion(), and SetSuppressionCriterion().
|
staticprivate |
|
private |
Definition at line 107 of file TTigress.h.
Referenced by Clear(), ClearTransients(), Copy(), GetAddbackMultiplicity(), and ResetAddback().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
std::vector<std::vector<std::shared_ptr<const TFragment> > > TTigress::SegmentFragments |
Definition at line 49 of file TTigress.h.