Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcHitList Class Reference

Builds a Hall C ENGx1INE style list of raw hits from raw data. More...

#include <THcHitList.h>

Inheritance diagram for THcHitList:
Collaboration diagram for THcHitList:

Classes

struct  RefIndexMap
 

Public Member Functions

void CreateMissReportParms (const char *prefix) const
 
virtual Int_t DecodeToHitList (const THaEvData &evdata, Bool_t suppress=kFALSE)
 Populate the hitlist from the raw event data.
 
void DisableSlipCorrection ()
 
TClonesArrayGetHitList () const
 
void InitHitList (THaDetMap *detmap, const char *hitclass, Int_t maxhits, Int_t tdcref_cut=0, Int_t adcref_cut=0)
 Save the electronics module to detector mapping and initialize a hit array of hits of class hitclass.
 
void MissReport (const char *name) const
 
 THcHitList ()
 
virtual ~THcHitList ()
 

Public Attributes

Bool_t fADC_RefTimeBest
 
Int_t fADC_RefTimeCut
 
THaDetMapfdMap
 
Int_t fNMaxRawHits
 
UInt_t fNRawHits
 
TClassfRawHitClass
 
TClonesArrayfRawHitList
 
Bool_t fTDC_RefTimeBest
 
Int_t fTDC_RefTimeCut
 

Protected Member Functions

 ClassDef (THcHitList, 0)
 

Protected Attributes

Bool_t fDisableSlipCorrection
 
std::map< UInt_t, Decoder::Fadc250Module * > fFADCSlotMap
 
Bool_t fHaveFADCInfo
 
Decoder::THaCrateMapfMap
 
Int_t fNADCRef_miss
 
Int_t fNPED
 
Int_t fNRefIndex
 
Int_t fNSA
 
Int_t fNSB
 
UInt_t fNSignals
 
Int_t fNTDCRef_miss
 
THcConfigEvtHandlerfPSE125
 
std::vector< UInt_tfRefIdxDefined
 
std::vector< RefIndexMapfRefIndexMaps
 
THcRawHit::ESignalTypefSignalTypes
 
Int_t fTICrate
 
Int_t fTISlot
 
std::map< UInt_t, Int_tfTrigTimeShiftMap
 

Detailed Description

Builds a Hall C ENGx1INE style list of raw hits from raw data.

Detectors that use hit lists need to inherit from this class as well as THaTrackingDetector or THaNonTrackingDetector

Definition at line 27 of file THcHitList.h.

Constructor & Destructor Documentation

◆ ~THcHitList()

THcHitList::~THcHitList ( )
virtual

Destructor

Definition at line 55 of file THcHitList.cxx.

◆ THcHitList()

THcHitList::THcHitList ( )

Normal constructor.

Definition at line 27 of file THcHitList.cxx.

Member Function Documentation

◆ ClassDef()

THcHitList::ClassDef ( THcHitList  ,
 
)
protected

◆ CreateMissReportParms()

void THcHitList::CreateMissReportParms ( const char *  prefix) const

Create parameters to hold missing reference time statistics

Parameters created are ${prefix}_tdcref_miss and ${prefix}_adcref_miss

Definition at line 662 of file THcHitList.cxx.

◆ DecodeToHitList()

Int_t THcHitList::DecodeToHitList ( const THaEvData evdata,
Bool_t  suppresswarnings = kFALSE 
)
virtual

Populate the hitlist from the raw event data.

Clears the hit list then, finds all populated channels belonging to the detector and add sort it into the hitlist. A given counter in the detector can have at most one entry in the hit list. However, the raw "hit" can contain multiple signal types (e.g. ADC+, ADC-, TDC+, TDC-), or multiplehits for multihit tdcs. The hit list is sorted (by plane, counter) after filling.

Definition at line 205 of file THcHitList.cxx.

◆ DisableSlipCorrection()

void THcHitList::DisableSlipCorrection ( )
inline

Definition at line 43 of file THcHitList.h.

◆ GetHitList()

TClonesArray * THcHitList::GetHitList ( ) const
inline

Definition at line 40 of file THcHitList.h.

◆ InitHitList()

void THcHitList::InitHitList ( THaDetMap detmap,
const char *  hitclass,
Int_t  maxhits,
Int_t  tdcref_cut = 0,
Int_t  adcref_cut = 0 
)

Save the electronics module to detector mapping and initialize a hit array of hits of class hitclass.

Parameters
[in]detmapElectronics mapping made by THcDetectorMap::FillMap
[in]hitclassName of hit class used by this detector
[in]maxhitsMaximum number of hits for this detector

Definition at line 82 of file THcHitList.cxx.

◆ MissReport()

void THcHitList::MissReport ( const char *  name) const

Definition at line 675 of file THcHitList.cxx.

Member Data Documentation

◆ fADC_RefTimeBest

Bool_t THcHitList::fADC_RefTimeBest

Definition at line 50 of file THcHitList.h.

◆ fADC_RefTimeCut

Int_t THcHitList::fADC_RefTimeCut

Definition at line 48 of file THcHitList.h.

◆ fDisableSlipCorrection

Bool_t THcHitList::fDisableSlipCorrection
protected

Definition at line 87 of file THcHitList.h.

◆ fdMap

THaDetMap* THcHitList::fdMap

Definition at line 54 of file THcHitList.h.

◆ fFADCSlotMap

std::map<UInt_t, Decoder::Fadc250Module*> THcHitList::fFADCSlotMap
protected

Definition at line 89 of file THcHitList.h.

◆ fHaveFADCInfo

Bool_t THcHitList::fHaveFADCInfo
protected

Definition at line 76 of file THcHitList.h.

◆ fMap

Decoder::THaCrateMap* THcHitList::fMap
protected

Definition at line 84 of file THcHitList.h.

◆ fNADCRef_miss

Int_t THcHitList::fNADCRef_miss
protected

Definition at line 82 of file THcHitList.h.

◆ fNMaxRawHits

Int_t THcHitList::fNMaxRawHits

Definition at line 46 of file THcHitList.h.

◆ fNPED

Int_t THcHitList::fNPED
protected

Definition at line 79 of file THcHitList.h.

◆ fNRawHits

UInt_t THcHitList::fNRawHits

Definition at line 45 of file THcHitList.h.

◆ fNRefIndex

Int_t THcHitList::fNRefIndex
protected

Definition at line 71 of file THcHitList.h.

◆ fNSA

Int_t THcHitList::fNSA
protected

Definition at line 77 of file THcHitList.h.

◆ fNSB

Int_t THcHitList::fNSB
protected

Definition at line 78 of file THcHitList.h.

◆ fNSignals

UInt_t THcHitList::fNSignals
protected

Definition at line 72 of file THcHitList.h.

◆ fNTDCRef_miss

Int_t THcHitList::fNTDCRef_miss
protected

Definition at line 81 of file THcHitList.h.

◆ fPSE125

THcConfigEvtHandler* THcHitList::fPSE125
protected

Definition at line 75 of file THcHitList.h.

◆ fRawHitClass

TClass* THcHitList::fRawHitClass

Definition at line 52 of file THcHitList.h.

◆ fRawHitList

TClonesArray* THcHitList::fRawHitList

Definition at line 51 of file THcHitList.h.

◆ fRefIdxDefined

std::vector<UInt_t> THcHitList::fRefIdxDefined
protected

Definition at line 69 of file THcHitList.h.

◆ fRefIndexMaps

std::vector<RefIndexMap> THcHitList::fRefIndexMaps
protected

Definition at line 68 of file THcHitList.h.

◆ fSignalTypes

THcRawHit::ESignalType* THcHitList::fSignalTypes
protected

Definition at line 73 of file THcHitList.h.

◆ fTDC_RefTimeBest

Bool_t THcHitList::fTDC_RefTimeBest

Definition at line 49 of file THcHitList.h.

◆ fTDC_RefTimeCut

Int_t THcHitList::fTDC_RefTimeCut

Definition at line 47 of file THcHitList.h.

◆ fTICrate

Int_t THcHitList::fTICrate
protected

Definition at line 86 of file THcHitList.h.

◆ fTISlot

Int_t THcHitList::fTISlot
protected

Definition at line 85 of file THcHitList.h.

◆ fTrigTimeShiftMap

std::map<UInt_t, Int_t> THcHitList::fTrigTimeShiftMap
protected

Definition at line 88 of file THcHitList.h.


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