|
bool | filter (edm::Event &, const edm::EventSetup &) override |
|
| ZToMuMuSelector (const edm::ParameterSet &) |
|
| 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 |
|
std::vector< bool > const & | recordProvenanceList () 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) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
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<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 12 of file ZToMuMuSelector.cc.
Implements edm::EDFilter.
Definition at line 55 of file ZToMuMuSelector.cc.
59 LogTrace(
"") <<
">>> Muon collection does not exist !!!";
66 LogTrace(
"") <<
">>> ISO Muon collection does not exist !!!";
74 if (!trackerCollection.
isValid()) {
75 LogTrace(
"") <<
">>> Tracker collection does not exist !!!";
81 LogTrace(
"") <<
">>> ISO Tracker collection does not exist !!!";
86 unsigned int npairs = 0;
87 bool globalCombinationFound =
false;
90 LogTrace(
"") <<
"> Processing muon number " <<
i <<
"...";
95 double eta =
mu->eta();
99 bool iso = (*isoMap)[
mu];
100 LogTrace(
"") <<
"\t... isolated? " << iso;
106 LogTrace(
"") <<
"> Processing second muon number " <<
j <<
"...";
107 double pt2 = mu2->pt();
111 double eta2 = mu2->eta();
115 bool iso2 = (*isoMap)[mu2];
116 LogTrace(
"") <<
"\t... isolated2? " << iso2;
120 double z_en =
mu->p() + mu2->p();
121 double z_px =
mu->px() + mu2->px();
122 double z_py =
mu->py() + mu2->py();
123 double z_pz =
mu->pz() + mu2->pz();
124 double massZ = z_en * z_en - z_px * z_px - z_py * z_py - z_pz * z_pz;
125 massZ = (massZ > 0) ?
sqrt(massZ) : 0;
126 LogTrace(
"") <<
"\t... Z_en, Z_px, Z_py, Z_pz= " << z_en <<
", " << z_px <<
", " << z_py <<
", " << z_pz
128 LogTrace(
"") <<
"\t... (GM-GM) Invariant reconstructed mass= " << massZ <<
" GeV";
133 globalCombinationFound =
true;
140 for (
unsigned int j = 0;
j < trackerCollection->size();
j++) {
142 LogTrace(
"") <<
"> Processing track number " <<
j <<
"...";
143 double pt2 = mu2->pt();
147 double eta2 = mu2->eta();
151 int nhits2 = mu2->numberOfValidHits();
152 LogTrace(
"") <<
"\t... nhits3= " << nhits2;
155 bool iso2 = (*isoTrackerMap)[mu2];
156 LogTrace(
"") <<
"\t... isolated3? " << iso2;
160 double z_en =
mu->p() + mu2->p();
161 double z_px =
mu->px() + mu2->px();
162 double z_py =
mu->py() + mu2->py();
163 double z_pz =
mu->pz() + mu2->pz();
164 double massZ = z_en * z_en - z_px * z_px - z_py * z_py - z_pz * z_pz;
165 massZ = (massZ > 0) ?
sqrt(massZ) : 0;
166 LogTrace(
"") <<
"\t... Z_en, Z_px, Z_py, Z_pz= " << z_en <<
", " << z_px <<
", " << z_py <<
", " << z_pz
168 LogTrace(
"") <<
"\t... (GM-TK) Invariant reconstructed mass= " << massZ <<
" GeV";
177 LogTrace(
"") <<
"> Number of Z pairs found= " << npairs;
179 LogTrace(
"") <<
">>>> Event REJECTED";
182 LogTrace(
"") <<
">>>> Event SELECTED!!!";
References PVValHelper::eta, HLT_2018_cff::eta2, etaCut_, ev, mps_fire::i, isoToken_, isoTrackerToken_, edm::HandleBase::isValid(), dqmiolumiharvest::j, LogTrace, massZMax_, massZMin_, minTrackerHits_, amptDefaultParameters_cff::mu, pdwgLeptonRecoSkim_cfi::muonCollection, muonToken_, onlyGlobalMuons_, DiDispStaMuonMonitor_cfi::pt, HLT_2018_cff::pt2, ptCut_, mathSSE::sqrt(), and trackerToken_.