CbmRoot
|
Ideal hit producer class. More...
#include <CbmCaIdealHitProducerDet.h>
Classes | |
struct | HitParameters |
A structure to keep hit adjustment/creation settings for each station. More... | |
Public Types | |
using | Hit_t = HitTypes_t::at<DetID> |
using | Point_t = PointTypes_t::at<DetID> |
Public Member Functions | |
IdealHitProducerDet ()=default | |
Constructor. | |
~IdealHitProducerDet () | |
Destructor. | |
IdealHitProducerDet (const IdealHitProducerDet &)=delete | |
Copy constructor. | |
IdealHitProducerDet (IdealHitProducerDet &&)=delete | |
Move constructor. | |
IdealHitProducerDet & | operator= (const IdealHitProducerDet &)=delete |
Copy assignment operator. | |
IdealHitProducerDet & | operator= (IdealHitProducerDet &&)=delete |
Move assignment operator. | |
InitStatus | Init () |
Initialization of the task. | |
InitStatus | ReInit () |
Re-initialization of the task. | |
void | Exec (Option_t *option) |
Execution of the task. | |
void | SetRandomSeed (int seed) |
Sets random seed (1 by default) | |
void | SetConfigName (const char *name) |
Sets YAML configuration file name. | |
Private Member Functions | |
std::optional< CbmLink > | GetMatchedPointLink (int iH) |
Gets pointer to matched MC point. | |
void | ParseConfig () |
Parses the YAML configuration file. | |
void | PushBackHit (const Hit_t *pHit) |
Pushes back a hit into the hits branch. | |
void | SmearValue (double &value, double sigma, int opt) |
Smears the value by a given standard deviation with a selected function. | |
void | FillPointIsLegit (int iEvGlob) |
Fills map of legit points (inside MC event!) | |
Private Attributes | |
CbmTrackingDetectorInterfaceBase * | fpDetInterface = nullptr |
Detector interface. | |
CbmTimeSlice * | fpTimeSlice = nullptr |
Current time slice. | |
TClonesArray * | fpRecoEvents = nullptr |
Array of reconstructed events. | |
CbmMCEventList * | fpMCEventList = nullptr |
MC event list. | |
CbmMCDataObject * | fpMCEventHeader = nullptr |
MC event header. | |
CbmMCDataArray * | fpBrPoints = nullptr |
Branch: array of MC points. | |
CbmMCDataArray * | fpBrMCTracks = nullptr |
Branch: array of MC tracks. | |
TClonesArray * | fpBrHits = nullptr |
Branch: array of hits. | |
TClonesArray * | fpBrHitMatches = nullptr |
Branch: array of hit matches. | |
TClonesArray * | fpBrHitsTmp = nullptr |
Temporary array of hits. | |
TClonesArray * | fpBrHitMatchesTmp = nullptr |
Temporary array of hit matches. | |
ECbmDataType | fHitDataType = ECbmDataType::kUnknown |
Hit data type. | |
std::string | fsConfigName = "" |
Name of configuration file. | |
std::vector< HitParameters > | fvStationPars |
Parameters, stored for each station. | |
std::vector< unsigned char > | fvbPointIsLegit |
Map of used point index. | |
ca::Random | fRandom {1} |
Random generator. | |
bool | fbRunTheRoutine = true |
Management flag, which does run the routine if there was a request. | |
int | fHitCounter = 0 |
Hit counter in a new branch. | |
Static Private Attributes | |
static constexpr double | kHitWSize = 3.5 |
half-width for the bounded gaussian [sigma] | |
Ideal hit producer class.
Definition at line 65 of file CbmCaIdealHitProducerDet.h.
using cbm::ca::IdealHitProducerDet< DetID >::Hit_t = HitTypes_t::at<DetID> |
Definition at line 67 of file CbmCaIdealHitProducerDet.h.
using cbm::ca::IdealHitProducerDet< DetID >::Point_t = PointTypes_t::at<DetID> |
Definition at line 68 of file CbmCaIdealHitProducerDet.h.
|
default |
Constructor.
cbm::ca::IdealHitProducerDet< DetID >::~IdealHitProducerDet | ( | ) |
Destructor.
Definition at line 199 of file CbmCaIdealHitProducerDet.h.
|
delete |
Copy constructor.
|
delete |
Move constructor.
void cbm::ca::IdealHitProducerDet< DetID >::Exec | ( | Option_t * | option | ) |
Execution of the task.
< Current cluster index
Definition at line 498 of file CbmCaIdealHitProducerDet.h.
References CbmMatch::AddLink(), CbmMatch::AddLinks(), CbmEvent::ClearData(), cbm::ca::CaUvConverter::ConvertCovMatrixUVtoXY(), cbm::ca::CaUvConverter::ConvertCovMatrixXYtoUV(), cbm::ca::CaUvConverter::ConvertUVtoXY(), cbm::ca::CaUvConverter::ConvertXYtoUV(), dpos, CbmTofAddress::GetSmType(), pos, sqrt(), v, x, and y.
Referenced by cbm::ca::IdealHitProducer::Exec().
|
private |
Fills map of legit points (inside MC event!)
Definition at line 745 of file CbmCaIdealHitProducerDet.h.
|
private |
Gets pointer to matched MC point.
iH | Index of hit |
Definition at line 470 of file CbmCaIdealHitProducerDet.h.
InitStatus cbm::ca::IdealHitProducerDet< DetID >::Init | ( | ) |
Initialization of the task.
Definition at line 217 of file CbmCaIdealHitProducerDet.h.
References CbmMuchTrackingInterface::Instance(), CbmMvdTrackingInterface::Instance(), CbmStsTrackingInterface::Instance(), CbmTofTrackingInterface::Instance(), CbmTrdTrackingInterface::Instance(), cbm::ca::kDetName, kMuchPixelHit, kMvdHit, kStsHit, kTofHit, and kTrdHit.
Referenced by cbm::ca::IdealHitProducer::Init(), and cbm::ca::IdealHitProducerDet< DetID >::ReInit().
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
private |
Parses the YAML configuration file.
Definition at line 324 of file CbmCaIdealHitProducerDet.h.
|
private |
Pushes back a hit into the hits branch.
pHit | Pointer to source hit |
Definition at line 416 of file CbmCaIdealHitProducerDet.h.
|
inline |
Re-initialization of the task.
Definition at line 92 of file CbmCaIdealHitProducerDet.h.
References cbm::ca::IdealHitProducerDet< DetID >::Init().
|
inline |
Sets YAML configuration file name.
name | Name of the configuration file |
Definition at line 103 of file CbmCaIdealHitProducerDet.h.
References cbm::ca::IdealHitProducerDet< DetID >::fsConfigName.
Referenced by cbm::ca::IdealHitProducer::SetConfigName().
|
inline |
Sets random seed (1 by default)
seed | Random seed |
Definition at line 99 of file CbmCaIdealHitProducerDet.h.
References cbm::ca::IdealHitProducerDet< DetID >::fRandom, and cbm::algo::ca::Random::SetSeed().
|
private |
Smears the value by a given standard deviation with a selected function.
value | Value to be smeared |
sigma | Value of the standard deviation |
opt | Function (0 - BoundedGaus, 1 - Uniform) |
Definition at line 486 of file CbmCaIdealHitProducerDet.h.
|
private |
Management flag, which does run the routine if there was a request.
Definition at line 185 of file CbmCaIdealHitProducerDet.h.
|
private |
Hit counter in a new branch.
Definition at line 188 of file CbmCaIdealHitProducerDet.h.
|
private |
Hit data type.
Definition at line 174 of file CbmCaIdealHitProducerDet.h.
|
private |
Branch: array of hit matches.
Definition at line 169 of file CbmCaIdealHitProducerDet.h.
|
private |
Temporary array of hit matches.
Definition at line 172 of file CbmCaIdealHitProducerDet.h.
|
private |
Branch: array of hits.
Definition at line 168 of file CbmCaIdealHitProducerDet.h.
|
private |
Temporary array of hits.
Definition at line 171 of file CbmCaIdealHitProducerDet.h.
|
private |
Branch: array of MC tracks.
Definition at line 166 of file CbmCaIdealHitProducerDet.h.
|
private |
Branch: array of MC points.
Definition at line 165 of file CbmCaIdealHitProducerDet.h.
|
private |
Detector interface.
Definition at line 158 of file CbmCaIdealHitProducerDet.h.
|
private |
MC event header.
Definition at line 164 of file CbmCaIdealHitProducerDet.h.
|
private |
MC event list.
Definition at line 163 of file CbmCaIdealHitProducerDet.h.
|
private |
Array of reconstructed events.
Definition at line 162 of file CbmCaIdealHitProducerDet.h.
|
private |
Current time slice.
Definition at line 161 of file CbmCaIdealHitProducerDet.h.
|
private |
Random generator.
Definition at line 182 of file CbmCaIdealHitProducerDet.h.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::SetRandomSeed().
|
private |
Name of configuration file.
Definition at line 176 of file CbmCaIdealHitProducerDet.h.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::SetConfigName().
|
private |
Map of used point index.
Definition at line 180 of file CbmCaIdealHitProducerDet.h.
|
private |
Parameters, stored for each station.
Definition at line 178 of file CbmCaIdealHitProducerDet.h.
|
staticconstexprprivate |
half-width for the bounded gaussian [sigma]
Definition at line 106 of file CbmCaIdealHitProducerDet.h.