13#ifndef TRGCDCRelation_FLAG_
14#define TRGCDCRelation_FLAG_
18#ifdef TRGCDC_SHORT_NAMES
19#define TCRelation TRGCDCRelation
22#include "trg/cdc/TrackBase.h"
41 const std::map<unsigned, unsigned>& relation);
62 float purity(
unsigned i = 0)
const;
65 float purity3D(
unsigned trkID)
const;
68 float efficiency3D(
unsigned trkID, std::map<unsigned, unsigned>& numTSsParticle)
const;
71 void dump(
const std::string& message = std::string(
""),
72 const std::string& prefix = std::string(
""))
const;
83 mutable const std::pair<unsigned, unsigned>**
_pairs;
A Class to store the Monte Carlo particle information.
A class to represent a wire in CDC.
const std::pair< unsigned, unsigned > ** _pairs
Pairs.
const TRGCDCTrackBase & _track
Track.
const std::map< unsigned, unsigned > _relations
Map.
A class to represent a track object in TRGCDC.
float efficiency3D(unsigned trkID, std::map< unsigned, unsigned > &numTSsParticle) const
returns efficiency of TS for 3D
const MCParticle & mcParticle(unsigned i=0) const
returns i'th contributor.
const TRGCDCTrackBase & track(void) const
returns a track.
virtual ~TRGCDCRelation()
Destructor.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
Dumps debug information.
unsigned nContributors(void) const
returns /# of contributors.
unsigned contributor(unsigned i=0) const
returns i'th contributor of MCParticle.
float purity(unsigned i=0) const
returns i'th purity.
float purity3D(unsigned trkID) const
returns purity for 3D for trkID particle which should be from 2D.
Abstract base class for different kinds of events.