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

#include <AtGRAWUnpacker.h>

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

Public Member Functions

 AtGRAWUnpacker (mapPtr map, Int_t numGrawFiles=4)
 
 ~AtGRAWUnpacker ()=default
 
Double_t GetFPNSigmaThreshold () const
 
Bool_t GetIsPositivePolarity () const
 
Bool_t GetIsSeparatedData () const
 
void SetFPNSigmaThreshold (Double_t val)
 
void SetIsPositivePolarity (Bool_t val)
 
void SetPseudoTopologyFrame (Int_t asadMask, Bool_t check)
 
void SetSaveLastCell (Bool_t val)
 
void SetSubtractFPN (Bool_t val)
 
void SetBaseLineSubtraction (Bool_t val)
 
void SetMutantOneRun (Bool_t val)
 
void SetCheckNumEvents ()
 
virtual void Init () override
 
virtual void FillRawEvent (AtRawEvent &event) override
 
virtual bool IsLastEvent () override
 
virtual void SetInputFileName (std::string fileName) override
 
void SetInputFileName (std::string fileName, std::string fileIDString)
 
virtual Long64_t GetNumEvents () override
 
- Public Member Functions inherited from AtUnpacker
 AtUnpacker (mapPtr map)
 
 ~AtUnpacker ()=default
 
void SetMap (mapPtr map)
 
void SetInitialEventID (Long64_t evtID)
 
virtual void SetSaveFPN (bool val=true)
 
Long64_t GetNextEventID ()
 

Protected Types

using GETDecoder2Ptr = std::unique_ptr< GETDecoder2 >
 
using AtPedestalPtr = std::unique_ptr< AtPedestal >
 
using CoboAndEvent = std::pair< int, int >
 

Protected Attributes

Int_t fNumFiles
 
Int_t fNumEvents {-1}
 
std::vector< GETDecoder2PtrfDecoder
 
std::vector< AtPedestalPtrfPedestal
 
std::vector< Int_t > fCurrentEventID
 
Double_t fFPNSigmaThreshold = 5
 
Bool_t fIsData = false
 
Bool_t fIsNegativePolarity = true
 
Bool_t fIsSaveLastCell = false
 
Bool_t fIsSeparatedData
 
Bool_t fIsSubtractFPN = true
 
Bool_t fIsBaseLineSubtraction {}
 
Bool_t fIsMutantOneRun {false}
 
Bool_t fCheckNumEvents {false}
 
std::string fFileIDString
 
std::mutex fRawEventMutex
 
Int_t fTargetFrameID {}
 
- Protected Attributes inherited from AtUnpacker
mapPtr fMap
 
std::string fInputFileName
 
Long64_t fEventID = 0
 
Long64_t fDataEventID = 0
 
AtRawEventfRawEvent {}
 
Bool_t fSaveFPN {false}
 

Detailed Description

Definition at line 36 of file AtGRAWUnpacker.h.

Member Typedef Documentation

◆ AtPedestalPtr

using AtGRAWUnpacker::AtPedestalPtr = std::unique_ptr<AtPedestal>
protected

Definition at line 39 of file AtGRAWUnpacker.h.

◆ CoboAndEvent

using AtGRAWUnpacker::CoboAndEvent = std::pair<int, int>
protected

Definition at line 40 of file AtGRAWUnpacker.h.

◆ GETDecoder2Ptr

using AtGRAWUnpacker::GETDecoder2Ptr = std::unique_ptr<GETDecoder2>
protected

Definition at line 38 of file AtGRAWUnpacker.h.

Constructor & Destructor Documentation

◆ AtGRAWUnpacker()

AtGRAWUnpacker::AtGRAWUnpacker ( mapPtr  map,
Int_t  numGrawFiles = 4 
)

Definition at line 30 of file AtGRAWUnpacker.cxx.

◆ ~AtGRAWUnpacker()

AtGRAWUnpacker::~AtGRAWUnpacker ( )
default

Member Function Documentation

◆ FillRawEvent()

void AtGRAWUnpacker::FillRawEvent ( AtRawEvent event)
overridevirtual

Implements AtUnpacker.

Definition at line 106 of file AtGRAWUnpacker.cxx.

◆ GetFPNSigmaThreshold()

Double_t AtGRAWUnpacker::GetFPNSigmaThreshold ( ) const
inline

Definition at line 76 of file AtGRAWUnpacker.h.

◆ GetIsPositivePolarity()

Bool_t AtGRAWUnpacker::GetIsPositivePolarity ( ) const
inline

Definition at line 77 of file AtGRAWUnpacker.h.

◆ GetIsSeparatedData()

Bool_t AtGRAWUnpacker::GetIsSeparatedData ( ) const
inline

Definition at line 78 of file AtGRAWUnpacker.h.

◆ GetNumEvents()

Long64_t AtGRAWUnpacker::GetNumEvents ( )
overridevirtual

Implements AtUnpacker.

Definition at line 388 of file AtGRAWUnpacker.cxx.

◆ Init()

void AtGRAWUnpacker::Init ( )
overridevirtual

Implements AtUnpacker.

Definition at line 38 of file AtGRAWUnpacker.cxx.

◆ IsLastEvent()

bool AtGRAWUnpacker::IsLastEvent ( )
overridevirtual

Implements AtUnpacker.

Definition at line 170 of file AtGRAWUnpacker.cxx.

◆ SetBaseLineSubtraction()

void AtGRAWUnpacker::SetBaseLineSubtraction ( Bool_t  val)
inline

Definition at line 86 of file AtGRAWUnpacker.h.

◆ SetCheckNumEvents()

void AtGRAWUnpacker::SetCheckNumEvents ( )
inline

Definition at line 88 of file AtGRAWUnpacker.h.

◆ SetFPNSigmaThreshold()

void AtGRAWUnpacker::SetFPNSigmaThreshold ( Double_t  val)
inline

Definition at line 81 of file AtGRAWUnpacker.h.

◆ SetInputFileName() [1/2]

void AtGRAWUnpacker::SetInputFileName ( std::string  fileName)
overridevirtual

Reimplemented from AtUnpacker.

Definition at line 213 of file AtGRAWUnpacker.cxx.

◆ SetInputFileName() [2/2]

void AtGRAWUnpacker::SetInputFileName ( std::string  fileName,
std::string  fileIDString 
)

Definition at line 221 of file AtGRAWUnpacker.cxx.

◆ SetIsPositivePolarity()

void AtGRAWUnpacker::SetIsPositivePolarity ( Bool_t  val)
inline

Definition at line 82 of file AtGRAWUnpacker.h.

◆ SetMutantOneRun()

void AtGRAWUnpacker::SetMutantOneRun ( Bool_t  val)
inline

Definition at line 87 of file AtGRAWUnpacker.h.

◆ SetPseudoTopologyFrame()

void AtGRAWUnpacker::SetPseudoTopologyFrame ( Int_t  asadMask,
Bool_t  check 
)

Definition at line 382 of file AtGRAWUnpacker.cxx.

◆ SetSaveLastCell()

void AtGRAWUnpacker::SetSaveLastCell ( Bool_t  val)
inline

Definition at line 84 of file AtGRAWUnpacker.h.

◆ SetSubtractFPN()

void AtGRAWUnpacker::SetSubtractFPN ( Bool_t  val)
inline

Definition at line 85 of file AtGRAWUnpacker.h.

Member Data Documentation

◆ fCheckNumEvents

Bool_t AtGRAWUnpacker::fCheckNumEvents {false}
protected

Definition at line 63 of file AtGRAWUnpacker.h.

◆ fCurrentEventID

std::vector<Int_t> AtGRAWUnpacker::fCurrentEventID
protected

Definition at line 50 of file AtGRAWUnpacker.h.

◆ fDecoder

std::vector<GETDecoder2Ptr> AtGRAWUnpacker::fDecoder
protected

Definition at line 48 of file AtGRAWUnpacker.h.

◆ fFileIDString

std::string AtGRAWUnpacker::fFileIDString
protected

Definition at line 66 of file AtGRAWUnpacker.h.

◆ fFPNSigmaThreshold

Double_t AtGRAWUnpacker::fFPNSigmaThreshold = 5
protected

Definition at line 52 of file AtGRAWUnpacker.h.

◆ fIsBaseLineSubtraction

Bool_t AtGRAWUnpacker::fIsBaseLineSubtraction {}
protected

Definition at line 58 of file AtGRAWUnpacker.h.

◆ fIsData

Bool_t AtGRAWUnpacker::fIsData = false
protected

Definition at line 53 of file AtGRAWUnpacker.h.

◆ fIsMutantOneRun

Bool_t AtGRAWUnpacker::fIsMutantOneRun {false}
protected

Checks for the number of events from only the first decoder. Set to true if all files have the same number of events (MuTANT trigger or one cobo).

Definition at line 62 of file AtGRAWUnpacker.h.

◆ fIsNegativePolarity

Bool_t AtGRAWUnpacker::fIsNegativePolarity = true
protected

Definition at line 54 of file AtGRAWUnpacker.h.

◆ fIsSaveLastCell

Bool_t AtGRAWUnpacker::fIsSaveLastCell = false
protected

Definition at line 55 of file AtGRAWUnpacker.h.

◆ fIsSeparatedData

Bool_t AtGRAWUnpacker::fIsSeparatedData
protected

Definition at line 56 of file AtGRAWUnpacker.h.

◆ fIsSubtractFPN

Bool_t AtGRAWUnpacker::fIsSubtractFPN = true
protected

Definition at line 57 of file AtGRAWUnpacker.h.

◆ fNumEvents

Int_t AtGRAWUnpacker::fNumEvents {-1}
protected

Definition at line 46 of file AtGRAWUnpacker.h.

◆ fNumFiles

Int_t AtGRAWUnpacker::fNumFiles
protected

Definition at line 45 of file AtGRAWUnpacker.h.

◆ fPedestal

std::vector<AtPedestalPtr> AtGRAWUnpacker::fPedestal
protected

Definition at line 49 of file AtGRAWUnpacker.h.

◆ fRawEventMutex

std::mutex AtGRAWUnpacker::fRawEventMutex
protected

Definition at line 67 of file AtGRAWUnpacker.h.

◆ fTargetFrameID

Int_t AtGRAWUnpacker::fTargetFrameID {}
protected

Definition at line 69 of file AtGRAWUnpacker.h.


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