185 std::vector<std::string> simtags = pset.
getParameter<std::vector<std::string> >(
"srcSIM");
186 std::vector<std::string> gentags = pset.
getParameter<std::vector<std::string> >(
"srcGEN");
188 if(simtags.size() != gentags.size())
LogError(
"MixingInput")<<
"Generator and Simulation input lists are not matching each other"<<endl;
190 for (std::vector<string>::iterator it=names.begin();it!= names.end();++it){
193 if (!pstag.
exists(
"type"))
continue;
195 std::vector<InputTag> tags=pstag.
getParameter<std::vector<InputTag> >(
"input");
198 for(
size_t itag = 0; itag < tags.size(); ++itag){
200 std::vector<InputTag>
inputs;
203 if (
object==
"HepMCProduct") signal = gentags[
input];
204 else signal = simtags[
input];
210 if (
object==
"HepMCProduct"){
212 produces<CrossingFrame<HepMCProduct> >(
label);
213 consumes<HepMCProduct>(
tag);
214 }
else if (
object==
"SimTrack"){
216 produces<CrossingFrame<SimTrack> >(
label);
217 consumes<std::vector<SimTrack> >(
tag);
218 }
else if (
object==
"SimVertex"){
220 produces<CrossingFrame<SimVertex> >(
label);
221 consumes<std::vector<SimVertex> >(
tag);
222 }
else if (
object==
"PSimHit"){
224 produces<CrossingFrame<PSimHit> >(
label);
225 consumes<std::vector<PSimHit> >(
tag);
226 }
else if (
object==
"PCaloHit"){
228 produces<CrossingFrame<PCaloHit> >(
label);
229 consumes<std::vector<PCaloHit> >(
tag);
230 }
else LogInfo(
"Error")<<
"What the hell is this object?!";
232 LogInfo(
"HiMixingModule") <<
"Will mix "<<
object<<
"s with InputTag= "<<tag.
encode()<<
", label will be "<<
label;
236 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_