95 FakeInputProducer::FakeInputProducer(
const ParameterSet& iConfig) {
97 produces<BXVector<l1t::EGamma>>();
98 produces<BXVector<l1t::Muon>>();
99 produces<BXVector<l1t::Tau>>();
100 produces<BXVector<l1t::Jet>>();
101 produces<BXVector<l1t::EtSum>>();
107 fEgHwPt = eg_params.getUntrackedParameter<vector<int>>(
"egHwPt");
108 fEgHwPhi = eg_params.getUntrackedParameter<vector<int>>(
"egHwPhi");
109 fEgHwEta = eg_params.getUntrackedParameter<vector<int>>(
"egHwEta");
110 fEgIso = eg_params.getUntrackedParameter<vector<int>>(
"egIso");
116 fMuHwPt = mu_params.getUntrackedParameter<vector<int>>(
"muHwPt");
117 fMuHwPhi = mu_params.getUntrackedParameter<vector<int>>(
"muHwPhi");
118 fMuHwEta = mu_params.getUntrackedParameter<vector<int>>(
"muHwEta");
119 fMuIso = mu_params.getUntrackedParameter<vector<int>>(
"muIso");
125 fTauHwPt = tau_params.getUntrackedParameter<vector<int>>(
"tauHwPt");
126 fTauHwPhi = tau_params.getUntrackedParameter<vector<int>>(
"tauHwPhi");
127 fTauHwEta = tau_params.getUntrackedParameter<vector<int>>(
"tauHwEta");
128 fTauIso = tau_params.getUntrackedParameter<vector<int>>(
"tauIso");
134 fJetHwPt = jet_params.getUntrackedParameter<vector<int>>(
"jetHwPt");
135 fJetHwPhi = jet_params.getUntrackedParameter<vector<int>>(
"jetHwPhi");
136 fJetHwEta = jet_params.getUntrackedParameter<vector<int>>(
"jetHwEta");
142 fEtSumHwPt = etsum_params.getUntrackedParameter<vector<int>>(
"etsumHwPt");
143 fEtSumHwPhi = etsum_params.getUntrackedParameter<vector<int>>(
"etsumHwPhi");
146 FakeInputProducer::~FakeInputProducer() {}
154 LogDebug(
"l1t|Global") <<
"FakeInputProducer::produce function called...\n";
168 for (
unsigned int it = 0; it < fEgBx.size(); it++) {
169 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* egLorentz =
170 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
171 l1t::EGamma fakeEG(*egLorentz, fEgHwPt.at(it), fEgHwEta.at(it), fEgHwPhi.at(it), 0, fEgIso.at(it));
172 egammas->push_back(fEgBx.at(it), fakeEG);
176 for (
unsigned int it = 0; it < fMuBx.size(); it++) {
177 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* muLorentz =
178 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
179 l1t::Muon fakeMU(*muLorentz, fMuHwPt.at(it), fMuHwEta.at(it), fMuHwPhi.at(it), 4, 0, 0, fMuIso.at(it));
180 muons->push_back(fMuBx.at(it), fakeMU);
184 for (
unsigned int it = 0; it < fTauBx.size(); it++) {
185 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* tauLorentz =
186 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
187 l1t::Tau fakeTAU(*tauLorentz, fTauHwPt.at(it), fTauHwEta.at(it), fTauHwPhi.at(it), 0, fTauIso.at(it));
188 taus->push_back(fTauBx.at(it), fakeTAU);
192 for (
unsigned int it = 0; it < fJetBx.size(); it++) {
193 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* jetLorentz =
194 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
195 l1t::Jet fakeJET(*jetLorentz, fJetHwPt.at(it), fJetHwEta.at(it), fJetHwPhi.at(it), 0);
196 jets->push_back(fJetBx.at(it), fakeJET);
200 for (
unsigned int it = 0; it < fEtSumBx.size(); it++) {
201 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>* etsumLorentz =
202 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>();
205 etsums->push_back(fEtSumBx.at(it), fakeETSUM);
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
T getUntrackedParameter(std::string const &, T const &) const
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)