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

#include <AtE12014.h>

Collaboration diagram for E12014:
Collaboration graph
[legend]

Static Public Member Functions

static void CreateMap ()
 
static void FillChargeSum (TH1 *hist, const std::vector< AtHit * > &hits, AtRawEvent &event, int threshold=0, std::string qName="Qreco")
 
static std::set< int > FillHitSum (TH1 &hist, const std::vector< AtHit * > &hits, int threshold=0, float saturationThreshold=std::numeric_limits< float >::max())
 
static std::set< int > FillHitSum (std::vector< double > &vec, const std::vector< AtHit * > &hits, int threshold=0, float saturationThreshold=std::numeric_limits< float >::max())
 
static int FillHitSums (std::vector< double > &exp, std::vector< double > &sim, const std::vector< AtHit * > &expHits, const std::vector< AtHit * > &simHits, int threshold=0, float saturationThreshold=std::numeric_limits< float >::max(), const AtDigiPar *par=nullptr, std::vector< double > *expADC=nullptr, AtRawEvent *expEvent=nullptr)
 
static void FillHits (std::vector< double > &exp, std::vector< double > &sim, const std::vector< AtHit * > &expHits, const std::vector< AtHit * > &simHits, float satThresh)
 
static void FillZPos (std::vector< double > &exp, std::vector< double > &sim, const std::vector< AtHit * > &expHits, const std::vector< AtHit * > &simHits, float satThresh)
 
static void FillSimHitSum (std::vector< double > &vec, const std::vector< AtHit * > &hits, const std::set< int > &goodPads, double amp, int threshold=0, float saturationThreshold=std::numeric_limits< float >::max())
 
static void FillSimHitSum (TH1 &hist, const std::vector< AtHit * > &hits, const std::set< int > &goodPads, double amp, int threshold=0, float saturationThreshold=std::numeric_limits< float >::max())
 
static void FillSimSum (std::vector< double > &sim, const std::vector< AtHit * > &simHits)
 

Static Public Attributes

static std::shared_ptr< AtMapfMap
 
static int fTBMin = 105
 
static int fThreshold = 1
 
static double fSatThreshold = 4200
 

Detailed Description

Namespace deticated for useful functions specific to the E12014 fission experiment. (now a class becuase ROOT disctionaries are stupid and cause double definitions of variables in the namespace) I'm intentionally breaking the At... naming pattern as this is a class outside the normal framework.

Definition at line 19 of file AtE12014.h.

Member Function Documentation

◆ CreateMap()

void E12014::CreateMap ( )
static

Create and set fMap to the mapping for this experiment including setting the pad pads.

Definition at line 29 of file AtE12014.cxx.

◆ FillChargeSum()

void E12014::FillChargeSum ( TH1 *  hist,
const std::vector< AtHit * > &  hits,
AtRawEvent event,
int  threshold = 0,
std::string  qName = "Qreco" 
)
static

Fill the historgram with charge information from the pads associated with the passed hits

Parameters
[in/out]hist Histrogram to clear and fill.
[in]hitsAdd the charge from the hits associated with these hits.
[in]eventEvent containing the pads to pull charge from.
[in]thresholdOnly add TBs that are above this threshold.
[in]qNameName of the pad augment that contains the charge.

Definition at line 65 of file AtE12014.cxx.

◆ FillHits()

void E12014::FillHits ( std::vector< double > &  exp,
std::vector< double > &  sim,
const std::vector< AtHit * > &  expHits,
const std::vector< AtHit * > &  simHits,
float  satThresh 
)
static

Fill exp and sim with the charge of hits with all good experimental pads

Definition at line 192 of file AtE12014.cxx.

◆ FillHitSum() [1/2]

std::set< int > E12014::FillHitSum ( std::vector< double > &  vec,
const std::vector< AtHit * > &  hits,
int  threshold = 0,
float  saturationThreshold = std::numeric_limits<float>::max() 
)
static

Fill the array with charge information from the passed hits assuming the charge is gauss distributed.

Parameters
[in/out]vec vector to clear and fill.
[in]hitsAdd the charge from the hits associated with these hits.
Returns
The pads associated with the hits used to fill the histogram.

Definition at line 256 of file AtE12014.cxx.

◆ FillHitSum() [2/2]

std::set< int > E12014::FillHitSum ( TH1 &  hist,
const std::vector< AtHit * > &  hits,
int  threshold = 0,
float  saturationThreshold = std::numeric_limits<float>::max() 
)
static

Fill the historgram with charge information from the passed hits assuming the charge is gauss distributed.

Parameters
[in/out]hist Histrogram to clear and fill.
[in]hitsAdd the charge from the hits associated with these hits.
Returns
The pads associated with the hits used to fill the histogram.

Definition at line 94 of file AtE12014.cxx.

◆ FillHitSums()

int E12014::FillHitSums ( std::vector< double > &  exp,
std::vector< double > &  sim,
const std::vector< AtHit * > &  expHits,
const std::vector< AtHit * > &  simHits,
int  threshold = 0,
float  saturationThreshold = std::numeric_limits<float>::max(),
const AtDigiPar par = nullptr,
std::vector< double > *  expADC = nullptr,
AtRawEvent expEvent = nullptr 
)
static

Definition at line 102 of file AtE12014.cxx.

◆ FillSimHitSum() [1/2]

void E12014::FillSimHitSum ( std::vector< double > &  vec,
const std::vector< AtHit * > &  hits,
const std::set< int > &  goodPads,
double  amp,
int  threshold = 0,
float  saturationThreshold = std::numeric_limits<float>::max() 
)
static

Fill the array with charge information from the passed hits assuming the charge is gauss distributed. Designed to be used for simulated hits and only include those that match the passed pads

Parameters
[in/out]vec vector to clear and fill.
[in]hitsAdd the charge from the hits associated with these hits.
[in]ampScalling factor to apply to the simulated charge data (essentially a calibration).
Returns
The pads associated with the hits used to fill the histogram.

Definition at line 297 of file AtE12014.cxx.

◆ FillSimHitSum() [2/2]

void E12014::FillSimHitSum ( TH1 &  hist,
const std::vector< AtHit * > &  hits,
const std::set< int > &  goodPads,
double  amp,
int  threshold = 0,
float  saturationThreshold = std::numeric_limits<float>::max() 
)
static

Definition at line 289 of file AtE12014.cxx.

◆ FillSimSum()

void E12014::FillSimSum ( std::vector< double > &  sim,
const std::vector< AtHit * > &  simHits 
)
static

Definition at line 171 of file AtE12014.cxx.

◆ FillZPos()

void E12014::FillZPos ( std::vector< double > &  exp,
std::vector< double > &  sim,
const std::vector< AtHit * > &  expHits,
const std::vector< AtHit * > &  simHits,
float  satThresh 
)
static

Definition at line 225 of file AtE12014.cxx.

Member Data Documentation

◆ fMap

std::shared_ptr< AtMap > E12014::fMap
static

Mapping to use when executing functions in the E12014 namespace.

Definition at line 24 of file AtE12014.h.

◆ fSatThreshold

double E12014::fSatThreshold = 4200
static

Definition at line 27 of file AtE12014.h.

◆ fTBMin

int E12014::fTBMin = 105
static

Definition at line 25 of file AtE12014.h.

◆ fThreshold

int E12014::fThreshold = 1
static

Definition at line 26 of file AtE12014.h.


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