13 wmanager_(iPSet,consumesCollector()),
14 generatedCollection_(iPSet.getParameter<edm::
InputTag>(
"hepmcCollection")),
15 searchForLHE_(iPSet.getParameter<bool>(
"searchForLHE"))
54 const std::vector<lhef::HEPEUP::FiveVector> pup_ = hepeup_.
PUP;
56 double pz1=(pup_[0])[3];
57 double pz2=(pup_[1])[3];
58 bjorken+=(pz1/(pz1+pz2));
67 const HepMC::PdfInfo *pdf = evt->GetEvent()->pdf_info();
69 bjorken = ((pdf->x1())/((pdf->x1())+(pdf->x2())));
82 associationMap::iterator itr;
83 associationMap::iterator lastElement;
89 if (itr == mMap.end())
93 lastElement = mMap.upper_bound(key);
96 for ( ; itr != lastElement; ++itr)
97 theObjects.push_back(itr);
T getParameter(std::string const &) const
edm::EDGetTokenT< LHEEventProduct > lheEventProductToken_
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag generatedCollection_
edm::EDGetTokenT< edm::HepMCProduct > generatedCollectionToken_
std::vector< associationMap::iterator > itemList
associationMap xBjorkenHistory
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
std::vector< FiveVector > PUP
std::multimap< double, edm::EventID > associationMap
MonitorElement * xBjorkenME
edm::InputTag lheEventProduct_
virtual ~DuplicationChecker()
DuplicationChecker(const edm::ParameterSet &)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book1dHisto(const std::string &name, const std::string &title, int n, double xmin, double xmax)
double weight(const edm::Event &)
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)