|
| MCAcceptanceAnalyzer (const ParameterSet &cfg) |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () 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 |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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 EDAnalyzer | ModuleType |
|
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 | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
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 = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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 79 of file MCAcceptanceAnalyzer.cc.
void MCAcceptanceAnalyzer::analyze |
( |
const Event & |
evt, |
|
|
const EventSetup & |
|
|
) |
| |
|
overrideprivatevirtual |
Implements edm::EDAnalyzer.
Definition at line 127 of file MCAcceptanceAnalyzer.cc.
135 long nZToMuMuMC = zToMuMuMC->
size();
136 long nZToMuMuMatched = zToMuMuMatched->
size();
143 for (
long i = 0;
i < nZToMuMuMC; ++
i) {
151 for (
long i = 0;
i < nZToMuMuMatched; ++
i) {
164 int selectMC =
select_(*mcRef);
169 if (selectZ != selectMC) {
170 cout <<
">>> select reco: " << selectZ <<
", select mc: " << selectMC << endl;
171 if ((selectZ * selectMC) == 0)
173 if (
z.numberOfDaughters() > 1) {
175 if (mcRef->numberOfDaughters() > 1) {
177 double m =
z.mass(), mcm = (mcd0->
p4() + mcd1->p4()).
mass();
178 cout <<
">>> reco pt1, eta1: " <<
d0->pt() <<
", " <<
d0->eta() <<
", 2: " <<
d1->pt() <<
", " <<
d1->eta()
179 <<
", mass = " <<
m << endl;
180 cout <<
">>> mc pt1, eta1: " << mcd0->
pt() <<
", " << mcd0->
eta() <<
", 2: " << mcd1->pt() <<
", "
181 << mcd1->eta() <<
", mass = " << mcm << endl;
186 if ((selectZ == 3) && (selectMC == 3))
References gather_cfg::cout, d0, d1, reco::Candidate::eta(), edm::Event::getByToken(), mps_fire::i, edm::Ref< C, T, F >::isNonnull(), visualization-live-secondInstance_cfg::m, EgHLTOffHistBins_cfi::mass, mcMuDaughter(), nZToMuMu_, nZToMuMuMC_, nZToMuMuMCDen_, nZToMuMuMCMatched_, reco::Candidate::p4(), reco::Candidate::pt(), edm::View< T >::refAt(), select_, select_OnlyMassCut_, selZToMuMu_, selZToMuMuMC_, selZToMuMuMCMatched_, edm::Association< C >::size(), edm::View< T >::size(), z, zToMuMuMatchedToken_, zToMuMuMCToken_, and zToMuMuToken_.
void MCAcceptanceAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 192 of file MCAcceptanceAnalyzer.cc.
194 double errZToMuMu =
sqrt(effZToMuMu * (1. - effZToMuMu) /
nZToMuMu_);
196 double errZToMuMuMC =
sqrt(effZToMuMuMC * (1. - effZToMuMuMC) /
nZToMuMuMC_);
198 double errZToMuMuMCDen =
sqrt(effZToMuMuMCDen * (1. - effZToMuMuMCDen) /
nZToMuMuMCDen_);
204 << effZToMuMuMCMatched <<
" +/- " << errZToMuMuMCMatched << endl;
205 cout <<
" if the two numbers above are the same we can neglete resolution effect and quote the acceptance as the "
208 cout <<
"********* acceptance m>sampleMCMassCut (usually 20 or 40) ******** " << endl;
210 << errZToMuMuMC << endl;
211 cout <<
"********* acceptance in the given mass range ******** " << endl;
213 << errZToMuMuMCDen << endl;
References gather_cfg::cout, nZToMuMu_, nZToMuMuMC_, nZToMuMuMCDen_, nZToMuMuMCMatched_, selZToMuMu_, selZToMuMuMC_, selZToMuMuMCMatched_, mathSSE::sqrt(), zToMuMu_, and zToMuMuMC_.