|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginRun (const edm::Run &r, const edm::EventSetup &c) override |
|
| PFCandidateChecker (const edm::ParameterSet &) |
|
| ~PFCandidateChecker () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
| EDAnalyzerBase (const EDAnalyzerBase &)=delete |
|
ModuleDescription const & | moduleDescription () const |
|
const EDAnalyzerBase & | operator= (const EDAnalyzerBase &)=delete |
|
| ~EDAnalyzerBase () 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 CacheContexts< T... > | CacheTypes |
|
typedef CacheTypes::GlobalCache | GlobalCache |
|
typedef AbilityChecker< T... > | HasAbility |
|
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
|
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
|
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
|
typedef CacheTypes::RunCache | RunCache |
|
typedef RunContextT< RunCache, GlobalCache > | RunContext |
|
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
|
typedef EDAnalyzerAdaptorBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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) |
|
Checks what a re-reco changes in PFCandidates.
- Author
- Patrick Janot
- Date
- August 2011
Definition at line 23 of file PFCandidateChecker.cc.
Implements edm::stream::EDAnalyzerBase.
Definition at line 103 of file PFCandidateChecker.cc.
104 LogDebug(
"PFCandidateChecker") <<
"START event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run() << endl;
124 pfReco = *pfCandidatesReco;
125 pfReReco = *pfCandidatesReReco;
126 sort(pfReco.begin(), pfReco.end(),
greaterPt);
127 sort(pfReReco.begin(), pfReReco.end(),
greaterPt);
130 unsigned minSize = pfReco.size() < pfReReco.size() ? pfReco.size() : pfReReco.size();
131 bool differentCand =
false;
132 bool differentSize = pfReco.size() != pfReReco.size();
134 std::cout <<
"+++WARNING+++ PFCandidate size changed for entry " <<
entry_ <<
" !" << endl
135 <<
" - RECO size : " << pfReco.size() << endl
136 <<
" - Re-RECO size : " << pfReReco.size() << endl;
139 for (
unsigned i = 0;
i < minSize;
i++) {
147 differentCand =
true;
148 std::cout <<
"+++WARNING+++ PFCandidate " <<
i <<
" changed for entry " <<
entry_ <<
" ! " << std::endl
149 <<
" - RECO : " << candReco << std::endl
150 <<
" - Re-RECO : " << candReReco << std::endl
151 <<
" DeltaE = : " <<
deltaE << std::endl
152 <<
" DeltaEta = : " <<
deltaEta << std::endl
153 <<
" DeltaPhi = : " <<
deltaPhi << std::endl
156 std::cout <<
"Elements in Block for RECO: " << std::endl;
158 std::cout <<
"Elements in Block for Re-RECO: " << std::endl;
166 if (differentSize || differentCand) {
172 LogDebug(
"PFCandidateChecker") <<
"STOP event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run()
References gather_cfg::cout, EgHLTOffHistBins_cfi::deltaE, spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), mps_fire::i, iEvent, LogDebug, and reco::LeafCandidate::phi().