|
CbmRoot
|
A class to find V0 candidates in mCBM. More...
#include <CbmKFV0FinderTask.h>
Classes | |
| struct | DcaVector |
| A vector representation of DCA to target. More... | |
| struct | ParticleInfo |
| Extra information on KFParticle, required by the V0 analysis. More... | |
| struct | TrackInfo |
| Extra information on track, required by the V0 analysis. More... | |
Public Types | |
| enum class | ECounter : uint8_t { TracksTotal , TracksSelected , TracksInfiniteParam , TracksWoTofHits , TracksWNegativeTofHitTime , TracksWoStsHits , TracksWoPid , TracksWoMomentum , TracksWAtLeastOneTofHit , TracksWAtLeastTwoTofHits , TracksWithUnphysicalBeta , TracksW2Sts2Tof , Pions , Protons , EventsTotal , EventsWoTzero , EventsLambdaCand , KfpEventsLambdaCand , KfpLambdaCandidates , END } |
| enum class | EPidApproach : uint8_t { Topo , Mc } |
| PID approach used. More... | |
| enum class | EProcessingMode : uint8_t { TimeBased , EventBased } |
| Data processing mode. More... | |
| enum class | EPvUsageMode : uint8_t { Target , Reconstructed , ReconstructSingle , ReconstructMultiple , Mc } |
| Primary vertex finding/handling mode. More... | |
| using | Cutter_t = V0FinderCutter<EV0Type::Lambda> |
Public Member Functions | |
| V0FinderTask (int verbose=1) | |
| Constructor. | |
| V0FinderTask (const V0FinderTask &)=delete | |
| V0FinderTask (V0FinderTask &&)=delete | |
| ~V0FinderTask ()=default | |
| Destructor. | |
| V0FinderTask & | operator= (const V0FinderTask &)=delete |
| V0FinderTask & | operator= (V0FinderTask &&)=delete |
| void | Exec (Option_t *) override |
| Executes the task. | |
| void | Finish () override |
| Action on the end of the run. | |
| InitStatus | Init () override |
| Initializes the task. | |
| KFParticleFinder * | GetKFParticleFinder () |
| Mutable access to the KfParticleFinder of the run topology reconstructor. | |
| const KFParticleFinder * | GetKFParticleFinder () const |
| Constant access to the KfParticleFinder of the run topology reconstructor. | |
| const auto & | GetTrackDcaToOrigin () const |
| Gets DCA to origin. | |
| std::shared_ptr< const KFParticleTopoReconstructor > | GetTopoReconstructor () const |
| Accessor to the topology reconstructor. | |
| std::shared_ptr< const Cutter_t > | GetCutter () const |
| Accessor to the cutter. | |
| const std::vector< DcaVector > & | GetTrackDca () const |
| Accessor to the track DCA. | |
| const std::vector< TrackInfo > & | GetTrackInfo () const |
| Accessor to the track extra info. | |
| const std::vector< ParticleInfo > & | GetParticleInfo () const |
| Accessor to the particle extra info. | |
| void | SetConfigName (const TString &fileName) |
| Sets name of the configuration file. | |
| void | SetCutsConfigName (const TString &fileName) |
| Sets name of the configuration file for cuts. | |
| void | SetProcessingMode (EProcessingMode mode) |
| Sets processing mode (time-based/event-based) | |
| void | SetPidApproach (EPidApproach pid) |
| Sets PID approach. | |
| void | SetPvFindingMode (EPvUsageMode mode) |
| Sets PV finding mode. | |
| void | SetUseMc (bool bUseMc) |
| Sets the MC flag (if MC information required) | |
| void | SetMinPionDca (double dca) |
| Sets minimal pion DCA to primary vertex. | |
| void | SetMinProtonDca (double dca) |
| Sets minimal proton DCA to primary vertex. | |
| void | SetQaOutputFileName (const TString &fileName) |
| Sets a file name for the QA. | |
| void | SetQpAssignedUncertainty (double uncertainty) |
| Assignes an uncertainty to the momentum measurement. | |
| void | SetTzeroOffset (double offset) |
| Sets an offset to t0. | |
| void | SetMixedEventMode (bool bMixedEvent) |
| Special settings in the mixed-event analysis mode. | |
| void | AddDecayToReconstructionList (int pdg) |
| Adds particle to reconstruction list. | |
Static Public Member Functions | |
| static std::string | ToString (EProcessingMode mode) |
| String representation of processing mode. | |
| static std::string | ToString (EPidApproach pid) |
| String representation of PID approach. | |
| static std::string | ToString (EPvUsageMode pvMode) |
| String representation of the PV finding mode. | |
| static std::string | ToString (const FairTrackParam *pParam) |
| String representation of. | |
| static bool | CheckTrackParam (const FairTrackParam *pParam) |
| Checks track parameter validity. | |
Static Public Attributes | |
| static constexpr int | kPrimaryPdg {321} |
| PID hypothesis of primary tracks (kaons?) | |
| static constexpr int | kUndefPdg {-2} |
| Undefined value, such tracks will be skipped. | |
| static constexpr float | kChi2PvPrimThrsh {3.} |
| Chi2 threshold of assigning tracks as primaries in PV reco. | |
| static constexpr double | kPionMass {0.13957039} |
| Pion mass [GeV/c2]. | |
| static constexpr double | kProtonMass {0.938272088} |
| Proton mass [GeV/c2]. | |
| static constexpr double | kSpeedOfLight {29.9792458} |
| Speed of light [cm/ns]. | |
Private Member Functions | |
| void | ApplyConfiguration () |
| Applies configuration from fsConfigName. | |
| template<int PdgCode> | |
| void | AssignMomentum (CbmGlobalTrack *pTrack, double beta) |
| Assigns momentum to a global track. | |
| void | AssignMomentum (CbmGlobalTrack *pTrack, double qp, double qpVar) |
| Assigns momentum to a global track. | |
| DcaVector | EstimateDcaToOrigin (const CbmStsTrack *pTrack) const |
| Estimates distance to the origin. | |
| double | EstimateBeta (const CbmTofHit *pTofHit) const |
| Estimates beta of the track, using one TOF hit. | |
| TrackInfo | CollectTrackInfo (const CbmGlobalTrack *pTrack) const |
| Fill track extra info. | |
| KFPTrackVector | MakeKfpTrackVector (const std::vector< const CbmGlobalTrack * > &vpTracks, const std::vector< int > &vTrackIds, const std::vector< float > &vChi2ToPv, bool bAtFirstPoint) const |
| Makes a KF-particle track vector. | |
| KFVertex | MakeKfpPrimaryVertex (float x, float y, float z) const |
| Makes a KF vertex. | |
| cbm::algo::kfp::ETrackPid | InferTrackPidTopo (double dca) const |
| Infers PID hypothesis for a track using track topology. | |
| template<bool UseEvent> | |
| bool | ProcessEvent (const CbmEvent *pEvent) |
| Processes one event. | |
| double | ShiftTofHitsToTzero (const CbmEvent *pEvent) |
| Shifts TOF hits to the t0 estimation. | |
| void | StoreParticles (const CbmEvent *pEvent) |
| Stores particles, reconstructed in event to the run topology reconstructor. | |
| ClassDefOverride (V0FinderTask, 0) | |
Private Attributes | |
| double | fTzeroOffset {0.} |
| Offset for T0. | |
| double | fMinPionDca {1.5} |
| Minimum DCA to PV for pions. | |
| double | fMinProtonDca {0.5} |
| Minimum DCA to PV for protons. | |
| double | fQpAssignedUncertainty {0.1} |
| Assigned relative uncertainty for q/p estimation. | |
| int | fPrimaryAssignedPdg {321} |
| Assigned PDG hypothesis for primary particles. | |
| double | fMinBetaProton {0.} |
| Minimal proton velocity (beta) [c]. | |
| double | fMaxBetaProton {1.} |
| Maximal proton velocity (beta) [c]. | |
| double | fMinBetaPion {0.} |
| Minimal proton velocity (beta) [c]. | |
| double | fMaxBetaPion {1.} |
| Maximal proton velocity (beta) [c]. | |
| std::shared_ptr< Cutter_t > | fpCutter {std::make_shared<Cutter_t>()} |
| TClonesArray * | fpBrRecoEvents {nullptr} |
| TClonesArray * | fpBrGlobalTracks {nullptr} |
| TClonesArray * | fpBrStsTracks {nullptr} |
| TClonesArray * | fpBrTrdTracks {nullptr} |
| TClonesArray * | fpBrTofTracks {nullptr} |
| TClonesArray * | fpBrStsHits {nullptr} |
| TClonesArray * | fpBrTrdHits {nullptr} |
| TClonesArray * | fpBrTofHits {nullptr} |
| CbmVertex * | fpBrPrimaryVertex {nullptr} |
| std::vector< CbmEventTriggers > * | fpBrEventTriggers {nullptr} |
| std::vector< DcaVector > | fvTrackDca |
| Track DCA vector [n global tracks]. | |
| std::vector< TrackInfo > | fvTrackInfo |
| Track info vector [n global tracks]. | |
| std::vector< ParticleInfo > | fvParticleInfo |
| Extra information on particles [n particles in TS]. | |
| std::unique_ptr< CbmVertex > | fpOrigin |
| Origin (e.g., can be either reconstructed PV or target) | |
| std::shared_ptr< KFParticleTopoReconstructor > | fpTopoReconstructorTs {std::make_shared<KFParticleTopoReconstructor>()} |
| Main topology reconstructor. | |
| std::unique_ptr< KFParticleTopoReconstructor > | fpTopoReconstructorEvent |
| EProcessingMode | fProcessingMode {EProcessingMode::TimeBased} |
| Processing mode. | |
| EPidApproach | fPidApproach {EPidApproach::Topo} |
| PID approach used. | |
| EPvUsageMode | fPvUsageMode {EPvUsageMode::Target} |
| Primary vertex mode. | |
| bool | fbMixedEventMode {false} |
| Run in a mix-event mode. | |
| bool | fbUseMc {false} |
| Run using MC-information. | |
| bool | fbUsePvChi2Selection {false} |
| Select. | |
| cbm::core::EnumArray< ECounter, size_t > | fCounters {{0}} |
| Counters per run. | |
| TString | fsQaOutputName {"./V0FinderQa.root"} |
| Output QA name. | |
| TString | fsConfigName {""} |
| Name of the config. | |
| TString | fsCutsConfigName {""} |
| Name of the config. | |
A class to find V0 candidates in mCBM.
Definition at line 43 of file CbmKFV0FinderTask.h.
| using cbm::kfp::V0FinderTask::Cutter_t = V0FinderCutter<EV0Type::Lambda> |
Definition at line 45 of file CbmKFV0FinderTask.h.
|
strong |
Definition at line 49 of file CbmKFV0FinderTask.h.
|
strong |
|
strong |
Data processing mode.
| Enumerator | |
|---|---|
| TimeBased | |
| EventBased | |
Definition at line 83 of file CbmKFV0FinderTask.h.
|
strong |
Primary vertex finding/handling mode.
| Enumerator | |
|---|---|
| Target | |
| Reconstructed | |
| ReconstructSingle | |
| ReconstructMultiple | |
| Mc | |
Definition at line 91 of file CbmKFV0FinderTask.h.
|
inlineexplicit |
Constructor.
| verbose | Verbosity of the task |
Definition at line 127 of file CbmKFV0FinderTask.h.
|
delete |
|
delete |
|
default |
Destructor.
|
inline |
Adds particle to reconstruction list.
| pdg | A PDG code of the particle to be reconstructed |
Definition at line 235 of file CbmKFV0FinderTask.h.
|
private |
Applies configuration from fsConfigName.
Definition at line 54 of file CbmKFV0FinderTask.cxx.
|
private |
Assigns momentum to a global track.
| pdg | PID hypothesis |
| pTrack | Pointer to a global track |
| beta | Speed of particle |
Definition at line 127 of file CbmKFV0FinderTask.cxx.
|
private |
Assigns momentum to a global track.
| pTrack | pointer to track |
| qp | q/p value |
| qpVar | q/p variance |
Definition at line 147 of file CbmKFV0FinderTask.cxx.
|
static |
Checks track parameter validity.
| pParam | Pointer to a track parameter |
Definition at line 286 of file CbmKFV0FinderTask.cxx.
|
private |
|
private |
Fill track extra info.
| pTrack | Pointer to global track |
Definition at line 311 of file CbmKFV0FinderTask.cxx.
|
private |
Estimates beta of the track, using one TOF hit.
| pTofHit | Pointer to a TOF hit |
|
private |
Estimates distance to the origin.
| pStsTrack | STS track |
Definition at line 346 of file CbmKFV0FinderTask.cxx.
|
override |
Executes the task.
Definition at line 393 of file CbmKFV0FinderTask.cxx.
|
override |
Action on the end of the run.
Definition at line 427 of file CbmKFV0FinderTask.cxx.
|
inline |
Accessor to the cutter.
Definition at line 166 of file CbmKFV0FinderTask.h.
|
inline |
Mutable access to the KfParticleFinder of the run topology reconstructor.
Definition at line 154 of file CbmKFV0FinderTask.h.
|
inline |
Constant access to the KfParticleFinder of the run topology reconstructor.
Definition at line 157 of file CbmKFV0FinderTask.h.
|
inline |
Accessor to the particle extra info.
Returns a vector, which is parallel to stored KFParticle objects.
Definition at line 179 of file CbmKFV0FinderTask.h.
|
inline |
Accessor to the topology reconstructor.
Definition at line 163 of file CbmKFV0FinderTask.h.
|
inline |
Accessor to the track DCA.
Definition at line 169 of file CbmKFV0FinderTask.h.
|
inline |
Gets DCA to origin.
Definition at line 160 of file CbmKFV0FinderTask.h.
|
inline |
Accessor to the track extra info.
Returns a vector, which is parallel to stored CbmGlobalTrack objects.
Definition at line 174 of file CbmKFV0FinderTask.h.
|
private |
Infers PID hypothesis for a track using track topology.
| dca | An absolute value of DCA to the PV estimation |
Definition at line 453 of file CbmKFV0FinderTask.cxx.
|
override |
Initializes the task.
Definition at line 471 of file CbmKFV0FinderTask.cxx.
|
private |
Makes a KF vertex.
| x | x-coordinate of PV [cm] |
| y | y-coordinate of PV [cm] |
| z | z-coordinate of PV [cm] |
Definition at line 733 of file CbmKFV0FinderTask.cxx.
|
private |
Makes a KF-particle track vector.
| vpTracks | Vector of pointers to global tracks |
| vTrackIds | Vector of track indices |
| vChi2ToPv | Vector of chi2 of assigning a track as primary |
| bAtFirstPoint | true: the first track point is used, false: the last track point is used |
Definition at line 598 of file CbmKFV0FinderTask.cxx.
|
delete |
|
delete |
|
private |
Processes one event.
| UseEvent | Explicit flag of using the CbmEvent pointer to access data |
| pEvent | Pointer to event |
Definition at line 165 of file CbmKFV0FinderTask.cxx.
|
inline |
Sets name of the configuration file.
| fileName | Name of the config file |
Definition at line 185 of file CbmKFV0FinderTask.h.
|
inline |
Sets name of the configuration file for cuts.
| fileName | Name of the config file for cuts |
Definition at line 189 of file CbmKFV0FinderTask.h.
|
inline |
Sets minimal pion DCA to primary vertex.
| dca | DCA [cm] |
Definition at line 205 of file CbmKFV0FinderTask.h.
|
inline |
Sets minimal proton DCA to primary vertex.
| dca | DCA [cm] |
Definition at line 209 of file CbmKFV0FinderTask.h.
|
inline |
Special settings in the mixed-event analysis mode.
| bMixedEvent | Flag: true - run in the mixed-event mode |
Definition at line 228 of file CbmKFV0FinderTask.h.
|
inline |
Sets PID approach.
Definition at line 195 of file CbmKFV0FinderTask.h.
|
inline |
Sets processing mode (time-based/event-based)
Definition at line 192 of file CbmKFV0FinderTask.h.
|
inline |
Sets PV finding mode.
Definition at line 198 of file CbmKFV0FinderTask.h.
|
inline |
Sets a file name for the QA.
| fileName | Name of file |
Definition at line 213 of file CbmKFV0FinderTask.h.
|
inline |
Assignes an uncertainty to the momentum measurement.
| uncertainty | Relative uncertainty ( = sqrt(var(q/p)) / (q/p)) |
Definition at line 217 of file CbmKFV0FinderTask.h.
|
inline |
Sets an offset to t0.
| offset | An offset [ns] |
Definition at line 221 of file CbmKFV0FinderTask.h.
|
inline |
Sets the MC flag (if MC information required)
Definition at line 201 of file CbmKFV0FinderTask.h.
|
private |
Shifts TOF hits to the t0 estimation.
| pEvent | Pointer to the event |
Definition at line 748 of file CbmKFV0FinderTask.cxx.
|
private |
Stores particles, reconstructed in event to the run topology reconstructor.
| pEvent | Pointer to the event |
Definition at line 779 of file CbmKFV0FinderTask.cxx.
|
static |
String representation of.
| pParam | Parameters of the track |
Definition at line 855 of file CbmKFV0FinderTask.cxx.
|
static |
String representation of PID approach.
| pid | PID approach |
Definition at line 830 of file CbmKFV0FinderTask.cxx.
|
static |
String representation of processing mode.
| mode | Data processing mode |
Definition at line 819 of file CbmKFV0FinderTask.cxx.
|
static |
String representation of the PV finding mode.
| pvMode | PV finding mode |
Definition at line 841 of file CbmKFV0FinderTask.cxx.
|
private |
Run in a mix-event mode.
Definition at line 395 of file CbmKFV0FinderTask.h.
|
private |
Run using MC-information.
Definition at line 396 of file CbmKFV0FinderTask.h.
|
private |
Select.
Definition at line 397 of file CbmKFV0FinderTask.h.
|
private |
Counters per run.
Definition at line 400 of file CbmKFV0FinderTask.h.
|
private |
Maximal proton velocity (beta) [c].
Definition at line 357 of file CbmKFV0FinderTask.h.
|
private |
Maximal proton velocity (beta) [c].
Definition at line 355 of file CbmKFV0FinderTask.h.
|
private |
Minimal proton velocity (beta) [c].
Definition at line 356 of file CbmKFV0FinderTask.h.
|
private |
Minimal proton velocity (beta) [c].
Definition at line 354 of file CbmKFV0FinderTask.h.
|
private |
Minimum DCA to PV for pions.
Definition at line 350 of file CbmKFV0FinderTask.h.
|
private |
Minimum DCA to PV for protons.
Definition at line 351 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 374 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 364 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 371 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 363 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 368 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 365 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 370 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 367 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 369 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 366 of file CbmKFV0FinderTask.h.
Definition at line 360 of file CbmKFV0FinderTask.h.
|
private |
PID approach used.
Definition at line 393 of file CbmKFV0FinderTask.h.
|
private |
Origin (e.g., can be either reconstructed PV or target)
Definition at line 381 of file CbmKFV0FinderTask.h.
|
private |
Assigned PDG hypothesis for primary particles.
Definition at line 353 of file CbmKFV0FinderTask.h.
|
private |
Processing mode.
Definition at line 392 of file CbmKFV0FinderTask.h.
|
private |
Definition at line 388 of file CbmKFV0FinderTask.h.
|
private |
Main topology reconstructor.
Definition at line 387 of file CbmKFV0FinderTask.h.
|
private |
Primary vertex mode.
Definition at line 394 of file CbmKFV0FinderTask.h.
|
private |
Assigned relative uncertainty for q/p estimation.
Definition at line 352 of file CbmKFV0FinderTask.h.
|
private |
Name of the config.
Definition at line 402 of file CbmKFV0FinderTask.h.
|
private |
Name of the config.
Definition at line 403 of file CbmKFV0FinderTask.h.
|
private |
Output QA name.
Definition at line 401 of file CbmKFV0FinderTask.h.
|
private |
Offset for T0.
Definition at line 349 of file CbmKFV0FinderTask.h.
|
private |
Extra information on particles [n particles in TS].
Definition at line 380 of file CbmKFV0FinderTask.h.
|
private |
Track DCA vector [n global tracks].
Definition at line 378 of file CbmKFV0FinderTask.h.
|
private |
Track info vector [n global tracks].
Definition at line 379 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
Chi2 threshold of assigning tracks as primaries in PV reco.
Definition at line 340 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
Pion mass [GeV/c2].
Definition at line 343 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
PID hypothesis of primary tracks (kaons?)
Definition at line 338 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
Proton mass [GeV/c2].
Definition at line 344 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
Speed of light [cm/ns].
Definition at line 345 of file CbmKFV0FinderTask.h.
|
staticconstexpr |
Undefined value, such tracks will be skipped.
Definition at line 339 of file CbmKFV0FinderTask.h.