FCCAnalyses
Loading...
Searching...
No Matches
FCCAnalyses ::SmearObjects::SmearedTracksdNdx Struct Reference

Generates new track dNdx, by rescaling the Poisson error of the cluster count. More...

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

Public Member Functions

 SmearedTracksdNdx (float m_scale, bool debug)
 Rescale resolution by this factor.
 
ROOT::VecOps::RVec< edm4hep::RecDqdxData > operator() (const ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > &allRecoParticles, const TrackUtils::TrackDqdxHandler &dNdxHandler, const ROOT::VecOps::RVec< float > &length, const ROOT::VecOps::RVec< int > &RP2MC_indices, const ROOT::VecOps::RVec< edm4hep::MCParticleData > &mcParticles)
 Returns a vector of dNdx that is parallel to the collection of all tracks of the event (e.g.
 

Public Attributes

bool m_debug
 
TRandom m_random
 Debug flag.
 
float m_scale
 

Detailed Description

Generates new track dNdx, by rescaling the Poisson error of the cluster count.

Constructor & Destructor Documentation

◆ SmearedTracksdNdx()

FCCAnalyses ::SmearObjects::SmearedTracksdNdx::SmearedTracksdNdx ( float m_scale,
bool debug = false )

Rescale resolution by this factor.

Member Function Documentation

◆ operator()()

ROOT::VecOps::RVec< edm4hep::RecDqdxData > FCCAnalyses ::SmearObjects::SmearedTracksdNdx::operator() ( const ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > & allRecoParticles,
const TrackUtils::TrackDqdxHandler & dNdxHandler,
const ROOT::VecOps::RVec< float > & length,
const ROOT::VecOps::RVec< int > & RP2MC_indices,
const ROOT::VecOps::RVec< edm4hep::MCParticleData > & mcParticles )

Returns a vector of dNdx that is parallel to the collection of all tracks of the event (e.g.

alltracks), i.e. same number of entries, same order.

The method retrieves the MC particle that is associated to a track, and builds a "track state" out of the MC particle and regenerates a new value of the dNdx.

Member Data Documentation

◆ m_debug

bool FCCAnalyses ::SmearObjects::SmearedTracksdNdx::m_debug

◆ m_random

TRandom FCCAnalyses ::SmearObjects::SmearedTracksdNdx::m_random

Debug flag.

◆ m_scale

float FCCAnalyses ::SmearObjects::SmearedTracksdNdx::m_scale

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