CbmRoot
|
Task class for local reconstruction in the STS Pixel detector. More...
#include <CbmRecoStsPixel.h>
Public Member Functions | |
CbmRecoStsPixel (ECbmRecoMode mode=ECbmRecoMode::Timeslice) | |
Constructor. | |
CbmRecoStsPixel (const CbmRecoStsPixel &)=delete | |
Copy constructor (disabled) | |
CbmRecoStsPixel | operator= (const CbmRecoStsPixel &)=delete |
Assignment operator (disabled) | |
~CbmRecoStsPixel () | |
Destructor | |
void | Exec (Option_t *opt) |
Task execution. | |
void | Finish () |
End-of-run action. | |
InitStatus | Init () |
Initialisation. | |
void | SetEventMode (Bool_t choice=kTRUE) |
Set event-by-event mode. | |
void | SetMode (ECbmRecoMode mode) |
Set execution mode. | |
void | SetParContainers () |
Define the needed parameter containers. | |
Private Member Functions | |
void | ProcessData (CbmEvent *event=nullptr) |
Process one time slice or event. | |
ClassDef (CbmRecoStsPixel, 0) | |
Private Attributes | |
TClonesArray * | fEvents = nullptr |
CbmDigiManager * | fDigiManager = nullptr |
Input array of events. | |
CbmMCDataArray * | fStsPoints {nullptr} |
Interface to digi branch. | |
TClonesArray * | fClusters = nullptr |
TClonesArray * | fHits = nullptr |
Output cluster array. | |
CbmStsSetup * | fSetup = nullptr |
Output hit array. | |
CbmStsParSim * | fParSim = nullptr |
Instance of STS setup. | |
CbmStsParSetModule * | fParSetModule = nullptr |
Module parameters. | |
CbmStsParSetSensor * | fParSetSensor = nullptr |
Sensor parameters. | |
CbmStsParSetSensorCond * | fParSetCond = nullptr |
Sensor conditions. | |
ECbmRecoMode | fMode = ECbmRecoMode::Timeslice |
Time-slice or event. | |
Task class for local reconstruction in the STS Pixel detector.
Local reconstruction for the experimental STS Pixel detector
The STS digis must be produced by the CbmStsDigitizePixel task. To run it, replace CbmRecoSts task by CbmRecoStsPixel task in the run_reco.C macro
Definition at line 49 of file CbmRecoStsPixel.h.
CbmRecoStsPixel::CbmRecoStsPixel | ( | ECbmRecoMode | mode = ECbmRecoMode::Timeslice | ) |
Constructor.
|
delete |
Copy constructor (disabled)
CbmRecoStsPixel::~CbmRecoStsPixel | ( | ) |
Destructor
Definition at line 62 of file CbmRecoStsPixel.cxx.
|
private |
void CbmRecoStsPixel::Exec | ( | Option_t * | opt | ) |
Task execution.
Definition at line 182 of file CbmRecoStsPixel.cxx.
References fClusters, fEvents, fHits, fMode, ProcessData(), and Timeslice.
void CbmRecoStsPixel::Finish | ( | ) |
End-of-run action.
Definition at line 67 of file CbmRecoStsPixel.cxx.
InitStatus CbmRecoStsPixel::Init | ( | ) |
Initialisation.
Definition at line 72 of file CbmRecoStsPixel.cxx.
References EventByEvent, fClusters, fDigiManager, fEvents, fHits, fMode, fParSetCond, fParSetModule, fParSetSensor, fParSim, fSetup, fStsPoints, CbmMCDataManager::GetObject(), CbmDigiManager::Init(), CbmStsSetup::Init(), CbmMCDataManager::InitBranch(), CbmDigiManager::Instance(), CbmStsSetup::Instance(), CbmStsSetup::IsInit(), CbmDigiManager::IsMatchPresent(), CbmStsSetup::IsModuleParsInit(), CbmDigiManager::IsPresent(), CbmStsSetup::IsSensorCondInit(), CbmStsSetup::IsSensorParsInit(), kSts, CbmStsSetup::SetModuleParameters(), CbmStsSetup::SetSensorConditions(), CbmStsSetup::SetSensorParameters(), CbmStsParSetModule::ToString(), CbmStsParSetSensorCond::ToString(), and CbmStsParSim::ToString().
|
delete |
Assignment operator (disabled)
|
private |
Process one time slice or event.
event | Pointer to CbmEvent object |
If a null event pointer is given, the entire input array is processed.
Definition at line 209 of file CbmRecoStsPixel.cxx.
References CbmCluster::AddDigi(), fClusters, fDigiManager, fHits, fParSetModule, fStsPoints, CbmDigiManager::Get(), CbmMCDataArray::Get(), CbmHit::GetAddress(), CbmStsDigi::GetAddress(), CbmStsDigi::GetChannel(), CbmPixelHit::GetDx(), CbmPixelHit::GetDy(), CbmLink::GetEntry(), CbmLink::GetFile(), CbmLink::GetIndex(), CbmMatch::GetLink(), CbmDigiManager::GetMatch(), CbmDigiManager::GetNofDigis(), CbmMatch::GetNofLinks(), CbmStsParSetModule::GetParModule(), CbmStsStation::GetSensorPitch(), CbmStsSetup::GetStation(), CbmStsSetup::GetStationNumber(), CbmAddress::GetSystemId(), CbmStsParAsic::GetTimeResol(), CbmPixelHit::GetX(), CbmStsPoint::GetXIn(), CbmStsPoint::GetXOut(), CbmPixelHit::GetY(), CbmStsPoint::GetYIn(), CbmStsPoint::GetYOut(), CbmStsStation::GetZ(), CbmStsPoint::GetZIn(), CbmStsPoint::GetZOut(), CbmStsSetup::Instance(), CbmDigiManager::IsMatchPresent(), kSts, kStsCluster, kStsDigi, kStsHit, CbmHit::SetAddress(), CbmStsHit::SetBackClusterId(), CbmStsHit::SetDu(), CbmStsHit::SetDv(), CbmPixelHit::SetDx(), CbmPixelHit::SetDxy(), CbmPixelHit::SetDy(), CbmStsHit::SetFrontClusterId(), CbmHit::SetTime(), CbmHit::SetTimeError(), CbmPixelHit::SetX(), CbmPixelHit::SetY(), CbmHit::SetZ(), sqrt(), ToIntegralType(), and x.
Referenced by Exec().
|
inline |
Set event-by-event mode.
choice | If true, event-by-event mode is used |
In the event-by-event mode, the event objects in the input tree are used, and events are processed one after the other. An event builder has to be run before, creating the event objects. By default, time-slice mode is applied.
Alternative to using SetMode.
Definition at line 90 of file CbmRecoStsPixel.h.
References EventByEvent, fMode, and Timeslice.
|
inline |
Set execution mode.
mode | Time-slice or event |
In the time-slice mode, the entire time-slice (input arrays) will be processed. In the event mode, events read from the event branch are processed one after the other.
Definition at line 100 of file CbmRecoStsPixel.h.
References fMode.
void CbmRecoStsPixel::SetParContainers | ( | ) |
Define the needed parameter containers.
Definition at line 314 of file CbmRecoStsPixel.cxx.
References fParSetCond, fParSetModule, fParSetSensor, and fParSim.
|
private |
Definition at line 120 of file CbmRecoStsPixel.h.
Referenced by Exec(), Init(), and ProcessData().
|
private |
Input array of events.
Definition at line 118 of file CbmRecoStsPixel.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 117 of file CbmRecoStsPixel.h.
|
private |
Output cluster array.
Definition at line 121 of file CbmRecoStsPixel.h.
Referenced by Exec(), Init(), and ProcessData().
|
private |
Time-slice or event.
Definition at line 132 of file CbmRecoStsPixel.h.
Referenced by Exec(), Init(), SetEventMode(), and SetMode().
|
private |
Sensor conditions.
Definition at line 128 of file CbmRecoStsPixel.h.
Referenced by Init(), and SetParContainers().
|
private |
Module parameters.
Definition at line 126 of file CbmRecoStsPixel.h.
Referenced by Init(), ProcessData(), and SetParContainers().
|
private |
Sensor parameters.
Definition at line 127 of file CbmRecoStsPixel.h.
Referenced by Init(), and SetParContainers().
|
private |
Instance of STS setup.
Simulation settings
Definition at line 125 of file CbmRecoStsPixel.h.
Referenced by Init(), and SetParContainers().
|
private |
|
private |
Interface to digi branch.
Definition at line 119 of file CbmRecoStsPixel.h.
Referenced by Init(), and ProcessData().