178 std::vector<std::string> simtags = pset.
getParameter<std::vector<std::string> >(
"srcSIM");
179 std::vector<std::string> gentags = pset.
getParameter<std::vector<std::string> >(
"srcGEN");
181 if (simtags.size() != gentags.size())
182 LogError(
"MixingInput") <<
"Generator and Simulation input lists are not matching each other" << endl;
184 for (std::vector<string>::iterator it = names.begin(); it != names.end(); ++it) {
186 if (!pstag.
exists(
"type"))
189 std::vector<InputTag>
tags = pstag.
getParameter<std::vector<InputTag> >(
"input");
192 for (
size_t itag = 0; itag < tags.size(); ++itag) {
194 std::vector<InputTag>
inputs;
197 if (
object ==
"HepMCProduct")
198 signal = gentags[
input];
200 signal = simtags[
input];
206 if (
object ==
"HepMCProduct") {
208 produces<CrossingFrame<HepMCProduct> >(
label);
209 consumes<HepMCProduct>(
tag);
210 }
else if (
object ==
"SimTrack") {
212 produces<CrossingFrame<SimTrack> >(
label);
213 consumes<std::vector<SimTrack> >(
tag);
214 }
else if (
object ==
"SimVertex") {
216 produces<CrossingFrame<SimVertex> >(
label);
217 consumes<std::vector<SimVertex> >(
tag);
218 }
else if (
object ==
"PSimHit") {
220 produces<CrossingFrame<PSimHit> >(
label);
221 consumes<std::vector<PSimHit> >(
tag);
222 }
else if (
object ==
"PCaloHit") {
224 produces<CrossingFrame<PCaloHit> >(
label);
225 consumes<std::vector<PCaloHit> >(
tag);
227 LogInfo(
"Error") <<
"What the hell is this object?!";
229 LogInfo(
"HiMixingModule") <<
"Will mix " <<
object <<
"s with InputTag= " << tag.
encode() <<
", label will be " 234 produces<PileupMixingContent>();
T getParameter(std::string const &) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
const std::string names[nVars_]
static std::string const input
std::vector< std::string > getParameterNames() const
std::vector< HiMixingWorkerBase * > workers_