186 std::vector<std::string> simtags = pset.
getParameter<std::vector<std::string> >(
"srcSIM");
187 std::vector<std::string> gentags = pset.
getParameter<std::vector<std::string> >(
"srcGEN");
189 if(simtags.size() != gentags.size())
LogError(
"MixingInput")<<
"Generator and Simulation input lists are not matching each other"<<endl;
191 for (std::vector<string>::iterator it=names.begin();it!= names.end();++it){
194 if (!pstag.
exists(
"type"))
continue;
196 std::vector<InputTag>
tags=pstag.
getParameter<std::vector<InputTag> >(
"input");
199 for(
size_t itag = 0; itag < tags.size(); ++itag){
201 std::vector<InputTag>
inputs;
204 if (
object==
"HepMCProduct") signal = gentags[
input];
205 else signal = simtags[
input];
211 if (
object==
"HepMCProduct"){
213 produces<CrossingFrame<HepMCProduct> >(
label);
214 consumes<HepMCProduct>(
tag);
215 }
else if (
object==
"SimTrack"){
217 produces<CrossingFrame<SimTrack> >(
label);
218 consumes<std::vector<SimTrack> >(
tag);
219 }
else if (
object==
"SimVertex"){
221 produces<CrossingFrame<SimVertex> >(
label);
222 consumes<std::vector<SimVertex> >(
tag);
223 }
else if (
object==
"PSimHit"){
225 produces<CrossingFrame<PSimHit> >(
label);
226 consumes<std::vector<PSimHit> >(
tag);
227 }
else if (
object==
"PCaloHit"){
229 produces<CrossingFrame<PCaloHit> >(
label);
230 consumes<std::vector<PCaloHit> >(
tag);
231 }
else LogInfo(
"Error")<<
"What the hell is this object?!";
233 LogInfo(
"HiMixingModule") <<
"Will mix "<<
object<<
"s with InputTag= "<<tag.
encode()<<
", label will be "<<
label;
237 produces<PileupMixingContent>();
T getParameter(std::string const &) const
static const HistoName names[]
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static std::string const input
std::vector< std::string > getParameterNames() const
std::vector< HiMixingWorkerBase * > workers_