Definition at line 149 of file HiMixingModule.cc.
◆ HiMixingModule()
Definition at line 175 of file HiMixingModule.cc.
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>();
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), input, PixelMapPlotter::inputs, HLT_2018_cff::InputTag, label, names, muonDTDigis_cfi::pset, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and triggerMatcherToHLTDebug_cfi::tags.
◆ ~HiMixingModule()
HiMixingModule::~HiMixingModule |
( |
| ) |
|
|
override |
◆ produce()
◆ verifyRegistry()
bool HiMixingModule::verifyRegistry |
( |
std::string |
object, |
|
|
std::string |
subdet, |
|
|
InputTag & |
tag, |
|
|
std::string & |
label |
|
) |
| |
|
private |
◆ workers_