53 vector<string> factoryNames = config.
getParameter<vector<string> >(
"TrajectoryFactoryNames");
54 vector<string>::iterator itFactoryName;
55 for (itFactoryName = factoryNames.begin(); itFactoryName != factoryNames.end(); ++itFactoryName) {
57 std::unique_ptr<TObjArray> namePset(TString((*itFactoryName).c_str()).Tokenize(
","));
58 if (namePset->GetEntriesFast() != 2) {
59 throw cms::Exception(
"BadConfig") <<
"@SUB=CombinedTrajectoryFactory" 60 <<
"TrajectoryFactoryNames must contain 2 comma " 61 <<
"separated strings, but is '" << *itFactoryName <<
"'";
75 vector<TrajectoryFactoryBase *>::const_iterator itFactory;
77 tmpTrajectories = (*itFactory)->trajectories(setup, tracks, beamSpot);
78 trajectories.insert(trajectories.end(), tmpTrajectories.begin(), tmpTrajectories.end());
95 vector<TrajectoryFactoryBase *>::const_iterator itFactory;
97 tmpTrajectories = (*itFactory)->trajectories(setup, tracks, external, beamSpot);
98 trajectories.insert(trajectories.end(), tmpTrajectories.begin(), tmpTrajectories.end());
T getParameter(std::string const &) const
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)
CombinedTrajectoryFactory * clone() const override
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< TrajectoryFactoryBase * > theFactories
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
~CombinedTrajectoryFactory() override
T get(const Candidate &c)