27 theMass(config.getParameter<double>(
"ParticleMass")),
28 theMomentumEstimate(config.getParameter<double>(
"MomentumEstimate")) {
29 edm::LogInfo(
"Alignment") <<
"@SUB=BzeroReferenceTrajectoryFactory"
42 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
44 while (itTracks != tracks.end()) {
47 if (input.first.isValid()) {
72 if (tracks.size() != external.size()) {
74 <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories"
75 <<
"Inconsistent input:\n"
76 <<
"\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())) {
99 AlgebraicSymMatrix externalParamErrors(asHepMatrix<5>((*itExternal).localError().matrix()));
100 refTraj->setParameterErrors(externalParamErrors.sub(2, 5));
102 trajectories.push_back(refTraj);
MaterialEffects materialEffects(void) const
auto const & tracks
cannot be loose
static std::string const input
bool getData(T &iHolder) const
BzeroReferenceTrajectoryFactory(const edm::ParameterSet &config, edm::ConsumesCollector &iC)
~BzeroReferenceTrajectoryFactory() override
bool sameSurface(const Surface &s1, const Surface &s2) const
const bool allowZeroMaterial_
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
Log< level::Info, false > LogInfo
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_MagFieldToken
tuple config
parse the configuration file
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
double theMomentumEstimate
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection