ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
AtHit Class Reference

Point in space with charge. More...

#include <AtHit.h>

Inheritance diagram for AtHit:
Inheritance graph
[legend]
Collaboration diagram for AtHit:
Collaboration graph
[legend]

Classes

struct  MCSimPoint
 

Public Types

using XYZPoint = ROOT::Math::XYZPoint
 
using XYZVector = ROOT::Math::XYZVector
 

Public Member Functions

 AtHit (Int_t hitID=-1)
 
 AtHit (Int_t padNum, XYZPoint location, Double_t charge)
 
 AtHit (Int_t hitID, Int_t padNum, XYZPoint location, Double_t charge)
 
 AtHit (const AtHit &)=default
 
 AtHit (AtHit &&)=default
 
AtHitoperator= (const AtHit &)=default
 
AtHitoperator= (AtHit &&)=default
 
virtual ~AtHit ()=default
 
virtual std::unique_ptr< AtHitClone ()
 
H5::CompType GetHDF5Type ()
 Returns the type specification of a hit. More...
 
void SetCharge (Double_t charge)
 
void SetChargeVariance (Double_t chargeVar)
 
void SetPosition (const XYZPoint &pos)
 
virtual void SetPositionVariance (const XYZVector &vec)
 
void SetHitID (Int_t hitID)
 
void SetPadNum (Int_t padNum)
 
void SetTraceIntegral (Double_t integral)
 
void SetHitMult (Int_t HitMult)
 
void SetTimeStamp (Int_t Time)
 
void SetTimeStampCorr (Double_t TimeCorr)
 
void SetTimeStampCorrInter (Double_t TimeCorrInter)
 
void AddMCSimPoint (const AtHit::MCSimPoint &point)
 
Int_t GetHitID () const
 
const XYZPointGetPosition () const
 
const XYZVectorGetPositionVariance () const
 
XYZVector GetPositionSigma () const
 
Double_t GetCharge () const
 
Int_t GetPadNum () const
 
Double_t GetTraceIntegral () const
 
Int_t GetHitMult () const
 
Int_t GetTimeStamp () const
 
Double_t GetTimeStampCorr () const
 
Double_t GetTimeStampCorrInter () const
 
const std::vector< AtHit::MCSimPoint > & GetMCSimPointArray () const
 
 ClassDef (AtHit, 5)
 

Static Public Member Functions

static Bool_t SortHit (const AtHit &lhs, const AtHit &rhs)
 
static Bool_t SortHit (const std::unique_ptr< AtHit > &lhs, const std::unique_ptr< AtHit > &rhs)
 
static Bool_t SortHitTimePtr (const std::unique_ptr< AtHit > &lhs, const std::unique_ptr< AtHit > &rhs)
 
static Bool_t SortHitTime (const AtHit &lhs, const AtHit &rhs)
 

Protected Attributes

Double_t fCharge
 
Double_t fChargeVariance {0}
 
XYZPoint fPosition
 
XYZVector fPositionVariance {}
 
Int_t fHitID
 
Int_t fPadNum
 
Double_t fTraceIntegral {-1}
 
Int_t fHitMult {1}
 
Int_t fTimeStamp {0}
 
Double_t fTimeStampCorr {0}
 
Double_t fTimeStampCorrInter {0}
 
std::vector< AtHit::MCSimPointfMCSimPointArray
 

Detailed Description

Point in space with charge.

A hit describes a point in the detector where charge was deposited, It is the output of a PSA method.

Definition at line 27 of file AtHit.h.

Member Typedef Documentation

◆ XYZPoint

using AtHit::XYZPoint = ROOT::Math::XYZPoint

Definition at line 29 of file AtHit.h.

◆ XYZVector

using AtHit::XYZVector = ROOT::Math::XYZVector

Definition at line 30 of file AtHit.h.

Constructor & Destructor Documentation

◆ AtHit() [1/5]

AtHit::AtHit ( Int_t  hitID = -1)

Definition at line 11 of file AtHit.cxx.

◆ AtHit() [2/5]

AtHit::AtHit ( Int_t  padNum,
XYZPoint  location,
Double_t  charge 
)

Definition at line 18 of file AtHit.cxx.

◆ AtHit() [3/5]

AtHit::AtHit ( Int_t  hitID,
Int_t  padNum,
XYZPoint  location,
Double_t  charge 
)

Definition at line 13 of file AtHit.cxx.

◆ AtHit() [4/5]

AtHit::AtHit ( const AtHit )
default

◆ AtHit() [5/5]

AtHit::AtHit ( AtHit &&  )
default

◆ ~AtHit()

virtual AtHit::~AtHit ( )
virtualdefault

Member Function Documentation

◆ AddMCSimPoint()

void AtHit::AddMCSimPoint ( const AtHit::MCSimPoint point)
inline

Definition at line 76 of file AtHit.h.

◆ ClassDef()

AtHit::ClassDef ( AtHit  ,
 
)

◆ Clone()

std::unique_ptr< AtHit > AtHit::Clone ( )
virtual

Reimplemented in AtHitCluster, and AtHitClusterFull.

Definition at line 20 of file AtHit.cxx.

◆ GetCharge()

Double_t AtHit::GetCharge ( ) const
inline

Definition at line 82 of file AtHit.h.

◆ GetHDF5Type()

H5::CompType AtHit::GetHDF5Type ( )

Returns the type specification of a hit.

Definition at line 30 of file AtHit.cxx.

◆ GetHitID()

Int_t AtHit::GetHitID ( ) const
inline

Definition at line 78 of file AtHit.h.

◆ GetHitMult()

Int_t AtHit::GetHitMult ( ) const
inline

Definition at line 85 of file AtHit.h.

◆ GetMCSimPointArray()

const std::vector<AtHit::MCSimPoint>& AtHit::GetMCSimPointArray ( ) const
inline

Definition at line 89 of file AtHit.h.

◆ GetPadNum()

Int_t AtHit::GetPadNum ( ) const
inline

Definition at line 83 of file AtHit.h.

◆ GetPosition()

const XYZPoint& AtHit::GetPosition ( ) const
inline

Definition at line 79 of file AtHit.h.

◆ GetPositionSigma()

AtHit::XYZVector AtHit::GetPositionSigma ( ) const

Definition at line 25 of file AtHit.cxx.

◆ GetPositionVariance()

const XYZVector& AtHit::GetPositionVariance ( ) const
inline

Definition at line 80 of file AtHit.h.

◆ GetTimeStamp()

Int_t AtHit::GetTimeStamp ( ) const
inline

Definition at line 86 of file AtHit.h.

◆ GetTimeStampCorr()

Double_t AtHit::GetTimeStampCorr ( ) const
inline

Definition at line 87 of file AtHit.h.

◆ GetTimeStampCorrInter()

Double_t AtHit::GetTimeStampCorrInter ( ) const
inline

Definition at line 88 of file AtHit.h.

◆ GetTraceIntegral()

Double_t AtHit::GetTraceIntegral ( ) const
inline

Definition at line 84 of file AtHit.h.

◆ operator=() [1/2]

AtHit& AtHit::operator= ( AtHit &&  )
default

◆ operator=() [2/2]

AtHit& AtHit::operator= ( const AtHit )
default

◆ SetCharge()

void AtHit::SetCharge ( Double_t  charge)
inline

Definition at line 63 of file AtHit.h.

◆ SetChargeVariance()

void AtHit::SetChargeVariance ( Double_t  chargeVar)
inline

Definition at line 64 of file AtHit.h.

◆ SetHitID()

void AtHit::SetHitID ( Int_t  hitID)
inline

Definition at line 67 of file AtHit.h.

◆ SetHitMult()

void AtHit::SetHitMult ( Int_t  HitMult)
inline

Definition at line 71 of file AtHit.h.

◆ SetPadNum()

void AtHit::SetPadNum ( Int_t  padNum)
inline

Definition at line 68 of file AtHit.h.

◆ SetPosition()

void AtHit::SetPosition ( const XYZPoint pos)
inline

Definition at line 65 of file AtHit.h.

◆ SetPositionVariance()

virtual void AtHit::SetPositionVariance ( const XYZVector vec)
inlinevirtual

Reimplemented in AtHitCluster.

Definition at line 66 of file AtHit.h.

◆ SetTimeStamp()

void AtHit::SetTimeStamp ( Int_t  Time)
inline

Definition at line 72 of file AtHit.h.

◆ SetTimeStampCorr()

void AtHit::SetTimeStampCorr ( Double_t  TimeCorr)
inline

Definition at line 73 of file AtHit.h.

◆ SetTimeStampCorrInter()

void AtHit::SetTimeStampCorrInter ( Double_t  TimeCorrInter)
inline

Definition at line 74 of file AtHit.h.

◆ SetTraceIntegral()

void AtHit::SetTraceIntegral ( Double_t  integral)
inline

Definition at line 70 of file AtHit.h.

◆ SortHit() [1/2]

static Bool_t AtHit::SortHit ( const AtHit lhs,
const AtHit rhs 
)
inlinestatic

Definition at line 91 of file AtHit.h.

◆ SortHit() [2/2]

static Bool_t AtHit::SortHit ( const std::unique_ptr< AtHit > &  lhs,
const std::unique_ptr< AtHit > &  rhs 
)
inlinestatic

Definition at line 92 of file AtHit.h.

◆ SortHitTime()

static Bool_t AtHit::SortHitTime ( const AtHit lhs,
const AtHit rhs 
)
inlinestatic

Definition at line 102 of file AtHit.h.

◆ SortHitTimePtr()

static Bool_t AtHit::SortHitTimePtr ( const std::unique_ptr< AtHit > &  lhs,
const std::unique_ptr< AtHit > &  rhs 
)
inlinestatic

Definition at line 97 of file AtHit.h.

Member Data Documentation

◆ fCharge

Double_t AtHit::fCharge
protected

Definition at line 34 of file AtHit.h.

◆ fChargeVariance

Double_t AtHit::fChargeVariance {0}
protected

Definition at line 35 of file AtHit.h.

◆ fHitID

Int_t AtHit::fHitID
protected

Definition at line 38 of file AtHit.h.

◆ fHitMult

Int_t AtHit::fHitMult {1}
protected

Definition at line 42 of file AtHit.h.

◆ fMCSimPointArray

std::vector<AtHit::MCSimPoint> AtHit::fMCSimPointArray
protected

Definition at line 47 of file AtHit.h.

◆ fPadNum

Int_t AtHit::fPadNum
protected

Definition at line 39 of file AtHit.h.

◆ fPosition

XYZPoint AtHit::fPosition
protected

Definition at line 36 of file AtHit.h.

◆ fPositionVariance

XYZVector AtHit::fPositionVariance {}
protected

Definition at line 37 of file AtHit.h.

◆ fTimeStamp

Int_t AtHit::fTimeStamp {0}
protected

Definition at line 43 of file AtHit.h.

◆ fTimeStampCorr

Double_t AtHit::fTimeStampCorr {0}
protected

Definition at line 44 of file AtHit.h.

◆ fTimeStampCorrInter

Double_t AtHit::fTimeStampCorrInter {0}
protected

Definition at line 45 of file AtHit.h.

◆ fTraceIntegral

Double_t AtHit::fTraceIntegral {-1}
protected

Definition at line 41 of file AtHit.h.


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