13 : wmanager_(iPSet, consumesCollector()),
14 generatedCollection_(iPSet.getParameter<
edm::
InputTag>(
"hepmcCollection")),
15 searchForLHE_(iPSet.getParameter<
bool>(
"searchForLHE")) {
32 i.setCurrentFolder(
"Generator/DuplicationCheck");
35 xBjorkenME =
dqm.book1dHisto(
"xBjorkenME",
"x Bjorken ratio", 1000000, 0., 1.);
49 const std::vector<lhef::HEPEUP::FiveVector> pup_ =
hepeup_.PUP;
51 double pz1 = (pup_[0])[3];
52 double pz2 = (pup_[1])[3];
53 bjorken += (pz1 / (pz1 + pz2));
61 const HepMC::PdfInfo *pdf = evt->
GetEvent()->pdf_info();
63 bjorken = ((pdf->x1()) / ((pdf->x1()) + (pdf->x2())));
74 associationMap::iterator itr;
75 associationMap::iterator lastElement;
81 if (itr == mMap.end())
85 lastElement = mMap.upper_bound(
key);
88 for (; itr != lastElement; ++itr)
89 theObjects.push_back(itr);
T getParameter(std::string const &) const
edm::EDGetTokenT< LHEEventProduct > lheEventProductToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::InputTag generatedCollection_
edm::EDGetTokenT< edm::HepMCProduct > generatedCollectionToken_
std::multimap< double, edm::EventID > associationMap
std::vector< associationMap::iterator > itemList
associationMap xBjorkenHistory
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
~DuplicationChecker() override
key
prepare the HTCondor submission files and eventually submit them
MonitorElement * xBjorkenME
const HepMC::GenEvent * GetEvent() const
edm::InputTag lheEventProduct_
DuplicationChecker(const edm::ParameterSet &)
double weight(const edm::Event &)
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)
const lhef::HEPEUP & hepeup() const