|
virtual bool | filter (edm::Event &, const edm::EventSetup &) override |
|
Definition at line 44 of file mHatGenFilter.cc.
mHatGenFilter::mHatGenFilter |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 72 of file mHatGenFilter.cc.
73 src_(iConfig.getParameter<edm::InputTag>(
"src")),
75 mHat_(iConfig.getParameter<
double>(
"mHat")),
76 mCentral_(iConfig.getParameter<std::string>(
"mCentral"))
const edm::EDGetTokenT< GenEventInfoProduct > genToken_
const std::string mCentral_
mHatGenFilter::~mHatGenFilter |
( |
| ) |
|
void mHatGenFilter::fillDescriptions |
( |
edm::ConfigurationDescriptions & |
descriptions | ) |
|
|
static |
Definition at line 121 of file mHatGenFilter.cc.
122 edm::ParameterSetDescription desc;
123 desc.setComment(
"Filter events according to mHat.");
124 desc.add<edm::InputTag>(
"src");
125 desc.add<
double>(
"mHat");
126 desc.add<std::string>(
"mCentral");
bool mHatGenFilter::filter |
( |
edm::Event & |
iEvent, |
|
|
const edm::EventSetup & |
iSetup |
|
) |
| |
|
overrideprivatevirtual |
Definition at line 98 of file mHatGenFilter.cc.
References genToken_, mCentral_, mHat_, and returnMassPoint().
102 Handle<GenEventInfoProduct> GenEventInfoHandle;
103 iEvent.getByToken(
genToken_, GenEventInfoHandle);
104 if (GenEventInfoHandle.isValid()){
105 double p_prot = 13000. /2.;
106 double p1 = GenEventInfoHandle->pdf()->x.first * p_prot;
107 double p2 = GenEventInfoHandle->pdf()->x.second * p_prot;
108 double mHat = std::sqrt((p1+p2)*(p1+p2) - (p1-p2)*(p1-p2));
113 edm::LogWarning(
"gg Ntuplizer") <<
"no GenEventInfoProduct in event";
const edm::EDGetTokenT< GenEventInfoProduct > genToken_
const std::string mCentral_
int returnMassPoint(const std::string &inputFilelist_)
const edm::EDGetTokenT<GenEventInfoProduct> mHatGenFilter::genToken_ |
|
private |
const std::string mHatGenFilter::mCentral_ |
|
private |
const double mHatGenFilter::mHat_ |
|
private |
const edm::InputTag mHatGenFilter::src_ |
|
private |
The documentation for this class was generated from the following file: