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

#include <AtPatternEvent.h>

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

Public Member Functions

 AtPatternEvent (const char *name="AtPatternEvent")
 
 AtPatternEvent (const AtPatternEvent &copy)
 
 AtPatternEvent (const AtBaseEvent &copy)
 
 AtPatternEvent (AtPatternEvent &&copy)=default
 
AtPatternEventoperator= (const AtPatternEvent object)
 
virtual ~AtPatternEvent ()=default
 
void Clear (Option_t *opt=nullptr) override
 
void SetTrackCand (std::vector< AtTrack > tracks)
 
void AddTrack (const AtTrack &track)
 
void AddTrack (AtTrack &&track)
 
template<typename... Ts>
void AddNoise (Ts &&...params)
 
const HitVectorGetNoiseHits ()
 
std::vector< AtTrack > & GetTrackCand ()
 
const std::vector< AtTrack > & GetTrackCand () const
 
 ClassDefOverride (AtPatternEvent, 3)
 
- Public Member Functions inherited from AtBaseEvent
 AtBaseEvent (std::string name="AtBaseEvent")
 
virtual ~AtBaseEvent ()=default
 
 AtBaseEvent (AtBaseEvent &&)=default
 
 AtBaseEvent (const AtBaseEvent &)=default
 
AtBaseEventoperator= (AtBaseEvent object)
 
void Clear (Option_t *opt) override
 
std::pair< AtAuxPad *, bool > AddAuxPad (std::string auxName)
 Add new auxilary pad (AtAuxPad) to event. More...
 
void SetEventID (ULong_t evtid)
 
void SetIsGood (Bool_t value)
 
void SetTimestamp (ULong64_t timestamp, int index=0)
 
void SetNumberOfTimestamps (int numTS)
 
void SetIsExtGate (Bool_t value)
 
void SetEventName (std::string name)
 
ULong_t GetEventID () const
 
ULong64_t GetTimestamp (int index=0) const
 
const std::vector< ULong64_t > & GetTimestamps () const
 
Bool_t IsGood () const
 
Bool_t GetIsExtGate () const
 
std::string GetEventName () const
 
AtAuxPadGetAuxPad (std::string auxPad)
 
const AtAuxPadGetAuxPad (std::string auxPad) const
 
const AuxPadMapGetAuxPads () const
 

Protected Types

using HitPtr = std::unique_ptr< AtHit >
 
using HitVector = std::vector< HitPtr >
 
- Protected Types inherited from AtBaseEvent
using AuxPadMap = std::map< std::string, AtAuxPad >
 

Protected Attributes

std::vector< AtTrackfTrackCand
 
HitVector fNoise
 
- Protected Attributes inherited from AtBaseEvent
ULong_t fEventID = -1
 
Bool_t fIsGood = true
 
Bool_t fIsInGate = false
 
std::vector< ULong64_t > fTimestamp {1}
 
AuxPadMap fAuxPadMap
 
std::string fEventName
 

Friends

void swap (AtPatternEvent &first, AtPatternEvent &second)
 

Detailed Description

Definition at line 19 of file AtPatternEvent.h.

Member Typedef Documentation

◆ HitPtr

using AtPatternEvent::HitPtr = std::unique_ptr<AtHit>
protected

Definition at line 21 of file AtPatternEvent.h.

◆ HitVector

using AtPatternEvent::HitVector = std::vector<HitPtr>
protected

Definition at line 22 of file AtPatternEvent.h.

Constructor & Destructor Documentation

◆ AtPatternEvent() [1/4]

AtPatternEvent::AtPatternEvent ( const char *  name = "AtPatternEvent")

Definition at line 11 of file AtPatternEvent.cxx.

◆ AtPatternEvent() [2/4]

AtPatternEvent::AtPatternEvent ( const AtPatternEvent copy)

Definition at line 13 of file AtPatternEvent.cxx.

◆ AtPatternEvent() [3/4]

AtPatternEvent::AtPatternEvent ( const AtBaseEvent copy)
inline

Definition at line 30 of file AtPatternEvent.h.

◆ AtPatternEvent() [4/4]

AtPatternEvent::AtPatternEvent ( AtPatternEvent &&  copy)
default

◆ ~AtPatternEvent()

virtual AtPatternEvent::~AtPatternEvent ( )
virtualdefault

Member Function Documentation

◆ AddNoise()

template<typename... Ts>
void AtPatternEvent::AddNoise ( Ts &&...  params)
inline

Definition at line 50 of file AtPatternEvent.h.

◆ AddTrack() [1/2]

void AtPatternEvent::AddTrack ( AtTrack &&  track)
inline

Definition at line 47 of file AtPatternEvent.h.

◆ AddTrack() [2/2]

void AtPatternEvent::AddTrack ( const AtTrack track)
inline

Definition at line 46 of file AtPatternEvent.h.

◆ ClassDefOverride()

AtPatternEvent::ClassDefOverride ( AtPatternEvent  ,
 
)

◆ Clear()

void AtPatternEvent::Clear ( Option_t *  opt = nullptr)
override

Definition at line 25 of file AtPatternEvent.cxx.

◆ GetNoiseHits()

const HitVector& AtPatternEvent::GetNoiseHits ( )
inline

Definition at line 54 of file AtPatternEvent.h.

◆ GetTrackCand() [1/2]

std::vector<AtTrack>& AtPatternEvent::GetTrackCand ( )
inline

Definition at line 56 of file AtPatternEvent.h.

◆ GetTrackCand() [2/2]

const std::vector<AtTrack>& AtPatternEvent::GetTrackCand ( ) const
inline

Definition at line 57 of file AtPatternEvent.h.

◆ operator=()

AtPatternEvent & AtPatternEvent::operator= ( const AtPatternEvent  object)

Definition at line 19 of file AtPatternEvent.cxx.

◆ SetTrackCand()

void AtPatternEvent::SetTrackCand ( std::vector< AtTrack tracks)
inline

Definition at line 45 of file AtPatternEvent.h.

Friends And Related Function Documentation

◆ swap

void swap ( AtPatternEvent first,
AtPatternEvent second 
)
friend

Definition at line 37 of file AtPatternEvent.h.

Member Data Documentation

◆ fNoise

HitVector AtPatternEvent::fNoise
protected

Definition at line 25 of file AtPatternEvent.h.

◆ fTrackCand

std::vector<AtTrack> AtPatternEvent::fTrackCand
protected

Definition at line 24 of file AtPatternEvent.h.


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