R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandMapped2Cal Class Reference

An analysis task to apply TCAL calibration for NeuLAND. More...

#include <R3BNeulandMapped2Cal.h>

Public Member Functions

 R3BNeulandMapped2Cal ()
 Default constructor.
 
 R3BNeulandMapped2Cal (const char *name, Int_t iVerbose=1)
 Standard constructor.
 
virtual ~R3BNeulandMapped2Cal ()
 Destructor.
 
virtual InitStatus Init ()
 Method for task initialization.
 
virtual void SetParContainers ()
 Method for initialization of the parameter containers.
 
virtual InitStatus ReInit ()
 Method for re-initialization of parameter containers in case the Run ID has changed.
 
virtual void Exec (Option_t *option)
 Method for event loop implementation.
 
virtual void FinishEvent ()
 A method for finish of processing of an event.
 
virtual void FinishTask ()
 Method for finish of the task execution.
 
void SetTrigger (Int_t trigger)
 Method for setting the trigger value.
 
void SetNofModules (Int_t nPlanes, Int_t nBars)
 Method for setting the number of NeuLAND modules.
 
void SetPulserMode (Bool_t mode=kTRUE)
 Method to set running mode for pulser data analysis.
 
void EnableWalk (Bool_t walk=kTRUE)
 Method to enable / disable walk corrections.
 
void SetNhitmin (Int_t nhitmin=1)
 

Private Member Functions

void SetParameter ()
 
void MakeCal ()
 
Double_t WalkCorrection (Double_t)
 

Private Attributes

Int_t fNEvents
 Event counter.
 
Bool_t fPulserMode
 Running with pulser data.
 
Bool_t fWalkEnabled
 Enable / Disable walk correction.
 
TClonesArray * fMapped
 Array with raw items - input data.
 
TClonesArray * fMappedTrigger
 Array with raw items - input data.
 
TClonesArray * fCal
 Array with time items - output data.
 
Int_t fNPmt
 Number of produced time items per event.
 
R3BNeulandMappingParfMapPar
 
R3BTCalPar * fTcalPar
 TCAL parameter container.
 
UInt_t fNofTcalPars
 Number of modules in parameter file.
 
R3BEventHeaderheader
 Event header.
 
Int_t fTrigger
 Trigger value.
 
Int_t fNofPlanes
 Number of photomultipliers.
 
Int_t fNofBarsPerPlane
 Number of photomultipliers.
 
Int_t fNofPMTs
 Number of photomultipliers.
 
Double_t fClockFreq
 Clock cycle in [ns].
 
TH2F * htcal1
 
TH2F * htcal2
 
TH2F * htcal3
 
TH2F * htcal4
 
Int_t fNhitmin
 

Detailed Description

This class reads NeuLAND raw items with TDC values and produces time items with time in [ns]. It requires TCAL calibration parameters, which are produced in a separate analysis run containing R3BNeulandMapped2CalPar task.

Author
D. Kresan
Since
September 7, 2015

Definition at line 35 of file R3BNeulandMapped2Cal.h.

Constructor & Destructor Documentation

◆ R3BNeulandMapped2Cal() [1/2]

R3BNeulandMapped2Cal::R3BNeulandMapped2Cal ( )

Creates an instance of the task with default parameters.

Definition at line 30 of file R3BNeulandMapped2Cal.cxx.

◆ R3BNeulandMapped2Cal() [2/2]

R3BNeulandMapped2Cal::R3BNeulandMapped2Cal ( const char * name,
Int_t iVerbose = 1 )

Creates an instance of the task.

Parameters
namea name of the task.
iVerbosea verbosity level.

Definition at line 46 of file R3BNeulandMapped2Cal.cxx.

◆ ~R3BNeulandMapped2Cal()

R3BNeulandMapped2Cal::~R3BNeulandMapped2Cal ( )
virtual

Frees the memory used by the object.

Definition at line 62 of file R3BNeulandMapped2Cal.cxx.

Member Function Documentation

◆ EnableWalk()

void R3BNeulandMapped2Cal::EnableWalk ( Bool_t walk = kTRUE)
inline
Parameters
walka boolean flag - if TRUE, walk corrections will be applied.

Definition at line 127 of file R3BNeulandMapped2Cal.h.

◆ Exec()

void R3BNeulandMapped2Cal::Exec ( Option_t * option)
virtual

Is called by the framework every time a new event is read.

Parameters
optionan execution option.

Definition at line 161 of file R3BNeulandMapped2Cal.cxx.

◆ FinishEvent()

void R3BNeulandMapped2Cal::FinishEvent ( )
virtual

Is called by the framework for each event after executing the tasks.

Definition at line 333 of file R3BNeulandMapped2Cal.cxx.

◆ FinishTask()

void R3BNeulandMapped2Cal::FinishTask ( )
virtual

Is called by the framework after processing the event loop.

Definition at line 349 of file R3BNeulandMapped2Cal.cxx.

◆ Init()

InitStatus R3BNeulandMapped2Cal::Init ( )
virtual

This function is called by the framework before the event loop.

Returns
Initialization status. kSUCCESS, kERROR or kFATAL.

Definition at line 72 of file R3BNeulandMapped2Cal.cxx.

◆ MakeCal()

void R3BNeulandMapped2Cal::MakeCal ( )
private

Definition at line 193 of file R3BNeulandMapped2Cal.cxx.

◆ ReInit()

InitStatus R3BNeulandMapped2Cal::ReInit ( )
virtual

Definition at line 154 of file R3BNeulandMapped2Cal.cxx.

◆ SetNhitmin()

void R3BNeulandMapped2Cal::SetNhitmin ( Int_t nhitmin = 1)
inline

Definition at line 129 of file R3BNeulandMapped2Cal.h.

◆ SetNofModules()

void R3BNeulandMapped2Cal::SetNofModules ( Int_t nPlanes,
Int_t nBars )
inline
Parameters
nPlanesa number of planes.
nBarsa number of bars per plane.

Definition at line 110 of file R3BNeulandMapped2Cal.h.

◆ SetParameter()

void R3BNeulandMapped2Cal::SetParameter ( )
private

Definition at line 139 of file R3BNeulandMapped2Cal.cxx.

◆ SetParContainers()

void R3BNeulandMapped2Cal::SetParContainers ( )
virtual

Called by the framework prior to Init() method.

Definition at line 120 of file R3BNeulandMapped2Cal.cxx.

◆ SetPulserMode()

void R3BNeulandMapped2Cal::SetPulserMode ( Bool_t mode = kTRUE)
inline
Parameters
modea boolean flag - if TRUE events with all PMT's fired will be taken.

Definition at line 121 of file R3BNeulandMapped2Cal.h.

◆ SetTrigger()

void R3BNeulandMapped2Cal::SetTrigger ( Int_t trigger)
inline
Parameters
trigger1 - onspill, 2 - offspill, -1 - all events.

Definition at line 103 of file R3BNeulandMapped2Cal.h.

◆ WalkCorrection()

Double_t R3BNeulandMapped2Cal::WalkCorrection ( Double_t x)
private

Definition at line 358 of file R3BNeulandMapped2Cal.cxx.

Member Data Documentation

◆ fCal

TClonesArray* R3BNeulandMapped2Cal::fCal
private

Definition at line 140 of file R3BNeulandMapped2Cal.h.

◆ fClockFreq

Double_t R3BNeulandMapped2Cal::fClockFreq
private

Definition at line 155 of file R3BNeulandMapped2Cal.h.

◆ fMapPar

R3BNeulandMappingPar* R3BNeulandMapped2Cal::fMapPar
private

Definition at line 143 of file R3BNeulandMapped2Cal.h.

◆ fMapped

TClonesArray* R3BNeulandMapped2Cal::fMapped
private

Definition at line 138 of file R3BNeulandMapped2Cal.h.

◆ fMappedTrigger

TClonesArray* R3BNeulandMapped2Cal::fMappedTrigger
private

Definition at line 139 of file R3BNeulandMapped2Cal.h.

◆ fNEvents

Int_t R3BNeulandMapped2Cal::fNEvents
private

Definition at line 134 of file R3BNeulandMapped2Cal.h.

◆ fNhitmin

Int_t R3BNeulandMapped2Cal::fNhitmin
private

Definition at line 166 of file R3BNeulandMapped2Cal.h.

◆ fNofBarsPerPlane

Int_t R3BNeulandMapped2Cal::fNofBarsPerPlane
private

Definition at line 152 of file R3BNeulandMapped2Cal.h.

◆ fNofPlanes

Int_t R3BNeulandMapped2Cal::fNofPlanes
private

Definition at line 151 of file R3BNeulandMapped2Cal.h.

◆ fNofPMTs

Int_t R3BNeulandMapped2Cal::fNofPMTs
private

Definition at line 153 of file R3BNeulandMapped2Cal.h.

◆ fNofTcalPars

UInt_t R3BNeulandMapped2Cal::fNofTcalPars
private

Definition at line 146 of file R3BNeulandMapped2Cal.h.

◆ fNPmt

Int_t R3BNeulandMapped2Cal::fNPmt
private

Definition at line 141 of file R3BNeulandMapped2Cal.h.

◆ fPulserMode

Bool_t R3BNeulandMapped2Cal::fPulserMode
private

Definition at line 135 of file R3BNeulandMapped2Cal.h.

◆ fTcalPar

R3BTCalPar* R3BNeulandMapped2Cal::fTcalPar
private

Definition at line 145 of file R3BNeulandMapped2Cal.h.

◆ fTrigger

Int_t R3BNeulandMapped2Cal::fTrigger
private

Definition at line 149 of file R3BNeulandMapped2Cal.h.

◆ fWalkEnabled

Bool_t R3BNeulandMapped2Cal::fWalkEnabled
private

Definition at line 136 of file R3BNeulandMapped2Cal.h.

◆ header

R3BEventHeader* R3BNeulandMapped2Cal::header
private

Definition at line 148 of file R3BNeulandMapped2Cal.h.

◆ htcal1

TH2F* R3BNeulandMapped2Cal::htcal1
private

Definition at line 161 of file R3BNeulandMapped2Cal.h.

◆ htcal2

TH2F* R3BNeulandMapped2Cal::htcal2
private

Definition at line 162 of file R3BNeulandMapped2Cal.h.

◆ htcal3

TH2F* R3BNeulandMapped2Cal::htcal3
private

Definition at line 163 of file R3BNeulandMapped2Cal.h.

◆ htcal4

TH2F* R3BNeulandMapped2Cal::htcal4
private

Definition at line 164 of file R3BNeulandMapped2Cal.h.


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