16 generatedCollection_(iPSet.getParameter<edm::
InputTag>(
"hepmcCollection")),
17 searchForLHE_(iPSet.getParameter<bool>(
"searchForLHE"))
58 const std::vector<lhef::HEPEUP::FiveVector> pup_ = hepeup_.
PUP;
60 double pz1=(pup_[0])[3];
61 double pz2=(pup_[1])[3];
62 bjorken+=(pz1/(pz1+pz2));
71 const HepMC::PdfInfo *pdf = evt->GetEvent()->pdf_info();
73 bjorken = ((pdf->x1())/((pdf->x1())+(pdf->x2())));
86 associationMap::iterator itr;
87 associationMap::iterator lastElement;
93 if (itr == mMap.end())
97 lastElement = mMap.upper_bound(key);
100 for ( ; itr != lastElement; ++itr)
101 theObjects.push_back(itr);
108 theObjects.reserve(10);
111 double theKey = (*it).first;
115 if (theObjects.size() > 1) {
116 edm::LogWarning(
"DuplicatedEventFound") <<
"Duplicated events found with xBjorken = " << std::fixed << std::setw(16) << std::setprecision(14) << theKey;
117 for (
unsigned int i = 0;
i < theObjects.size();
i++) {
T getParameter(std::string const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
edm::InputTag generatedCollection_
std::vector< associationMap::iterator > itemList
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
associationMap xBjorkenHistory
U second(std::pair< T, U > const &p)
std::vector< FiveVector > PUP
std::multimap< double, edm::EventID > associationMap
MonitorElement * xBjorkenME
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag lheEventProduct_
virtual ~DuplicationChecker()
DuplicationChecker(const edm::ParameterSet &)
double weight(const edm::Event &)
void setCurrentFolder(const std::string &fullpath)
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)