53 theMass(config.getParameter<double>(
"ParticleMass")),
54 theUseBzeroIfFieldOff(config.getParameter<bool>(
"UseBzeroIfFieldOff")),
57 edm::LogInfo(
"Alignment") <<
"@SUB=ReferenceTrajectoryFactory"
59 <<
"\nusing Bzero if |B| = 0: "
65 theMass(other.theMass),
66 theUseBzeroIfFieldOff(other.theUseBzeroIfFieldOff),
90 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
92 while ( itTracks != tracks.end() )
97 if ( input.first.isValid() )
121 if ( tracks.size() != external.size() )
123 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=ReferenceTrajectoryFactory::trajectories"
124 <<
"Inconsistent input:\n"
125 <<
"\tnumber of tracks = " << tracks.size()
126 <<
"\tnumber of external predictions = " << external.size();
136 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
137 ExternalPredictionCollection::const_iterator itExternal = external.begin();
139 while ( itTracks != tracks.end() )
143 if ( input.first.isValid() )
145 if ( (*itExternal).isValid() &&
sameSurface( (*itExternal).surface(), input.first.surface() ) )
153 AlgebraicSymMatrix externalParamErrors( asHepMatrix<5>( (*itExternal).localError().matrix() ) );
154 refTraj->setParameterErrors( externalParamErrors );
155 trajectories.push_back( refTraj );
177 edm::LogInfo(
"Alignment") <<
"@SUB=ReferenceTrajectoryFactory::bzeroFactory"
178 <<
"Using BzeroReferenceTrajectoryFactory for some (all?) events.";
T getParameter(std::string const &) const
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const
Produce the reference trajectories.
MaterialEffects materialEffects(void) const
bool theUseBzeroIfFieldOff
virtual ReferenceTrajectoryFactory * clone() const
bool sameSurface(const Surface &s1, const Surface &s2) const
tuple BzeroReferenceTrajectoryFactory
BzeroReferenceTrajectoryFactory.
void addParameter(std::string const &name, T const &value)
const edm::ParameterSet & configuration() const
void eraseSimpleParameter(std::string const &name)
void copyForModify(ParameterSet const &other)
virtual ~ReferenceTrajectoryFactory()
const TrajectoryFactoryBase * bzeroFactory() const
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
const TrajectoryFactoryBase * theBzeroFactory
T const * product() const
ReferenceTrajectoryFactory(const edm::ParameterSet &config)
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const =0
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")