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

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

#include <R3BNeulandTacquilaMapped2Cal.h>

Public Member Functions

 R3BNeulandTacquilaMapped2Cal ()
 Default constructor.
 
 R3BNeulandTacquilaMapped2Cal (const char *name, Int_t iVerbose=1)
 Standard constructor.
 
virtual ~R3BNeulandTacquilaMapped2Cal ()
 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 nPMTs)
 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.
 

Private Member Functions

void SetParameter ()
 
void MakeCal ()
 

Private Attributes

Int_t fNEvents
 Event counter.
 
Bool_t fPulserMode
 Running with pulser data.
 
Bool_t fWalkEnabled
 Enable / Disable walk correction.
 
R3BEventHeaderheader
 Event header.
 
TClonesArray * fRawHit
 Array with raw items - input data.
 
TClonesArray * fPmt
 Array with time items - output data.
 
Int_t fNPmt
 Number of produced time items per event.
 
R3BTCalPar * fTcalPar
 TCAL parameter container.
 
R3BNeulandQCalParfQCalPar
 QCAL parameter container.
 
Int_t fTrigger
 Trigger value.
 
Int_t fNofPMTs
 Number of photomultipliers.
 
std::map< Int_t, Bool_t > fMap17Seen
 Map with flag of observed stop signal.
 
std::map< Int_t, Double_t > fMapStopTime
 Map with value of stop time.
 
std::map< Int_t, Int_t > fMapStopClock
 Map with value of stop clock.
 
std::map< Int_t, Double_t > fMapQdcOffset
 Map with value of qdc offset.
 
Double_t fClockFreq
 Clock cycle in [ns].
 
TH1F * fh_pulser_5_2
 Resolution of one PMT.
 
TH1F * fh_pulser_105_2
 Resolution of one PMT.
 

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 R3BNeulandTacquilaMapped2CalPar task.

Author
D. Kresan
Since
September 7, 2015

Definition at line 35 of file R3BNeulandTacquilaMapped2Cal.h.

Constructor & Destructor Documentation

◆ R3BNeulandTacquilaMapped2Cal() [1/2]

R3BNeulandTacquilaMapped2Cal::R3BNeulandTacquilaMapped2Cal ( )

Creates an instance of the task with default parameters.

Definition at line 51 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ R3BNeulandTacquilaMapped2Cal() [2/2]

R3BNeulandTacquilaMapped2Cal::R3BNeulandTacquilaMapped2Cal ( 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 70 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ ~R3BNeulandTacquilaMapped2Cal()

R3BNeulandTacquilaMapped2Cal::~R3BNeulandTacquilaMapped2Cal ( )
virtual

Frees the memory used by the object.

Definition at line 89 of file R3BNeulandTacquilaMapped2Cal.cxx.

Member Function Documentation

◆ EnableWalk()

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

Definition at line 121 of file R3BNeulandTacquilaMapped2Cal.h.

◆ Exec()

void R3BNeulandTacquilaMapped2Cal::Exec ( Option_t * option)
virtual

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

Parameters
optionan execution option.

Definition at line 165 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ FinishEvent()

void R3BNeulandTacquilaMapped2Cal::FinishEvent ( )
virtual

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

Definition at line 296 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ FinishTask()

void R3BNeulandTacquilaMapped2Cal::FinishTask ( )
virtual

Is called by the framework after processing the event loop.

Definition at line 315 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ Init()

InitStatus R3BNeulandTacquilaMapped2Cal::Init ( )
virtual

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

Returns
Initialization status. kSUCCESS, kERROR or kFATAL.

Definition at line 99 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ MakeCal()

void R3BNeulandTacquilaMapped2Cal::MakeCal ( )
private

Definition at line 224 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ ReInit()

InitStatus R3BNeulandTacquilaMapped2Cal::ReInit ( )
virtual

Definition at line 158 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ SetNofModules()

void R3BNeulandTacquilaMapped2Cal::SetNofModules ( Int_t nPMTs)
inline
Parameters
nPMTsa number of photomultipliers.

Definition at line 109 of file R3BNeulandTacquilaMapped2Cal.h.

◆ SetParameter()

void R3BNeulandTacquilaMapped2Cal::SetParameter ( )
private

Definition at line 140 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ SetParContainers()

void R3BNeulandTacquilaMapped2Cal::SetParContainers ( )
virtual

Called by the framework prior to Init() method.

Definition at line 132 of file R3BNeulandTacquilaMapped2Cal.cxx.

◆ SetPulserMode()

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

Definition at line 115 of file R3BNeulandTacquilaMapped2Cal.h.

◆ SetTrigger()

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

Definition at line 103 of file R3BNeulandTacquilaMapped2Cal.h.

Member Data Documentation

◆ fClockFreq

Double_t R3BNeulandTacquilaMapped2Cal::fClockFreq
private

Definition at line 141 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fh_pulser_105_2

TH1F* R3BNeulandTacquilaMapped2Cal::fh_pulser_105_2
private

Definition at line 143 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fh_pulser_5_2

TH1F* R3BNeulandTacquilaMapped2Cal::fh_pulser_5_2
private

Definition at line 142 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fMap17Seen

std::map<Int_t, Bool_t> R3BNeulandTacquilaMapped2Cal::fMap17Seen
private

Definition at line 137 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fMapQdcOffset

std::map<Int_t, Double_t> R3BNeulandTacquilaMapped2Cal::fMapQdcOffset
private

Definition at line 140 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fMapStopClock

std::map<Int_t, Int_t> R3BNeulandTacquilaMapped2Cal::fMapStopClock
private

Definition at line 139 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fMapStopTime

std::map<Int_t, Double_t> R3BNeulandTacquilaMapped2Cal::fMapStopTime
private

Definition at line 138 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fNEvents

Int_t R3BNeulandTacquilaMapped2Cal::fNEvents
private

Definition at line 126 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fNofPMTs

Int_t R3BNeulandTacquilaMapped2Cal::fNofPMTs
private

Definition at line 136 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fNPmt

Int_t R3BNeulandTacquilaMapped2Cal::fNPmt
private

Definition at line 132 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fPmt

TClonesArray* R3BNeulandTacquilaMapped2Cal::fPmt
private

Definition at line 131 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fPulserMode

Bool_t R3BNeulandTacquilaMapped2Cal::fPulserMode
private

Definition at line 127 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fQCalPar

R3BNeulandQCalPar* R3BNeulandTacquilaMapped2Cal::fQCalPar
private

Definition at line 134 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fRawHit

TClonesArray* R3BNeulandTacquilaMapped2Cal::fRawHit
private

Definition at line 130 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fTcalPar

R3BTCalPar* R3BNeulandTacquilaMapped2Cal::fTcalPar
private

Definition at line 133 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fTrigger

Int_t R3BNeulandTacquilaMapped2Cal::fTrigger
private

Definition at line 135 of file R3BNeulandTacquilaMapped2Cal.h.

◆ fWalkEnabled

Bool_t R3BNeulandTacquilaMapped2Cal::fWalkEnabled
private

Definition at line 128 of file R3BNeulandTacquilaMapped2Cal.h.

◆ header

R3BEventHeader* R3BNeulandTacquilaMapped2Cal::header
private

Definition at line 129 of file R3BNeulandTacquilaMapped2Cal.h.


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