![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
The TRcmp class defines the observables and algorithms used when analyzing RCMP data.
Public Types | |
enum class | ERcmpBits { kFrontSet = BIT(0) , kBackSet = BIT(1) , kPixelSet = BIT(2) , kBit3 = BIT(3) , kBit4 = BIT(4) , kBit5 = BIT(5) , kBit6 = BIT(6) , kBit7 = BIT(7) } |
Public Member Functions | |
TRcmp () | |
TRcmp (const TRcmp &) | |
TRcmp (TRcmp &&) noexcept=default | |
~TRcmp () override | |
void | AddFragment (const std::shared_ptr< const TFragment > &, TChannel *) override |
virtual void | AddHit (TDetectorHit *hit) |
void | BuildHits () override |
void | Clear (Option_t *opt="all") override |
virtual void | ClearTransients () |
void | Copy (TObject &) const override |
size_t | GetBackFragmentMultiplicity () const |
Short_t | GetBackMultiplicity () |
Int_t | GetCoincidenceTime () const |
size_t | GetFrontFragmentMultiplicity () const |
Short_t | GetFrontMultiplicity () |
virtual TDetectorHit * | GetHit (const int &index) const |
virtual const std::vector< TDetectorHit * > & | GetHitVector () const |
virtual Short_t | GetMultiplicity () const |
Short_t | GetPixelMultiplicity () |
TFragment | GetRcmpBackFrag (const int &i) const |
TRcmpHit * | GetRcmpBackHit (const int &i) const |
TFragment | GetRcmpFrontFrag (const int &i) const |
TRcmpHit * | GetRcmpFrontHit (const int &i) const |
TRcmpHit * | GetRcmpHit (const int &i) const |
Int_t | GetZeroMultiplicity () const |
std::vector< TDetectorHit * > & | Hits () |
const std::vector< TDetectorHit * > & | Hits () const |
virtual bool | NoHits () const |
TRcmp & | operator= (const TRcmp &) |
TRcmp & | operator= (TRcmp &&) noexcept=default |
void | Print (Option_t *opt="") const override |
void | Print (std::ostream &out) const override |
void | SetCoincidenceTime (const int coincTime) |
Private Member Functions | |
void | ClearStatus () |
void | SetBitNumber (ERcmpBits bit, Bool_t set=true) |
Bool_t | TestBitNumber (ERcmpBits bit) const |
Private Attributes | |
std::vector< TFragment > | fBackNFragVector |
std::vector< TRcmpHit * > | fBackNMulVector |
Int_t | fCoincidenceTime = 50 |
std::vector< TFragment > | fFrontPFragVector |
std::vector< TRcmpHit * > | fFrontPMulVector |
std::vector< TDetectorHit * > | fHits |
std::vector< TRcmpHit * > | fPixelMulVector |
TTransientBits< UChar_t > | fRcmpBits |
Int_t | fZeroMultiplicity = 0 |
|
strong |
TRcmp::TRcmp | ( | ) |
TRcmp::TRcmp | ( | const TRcmp & | rhs | ) |
|
defaultnoexcept |
|
override |
destructor
this is the destructor for the class that deletes the pointers to avoid memory leaks
Definition at line 21 of file TRcmp.cxx.
References fBackNMulVector, fFrontPMulVector, and fPixelMulVector.
|
overridevirtual |
! //adds front and back fragments to their respective fragment vectors
this function takes the fragments and stores them into separate front and back vectors
Reimplemented from TDetector.
Definition at line 105 of file TRcmp.cxx.
References TMnemonic::CollectedCharge(), fBackNFragVector, fFrontPFragVector, TChannel::GetMnemonic(), TMnemonic::kN, and TMnemonic::kP.
|
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(), TTigress::AddFragment(), TTip::AddFragment(), TTrific::AddFragment(), TZeroDegree::AddFragment(), TEmma::BuildHits(), TSharc2::BuildHits(), and TSharc::BuildHits().
|
inlineoverridevirtual |
|
override |
!
Definition at line 80 of file TRcmp.cxx.
References TDetector::Clear(), fBackNFragVector, fBackNMulVector, fFrontPFragVector, fFrontPMulVector, fPixelMulVector, and fZeroMultiplicity.
Referenced by TRcmp().
|
inlineprivate |
|
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().
|
override |
!
Copy function
Definition at line 49 of file TRcmp.cxx.
References TDetector::Copy(), fBackNFragVector, fBackNMulVector, fCoincidenceTime, fFrontPFragVector, fFrontPMulVector, fPixelMulVector, and fZeroMultiplicity.
Referenced by TRcmp(), and operator=().
|
inline |
returns the size of the vector that contains all the back fragments (within a build window)
Definition at line 80 of file TRcmp.h.
References fBackNFragVector.
Referenced by GetPixelMultiplicity(), and Print().
Short_t TRcmp::GetBackMultiplicity | ( | ) |
returns the size of the vector that contains all the back hits (within a build window)
this function returns the multiplicity of back strip hits
Definition at line 156 of file TRcmp.cxx.
References fBackNFragVector, fBackNMulVector, fRcmpBits, kBackSet, SetBitNumber(), and TTransientBits< T >::TestBit().
|
inline |
returns the coincidence time between front and back strip of a detector in nanoseconds
Definition at line 89 of file TRcmp.h.
References fCoincidenceTime.
|
inline |
returns the size of the vector that contains all the front fragments (within a build window)
Definition at line 79 of file TRcmp.h.
References fFrontPFragVector.
Referenced by GetPixelMultiplicity(), and Print().
Short_t TRcmp::GetFrontMultiplicity | ( | ) |
returns the size of the vector that contains all the front hits (within a build window)
this function returns the multiplicity of front strip hits
Definition at line 129 of file TRcmp.cxx.
References fFrontPFragVector, fFrontPMulVector, fRcmpBits, kFrontSet, SetBitNumber(), and TTransientBits< T >::TestBit().
|
virtualinherited |
Reimplemented in TGriffin.
Definition at line 61 of file TDetector.cxx.
References TDetector::fHits.
Referenced by TSiLi::AddCluster(), TTigress::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(), TTigress::GetTigressHit(), TTip::GetTipHit(), TTrific::GetTrificHit(), TZeroDegree::GetZeroDegreeHit(), MakeAnalysisHistograms(), and TTigress::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 TTigress::AddFragment(), ExampleEventHelper::Exec(), ExampleTreeHelper::Exec(), TimeWalkHelper::Exec(), AngularCorrelationSelector::FillHistograms(), ExampleEventSelector::FillHistograms(), ExampleTreeSelector::FillHistograms(), TimeWalkSelector::FillHistograms(), TSiLi::GetAddbackMultiplicity(), TTigress::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(), TTigress::Print(), TTip::Print(), TTrific::Print(), and TZeroDegree::Print().
Short_t TRcmp::GetPixelMultiplicity | ( | ) |
returns the size of the vector that contains all the pixel hits (within a build window)
this function returns the multiplicity of hits that were combined for front and back strips (i.e., pixels)
Definition at line 183 of file TRcmp.cxx.
References fBackNFragVector, fFrontPFragVector, fPixelMulVector, fRcmpBits, fZeroMultiplicity, GetBackFragmentMultiplicity(), GetFrontFragmentMultiplicity(), kPixelSet, SetBitNumber(), and TTransientBits< T >::TestBit().
|
inline |
returns the back fragment stored at the index
Definition at line 66 of file TRcmp.h.
References fBackNFragVector.
|
inline |
returns a back strip hit in RCMP (this hit can be used to fill histograms when looping over back multiplicity)
Definition at line 70 of file TRcmp.h.
References fBackNMulVector.
|
inline |
returns the front fragment stored at the index
Definition at line 65 of file TRcmp.h.
References fFrontPFragVector.
|
inline |
returns a front strip hit in RCMP (this hit can be used to fill histograms when looping over front multiplicity)
Definition at line 69 of file TRcmp.h.
References fFrontPMulVector.
|
inline |
returns a pixel hit in RCMP (this hit can be used to fill histograms when looping over pixel multiplicity)
Definition at line 71 of file TRcmp.h.
References fPixelMulVector.
|
inline |
returns the zero multiplicty counter
Definition at line 85 of file TRcmp.h.
References fZeroMultiplicity.
|
inlineinherited |
Definition at line 78 of file TDetector.h.
References TDetector::fHits.
Referenced by TCSM::BuildHits(), TSharc::BuildHits(), TTigress::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 TTigress::BuildHits(), TTigress::GetAddbackMultiplicity(), and TLaBr::GetSuppressedMultiplicity().
|
override |
|
overridevirtual |
!
Reimplemented from TDetector.
Definition at line 223 of file TRcmp.cxx.
References GetBackFragmentMultiplicity(), and GetFrontFragmentMultiplicity().
|
private |
second argument shows that set is true by default
Used to set the flags that are stored in TRcmp
Definition at line 233 of file TRcmp.cxx.
References fRcmpBits, and TTransientBits< T >::SetBit().
Referenced by GetBackMultiplicity(), GetFrontMultiplicity(), and GetPixelMultiplicity().
|
inline |
sets the coincidence time between front and back strip of a detector in nanoseconds
Definition at line 90 of file TRcmp.h.
References fCoincidenceTime.
|
inlineprivate |
returns true if the bit is set
Definition at line 106 of file TRcmp.h.
References fRcmpBits, and TTransientBits< T >::TestBit().
|
private |
stores all back strip fragments
Definition at line 96 of file TRcmp.h.
Referenced by AddFragment(), Clear(), Copy(), GetBackFragmentMultiplicity(), GetBackMultiplicity(), GetPixelMultiplicity(), and GetRcmpBackFrag().
|
private |
! transient vector that stores hits for the back strips (i.e., back multiplicity)
Definition at line 100 of file TRcmp.h.
Referenced by ~TRcmp(), Clear(), Copy(), GetBackMultiplicity(), and GetRcmpBackHit().
|
private |
GetTime for TDetectorHit is in nanoseconds, so this is in nanoseconds, too!
Definition at line 111 of file TRcmp.h.
Referenced by Copy(), GetCoincidenceTime(), and SetCoincidenceTime().
|
private |
stores all front strip fragments
Definition at line 95 of file TRcmp.h.
Referenced by AddFragment(), Clear(), Copy(), GetFrontFragmentMultiplicity(), GetFrontMultiplicity(), GetPixelMultiplicity(), and GetRcmpFrontFrag().
|
private |
! transient vector that stores hits for the front strips (i.e., front multiplicity)
Definition at line 99 of file TRcmp.h.
Referenced by ~TRcmp(), Clear(), Copy(), GetFrontMultiplicity(), and GetRcmpFrontHit().
|
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().
|
private |
! transient vector that stores hits for front+back (i.e., pixel multiplicity)
Definition at line 101 of file TRcmp.h.
Referenced by ~TRcmp(), Clear(), Copy(), GetPixelMultiplicity(), and GetRcmpHit().
|
private |
flags for transient members
Definition at line 103 of file TRcmp.h.
Referenced by ClearStatus(), GetBackMultiplicity(), GetFrontMultiplicity(), GetPixelMultiplicity(), SetBitNumber(), and TestBitNumber().
|
private |
keep track of zero multiplicty with this counter (it is incremented every time the Pixel Multiplicity loops are entered, but the hits are not built)
Definition at line 108 of file TRcmp.h.
Referenced by Clear(), Copy(), GetPixelMultiplicity(), and GetZeroMultiplicity().