44 for (
const auto &
f :
other.theFactories) {
61 vector<string> factoryNames = config.
getParameter<vector<string>>(
"TrajectoryFactoryNames");
62 for (
auto const &factoryName : factoryNames) {
64 std::unique_ptr<TObjArray> namePset(TString(factoryName.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 '" << factoryName <<
"'";
83 tmpTrajectories = factory->trajectories(setup, tracks, beamSpot);
84 trajectories.insert(trajectories.end(), tmpTrajectories.begin(), tmpTrajectories.end());
102 tmpTrajectories = factory->trajectories(setup, tracks, external, beamSpot);
103 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)
std::vector< std::unique_ptr< TrajectoryFactoryBase > > theFactories
CombinedTrajectoryFactory * clone() const override
CombinedTrajectoryFactory(const CombinedTrajectoryFactory &other)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
~CombinedTrajectoryFactory() override