52 theMass(config.getParameter<double>(
"ParticleMass")),
55 edm::LogInfo(
"Alignment") <<
"@SUB=ReferenceTrajectoryFactory" 79 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
81 while (itTracks != tracks.end()) {
85 if (input.first.isValid()) {
109 if (tracks.size() != external.size()) {
111 <<
"@SUB=ReferenceTrajectoryFactory::trajectories" 112 <<
"Inconsistent input:\n" 113 <<
"\tnumber of tracks = " << tracks.size() <<
"\tnumber of external predictions = " << external.size();
123 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
124 ExternalPredictionCollection::const_iterator itExternal = external.begin();
126 while (itTracks != tracks.end()) {
129 if (input.first.isValid()) {
130 if ((*itExternal).isValid() &&
sameSurface((*itExternal).surface(), input.first.surface())) {
140 AlgebraicSymMatrix externalParamErrors(asHepMatrix<5>((*itExternal).localError().matrix()));
141 refTraj->setParameterErrors(externalParamErrors);
142 trajectories.push_back(refTraj);
164 edm::LogInfo(
"Alignment") <<
"@SUB=ReferenceTrajectoryFactory::bzeroFactory" 165 <<
"Using BzeroReferenceTrajectoryFactory for some (all?) events.";
T getParameter(std::string const &) const
~ReferenceTrajectoryFactory() override
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
MaterialEffects materialEffects(void) const
ReferenceTrajectoryFactory * clone() const override
bool theUseBzeroIfFieldOff
def setup(process, global_tag, zero_tesla=False)
static std::string const input
bool sameSurface(const Surface &s1, const Surface &s2) const
void addParameter(std::string const &name, T const &value)
const bool allowZeroMaterial_
BzeroReferenceTrajectoryFactory
BzeroReferenceTrajectoryFactory.
const edm::ParameterSet & configuration() const
void eraseSimpleParameter(std::string const &name)
void copyForModify(ParameterSet const &other)
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const =0
const TrajectoryFactoryBase * bzeroFactory() const
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
const TrajectoryFactoryBase * theBzeroFactory
ReferenceTrajectoryFactory(const edm::ParameterSet &config)
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
T const * product() const
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection