|
|
Go to the documentation of this file.
25 theMass(
config.getParameter<double>(
"ParticleMass")),
26 theMomentumEstimate(
config.getParameter<double>(
"MomentumEstimate")) {
27 edm::LogInfo(
"Alignment") <<
"@SUB=BzeroReferenceTrajectoryFactory"
41 ConstTrajTrackPairCollection::const_iterator itTracks =
tracks.begin();
43 while (itTracks !=
tracks.end()) {
46 if (
input.first.isValid()) {
52 config.hitsAreReverse =
false;
73 <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories"
74 <<
"Inconsistent input:\n"
75 <<
"\tnumber of tracks = " <<
tracks.size() <<
"\tnumber of external predictions = " <<
external.size();
82 ConstTrajTrackPairCollection::const_iterator itTracks =
tracks.begin();
83 ExternalPredictionCollection::const_iterator itExternal =
external.begin();
85 while (itTracks !=
tracks.end()) {
88 if (
input.first.isValid()) {
89 if ((*itExternal).isValid() &&
sameSurface((*itExternal).surface(),
input.first.surface())) {
95 config.hitsAreReverse =
false;
99 AlgebraicSymMatrix externalParamErrors(asHepMatrix<5>((*itExternal).localError().matrix()));
100 refTraj->setParameterErrors(externalParamErrors.sub(2, 5));
109 config.hitsAreReverse =
false;
double theMomentumEstimate
static const std::string input
Log< level::Info, false > LogInfo
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
bool sameSurface(const Surface &s1, const Surface &s2) const
config
parse the configuration file
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
PropagationDirection propagationDirection(void) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
~BzeroReferenceTrajectoryFactory() override
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
CLHEP::HepSymMatrix AlgebraicSymMatrix
MaterialEffects materialEffects(void) const
const bool allowZeroMaterial_
BzeroReferenceTrajectoryFactory(const edm::ParameterSet &config)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection