FCCAnalyses
Loading...
Searching...
No Matches
FCCAnalyses::TrackUtils::TrackDqdxHandler Class Reference

Adjusted utility class to invert the relations between RecDqdx and Track. More...

#include <analyzers/dataframe/FCCAnalyses/TrackUtils.h>

Collaboration diagram for FCCAnalyses::TrackUtils::TrackDqdxHandler:

Public Member Functions

void addColl (const ROOT::VecOps::RVec< edm4hep::RecDqdxData > &dQdxColl, const ROOT::VecOps::RVec< size_t > &dQdxTrackIndexes)
 Add the information from the collections to the handler.
 
ROOT::VecOps::RVec< edm4hep::RecDqdxData > getDqdxObjects (const size_t trackIndex) const
 Get all RecDqdxData objects for a given track.
 
ROOT::VecOps::RVec< float > getDqdxValues (const size_t trackIndex) const
 Get all dQdx values for a given track.
 

Private Types

using TrackMapT = std::multimap<size_t, edm4hep::RecDqdxData>
 

Private Attributes

TrackMapT m_trackDqMap {}
 The internal map from tracks to RecDqdx.
 

Detailed Description

Adjusted utility class to invert the relations between RecDqdx and Track.

This is adjusted version of edm4hep::TrackPIDHandler able to work with ROOT::VecOps::RVec<*Data> versions of the EDM4hep collections.

Original can be found here: https://github.com/key4hep/EDM4hep/blob/main/utils/include/edm4hep/utils/TrackUtils.h#L12

Member Typedef Documentation

◆ TrackMapT

using FCCAnalyses::TrackUtils::TrackDqdxHandler::TrackMapT = std::multimap<size_t, edm4hep::RecDqdxData>
private

Member Function Documentation

◆ addColl()

void FCCAnalyses ::TrackUtils::TrackDqdxHandler::addColl ( const ROOT::VecOps::RVec< edm4hep::RecDqdxData > & dQdxColl,
const ROOT::VecOps::RVec< size_t > & dQdxTrackIndexes )

Add the information from the collections to the handler.

Parameters
[indQdxColl Collection of all dQdx objects in the event (e.g. EFlowTrack_dNdx).
[in]dQdxTrackIndexesTrack indexes corresponding to the dQdx record (e.g. _EFlowTrack_dNdx_track.index).

◆ getDqdxObjects()

ROOT::VecOps::RVec< edm4hep::RecDqdxData > FCCAnalyses ::TrackUtils::TrackDqdxHandler::getDqdxObjects ( const size_t trackIndex) const

Get all RecDqdxData objects for a given track.

◆ getDqdxValues()

ROOT::VecOps::RVec< float > FCCAnalyses ::TrackUtils::TrackDqdxHandler::getDqdxValues ( const size_t trackIndex) const

Get all dQdx values for a given track.

Member Data Documentation

◆ m_trackDqMap

TrackMapT FCCAnalyses::TrackUtils::TrackDqdxHandler::m_trackDqMap {}
private

The internal map from tracks to RecDqdx.


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