#include <TopJetAnalyzer.h>
|
| TopJetAnalyzer (const edm::ParameterSet &) |
|
| ~TopJetAnalyzer () override |
|
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 |
|
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 | 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> |
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 15 of file TopJetAnalyzer.h.
◆ TopJetAnalyzer()
Definition at line 3 of file TopJetAnalyzer.cc.
8 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (jets)", 30, 0, 30);
9 en_ = fs->
make<TH1F>(
"en",
"energy (jets)", 60, 0., 300.);
10 pt_ = fs->make<TH1F>(
"pt",
"pt (jets)", 60, 0., 300.);
11 eta_ = fs->make<TH1F>(
"eta",
"eta (jets)", 30, -3., 3.);
12 phi_ = fs->make<TH1F>(
"phi",
"phi (jets)", 40, -4., 4.);
References en_, eta_, TFileService::make(), mult_, phi_, and pt_.
◆ ~TopJetAnalyzer()
TopJetAnalyzer::~TopJetAnalyzer |
( |
| ) |
|
|
override |
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 17 of file TopJetAnalyzer.cc.
24 for (std::vector<pat::Jet>::const_iterator
jet =
jets->begin();
jet !=
jets->end(); ++
jet) {
37 if (
jets->begin()->isCaloJet())
39 else if (
jets->begin()->isPFJet())
43 std::cout << std::setw(5) <<
"jet :" << std::setw(11) <<
"pt :" << std::setw(9) <<
"eta :" << std::setw(9)
44 <<
"phi :" << std::setw(11) <<
"TCHE :" << std::setw(11) <<
"TCHP :" << std::setw(9)
45 <<
"SSVHE :" << std::setw(9) <<
"SSVHP :";
46 if (
jets->begin()->isCaloJet()) {
47 std::cout << std::setw(8) <<
"emf :" << std::setw(10) <<
"n90Hits :" << std::setw(7) <<
"fHPD";
49 if (
jets->begin()->isPFJet()) {
50 std::cout << std::setw(9) <<
"chf : " << std::setw(8) <<
"nhf : " << std::setw(8) <<
"cef : " << std::setw(8)
51 <<
"nef : " << std::setw(6) <<
"nCh : " << std::setw(6) <<
"nConst";
53 std::cout << std::endl << std::setfill(
'-') << std::setw(
lineWidth) <<
"\n" << std::setfill(
' ');
55 for (std::vector<pat::Jet>::const_iterator
jet =
jets->begin();
jet !=
jets->end(); ++
jet) {
56 std::cout << std::setw(3) <<
i <<
" : " << std::setprecision(3) <<
std::fixed << std::setw(8) <<
jet->pt() <<
" : "
57 << std::setw(6) <<
jet->eta() <<
" : " << std::setw(6) <<
jet->phi() <<
" : " << std::setw(8)
58 <<
jet->bDiscriminator(
"trackCountingHighEffBJetTags") <<
" : " << std::setw(8)
59 <<
jet->bDiscriminator(
"trackCountingHighPurBJetTags") <<
" : " << std::setw(6)
60 <<
jet->bDiscriminator(
"simpleSecondaryVertexHighEffBJetTags") <<
" : " << std::setw(6)
61 <<
jet->bDiscriminator(
"simpleSecondaryVertexHighPurBJetTags") <<
" : ";
62 if (
jet->isCaloJet()) {
63 std::cout << std::setw(5) <<
jet->emEnergyFraction() <<
" : " << std::setw(7) <<
jet->jetID().n90Hits <<
" : "
64 << std::setw(6) <<
jet->jetID().fHPD;
67 std::cout << std::setw(5) <<
jet->chargedHadronEnergyFraction() <<
" : " << std::setw(5)
68 <<
jet->neutralHadronEnergyFraction() <<
" : " << std::setw(5) <<
jet->chargedEmEnergyFraction()
69 <<
" : " << std::setw(5) <<
jet->neutralEmEnergyFraction() <<
" : " << std::setw(3)
70 <<
jet->chargedMultiplicity() <<
" : " << std::setw(6) <<
jet->nConstituents();
References gather_cfg::cout, en_, eta_, alignBH_cfg::fixed, edm::Event::getByToken(), mps_fire::i, inputToken_, metsig::jet, singleTopDQM_cfi::jets, RecoTauValidation_cfi::lineWidth, mult_, phi_, pt_, and verbose_.
◆ beginJob()
void TopJetAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ endJob()
void TopJetAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ en_
TH1F* TopJetAnalyzer::en_ |
|
private |
◆ eta_
TH1F* TopJetAnalyzer::eta_ |
|
private |
◆ inputToken_
◆ mult_
TH1F* TopJetAnalyzer::mult_ |
|
private |
◆ phi_
TH1F* TopJetAnalyzer::phi_ |
|
private |
◆ pt_
TH1F* TopJetAnalyzer::pt_ |
|
private |
◆ verbose_
bool TopJetAnalyzer::verbose_ |
|
private |