|
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 () | |
| 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 | |
| const cbm::algo::RecoSetupUnit_t< ToCbmModuleId(DetID)> * | 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. | |
| std::unordered_map< uint32_t, double > | fTofRpcZpos |
| ca::Random | fRandom {1} |
| < z-position of TOF RPCs (filled only for TOF) | |
| 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 64 of file CbmCaIdealHitProducerDet.h.
| using cbm::ca::IdealHitProducerDet< DetID >::Hit_t = HitTypes_t::at<DetID> |
Definition at line 66 of file CbmCaIdealHitProducerDet.h.
| using cbm::ca::IdealHitProducerDet< DetID >::Point_t = PointTypes_t::at<DetID> |
Definition at line 67 of file CbmCaIdealHitProducerDet.h.
| IdealHitProducerDet::IdealHitProducerDet | ( | ) |
Constructor.
Definition at line 19 of file CbmCaIdealHitProducerDet.cxx.
References cbm::RecoSetupManager::BuildGeoNodeMaps(), and cbm::RecoSetupManager::Instance().
Referenced by IdealHitProducerDet(), IdealHitProducerDet(), operator=(), and operator=().
| IdealHitProducerDet::~IdealHitProducerDet | ( | ) |
Destructor.
Definition at line 27 of file CbmCaIdealHitProducerDet.cxx.
References fpBrHitMatchesTmp, and fpBrHitsTmp.
|
delete |
Copy constructor.
References IdealHitProducerDet().
|
delete |
Move constructor.
References IdealHitProducerDet().
| void IdealHitProducerDet::Exec | ( | Option_t * | option | ) |
Execution of the task.
< Current cluster index
Definition at line 256 of file CbmCaIdealHitProducerDet.cxx.
References CbmMatch::AddLink(), CbmMatch::AddLinks(), CbmEvent::ClearData(), cbm::ca::CaUvConverter::ConvertCovMatrixUVtoXY(), cbm::ca::CaUvConverter::ConvertCovMatrixXYtoUV(), cbm::ca::CaUvConverter::ConvertUVtoXY(), cbm::ca::CaUvConverter::ConvertXYtoUV(), dpos, fbRunTheRoutine, fHitCounter, fHitDataType, FillPointIsLegit(), fpBrHitMatches, fpBrHitMatchesTmp, fpBrHits, fpBrHitsTmp, fpBrPoints, fpDetInterface, fpMCEventList, fpRecoEvents, fvbPointIsLegit, fvStationPars, GetMatchedPointLink(), cbm::algo::ca::kMuch, cbm::algo::ca::kMvd, cbm::algo::ca::kSts, cbm::algo::ca::kTof, cbm::algo::ca::kTrd, pos, PushBackHit(), SmearValue(), sqrt(), v, x, and y.
|
private |
Fills map of legit points (inside MC event!)
Definition at line 493 of file CbmCaIdealHitProducerDet.cxx.
References cbm::GeoNodeMap::ApplyMask(), fpBrHitMatches, fpBrPoints, fpMCEventList, fTofRpcZpos, fvbPointIsLegit, cbm::algo::ca::kTof, and kTof.
Referenced by Exec().
|
inlineprivate |
Gets pointer to matched MC point.
| iH | Index of hit |
Definition at line 254 of file CbmCaIdealHitProducerDet.h.
References fpBrHitMatchesTmp.
Referenced by Exec().
| InitStatus IdealHitProducerDet::Init | ( | ) |
Initialization of the task.
Definition at line 45 of file CbmCaIdealHitProducerDet.cxx.
References fpBrMCTracks, fpMCEventHeader, fpMCEventList, fpRecoEvents, fpTimeSlice, and cbm::RecoSetupManager::Instance().
Referenced by ReInit().
|
delete |
Copy assignment operator.
References IdealHitProducerDet().
|
delete |
Move assignment operator.
References IdealHitProducerDet().
|
private |
Parses the YAML configuration file.
Definition at line 164 of file CbmCaIdealHitProducerDet.cxx.
References fpDetInterface, fsConfigName, fvStationPars, cbm::algo::ca::kMuch, cbm::algo::ca::kMvd, cbm::algo::ca::kSts, cbm::algo::ca::kTof, and cbm::algo::ca::kTrd.
|
inlineprivate |
Pushes back a hit into the hits branch.
| pHit | Pointer to source hit |
Definition at line 200 of file CbmCaIdealHitProducerDet.h.
References dpos, fHitCounter, cbm::algo::ca::kMuch, cbm::algo::ca::kMvd, cbm::algo::ca::kSts, cbm::algo::ca::kTof, cbm::algo::ca::kTrd, and pos.
Referenced by Exec().
|
inline |
Re-initialization of the task.
Definition at line 91 of file CbmCaIdealHitProducerDet.h.
References Init().
|
inline |
Sets YAML configuration file name.
| name | Name of the configuration file |
Definition at line 102 of file CbmCaIdealHitProducerDet.h.
References fsConfigName.
|
inline |
Sets random seed (1 by default)
| seed | Random seed |
Definition at line 98 of file CbmCaIdealHitProducerDet.h.
References fRandom.
|
inlineprivate |
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 270 of file CbmCaIdealHitProducerDet.h.
References fRandom, and kHitWSize.
Referenced by Exec().
|
private |
Management flag, which does run the routine if there was a request.
Definition at line 186 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec().
|
private |
Hit counter in a new branch.
Definition at line 189 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and PushBackHit().
|
private |
|
private |
Branch: array of hit matches.
Definition at line 168 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and FillPointIsLegit().
|
private |
Temporary array of hit matches.
Definition at line 171 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), GetMatchedPointLink(), and ~IdealHitProducerDet().
|
private |
Branch: array of hits.
Definition at line 167 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec().
|
private |
Temporary array of hits.
Definition at line 170 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and ~IdealHitProducerDet().
|
private |
Branch: array of MC tracks.
Definition at line 165 of file CbmCaIdealHitProducerDet.h.
Referenced by Init().
|
private |
Branch: array of MC points.
Definition at line 164 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and FillPointIsLegit().
|
private |
Detector interface.
Definition at line 157 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and ParseConfig().
|
private |
|
private |
MC event list.
Definition at line 162 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), FillPointIsLegit(), and Init().
|
private |
Array of reconstructed events.
Definition at line 161 of file CbmCaIdealHitProducerDet.h.
|
private |
Current time slice.
Definition at line 160 of file CbmCaIdealHitProducerDet.h.
Referenced by Init().
|
private |
< z-position of TOF RPCs (filled only for TOF)
Random generator
Definition at line 183 of file CbmCaIdealHitProducerDet.h.
Referenced by SetRandomSeed(), and SmearValue().
|
private |
Name of configuration file.
Definition at line 175 of file CbmCaIdealHitProducerDet.h.
Referenced by ParseConfig(), and SetConfigName().
|
private |
Definition at line 181 of file CbmCaIdealHitProducerDet.h.
Referenced by FillPointIsLegit().
|
private |
Map of used point index.
Definition at line 179 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and FillPointIsLegit().
|
private |
Parameters, stored for each station.
Definition at line 177 of file CbmCaIdealHitProducerDet.h.
Referenced by Exec(), and ParseConfig().
|
staticconstexprprivate |
half-width for the bounded gaussian [sigma]
Definition at line 105 of file CbmCaIdealHitProducerDet.h.
Referenced by SmearValue().