RecoTracker
SiTrackerMRHTools
interface
MeasurementByLayerGrouper.h
Go to the documentation of this file.
1
#ifndef SiTrackerMRHTools_MeasurementByLayerGrouper_H
2
#define SiTrackerMRHTools_MeasurementByLayerGrouper_H
3
4
class
DetLayer
;
5
class
TrajectoryMeasurement
;
6
class
GeometricSearchTracker
;
7
8
#include <vector>
9
#include <map>
10
11
//groups the TrajectoryMeasurements on a layer by layer basis
12
13
class
MeasurementByLayerGrouper
{
14
private
:
15
typedef
TrajectoryMeasurement
TM
;
16
const
GeometricSearchTracker
*
theGeomSearch
;
17
18
const
DetLayer
*
getDetLayer
(
const
TM
& tm)
const
;
19
20
public
:
21
explicit
MeasurementByLayerGrouper
(
const
GeometricSearchTracker
*
search
=
nullptr
) :
theGeomSearch
(
search
){};
22
23
std::vector<std::pair<const DetLayer*, std::vector<TM> > >
operator()
(
const
std::vector<TM>&)
const
;
24
25
//to be ported later if needed
26
/*
27
vector<TM>
28
operator()(const vector<pair<const DetLayer*, vector<TM> > >&) const;
29
30
vector<pair<const DetLayer*, map<int, vector<TrajectoryMeasurement> > > >
31
operator()(const map<int, vector<TM> >&) const;
32
*/
33
};
34
#endif
MeasurementByLayerGrouper::theGeomSearch
const GeometricSearchTracker * theGeomSearch
Definition:
MeasurementByLayerGrouper.h:16
DetLayer
Definition:
DetLayer.h:21
MeasurementByLayerGrouper::operator()
std::vector< std::pair< const DetLayer *, std::vector< TM > > > operator()(const std::vector< TM > &) const
Definition:
MeasurementByLayerGrouper.cc:10
cond::persistency::search
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
Definition:
IOVProxy.cc:21
MeasurementByLayerGrouper::MeasurementByLayerGrouper
MeasurementByLayerGrouper(const GeometricSearchTracker *search=nullptr)
Definition:
MeasurementByLayerGrouper.h:21
GeometricSearchTracker
Definition:
GeometricSearchTracker.h:14
MeasurementByLayerGrouper::getDetLayer
const DetLayer * getDetLayer(const TM &tm) const
Definition:
MeasurementByLayerGrouper.cc:49
MeasurementByLayerGrouper
Definition:
MeasurementByLayerGrouper.h:13
TrajectoryMeasurement
Definition:
TrajectoryMeasurement.h:25
MeasurementByLayerGrouper::TM
TrajectoryMeasurement TM
Definition:
MeasurementByLayerGrouper.h:15
Generated for CMSSW Reference Manual by
1.8.16