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 }
else if (
object==
"SimTrack"){
216 produces<CrossingFrame<SimTrack> >(
label);
217 }
else if (
object==
"SimVertex"){
219 produces<CrossingFrame<SimVertex> >(
label);
220 }
else if (
object==
"PSimHit"){
222 produces<CrossingFrame<PSimHit> >(
label);
223 }
else if (
object==
"PCaloHit"){
225 produces<CrossingFrame<PCaloHit> >(
label);
226 }
else LogInfo(
"Error")<<
"What the hell is this object?!";
228 LogInfo(
"HiMixingModule") <<
"Will mix "<<
object<<
"s with InputTag= "<<tag.
encode()<<
", label will be "<<
label;
232 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_