CMS 3D CMS Logo

TrackDetectorAssociator.h
Go to the documentation of this file.
1 #ifndef TrackAssociator_TrackDetectorAssociator_h
2 #define TrackAssociator_TrackDetectorAssociator_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: TrackAssociator
7 // Class: TrackDetectorAssociator
8 //
9 /*
10 
11  Description: main class of tools to associate a track to calorimeter and muon detectors
12 
13 */
14 //
15 // Original Author: Dmytro Kovalskyi
16 // Created: Fri Apr 21 10:59:41 PDT 2006
17 //
18 //
19 
26 
32 
36 
41 
44 
46 
48 
50 public:
53 
56 
71  const edm::EventSetup&,
72  const FreeTrajectoryState&,
73  const AssociatorParameters&);
77  const edm::EventSetup& iSetup,
79  const FreeTrajectoryState* innerState,
80  const FreeTrajectoryState* outerState = nullptr);
83  const edm::EventSetup&,
84  const reco::Track&,
85  const AssociatorParameters&,
86  Direction direction = Any);
89  const edm::Event&, const edm::EventSetup&, const SimTrack&, const SimVertex&, const AssociatorParameters&);
92  const edm::EventSetup&,
93  const GlobalVector&,
94  const GlobalPoint&,
95  const int,
96  const AssociatorParameters&);
99 
101  void setPropagator(const Propagator*);
102 
104  void useDefaultPropagator();
105 
110  const GlobalVector&,
111  const GlobalPoint&,
112  const int);
113 
114  static bool crossedIP(const reco::Track& track);
115 
116 private:
117  DetIdAssociator::MapRange getMapRange(const std::pair<float, float>& delta, const float dR) dso_internal;
118 
120 
122 
124 
126 
128 
130 
132 
134 
135  void getTAMuonChamberMatches(std::vector<TAMuonChamberMatch>& matches,
137 
138  void init(const edm::EventSetup&) dso_internal;
139 
141  return math::XYZPoint(point.x(), point.y(), point.z());
142  }
143 
145  return math::XYZPoint(point.x(), point.y(), point.z());
146  }
147 
148  math::XYZVector getVector(const GlobalVector& vec) dso_internal { return math::XYZVector(vec.x(), vec.y(), vec.z()); }
149 
150  math::XYZVector getVector(const LocalVector& vec) dso_internal { return math::XYZVector(vec.x(), vec.y(), vec.z()); }
151 
156 
163 
166 
168 };
169 #endif
Vector3DBase
Definition: Vector3DBase.h:8
Propagator.h
TrackDetectorAssociator::crossedIP
static bool crossedIP(const reco::Track &track)
Definition: TrackDetectorAssociator.cc:1107
Handle.h
Visibility.h
TrackDetectorAssociator::Any
Definition: TrackDetectorAssociator.h:55
SimVertex
Definition: SimVertex.h:5
CaloTower.h
edm::ESWatcher< IdealMagneticFieldRecord >
ESHandle.h
TrackDetectorAssociator::TrackDetectorAssociator
TrackDetectorAssociator()
Definition: TrackDetectorAssociator.cc:104
TrackDetectorAssociator::defProp_
Propagator * defProp_
Definition: TrackDetectorAssociator.h:153
TrackDetectorAssociator::getPoint
math::XYZPoint getPoint(const LocalPoint &point)
Definition: TrackDetectorAssociator.h:144
TrackBase.h
TrackDetectorAssociator::useDefaultPropagator
void useDefaultPropagator()
use the default propagator
Definition: TrackDetectorAssociator.cc:120
RecSegment
Definition: RecSegment.h:27
TrackDetectorAssociator::getVector
math::XYZVector getVector(const GlobalVector &vec)
Definition: TrackDetectorAssociator.h:148
TrackDetectorAssociator::addTAMuonSegmentMatch
bool addTAMuonSegmentMatch(TAMuonChamberMatch &, const RecSegment *, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:843
TrackDetectorAssociator::fillCaloTruth
void fillCaloTruth(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:940
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
TrackDetectorAssociator::fillHcal
void fillHcal(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:436
TrackDetectorAssociator::fillCaloTowers
void fillCaloTowers(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:339
parameters
parameters
Definition: BeamSpot_PayloadInspector.cc:14
TrackDetectorAssociator::getCachedTrajector
const CachedTrajectory & getCachedTrajector() const
trajector information
Definition: TrackDetectorAssociator.h:98
TrackDetectorAssociator::getFreeTrajectoryState
static FreeTrajectoryState getFreeTrajectoryState(const edm::EventSetup &, const reco::Track &)
get FreeTrajectoryState from different track representations
Definition: TrackDetectorAssociator.cc:600
Propagator
Definition: Propagator.h:44
TrackDetectorAssociator::AssociatorParameters
TrackAssociatorParameters AssociatorParameters
Definition: TrackDetectorAssociator.h:54
TrackDetectorAssociator::theMagneticFeildWatcher_
edm::ESWatcher< IdealMagneticFieldRecord > theMagneticFeildWatcher_
Definition: TrackDetectorAssociator.h:167
Track.h
TrackDetectorAssociator::ivProp_
const Propagator * ivProp_
Definition: TrackDetectorAssociator.h:152
TrackDetectorAssociator::theCaloGeometry_
edm::ESHandle< CaloGeometry > theCaloGeometry_
Definition: TrackDetectorAssociator.h:164
TrackDetectorAssociator::ecalDetIdAssociator_
edm::ESHandle< DetIdAssociator > ecalDetIdAssociator_
Definition: TrackDetectorAssociator.h:157
OrphanHandle.h
SimVertex.h
reco::Track
Definition: Track.h:27
IdealMagneticFieldRecord.h
edm::ESHandle< DetIdAssociator >
TrackDetectorAssociator::OutsideIn
Definition: TrackDetectorAssociator.h:55
TrackDetectorAssociator::hcalDetIdAssociator_
edm::ESHandle< DetIdAssociator > hcalDetIdAssociator_
Definition: TrackDetectorAssociator.h:158
Point3DBase< float, GlobalTag >
TrackDetectorAssociator::setPropagator
void setPropagator(const Propagator *)
use a user configured propagator
Definition: TrackDetectorAssociator.cc:115
TrackDetectorAssociator::getTAMuonChamberMatches
void getTAMuonChamberMatches(std::vector< TAMuonChamberMatch > &matches, const AssociatorParameters &parameters)
Definition: TrackDetectorAssociator.cc:642
CaloGeometryRecord.h
TrackDetectorAssociator::~TrackDetectorAssociator
~TrackDetectorAssociator()
Definition: TrackDetectorAssociator.cc:110
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
Event.h
TrackDetectorAssociator::fillMuon
void fillMuon(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:745
DetIdAssociator::MapRange
Definition: DetIdAssociator.h:48
dso_internal
#define dso_internal
Definition: Visibility.h:13
dumpMFGeometry_cfg.delta
delta
Definition: dumpMFGeometry_cfg.py:25
TrackDetectorAssociator
Definition: TrackDetectorAssociator.h:49
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
TrackDetectorAssociator::getVector
math::XYZVector getVector(const LocalVector &vec)
Definition: TrackDetectorAssociator.h:150
iEvent
int iEvent
Definition: GenABIO.cc:224
TrackDetectorAssociator::muonDetIdAssociator_
edm::ESHandle< DetIdAssociator > muonDetIdAssociator_
Definition: TrackDetectorAssociator.h:161
TrackDetectorAssociator::getPoint
math::XYZPoint getPoint(const GlobalPoint &point)
Definition: TrackDetectorAssociator.h:140
TrackDetectorAssociator::preshowerDetIdAssociator_
edm::ESHandle< DetIdAssociator > preshowerDetIdAssociator_
Definition: TrackDetectorAssociator.h:162
TrackDetectorAssociator::hoDetIdAssociator_
edm::ESHandle< DetIdAssociator > hoDetIdAssociator_
Definition: TrackDetectorAssociator.h:159
edm::EventSetup
Definition: EventSetup.h:57
Direction
TrackDetectorAssociator::InsideOut
Definition: TrackDetectorAssociator.h:55
CachedTrajectory
Definition: CachedTrajectory.h:44
TrackDetectorAssociator::init
void init(const edm::EventSetup &)
Definition: TrackDetectorAssociator.cc:122
EcalRecHit.h
TAMuonChamberMatch
Definition: TAMuonChamberMatch.h:20
TrackDetectorAssociator::Direction
Direction
Definition: TrackDetectorAssociator.h:55
TrackDetMatchInfo
Definition: TrackDetMatchInfo.h:14
TrackDetectorAssociator::fillPreshower
void fillPreshower(const edm::Event &iEvent, TrackDetMatchInfo &info, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:413
TrackDetectorAssociator::fillEcal
void fillEcal(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:265
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
SimTrack
Definition: SimTrack.h:6
ESWatcher.h
DetIdAssociator.h
CaloGeometry.h
TrackDetectorAssociator::getMapRange
DetIdAssociator::MapRange getMapRange(const std::pair< float, float > &delta, const float dR)
Definition: TrackDetectorAssociator.cc:622
EventSetup.h
TrackDetectorAssociator::useDefaultPropagator_
bool useDefaultPropagator_
Definition: TrackDetectorAssociator.h:155
patCandidatesForDimuonsSequences_cff.matches
matches
Definition: patCandidatesForDimuonsSequences_cff.py:131
TrackDetectorAssociator::cachedTrajectory_
CachedTrajectory cachedTrajectory_
Definition: TrackDetectorAssociator.h:154
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
TrackDetectorAssociator::associate
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:154
SimTrack.h
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
CachedTrajectory.h
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
edm::Event
Definition: Event.h:73
RecSegment.h
TrackAssociatorParameters.h
TrackDetMatchInfo.h
TrackDetectorAssociator::caloDetIdAssociator_
edm::ESHandle< DetIdAssociator > caloDetIdAssociator_
Definition: TrackDetectorAssociator.h:160
TrackDetectorAssociator::fillHO
void fillHO(const edm::Event &, TrackDetMatchInfo &, const AssociatorParameters &)
Definition: TrackDetectorAssociator.cc:504
TrackAssociatorParameters
Definition: TrackAssociatorParameters.h:34
TrackDetectorAssociator::theTrackingGeometry_
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry_
Definition: TrackDetectorAssociator.h:165