GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
Definition at line 25 of file TTigress.h.
Public Types | |
enum class | ETigressBits { kAddbackSet = BIT(0) , kSuppression = BIT(1) , kBit2 = BIT(2) , kBit3 = BIT(3) , kBit4 = BIT(4) , kBit5 = BIT(5) , kBit6 = BIT(6) , kBit7 = BIT(7) } |
enum class | ETigressGlobalBits { kSetBGOWave = BIT(0) , kSetCoreWave = BIT(1) , kSetSegWave = BIT(2) , kSetBGOHits = BIT(3) , kForceCrystal = BIT(4) , kArrayBackPos = BIT(5) , kVectorsBuilt = BIT(6) } |
Public Member Functions | |
TTigress () | |
TTigress (const TTigress &) | |
TTigress (TTigress &&) noexcept=default | |
~TTigress () override=default | |
void | AddBGO (TBgoHit &bgo) |
void | AddFragment (const std::shared_ptr< const TFragment > &, TChannel *) override |
virtual void | AddHit (TDetectorHit *hit) |
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) |
TBgoHit | GetBGO (int &i) const |
Short_t | GetBGOMultiplicity () const |
virtual TDetectorHit * | GetHit (const int &index) 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 |
std::vector< TDetectorHit * > & | Hits () |
const std::vector< TDetectorHit * > & | Hits () const |
virtual bool | NoHits () const |
TTigress & | operator= (const TTigress &) |
TTigress & | operator= (TTigress &&) noexcept=default |
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 (const TTigressHit &, double dist=0., bool smear=false) |
static TVector3 | GetPosition (int DetNbr, int CryNbr, int SegNbr, 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) |
Static Public Attributes | |
static std::array< std::array< std::array< bool, 5 >, 4 >, 4 > | fBGOSuppression |
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 |
std::vector< TBgoHit > | fBgos |
std::vector< TDetectorHit * > | fHits |
TTransientBits< UShort_t > | fTigressBits |
std::vector< std::vector< std::shared_ptr< const TFragment > > > | SegmentFragments |
Static Private Attributes | |
static std::function< bool(TDetectorHit *, TDetectorHit *)> | fAddbackCriterion = DefaultAddback |
static std::array< std::array< TVector3, 2 >, 17 > | fCloverCross |
static std::array< TVector3, 17 > | fCloverRadial |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeBluePosition |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeBluePositionBack |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeGreenPosition |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeGreenPositionBack |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeRedPosition |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeRedPositionBack |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeWhitePosition |
static std::array< std::array< std::array< double, 3 >, 9 >, 17 > | fGeWhitePositionBack |
static TTransientBits< UShort_t > | fGlobalTigressBits |
static std::array< std::array< std::array< std::array< TVector3, 9 >, 4 >, 17 >, 2 > | fPositionVectors |
static double | fRadialOffset = 0. |
static std::function< bool(TDetectorHit *, TBgoHit &)> | fSuppressionCriterion = DefaultSuppression |
static double | fTargetOffset = 0. |
|
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 78 of file TTigress.cxx.
References Clear().
TTigress::TTigress | ( | const TTigress & | rhs | ) |
Definition at line 83 of file TTigress.cxx.
References Copy().
|
defaultnoexcept |
|
overridedefault |
|
inline |
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 223 of file TTigress.cxx.
References TDetector::AddHit(), TTigressHit::AddSegment(), ALERTTEXT, TTigressHit::CopyFragment(), TTigressHit::CoreSet(), fBgos, TDetectorHit::GetChannel(), TDetectorHit::GetCrystal(), TChannel::GetCrystalNumber(), TDetectorHit::GetDetector(), TChannel::GetDetectorNumber(), TChannel::GetMnemonic(), TDetector::GetMultiplicity(), TChannel::GetSegmentNumber(), GetTigressHit(), TMnemonic::kA, TMnemonic::kB, TMnemonic::kG, TMnemonic::kS, kSetCoreWave, kSetSegWave, TMnemonic::OutputSensor(), RESET_COLOR, TDetectorHit::SetAddress(), TMnemonic::SubSystem(), and TestGlobalBit().
|
inlinevirtualinherited |
Definition at line 63 of file TDetector.h.
References TDetector::fHits.
Referenced by TAries::AddFragment(), TBgo::AddFragment(), TDescant::AddFragment(), TGenericDetector::AddFragment(), TLaBr::AddFragment(), TPaces::AddFragment(), TSceptar::AddFragment(), TSiLi::AddFragment(), TTAC::AddFragment(), AddFragment(), TTip::AddFragment(), TTrific::AddFragment(), TZeroDegree::AddFragment(), TEmma::BuildHits(), TSharc2::BuildHits(), and TSharc::BuildHits().
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 188 of file TTigress.cxx.
References TGRSIOptions::AnalysisOptions(), TTigressHit::CoreSet(), fBgos, fSuppressionCriterion, TSingleton< TSortingDiagnostics >::Get(), TDetector::Hits(), TAnalysisOptions::IsWaveformFitting(), TDetector::NoHits(), and TSortingDiagnostics::RemovedHits().
|
staticprivate |
!
Definition at line 352 of file TTigress.cxx.
References fCloverCross, fCloverRadial, fGeBluePosition, fGeBluePositionBack, fGeGreenPosition, fGeGreenPositionBack, fGeRedPosition, fGeRedPositionBack, fGeWhitePosition, fGeWhitePositionBack, fPositionVectors, fRadialOffset, fTargetOffset, kVectorsBuilt, and SetGlobalBit().
Referenced by GetPosition(), SetArrayBackPos(), SetRadialOffset(), and SetTargetOffset().
|
override |
!
Definition at line 100 of file TTigress.cxx.
References TDetector::Clear(), fAddbackFrags, fAddbackHits, fBgos, and fTigressBits.
Referenced by TTigress().
|
inlineoverridevirtual |
!
Reimplemented from TDetector.
Definition at line 77 of file TTigress.h.
References TDetector::ClearTransients(), and fTigressBits.
|
override |
!
Definition at line 88 of file TTigress.cxx.
References TDetector::Copy(), fAddbackFrags, fAddbackHits, fBgos, and fTigressBits.
Referenced by TTigress(), and operator=().
|
inline |
Definition at line 89 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 176 of file TTigress.cxx.
References fAddbackHits, and GetAddbackMultiplicity().
Int_t TTigress::GetAddbackMultiplicity | ( | ) |
Definition at line 132 of file TTigress.cxx.
References fAddbackCriterion, fAddbackFrags, fAddbackHits, fTigressBits, TDetector::GetHit(), TDetector::GetMultiplicity(), kAddbackSet, TDetector::NoHits(), TTransientBits< T >::SetBit(), TTigressHit::SumHit(), and TTransientBits< T >::TestBit().
Referenced by GetAddbackHit().
|
inlinestatic |
!
Definition at line 170 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 169 of file TTigress.h.
References kForceCrystal, and TestGlobalBit().
Referenced by DefaultAddback().
|
virtualinherited |
Reimplemented in TGriffin.
Definition at line 61 of file TDetector.cxx.
References TDetector::fHits.
Referenced by TSiLi::AddCluster(), GetAddbackMultiplicity(), TAries::GetAriesHit(), TBgo::GetBgoHit(), TCSM::GetCSMHit(), TDescant::GetDescantHit(), TEagle::GetEagleHit(), TEmma::GetEmmaHit(), TGenericDetector::GetGenericDetectorHit(), TLaBrBgo::GetLaBrBgoHit(), TFippsLaBr::GetLaBrHit(), TLaBr::GetLaBrHit(), TPaces::GetPacesHit(), TS3::GetS3Hit(), TSceptar::GetSceptarHit(), TSharc2::GetSharc2Hit(), TSharc::GetSharcHit(), TSiLi::GetSiLiHit(), TFippsTAC::GetTACHit(), TTAC::GetTACHit(), TTdrClover::GetTdrCloverHit(), TTdrPlastic::GetTdrPlasticHit(), TTdrSiLi::GetTdrSiLiHit(), TTdrTigress::GetTdrTigressHit(), GetTigressHit(), TTip::GetTipHit(), TTrific::GetTrificHit(), TZeroDegree::GetZeroDegreeHit(), MakeAnalysisHistograms(), and Print().
|
inlinevirtualinherited |
Reimplemented in TGriffin.
Definition at line 75 of file TDetector.h.
References TDetector::fHits.
Referenced by TSuppressed::CreateSuppressed(), TSuppressed::CreateSuppressedAddback(), TFipps::FixCrossTalk(), TIfin::FixCrossTalk(), TFipps::GetAddbackMultiplicity(), TIfin::GetAddbackMultiplicity(), TTdrClover::GetAddbackMultiplicity(), TTdrTigress::GetAddbackMultiplicity(), TFipps::GetSuppressedAddbackMultiplicity(), TIfin::GetSuppressedAddbackMultiplicity(), TTdrClover::GetSuppressedAddbackMultiplicity(), TTdrTigress::GetSuppressedAddbackMultiplicity(), TFipps::GetSuppressedMultiplicity(), and TIfin::GetSuppressedMultiplicity().
|
inlinevirtualinherited |
Reimplemented in TGriffin.
Definition at line 73 of file TDetector.h.
References TDetector::fHits.
Referenced by AddFragment(), ExampleEventHelper::Exec(), ExampleTreeHelper::Exec(), TimeWalkHelper::Exec(), AngularCorrelationSelector::FillHistograms(), ExampleEventSelector::FillHistograms(), ExampleTreeSelector::FillHistograms(), TimeWalkSelector::FillHistograms(), TSiLi::GetAddbackMultiplicity(), GetAddbackMultiplicity(), TGriffin::GetLowGainMultiplicity(), TGriffin::GetMultiplicity(), TSharc::GetSize(), main(), MakeAnalysisHistograms(), TAries::Print(), TBgo::Print(), TDescant::Print(), TEmma::Print(), TFipps::Print(), TIfin::Print(), TLaBr::Print(), TPaces::Print(), TSceptar::Print(), TSiLi::Print(), TTAC::Print(), TTdrClover::Print(), TTdrTigress::Print(), Print(), TTip::Print(), TTrific::Print(), and TZeroDegree::Print().
UShort_t TTigress::GetNAddbackFrags | ( | size_t | idx | ) | const |
Definition at line 311 of file TTigress.cxx.
References fAddbackFrags.
|
inline |
|
static |
!
Definition at line 321 of file TTigress.cxx.
References TDetectorHit::GetCrystal(), TDetectorHit::GetDetector(), TTigressHit::GetFirstSeg(), and GetPosition().
|
static |
!
Definition at line 326 of file TTigress.cxx.
References BuildVectors(), fCloverCross, fPositionVectors, GetArrayBackPos(), and GetVectorsBuilt().
Referenced by TTigressHit::GetLastPosition(), GetPosition(), and TTigressHit::GetPosition().
|
inlinestatic |
|
inline |
Definition at line 94 of file TTigress.h.
References fSuppressionCriterion.
|
inline |
Definition at line 57 of file TTigress.h.
References TDetector::GetHit().
Referenced by AddFragment().
|
inlinestatic |
!
Definition at line 171 of file TTigress.h.
References kVectorsBuilt, and TestGlobalBit().
Referenced by GetPosition().
|
inlineinherited |
Definition at line 78 of file TDetector.h.
References TDetector::fHits.
Referenced by TCSM::BuildHits(), TSharc::BuildHits(), BuildHits(), TGriffin::GetHitVector(), TGriffin::GetHitVector(), TSharc2::GetSize(), TLaBr::GetSuppressedMultiplicity(), TGriffin::Print(), and TSiLi::UseFitCharge().
|
inlineinherited |
Definition at line 79 of file TDetector.h.
References TDetector::fHits.
|
inlinevirtualinherited |
Definition at line 76 of file TDetector.h.
References TDetector::fHits.
Referenced by BuildHits(), GetAddbackMultiplicity(), and TLaBr::GetSuppressedMultiplicity().
|
override |
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 116 of file TTigress.cxx.
References TDetector::GetHit(), TDetector::GetMultiplicity(), and TDetectorHit::Print().
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 299 of file TTigress.cxx.
References fAddbackFrags, fAddbackHits, fTigressBits, kAddbackSet, and TTransientBits< T >::SetBit().
|
inline |
Definition at line 84 of file TTigress.h.
References fAddbackCriterion.
|
inlinestatic |
!
Definition at line 159 of file TTigress.h.
References BuildVectors(), kArrayBackPos, and SetGlobalBit().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
Definition at line 127 of file TTigress.h.
References fGlobalTigressBits, and TTransientBits< T >::SetBit().
Referenced by BuildVectors(), SetArrayBackPos(), SetBGOWave(), SetCoreWave(), SetForceCrystal(), and SetSegmentWave().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 90 of file TTigress.h.
References fSuppressionCriterion.
|
inlinestatic |
|
inlinestaticprivate |
Definition at line 128 of file TTigress.h.
References fGlobalTigressBits, and TTransientBits< T >::TestBit().
Referenced by AddFragment(), GetArrayBackPos(), GetBGOWave(), GetCoreWave(), GetForceCrystal(), GetSegmentWave(), and GetVectorsBuilt().
|
staticprivate |
Definition at line 100 of file TTigress.h.
Referenced by GetAddbackCriterion(), GetAddbackMultiplicity(), and SetAddbackCriterion().
|
private |
! Number of crystals involved in creating in the addback hit
Definition at line 131 of file TTigress.h.
Referenced by Clear(), Copy(), GetAddbackMultiplicity(), GetNAddbackFrags(), and ResetAddback().
|
private |
! Used to create addback hits on the fly
Definition at line 130 of file TTigress.h.
Referenced by Clear(), Copy(), GetAddbackHit(), GetAddbackMultiplicity(), and ResetAddback().
|
private |
Definition at line 132 of file TTigress.h.
Referenced by AddBGO(), AddFragment(), BuildHits(), Clear(), Copy(), GetBGO(), GetBGO(), GetBGOMultiplicity(), and GetNBGOs().
|
static |
!
Definition at line 1694 of file TTigress.h.
|
staticprivate |
! clover perpendicular vectors, for smearing
Definition at line 113 of file TTigress.h.
Referenced by BuildVectors(), and GetPosition().
|
staticprivate |
! clover direction vectors
Definition at line 438 of file TTigress.h.
Referenced by BuildVectors().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
privateinherited |
Definition at line 88 of file TDetector.h.
Referenced by TDetector::~TDetector(), TEagle::AddFragment(), TEaglePulser::AddFragment(), TFipps::AddFragment(), TFippsLaBr::AddFragment(), TFippsPulser::AddFragment(), TFippsTAC::AddFragment(), TIfin::AddFragment(), TTdrClover::AddFragment(), TTdrPlastic::AddFragment(), TTdrSiLi::AddFragment(), TTdrTigress::AddFragment(), TDetector::AddHit(), TDetector::Clear(), TDetector::ClearTransients(), TDetector::Copy(), TFipps::GetFippsHit(), TDetector::GetHit(), TDetector::GetHitVector(), TIfin::GetIfinHit(), TDetector::GetMultiplicity(), TFippsLaBr::GetSuppressedMultiplicity(), TTdrClover::GetSuppressedMultiplicity(), TTdrTigress::GetSuppressedMultiplicity(), TDetector::Hits(), TDetector::Hits(), TDetector::NoHits(), TDetector::Print(), TEagle::Print(), TEaglePulser::Print(), TFippsLaBr::Print(), TFippsTAC::Print(), TTdrPlastic::Print(), and TTdrSiLi::Print().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 101 of file TTigress.h.
Referenced by BuildHits(), GetSuppressionCriterion(), and SetSuppressionCriterion().
|
staticprivate |
|
private |
Definition at line 104 of file TTigress.h.
Referenced by Clear(), ClearTransients(), Copy(), GetAddbackMultiplicity(), and ResetAddback().
|
private |
Definition at line 99 of file TTigress.h.