BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnECALRaw2Digit Class Reference

#include <BmnECALRaw2Digit.h>

Collaboration diagram for BmnECALRaw2Digit:

Public Member Functions

 BmnECALRaw2Digit ()
 BmnECALRaw2Digit (ULong_t runId)
 BmnECALRaw2Digit (const char *map_file_name, const char *calibr_file_name, const char *geo_file_name)
virtual ~BmnECALRaw2Digit ()
void print ()
Bool_t LoadAdcMap (const char *map_file_name)
Bool_t LoadCalibration (const char *calibr_file_name)
Bool_t LoadGeometry (const char *geo_file_name)
void FillEvent (TClonesArray *data, TClonesArray *ecaldigit)
 BmnECALRaw2Digit ()
 BmnECALRaw2Digit (ULong_t runId)
 BmnECALRaw2Digit (const char *map_file_name, const char *calibr_file_name, const char *geo_file_name)
virtual ~BmnECALRaw2Digit ()
void print ()
Bool_t LoadAdcMap (const char *map_file_name)
Bool_t LoadCalibration (const char *calibr_file_name)
Bool_t LoadGeometry (const char *geo_file_name)
void FillEvent (TClonesArray *data, TClonesArray *ecaldigit)

Private Member Functions

Bool_t UseNovosibirskFit (BmnADCDigit< Short_t > *digit, Int_t chan, TClonesArray *ecaldigit)
Bool_t UseNovosibirskFit (BmnADCDigit< Short_t > *digit, Int_t chan, TClonesArray *ecaldigit)

Static Private Member Functions

static Double_t Novosibirsk (Double_t *x, Double_t *p)
static Double_t Novosibirsk (Double_t *x, Double_t *p)

Private Attributes

BmnECALMapElement fECALMapArray [MAX_ECAL_CHANNELS+1]
struct { 
   Int_t   sample0 
   Int_t   samples 
   Float_t   min 
   Float_t   max 
} fPedestal = {0, 8, -30., 30.}
struct { 
   Int_t   sample0 
   Int_t   samples 
   Float_t   min 
   Float_t   max 
} fSignal = {15, 20, -5e4, -50.}
struct { 
   Int_t   sample0 
   Int_t   samples 
   Float_t   min 
   Float_t   max 
} fPedestal = {0, 8, -30., 30.}
struct { 
   Int_t   sample0 
   Int_t   samples 
   Float_t   min 
   Float_t   max 
} fSignal = {15, 20, -5e4, -50.}

Detailed Description

Definition at line 15 of file BmnECALRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnECALRaw2Digit() [1/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( )
inline

Definition at line 18 of file BmnECALRaw2Digit.h.

Referenced by Novosibirsk().

Here is the caller graph for this function:

◆ BmnECALRaw2Digit() [2/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( ULong_t runId)

Definition at line 19 of file BmnECALRaw2Digit.cxx.

References TString::Data(), TString::Format(), LoadAdcMap(), LoadCalibration(), and LoadGeometry().

Here is the call graph for this function:

◆ BmnECALRaw2Digit() [3/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( const char * map_file_name,
const char * calibr_file_name,
const char * geo_file_name )

Definition at line 66 of file BmnECALRaw2Digit.cxx.

References LoadAdcMap(), LoadCalibration(), and LoadGeometry().

Here is the call graph for this function:

◆ ~BmnECALRaw2Digit() [1/2]

virtual BmnECALRaw2Digit::~BmnECALRaw2Digit ( )
inlinevirtual

Definition at line 21 of file BmnECALRaw2Digit.h.

◆ BmnECALRaw2Digit() [4/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( )
inline

Definition at line 18 of file BmnECALRaw2Digit.h.

◆ BmnECALRaw2Digit() [5/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( ULong_t runId)

◆ BmnECALRaw2Digit() [6/6]

BmnECALRaw2Digit::BmnECALRaw2Digit ( const char * map_file_name,
const char * calibr_file_name,
const char * geo_file_name )

◆ ~BmnECALRaw2Digit() [2/2]

virtual BmnECALRaw2Digit::~BmnECALRaw2Digit ( )
inlinevirtual

Definition at line 21 of file BmnECALRaw2Digit.h.

Member Function Documentation

◆ FillEvent() [1/2]

void BmnECALRaw2Digit::FillEvent ( TClonesArray * data,
TClonesArray * ecaldigit )

Definition at line 189 of file BmnECALRaw2Digit.cxx.

References TObjArray::At(), fECALMapArray, BmnADCDigit< IntType >::GetChannel(), TObjArray::GetEntriesFast(), BmnADCDigit< IntType >::GetSerial(), i, MAX_ECAL_CHANNELS, and UseNovosibirskFit().

Here is the call graph for this function:

◆ FillEvent() [2/2]

void BmnECALRaw2Digit::FillEvent ( TClonesArray * data,
TClonesArray * ecaldigit )

◆ LoadAdcMap() [1/2]

Bool_t BmnECALRaw2Digit::LoadAdcMap ( const char * map_file_name)

Definition at line 87 of file BmnECALRaw2Digit.cxx.

References fECALMapArray, x, and y.

Referenced by BmnECALRaw2Digit(), and BmnECALRaw2Digit().

Here is the caller graph for this function:

◆ LoadAdcMap() [2/2]

Bool_t BmnECALRaw2Digit::LoadAdcMap ( const char * map_file_name)

◆ LoadCalibration() [1/2]

Bool_t BmnECALRaw2Digit::LoadCalibration ( const char * calibr_file_name)

Definition at line 114 of file BmnECALRaw2Digit.cxx.

References fECALMapArray.

Referenced by BmnECALRaw2Digit(), and BmnECALRaw2Digit().

Here is the caller graph for this function:

◆ LoadCalibration() [2/2]

Bool_t BmnECALRaw2Digit::LoadCalibration ( const char * calibr_file_name)

◆ LoadGeometry() [1/2]

Bool_t BmnECALRaw2Digit::LoadGeometry ( const char * geo_file_name)

Definition at line 139 of file BmnECALRaw2Digit.cxx.

References fECALMapArray, TGeoNode::GetDaughter(), TGeoNode::GetNdaughters(), TGeoVolume::GetNode(), TGeoNode::GetNumber(), i, TGeoVolume::Import(), and n.

Referenced by BmnECALRaw2Digit(), and BmnECALRaw2Digit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadGeometry() [2/2]

Bool_t BmnECALRaw2Digit::LoadGeometry ( const char * geo_file_name)

◆ Novosibirsk() [1/2]

Double_t BmnECALRaw2Digit::Novosibirsk ( Double_t * x,
Double_t * p )
staticprivate

Definition at line 294 of file BmnECALRaw2Digit.cxx.

References TMath::Abs(), TMath::ASinH(), TMath::Exp(), TMath::Log(), TMath::Power(), and x.

Referenced by UseNovosibirskFit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Novosibirsk() [2/2]

Double_t BmnECALRaw2Digit::Novosibirsk ( Double_t * x,
Double_t * p )
staticprivate

References BmnECALRaw2Digit(), and x.

Here is the call graph for this function:

◆ print() [1/2]

void BmnECALRaw2Digit::print ( )

Definition at line 73 of file BmnECALRaw2Digit.cxx.

References fECALMapArray, fPedestal, fSignal, MAX_ECAL_CHANNELS, and BmnECALMapElement::PrintTitle().

Here is the call graph for this function:

◆ print() [2/2]

void BmnECALRaw2Digit::print ( )

◆ UseNovosibirskFit() [1/2]

Bool_t BmnECALRaw2Digit::UseNovosibirskFit ( BmnADCDigit< Short_t > * digit,
Int_t chan,
TClonesArray * ecaldigit )
private

Definition at line 207 of file BmnECALRaw2Digit.cxx.

References TClonesArray::ConstructedAt(), TF1::Derivative(), fECALMapArray, TGraph::Fit(), fPedestal, fSignal, TObjArray::GetEntriesFast(), TGraph::GetFunction(), TF1::GetMinimum(), TF1::GetMinimumX(), BmnADCDigit< IntType >::GetNSamples(), BmnADCDigit< IntType >::GetValue(), TF1::GetX(), i, TF1::Integral(), n, Novosibirsk(), TGraph::RemovePoint(), BmnECALDigit::Set(), TF1::SetParameters(), TGraph::SetPoint(), v, and y.

Referenced by FillEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UseNovosibirskFit() [2/2]

Bool_t BmnECALRaw2Digit::UseNovosibirskFit ( BmnADCDigit< Short_t > * digit,
Int_t chan,
TClonesArray * ecaldigit )
private

Member Data Documentation

◆ fECALMapArray

BmnECALMapElement BmnECALRaw2Digit::fECALMapArray
private

◆ [struct] [1/2]

struct { ... } BmnECALRaw2Digit::fPedestal

Referenced by print(), and UseNovosibirskFit().

◆ [struct] [2/2]

struct { ... } BmnECALRaw2Digit::fPedestal

◆ [struct] [1/2]

struct { ... } BmnECALRaw2Digit::fSignal

Referenced by print(), and UseNovosibirskFit().

◆ [struct] [2/2]

struct { ... } BmnECALRaw2Digit::fSignal

◆ max

Float_t BmnECALRaw2Digit::max

Definition at line 39 of file BmnECALRaw2Digit.h.

Referenced by FillEvent().

◆ min

Float_t BmnECALRaw2Digit::min

Definition at line 38 of file BmnECALRaw2Digit.h.

Referenced by FillEvent().

◆ sample0

Int_t BmnECALRaw2Digit::sample0

Definition at line 36 of file BmnECALRaw2Digit.h.

Referenced by FillEvent().

◆ samples

Int_t BmnECALRaw2Digit::samples

Definition at line 37 of file BmnECALRaw2Digit.h.

Referenced by FillEvent().


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