54 void endJob()
override;
102 produces<BXVector<l1t::EGamma>>();
103 produces<BXVector<l1t::Muon>>();
104 produces<BXVector<l1t::Tau>>();
105 produces<BXVector<l1t::Jet>>();
106 produces<BXVector<l1t::EtSum>>();
112 fEgHwPt = eg_params.getUntrackedParameter<vector<int>>(
"egHwPt");
113 fEgHwPhi = eg_params.getUntrackedParameter<vector<int>>(
"egHwPhi");
114 fEgHwEta = eg_params.getUntrackedParameter<vector<int>>(
"egHwEta");
115 fEgIso = eg_params.getUntrackedParameter<vector<int>>(
"egIso");
121 fMuHwPt = mu_params.getUntrackedParameter<vector<int>>(
"muHwPt");
122 fMuHwPhi = mu_params.getUntrackedParameter<vector<int>>(
"muHwPhi");
123 fMuHwEta = mu_params.getUntrackedParameter<vector<int>>(
"muHwEta");
124 fMuIso = mu_params.getUntrackedParameter<vector<int>>(
"muIso");
130 fTauHwPt = tau_params.getUntrackedParameter<vector<int>>(
"tauHwPt");
131 fTauHwPhi = tau_params.getUntrackedParameter<vector<int>>(
"tauHwPhi");
132 fTauHwEta = tau_params.getUntrackedParameter<vector<int>>(
"tauHwEta");
133 fTauIso = tau_params.getUntrackedParameter<vector<int>>(
"tauIso");
139 fJetHwPt = jet_params.getUntrackedParameter<vector<int>>(
"jetHwPt");
140 fJetHwPhi = jet_params.getUntrackedParameter<vector<int>>(
"jetHwPhi");
141 fJetHwEta = jet_params.getUntrackedParameter<vector<int>>(
"jetHwEta");
147 fEtSumHwPt = etsum_params.getUntrackedParameter<vector<int>>(
"etsumHwPt");
148 fEtSumHwPhi = etsum_params.getUntrackedParameter<vector<int>>(
"etsumHwPhi");
154 FakeInputProducer::~FakeInputProducer() {}
162 LogDebug(
"l1t|Global") <<
"FakeInputProducer::produce function called...\n";
176 for (
unsigned int it = 0; it < fEgBx.size(); it++) {
177 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* egLorentz =
178 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
179 l1t::EGamma fakeEG(*egLorentz, fEgHwPt.at(it), fEgHwEta.at(it), fEgHwPhi.at(it), 0, fEgIso.at(it));
180 egammas->push_back(fEgBx.at(it), fakeEG);
184 for (
unsigned int it = 0; it < fMuBx.size(); it++) {
185 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* muLorentz =
186 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
187 l1t::Muon fakeMU(*muLorentz, fMuHwPt.at(it), fMuHwEta.at(it), fMuHwPhi.at(it), 4, 0, 0, fMuIso.at(it));
188 muons->push_back(fMuBx.at(it), fakeMU);
192 for (
unsigned int it = 0; it < fTauBx.size(); it++) {
193 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* tauLorentz =
194 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
195 l1t::Tau fakeTAU(*tauLorentz, fTauHwPt.at(it), fTauHwEta.at(it), fTauHwPhi.at(it), 0, fTauIso.at(it));
196 taus->push_back(fTauBx.at(it), fakeTAU);
200 for (
unsigned int it = 0; it < fJetBx.size(); it++) {
201 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* jetLorentz =
202 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
203 l1t::Jet fakeJET(*jetLorentz, fJetHwPt.at(it), fJetHwEta.at(it), fJetHwPhi.at(it), 0);
204 jets->push_back(fJetBx.at(it), fakeJET);
208 for (
unsigned int it = 0; it < fEtSumBx.size(); it++) {
209 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* etsumLorentz =
210 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
213 etsums->push_back(fEtSumBx.at(it), fakeETSUM);
227 void FakeInputProducer::endJob() {}
232 LogDebug(
"l1t|Global") <<
"FakeInputProducer::beginRun function called...\n";
#define DEFINE_FWK_MODULE(type)
T getUntrackedParameter(std::string const &, T const &) const
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)