Go to the documentation of this file.
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);
edm::InputTag lheEventProduct_
DuplicationChecker(const edm::ParameterSet &)
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)
void analyze(const edm::Event &, const edm::EventSetup &) override
~DuplicationChecker() override
std::vector< associationMap::iterator > itemList
edm::EDGetTokenT< LHEEventProduct > lheEventProductToken_
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
const HepMC::GenEvent * GetEvent() const
std::vector< std::pair< float, float > >::iterator itr
edm::InputTag generatedCollection_
double weight(const edm::Event &)
MonitorElement * xBjorkenME
const lhef::HEPEUP & hepeup() const
std::multimap< double, edm::EventID > associationMap
edm::EDGetTokenT< edm::HepMCProduct > generatedCollectionToken_
associationMap xBjorkenHistory
T getParameter(std::string const &) const