|
bool | filter (edm::Event &, const edm::EventSetup &) override |
|
| PythiaFilterZJetWithOutBg (const edm::ParameterSet &) |
|
| ~PythiaFilterZJetWithOutBg () override |
|
| EDFilter () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDFilter () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDFilter | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
PythiaFilterZJetWithOutBg filter implements generator-level preselections for photon+jet like events to be used in jet energy calibration. Ported from fortran code written by V.Konoplianikov.
- Author
- A.Ulyanov, ITEP
Definition at line 30 of file PythiaFilterZJetWithOutBg.h.
Definition at line 27 of file PythiaFilterZJetWithOutBg.cc.
References funct::abs(), cms::dd::accepted(), gather_cfg::cout, dm_z, PVValHelper::eta, etaMuMax, edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), m_z, RPCpg::mu, AlCaHLTBitMon_ParallelJobs::p, HiggsValidation_cfi::pdg_id, ptMuMin, ptZMax, ptZMin, mathSSE::sqrt(), theNumberOfSelected, and token_.
41 std::vector<const HepMC::GenParticle *>
mu;
43 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
45 if (
std::abs((*p)->pdg_id())==13 && (*p)->status()==1 )
47 if(mu.size()>1)
break;
52 if(mu.size() != 2)
return false;
54 if(mu[0]->
pdg_id()*(mu[1]->pdg_id()) > 0) {
60 if(mu[0]->momentum().perp()<
ptMuMin || mu[1]->momentum().perp()<
ptMuMin)
return false;
64 if(std::fabs(mu[0]->momentum().
eta()) >
etaMuMax)
return false;
65 if(std::fabs(mu[1]->momentum().
eta()) >
etaMuMax)
return false;
68 double mmup = mu[0]->generatedMass();
69 double mmum = mu[1]->generatedMass();
70 double pxZ = mu[0]->momentum().x()+mu[1]->momentum().x();
71 double pyZ = mu[0]->momentum().y()+mu[1]->momentum().y();
72 double pzZ = mu[0]->momentum().z()+mu[1]->momentum().z();
74 double pmup2 = mu[0]->momentum().x()*mu[0]->momentum().x()+
75 mu[0]->momentum().y()*mu[0]->momentum().y()+
76 mu[0]->momentum().z()*mu[0]->momentum().z();
77 double pmum2 = mu[1]->momentum().x()*mu[1]->momentum().x()+
78 mu[1]->momentum().y()*mu[1]->momentum().y()+
79 mu[1]->momentum().z()*mu[1]->momentum().z();
80 double emup =
sqrt(pmup2+mmup*mmup);
81 double emum =
sqrt(pmum2+mmum*mmum);
83 double massZ =
sqrt((emup+emum)*(emup+emum)-pxZ*pxZ-pyZ*pyZ-pzZ*pzZ);
88 if(std::fabs(massZ-
m_z)>
dm_z)
return false;
97 double ptZ = tot_mom.pt();
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::HepMCProduct > token_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Abs< T >::type abs(const T &t)
const HepMC::GenEvent * GetEvent() const
bool accepted(std::vector< std::string_view > const &, std::string_view)