Project
Loading...
Searching...
No Matches
o2::its::study::EfficiencyStudy Class Reference

Inherits o2::framework::Task.

Public Member Functions

 EfficiencyStudy (std::shared_ptr< DataRequest > dr, mask_t src, bool useMC, std::shared_ptr< o2::steer::MCKinematicsReader > kineReader, std::shared_ptr< o2::base::GRPGeomRequest > gr)
 
 ~EfficiencyStudy () final=default
 
void init (InitContext &) final
 
void run (ProcessingContext &) final
 
void endOfStream (EndOfStreamContext &) final
 This is invoked whenever we have an EndOfStream event.
 
void finaliseCCDB (ConcreteDataMatcher &, void *) final
 
void initialiseRun (o2::globaltracking::RecoContainer &)
 
void stileEfficiencyGraph (std::unique_ptr< TEfficiency > &eff, const char *name, const char *title, bool bidimensional, const int markerStyle, const double markersize, const int markercolor, const int linercolor)
 
int getDCAClusterTrackMC (int countDuplicated)
 
void studyDCAcutsMC ()
 
void studyClusterSelectionMC ()
 
void countDuplicatedAfterCuts ()
 
void getEfficiency (bool isMC)
 
void getEfficiencyAndTrackInfo (bool isMC)
 
void saveDataInfo ()
 
void process (o2::globaltracking::RecoContainer &)
 
void setClusterDictionary (const o2::itsmft::TopologyDictionary *d)
 
- Public Member Functions inherited from o2::framework::Task
virtual ~Task ()
 
virtual void stop ()
 This is invoked on stop.
 

Detailed Description

Definition at line 57 of file Efficiency.cxx.

Constructor & Destructor Documentation

◆ EfficiencyStudy()

o2::its::study::EfficiencyStudy::EfficiencyStudy ( std::shared_ptr< DataRequest dr,
mask_t  src,
bool  useMC,
std::shared_ptr< o2::steer::MCKinematicsReader kineReader,
std::shared_ptr< o2::base::GRPGeomRequest gr 
)
inline

Definition at line 60 of file Efficiency.cxx.

◆ ~EfficiencyStudy()

o2::its::study::EfficiencyStudy::~EfficiencyStudy ( )
finaldefault

Member Function Documentation

◆ countDuplicatedAfterCuts()

void o2::its::study::EfficiencyStudy::countDuplicatedAfterCuts ( )

applying the cuts on the phi of the original cluster

wether or not a cluster is found in an eligible track in the corresponding layer

if the track (cluster) is not eligible for any layer, go to the next one

Definition at line 785 of file Efficiency.cxx.

◆ endOfStream()

void o2::its::study::EfficiencyStudy::endOfStream ( EndOfStreamContext context)
finalvirtual

This is invoked whenever we have an EndOfStream event.

Reimplemented from o2::framework::Task.

Definition at line 2678 of file Efficiency.cxx.

◆ finaliseCCDB()

void o2::its::study::EfficiencyStudy::finaliseCCDB ( ConcreteDataMatcher matcher,
void obj 
)
finalvirtual

This is invoked whenever a new CCDB object associated to a given ConcreteDataMatcher is deserialised

Reimplemented from o2::framework::Task.

Definition at line 2827 of file Efficiency.cxx.

◆ getDCAClusterTrackMC()

int o2::its::study::EfficiencyStudy::getDCAClusterTrackMC ( int  countDuplicated = 0)

compute the distance between original and dubplicated cluster

Compute the DCA between the cluster location and the track

first propagate to the original cluster

then propagate to the duplicated cluster

Definition at line 536 of file Efficiency.cxx.

◆ getEfficiency()

void o2::its::study::EfficiencyStudy::getEfficiency ( bool  isMC)

the cut on phi, since it is layer-dependent, can be applied only after finding the cluster and then the layer

applying the cuts on the phi of the original cluster

wether or not a cluster is found in an eligible track in the corresponding layer

if the track (cluster) is not eligible for any layer, go to the next one

fill the den and go ahead

if the cuts up to here are passed, then search for the duplicated cluster, otherwise go to the next cluster

for each original cluster iterate over all the possible duplicated clusters to see first wether increment or not the denominator (if a track has a possible duplicated cluster in the selected phi region) then if the phi is within the cuts, select the "adjacent" clusters (stave +-1, chip =,+-1) and calculate the DCA with the track. Then choose the closest one.

if the cheks are passed, then calculate the DCA Compute the DCA between the duplicated cluster location and the track

Definition at line 2028 of file Efficiency.cxx.

◆ getEfficiencyAndTrackInfo()

void o2::its::study::EfficiencyStudy::getEfficiencyAndTrackInfo ( bool  isMC)

the cut on phi, since it is layer-dependent, can be applied only after finding the cluster and then the layer

applying the cuts on the phi of the original cluster

wether or not a cluster is found in an eligible track in the corresponding layer

if the track (cluster) is not eligible for any layer, go to the next one

fill the den and go ahead

for each original cluster iterate over all the possible duplicated clusters to see first wether increment or not the denominator (if a track has a possible duplicated cluster in the selected phi region) then if the phi is within the cuts, select the "adjacent" clusters (stave +-1, chip =,+-1) and calculate the DCA with the track. Then choose the closest one.

if the cheks are passed, then calculate the DCA Compute the DCA between the duplicated cluster location and the track

Definition at line 2332 of file Efficiency.cxx.

◆ init()

void o2::its::study::EfficiencyStudy::init ( InitContext context)
finalvirtual

The method which is called once to initialise the task. Derived classes can use this to save extra state.

Reimplemented from o2::framework::Task.

Definition at line 304 of file Efficiency.cxx.

◆ initialiseRun()

void o2::its::study::EfficiencyStudy::initialiseRun ( o2::globaltracking::RecoContainer recoData)

Definition at line 504 of file Efficiency.cxx.

◆ process()

void o2::its::study::EfficiencyStudy::process ( o2::globaltracking::RecoContainer recoData)

Definition at line 2637 of file Efficiency.cxx.

◆ run()

void o2::its::study::EfficiencyStudy::run ( ProcessingContext context)
finalvirtual

This is invoked whenever a new InputRecord is demeed to be complete.

Implements o2::framework::Task.

Definition at line 493 of file Efficiency.cxx.

◆ saveDataInfo()

void o2::its::study::EfficiencyStudy::saveDataInfo ( )

Definition at line 1958 of file Efficiency.cxx.

◆ setClusterDictionary()

void o2::its::study::EfficiencyStudy::setClusterDictionary ( const o2::itsmft::TopologyDictionary d)
inline

Definition at line 81 of file Efficiency.cxx.

◆ stileEfficiencyGraph()

void o2::its::study::EfficiencyStudy::stileEfficiencyGraph ( std::unique_ptr< TEfficiency > &  eff,
const char name,
const char title,
bool  bidimensional = false,
const int  markerStyle = kFullCircle,
const double  markersize = 1,
const int  markercolor = kBlack,
const int  linercolor = kBlack 
)

Definition at line 524 of file Efficiency.cxx.

◆ studyClusterSelectionMC()

void o2::its::study::EfficiencyStudy::studyClusterSelectionMC ( )

cut on primary vertex position (?)

for each oroginal cluster iterate over all the possible "adjacten" clusters (stave +-1, chip =,+-1) and calculate the DCA with the track. Then choose the closest one.

if the cheks are passed, then calculate the DCA

Compute the DCA between the duplicated cluster location and the track

eta and phi in different pt ranges

Definition at line 1319 of file Efficiency.cxx.

◆ studyDCAcutsMC()

void o2::its::study::EfficiencyStudy::studyDCAcutsMC ( )

for each oroginal cluster iterate over all the possible "adjacent" clusters (stave +-1, chip =,+-1) and calculate the DCA with the track. Then compare the cluster label with the track label to see if it is a true or fake match

if the cheks are passed, then calculate the DCA

Compute the DCA between the duplicated cluster location and the track

checking the DCA for 20 different sigma ranges

Definition at line 964 of file Efficiency.cxx.


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