|
|
Go to the documentation of this file.
13 tracksPerTrajectory_(tracksPerTrajectory),
14 materialEffects_(materialEffects(
config.getParameter<
std::
string>(
"MaterialEffects"))),
15 propDir_(propagationDirection(
config.getParameter<
std::
string>(
"PropagationDirection"))),
16 useWithoutDet_(
config.getParameter<
bool>(
"UseHitWithoutDet")),
17 useInvalidHits_(
config.getParameter<
bool>(
"UseInvalidHits")),
18 useProjectedHits_(
config.getParameter<
bool>(
"UseProjectedHits")),
19 useBeamSpot_(
config.getParameter<
bool>(
"UseBeamSpot")),
20 includeAPEs_(
config.getParameter<
bool>(
"IncludeAPEs")),
21 allowZeroMaterial_(
config.getParameter<
bool>(
"AllowZeroMaterial")) {
22 edm::LogInfo(
"Alignment") <<
"@SUB=TrajectoryFactoryBase"
24 <<
"' with following settings:"
43 Trajectory::DataContainer::iterator itM = trajectoryMeasurements.begin();
46 while (itM != trajectoryMeasurements.end()) {
47 if ((*itM).updatedState().isValid() &&
useRecHit((*itM).recHit()))
51 if (itM != trajectoryMeasurements.end())
52 result.first = (*itM).updatedState();
55 while (itM != trajectoryMeasurements.end()) {
58 result.second.push_back(aRecHit);
78 Trajectory::DataContainer::const_reverse_iterator itM;
80 reordered.push_back(*itM);
95 const GeomDet* det = hitPtr->det();
111 if (strME ==
"MultipleScattering")
113 if (strME ==
"EnergyLoss")
115 if (strME ==
"Combined")
119 if (strME ==
"BreakPoints")
121 if (strME ==
"BrokenLines")
123 if (strME ==
"BrokenLinesCoarse")
125 if (strME ==
"BrokenLinesFine")
127 if (strME ==
"LocalGBL")
129 if (strME ==
"CurvlinGBL")
132 throw cms::Exception(
"BadConfig") <<
"[TrajectoryFactoryBase::materialEffects] Unknown parameter: " << strME;
136 if (strPD ==
"oppositeToMomentum")
138 if (strPD ==
"alongMomentum")
140 if (strPD ==
"anyDirection")
143 throw cms::Exception(
"BadConfig") <<
"[TrajectoryFactoryBase::propagationDirection] Unknown parameter: " << strPD;
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
PropagationDirection const & direction() const
bool isProjected(TrackingRecHit const &hit)
const bool useInvalidHits_
std::vector< TrajectoryMeasurement > DataContainer
bool sameSurface(const Surface &s1, const Surface &s2) const
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
PropagationDirection propagationDirection(void) const
const bool useProjectedHits_
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
const bool useWithoutDet_
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const PropagationDirection propDir_
MaterialEffects materialEffects(void) const
DataContainer const & measurements() const
const bool allowZeroMaterial_
T getParameter(std::string const &) const
const PositionType & position() const
const edm::ParameterSet cfg_
TrajectoryFactoryBase(const edm::ParameterSet &config)
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
virtual ~TrajectoryFactoryBase(void)