#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 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 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 () |
|
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) |
|
Definition at line 15 of file TopJetAnalyzer.h.
Definition at line 4 of file TopJetAnalyzer.cc.
References en_, eta_, TFileService::make(), mult_, phi_, and pt_.
10 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (jets)", 30, 0 , 30);
11 en_ = fs->
make<TH1F>(
"en" ,
"energy (jets)", 60, 0., 300.);
12 pt_ = fs->make<TH1F>(
"pt" ,
"pt (jets)", 60, 0., 300.);
13 eta_ = fs->make<TH1F>(
"eta" ,
"eta (jets)", 30, -3., 3.);
14 phi_ = fs->make<TH1F>(
"phi" ,
"phi (jets)", 40, -4., 4.);
T getParameter(std::string const &) const
T * make(const Args &...args) const
make new ROOT object
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< std::vector< pat::Jet > > inputToken_
TopJetAnalyzer::~TopJetAnalyzer |
( |
| ) |
|
|
override |
Definition at line 22 of file TopJetAnalyzer.cc.
References gather_cfg::cout, en_, eta_, alignBH_cfg::fixed, edm::Event::getByToken(), mps_fire::i, inputToken_, metsig::jet, fwrapper::jets, RecoTauValidation_cfi::lineWidth, mult_, phi_, pt_, and verbose_.
29 mult_->Fill( jets->size() );
30 for(std::vector<pat::Jet>::const_iterator
jet=jets->begin();
jet!=jets->end(); ++
jet){
32 en_ ->Fill(
jet->energy() );
43 if( jets->begin()->isCaloJet() )
45 else if( jets->begin()->isPFJet() )
48 std::cout << std::setfill(
'=') << std::setw(lineWidth) <<
"\n" << std::setfill(
' ');
50 << std::setw(11) <<
"pt :" 51 << std::setw( 9) <<
"eta :" 52 << std::setw( 9) <<
"phi :" 53 << std::setw(11) <<
"TCHE :" 54 << std::setw(11) <<
"TCHP :" 55 << std::setw( 9) <<
"SSVHE :" 56 << std::setw( 9) <<
"SSVHP :";
57 if( jets->begin()->isCaloJet() ) {
59 << std::setw(10) <<
"n90Hits :" 60 << std::setw( 7) <<
"fHPD";
62 if( jets->begin()->isPFJet() ) {
64 << std::setw(8) <<
"nhf : " 65 << std::setw(8) <<
"cef : " 66 << std::setw(8) <<
"nef : " 67 << std::setw(6) <<
"nCh : " 68 << std::setw(6) <<
"nConst";
71 << std::setfill(
'-') << std::setw(lineWidth) <<
"\n" << std::setfill(
' ');
73 for(std::vector<pat::Jet>::const_iterator
jet=jets->begin();
jet!=jets->end(); ++
jet){
75 << std::setw(8) <<
jet->pt() <<
" : " 76 << std::setw(6) <<
jet->eta() <<
" : " 77 << std::setw(6) <<
jet->phi() <<
" : " 78 << std::setw(8) <<
jet->bDiscriminator(
"trackCountingHighEffBJetTags") <<
" : " 79 << std::setw(8) <<
jet->bDiscriminator(
"trackCountingHighPurBJetTags") <<
" : " 80 << std::setw(6) <<
jet->bDiscriminator(
"simpleSecondaryVertexHighEffBJetTags") <<
" : " 81 << std::setw(6) <<
jet->bDiscriminator(
"simpleSecondaryVertexHighPurBJetTags") <<
" : ";
82 if(
jet->isCaloJet() ) {
83 std::cout << std::setw(5) <<
jet->emEnergyFraction() <<
" : " 84 << std::setw(7) <<
jet->jetID().n90Hits <<
" : " 85 << std::setw(6) <<
jet->jetID().fHPD;
87 if(
jet->isPFJet() ) {
88 std::cout << std::setw(5) <<
jet->chargedHadronEnergyFraction() <<
" : " 89 << std::setw(5) <<
jet->neutralHadronEnergyFraction() <<
" : " 90 << std::setw(5) <<
jet->chargedEmEnergyFraction() <<
" : " 91 << std::setw(5) <<
jet->neutralEmEnergyFraction() <<
" : " 92 << std::setw(3) <<
jet->chargedMultiplicity() <<
" : " 93 << std::setw(6) <<
jet->nConstituents();
98 std::cout << std::setfill(
'=') << std::setw(lineWidth) <<
"\n" << std::setfill(
' ');
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< pat::Jet > > inputToken_
void TopJetAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
void TopJetAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
TH1F* TopJetAnalyzer::en_ |
|
private |
TH1F* TopJetAnalyzer::eta_ |
|
private |
TH1F* TopJetAnalyzer::mult_ |
|
private |
TH1F* TopJetAnalyzer::phi_ |
|
private |
TH1F* TopJetAnalyzer::pt_ |
|
private |
bool TopJetAnalyzer::verbose_ |
|
private |