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

Class to calculate dE/dx for fission fragments (but possibly generally). More...

#include <AtTabEnergyLoss.h>

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

Public Member Functions

 AtTabEnergyLoss (DataHandling::AtBranch &fissionBranch)
 
 ~AtTabEnergyLoss ()
 
void InitTab () override
 
void Exec () override
 Called after the run's Exec() to update tab. More...
 
void Update (DataHandling::AtSubject *sub) override
 
- Public Member Functions inherited from AtTabCanvas
 AtTabCanvas (TString name, Int_t rows=1, Int_t cols=1)
 
- Public Member Functions inherited from AtTabBase
 AtTabBase (TString tabName)
 
virtual ~AtTabBase ()=default
 
void Init ()
 Called in the init stage of the run. More...
 
AtTabInfoGetTabInfo ()
 
void SetTabName (TString name)
 
- Public Member Functions inherited from DataHandling::AtObserver
virtual ~AtObserver ()=default
 

Static Public Member Functions

static float GetZ (int Zcn, float proxy)
 

Protected Types

using XYZVector = ROOT::Math::XYZVector
 
using XYZPoint = ROOT::Math::XYZPoint
 
using TH1Ptr = std::unique_ptr< TH1F >
 
using HitVector = std::vector< AtHit * >
 

Protected Attributes

AtTabInfoFairRoot< AtRawEventfRawEvent
 
AtTabInfoFairRoot< AtFissionEventfFissionEvent
 
DataHandling::AtTreeEntryfEntry
 
DataHandling::AtSimpleType< float > fBinWidth
 
DataHandling::AtSimpleType< float > fSigmaFromHit
 
DataHandling::AtSimpleType< int > fTBtoAvg
 
const std::array< Color_t, 2 > fHistColors = {9, 31}
 
THStack dEdxStack {"hs", "Stacked dE/dx curves"}
 
std::array< TH1Ptr, 2 > dEdx
 
THStack dEdxStackZ {"hsz", "Stacked dE/dx curves bin in Z"}
 
std::array< TH1Ptr, 2 > dEdxZ
 
THStack dEdxStackSum {"hsSum", "dQ/dZ (summing charge)"}
 
std::array< TH1Ptr, 2 > fSumQ
 
THStack dEdxStackFit {"hsFit", "dQ/dZ (summing gaussian fits)"}
 
std::array< TH1Ptr, 2 > fSumFit
 
TH1Ptr fRatioQ
 
TH1Ptr fRatioFit
 
TH1Ptr fProxy
 
TH1Ptr fZHist
 
std::array< float, 2 > fTrackStart {}
 
std::array< AtHit *, 2 > fFirstHit {nullptr, nullptr}
 
std::unique_ptr< TF1 > fRatioFunc
 
std::unique_ptr< TF1 > fProxyFunc
 
std::unique_ptr< TF1 > fZFunc
 
std::vector< AtPadReferencefVetoPads
 
- Protected Attributes inherited from AtTabCanvas
TCanvas * fCanvas {nullptr}
 
Int_t fRows
 
Int_t fCols
 
- Protected Attributes inherited from AtTabBase
Int_t fTabId {0}
 
TString fTabName
 
std::unique_ptr< AtTabInfofTabInfo {std::make_unique<AtTabInfo>()}
 

Additional Inherited Members

- Protected Member Functions inherited from AtTabCanvas
void MakeTab (TEveWindowSlot *slot) override
 Create the gui components of the tab in the passed window slot. More...
 
void UpdateCanvas ()
 
- Protected Member Functions inherited from AtTabBase
template<typename T >
T * GetFairRootInfo (std::string infoName=T::Class_Name())
 
- Static Protected Attributes inherited from AtTabBase
static int fNumTabs = 0
 

Detailed Description

Class to calculate dE/dx for fission fragments (but possibly generally).

Definition at line 35 of file AtTabEnergyLoss.h.

Member Typedef Documentation

◆ HitVector

using AtTabEnergyLoss::HitVector = std::vector<AtHit *>
protected

Definition at line 40 of file AtTabEnergyLoss.h.

◆ TH1Ptr

using AtTabEnergyLoss::TH1Ptr = std::unique_ptr<TH1F>
protected

Definition at line 39 of file AtTabEnergyLoss.h.

◆ XYZPoint

using AtTabEnergyLoss::XYZPoint = ROOT::Math::XYZPoint
protected

Definition at line 38 of file AtTabEnergyLoss.h.

◆ XYZVector

using AtTabEnergyLoss::XYZVector = ROOT::Math::XYZVector
protected

Definition at line 37 of file AtTabEnergyLoss.h.

Constructor & Destructor Documentation

◆ AtTabEnergyLoss()

AtTabEnergyLoss::AtTabEnergyLoss ( DataHandling::AtBranch fissionBranch)

Sum of Q information

Definition at line 41 of file AtTabEnergyLoss.cxx.

◆ ~AtTabEnergyLoss()

AtTabEnergyLoss::~AtTabEnergyLoss ( )

Definition at line 98 of file AtTabEnergyLoss.cxx.

Member Function Documentation

◆ Exec()

void AtTabEnergyLoss::Exec ( )
inlineoverridevirtual

Called after the run's Exec() to update tab.

Implements AtTabBase.

Definition at line 87 of file AtTabEnergyLoss.h.

◆ GetZ()

float AtTabEnergyLoss::GetZ ( int  Zcn,
float  proxy 
)
static

Definition at line 157 of file AtTabEnergyLoss.cxx.

◆ InitTab()

void AtTabEnergyLoss::InitTab ( )
overridevirtual

Responsible for creating the fTabInfo object that will be updated on each event. That fTabInfo object will be initialized without user input though

Implements AtTabBase.

Definition at line 103 of file AtTabEnergyLoss.cxx.

◆ Update()

void AtTabEnergyLoss::Update ( DataHandling::AtSubject sub)
overridevirtual

Implements DataHandling::AtObserver.

Definition at line 105 of file AtTabEnergyLoss.cxx.

Member Data Documentation

◆ dEdx

std::array<TH1Ptr, 2> AtTabEnergyLoss::dEdx
protected

Definition at line 57 of file AtTabEnergyLoss.h.

◆ dEdxStack

THStack AtTabEnergyLoss::dEdxStack {"hs", "Stacked dE/dx curves"}
protected

Definition at line 56 of file AtTabEnergyLoss.h.

◆ dEdxStackFit

THStack AtTabEnergyLoss::dEdxStackFit {"hsFit", "dQ/dZ (summing gaussian fits)"}
protected

Definition at line 66 of file AtTabEnergyLoss.h.

◆ dEdxStackSum

THStack AtTabEnergyLoss::dEdxStackSum {"hsSum", "dQ/dZ (summing charge)"}
protected

Definition at line 63 of file AtTabEnergyLoss.h.

◆ dEdxStackZ

THStack AtTabEnergyLoss::dEdxStackZ {"hsz", "Stacked dE/dx curves bin in Z"}
protected

Definition at line 59 of file AtTabEnergyLoss.h.

◆ dEdxZ

std::array<TH1Ptr, 2> AtTabEnergyLoss::dEdxZ
protected

Definition at line 60 of file AtTabEnergyLoss.h.

◆ fBinWidth

DataHandling::AtSimpleType<float> AtTabEnergyLoss::fBinWidth
protected

Definition at line 46 of file AtTabEnergyLoss.h.

◆ fEntry

DataHandling::AtTreeEntry& AtTabEnergyLoss::fEntry
protected

Definition at line 45 of file AtTabEnergyLoss.h.

◆ fFirstHit

std::array<AtHit *, 2> AtTabEnergyLoss::fFirstHit {nullptr, nullptr}
protected

Definition at line 75 of file AtTabEnergyLoss.h.

◆ fFissionEvent

AtTabInfoFairRoot<AtFissionEvent> AtTabEnergyLoss::fFissionEvent
protected

Definition at line 43 of file AtTabEnergyLoss.h.

◆ fHistColors

const std::array<Color_t, 2> AtTabEnergyLoss::fHistColors = {9, 31}
protected

Definition at line 54 of file AtTabEnergyLoss.h.

◆ fProxy

TH1Ptr AtTabEnergyLoss::fProxy
protected

Definition at line 71 of file AtTabEnergyLoss.h.

◆ fProxyFunc

std::unique_ptr<TF1> AtTabEnergyLoss::fProxyFunc
protected

Definition at line 78 of file AtTabEnergyLoss.h.

◆ fRatioFit

TH1Ptr AtTabEnergyLoss::fRatioFit
protected

Definition at line 70 of file AtTabEnergyLoss.h.

◆ fRatioFunc

std::unique_ptr<TF1> AtTabEnergyLoss::fRatioFunc
protected

Definition at line 77 of file AtTabEnergyLoss.h.

◆ fRatioQ

TH1Ptr AtTabEnergyLoss::fRatioQ
protected

Definition at line 69 of file AtTabEnergyLoss.h.

◆ fRawEvent

AtTabInfoFairRoot<AtRawEvent> AtTabEnergyLoss::fRawEvent
protected

Definition at line 42 of file AtTabEnergyLoss.h.

◆ fSigmaFromHit

DataHandling::AtSimpleType<float> AtTabEnergyLoss::fSigmaFromHit
protected

Number of std dev to go after the mean of the first hit before calcualting the ratio of the histograms.

Definition at line 50 of file AtTabEnergyLoss.h.

◆ fSumFit

std::array<TH1Ptr, 2> AtTabEnergyLoss::fSumFit
protected

Definition at line 67 of file AtTabEnergyLoss.h.

◆ fSumQ

std::array<TH1Ptr, 2> AtTabEnergyLoss::fSumQ
protected

Definition at line 64 of file AtTabEnergyLoss.h.

◆ fTBtoAvg

DataHandling::AtSimpleType<int> AtTabEnergyLoss::fTBtoAvg
protected

Definition at line 51 of file AtTabEnergyLoss.h.

◆ fTrackStart

std::array<float, 2> AtTabEnergyLoss::fTrackStart {}
protected

Definition at line 74 of file AtTabEnergyLoss.h.

◆ fVetoPads

std::vector<AtPadReference> AtTabEnergyLoss::fVetoPads
protected

Definition at line 81 of file AtTabEnergyLoss.h.

◆ fZFunc

std::unique_ptr<TF1> AtTabEnergyLoss::fZFunc
protected

Definition at line 79 of file AtTabEnergyLoss.h.

◆ fZHist

TH1Ptr AtTabEnergyLoss::fZHist
protected

Definition at line 72 of file AtTabEnergyLoss.h.


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