13 #include <boost/shared_ptr.hpp>
56 virtual void endJob();
107 produces<BXVector<l1t::EGamma>>();
108 produces<BXVector<l1t::Muon>>();
109 produces<BXVector<l1t::Tau>>();
110 produces<BXVector<l1t::Jet>>();
111 produces<BXVector<l1t::EtSum>>();
118 fEgHwPt = eg_params.getUntrackedParameter< vector<int> >(
"egHwPt");
119 fEgHwPhi = eg_params.getUntrackedParameter< vector<int> >(
"egHwPhi");
120 fEgHwEta = eg_params.getUntrackedParameter< vector<int> >(
"egHwEta");
121 fEgIso = eg_params.getUntrackedParameter< vector<int> >(
"egIso");
128 fMuHwPt = mu_params.getUntrackedParameter< vector<int> >(
"muHwPt");
129 fMuHwPhi = mu_params.getUntrackedParameter< vector<int> >(
"muHwPhi");
130 fMuHwEta = mu_params.getUntrackedParameter< vector<int> >(
"muHwEta");
131 fMuIso = mu_params.getUntrackedParameter< vector<int> >(
"muIso");
138 fTauHwPt = tau_params.getUntrackedParameter< vector<int> >(
"tauHwPt");
139 fTauHwPhi = tau_params.getUntrackedParameter< vector<int> >(
"tauHwPhi");
140 fTauHwEta = tau_params.getUntrackedParameter< vector<int> >(
"tauHwEta");
141 fTauIso = tau_params.getUntrackedParameter< vector<int> >(
"tauIso");
148 fJetHwPt = jet_params.getUntrackedParameter< vector<int> >(
"jetHwPt");
149 fJetHwPhi = jet_params.getUntrackedParameter< vector<int> >(
"jetHwPhi");
150 fJetHwEta = jet_params.getUntrackedParameter< vector<int> >(
"jetHwEta");
156 fEtSumHwPt = etsum_params.getUntrackedParameter< vector<int> >(
"etsumHwPt");
157 fEtSumHwPhi = etsum_params.getUntrackedParameter< vector<int> >(
"etsumHwPhi");
165 FakeInputProducer::~FakeInputProducer()
180 LogDebug(
"l1t|Global") <<
"FakeInputProducer::produce function called...\n";
194 for(
unsigned int it=0; it<fEgBx.size(); it++) {
196 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *egLorentz =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
197 l1t::EGamma fakeEG(*egLorentz, fEgHwPt.at(it), fEgHwEta.at(it),fEgHwPhi.at(it), 0, fEgIso.at(it));
198 egammas->push_back(fEgBx.at(it), fakeEG);
203 for(
unsigned int it=0; it<fMuBx.size(); it++) {
205 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *muLorentz =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
206 l1t::Muon fakeMU(*muLorentz, fMuHwPt.at(it), fMuHwEta.at(it),fMuHwPhi.at(it), 4, 0, 0, fMuIso.at(it));
207 muons->push_back(fMuBx.at(it), fakeMU);
212 for(
unsigned int it=0; it<fTauBx.size(); it++) {
214 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *tauLorentz =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
215 l1t::Tau fakeTAU(*tauLorentz, fTauHwPt.at(it), fTauHwEta.at(it),fTauHwPhi.at(it), 0, fTauIso.at(it));
216 taus->push_back(fTauBx.at(it), fakeTAU);
221 for(
unsigned int it=0; it<fJetBx.size(); it++) {
223 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *jetLorentz =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
224 l1t::Jet fakeJET(*jetLorentz, fJetHwPt.at(it), fJetHwEta.at(it),fJetHwPhi.at(it), 0);
225 jets->push_back(fJetBx.at(it), fakeJET);
230 for(
unsigned int it=0; it<fEtSumBx.size(); it++) {
232 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *etsumLorentz =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
233 l1t::EtSum fakeETSUM(*etsumLorentz, l1t::EtSum::EtSumType::kMissingEt,fEtSumHwPt.at(it), 0,fEtSumHwPhi.at(it), 0);
234 etsums->push_back(fEtSumBx.at(it), fakeETSUM);
254 FakeInputProducer::endJob() {
261 LogDebug(
"l1t|Global") <<
"FakeInputProducer::beginRun function called...\n";
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.