15 generatedCollection_(iPSet.getParameter<edm::
InputTag>(
"generatedCollection")),
16 searchForLHE_(iPSet.getParameter<bool>(
"searchForLHE"))
52 const std::vector<lhef::HEPEUP::FiveVector> pup_ = hepeup_.
PUP;
54 double pz1=(pup_[0])[3];
55 double pz2=(pup_[1])[3];
56 bjorken+=(pz1/(pz1+pz2));
63 const HepMC::PdfInfo *pdf = evt->GetEvent()->pdf_info();
65 bjorken = ((pdf->x1())/((pdf->x1())+(pdf->x2())));
78 associationMap::iterator itr;
79 associationMap::iterator lastElement;
85 if (itr == mMap.end())
89 lastElement = mMap.upper_bound(key);
92 for ( ; itr != lastElement; ++itr)
93 theObjects.push_back(itr);
100 theObjects.reserve(10);
103 double theKey = (*it).first;
107 if (theObjects.size() > 1) {
108 edm::LogWarning(
"DuplicatedEventFound") <<
"Duplicated events found with xBjorken = " << std::fixed << std::setw(16) << std::setprecision(14) << theKey;
109 for (
unsigned int i = 0;
i < theObjects.size();
i++) {
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
edm::InputTag generatedCollection_
bool getByType(Handle< PROD > &result) const
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
virtual ~DuplicationChecker()
DuplicationChecker(const edm::ParameterSet &)
void setCurrentFolder(const std::string &fullpath)
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)