59 vector<string> factoryNames = config.
getParameter< vector<string> >(
"TrajectoryFactoryNames" );
60 vector<string>::iterator itFactoryName;
61 for ( itFactoryName = factoryNames.begin(); itFactoryName != factoryNames.end(); ++itFactoryName )
64 std::auto_ptr<TObjArray> namePset(TString((*itFactoryName).c_str()).Tokenize(
","));
65 if (namePset->GetEntriesFast() != 2) {
66 throw cms::Exception(
"BadConfig") <<
"@SUB=CombinedTrajectoryFactory" 67 <<
"TrajectoryFactoryNames must contain 2 comma " 68 <<
"separated strings, but is '" << *itFactoryName <<
"'";
89 vector< TrajectoryFactoryBase* >::const_iterator itFactory;
92 tmpTrajectories = ( *itFactory )->trajectories(setup, tracks, beamSpot);
93 trajectories.insert(trajectories.end(), tmpTrajectories.begin(), tmpTrajectories.end());
110 vector< TrajectoryFactoryBase* >::const_iterator itFactory;
113 tmpTrajectories = ( *itFactory )->trajectories(setup, tracks, external, beamSpot);
114 trajectories.insert(trajectories.end(), tmpTrajectories.begin(), tmpTrajectories.end());
T getParameter(std::string const &) const
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
def create(alignables, pedeDump, additionalData, outputFile, config)
CombinedTrajectoryFactory(const edm::ParameterSet &config)
def setup(process, global_tag, zero_tesla=False)
std::vector< TrajectoryFactoryBase * > theFactories
virtual CombinedTrajectoryFactory * clone() const override
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
T get(const Candidate &c)
virtual ~CombinedTrajectoryFactory()