BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
TH1Set Class Reference

TH1D but with a category axis. More...

#include <TH1Set.hh>

Inheritance diagram for TH1Set:
Inheritance graph
Collaboration diagram for TH1Set:
Collaboration graph

Public Types

typedef HistSparse1D< long long int > HistSparse
 

Public Member Functions

 TH1Set (const char *name, const char *title)
 
const HistSparseGetHistSparse1D () const
 
Int_t Fill (const char *, Double_t) override
 
Int_t Fill (Double_t x) override
 
Int_t Fill (Double_t x, Double_t w) override
 
void DoFillN (Int_t ntimes, const Double_t *x, const Double_t *w, Int_t stride=1) override
 
Int_t AddNewBin (long long int x)
 
Bool_t Add (TF1 *, Double_t, Option_t *) override
 
Bool_t Add (const TH1 *, const TH1 *, Double_t, Double_t) override
 
Bool_t Add (const TH1 *, Double_t) override
 
Double_t GetBinContentByAbscissa (long long int x) const
 
Double_t GetBinErrorByAbscissa (long long int x) const
 
void SetBinContentByAbscissa (long long int x, Double_t newValue)
 
void SetBinErrorByAbscissa (long long int x, Double_t newError)
 

Data Fields

HistSparse data
 
std::map< long long int, Int_t > abscissaToBinIndex
 

Detailed Description

TH1D but with a category axis.

Author
Laurie Nevay

Definition at line 38 of file TH1Set.hh.

Member Typedef Documentation

◆ HistSparse

typedef HistSparse1D<long long int> TH1Set::HistSparse

Definition at line 41 of file TH1Set.hh.

Constructor & Destructor Documentation

◆ TH1Set()

TH1Set::TH1Set ( const char *  name,
const char *  title 
)

Definition at line 33 of file TH1Set.cc.

◆ ~TH1Set()

TH1Set::~TH1Set ( )
override

Definition at line 38 of file TH1Set.cc.

Member Function Documentation

◆ Add() [1/3]

Bool_t TH1Set::Add ( const TH1 *  ,
const TH1 *  ,
Double_t  ,
Double_t   
)
inlineoverride

Definition at line 57 of file TH1Set.hh.

◆ Add() [2/3]

Bool_t TH1Set::Add ( const TH1 *  h1,
Double_t  c1 
)
override

Definition at line 88 of file TH1Set.cc.

◆ Add() [3/3]

Bool_t TH1Set::Add ( TF1 *  ,
Double_t  ,
Option_t *   
)
inlineoverride

Definition at line 56 of file TH1Set.hh.

◆ AddNewBin()

Int_t TH1Set::AddNewBin ( long long int  x)

Definition at line 79 of file TH1Set.cc.

◆ DoFillN()

void TH1Set::DoFillN ( Int_t  ntimes,
const Double_t *  x,
const Double_t *  w,
Int_t  stride = 1 
)
override

Definition at line 70 of file TH1Set.cc.

◆ Fill() [1/3]

Int_t TH1Set::Fill ( const char *  ,
Double_t   
)
inlineoverride

Definition at line 48 of file TH1Set.hh.

◆ Fill() [2/3]

Int_t TH1Set::Fill ( Double_t  x)
inlineoverride

Definition at line 49 of file TH1Set.hh.

◆ Fill() [3/3]

Int_t TH1Set::Fill ( Double_t  x,
Double_t  w 
)
override

Definition at line 41 of file TH1Set.cc.

◆ GetBinContentByAbscissa()

Double_t TH1Set::GetBinContentByAbscissa ( long long int  x) const

Definition at line 105 of file TH1Set.cc.

◆ GetBinErrorByAbscissa()

Double_t TH1Set::GetBinErrorByAbscissa ( long long int  x) const

Definition at line 110 of file TH1Set.cc.

◆ GetHistSparse1D()

const HistSparse & TH1Set::GetHistSparse1D ( ) const
inline

Definition at line 46 of file TH1Set.hh.

◆ SetBinContentByAbscissa()

void TH1Set::SetBinContentByAbscissa ( long long int  x,
Double_t  newValue 
)

Definition at line 115 of file TH1Set.cc.

◆ SetBinErrorByAbscissa()

void TH1Set::SetBinErrorByAbscissa ( long long int  x,
Double_t  newError 
)

Definition at line 123 of file TH1Set.cc.

Field Documentation

◆ abscissaToBinIndex

std::map<long long int, Int_t> TH1Set::abscissaToBinIndex

Definition at line 67 of file TH1Set.hh.

◆ data

HistSparse TH1Set::data

Definition at line 66 of file TH1Set.hh.


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