|
| PatZjetsElectronAnalyzer (const edm::ParameterSet &) |
|
| ~PatZjetsElectronAnalyzer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 15 of file PatZjetsElectronAnalyzer.cc.
PatZjetsElectronAnalyzer::PatZjetsElectronAnalyzer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 36 of file PatZjetsElectronAnalyzer.cc.
T getUntrackedParameter(std::string const &, T const &) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< edm::View< pat::Electron > > srcToken_
std::map< std::string, TH1F * > histContainer_
PatZjetsElectronAnalyzer::~PatZjetsElectronAnalyzer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 47 of file PatZjetsElectronAnalyzer.cc.
References newFWLiteAna::bin, HcalObjRepresent::Fill(), edm::Event::getByToken(), histContainer_, and srcToken_.
59 histContainer_[
"iso" ]->Fill((elec->trackIso()+elec->caloIso())/elec->pt() );
66 histContainer_[
"dr"]->Fill(
histContainer_[
"dr"]->GetBinCenter(
bin), elec->trackIsoDeposit()->depositWithin(upperEdge) - elec->trackIsoDeposit()->depositWithin(lowerEdge));
69 if( elec->electronID(
"eidRobustLoose") > 0.5 )
71 if( elec->electronID(
"eidRobustTight") > 0.5 )
73 if( elec->electronID(
"eidLoose" ) > 0.5 )
75 if( elec->electronID(
"eidTight" ) > 0.5 )
77 if( elec->electronID(
"eidRobustHighEnergy") > 0.5 )
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::EDGetTokenT< edm::View< pat::Electron > > srcToken_
std::map< std::string, TH1F * > histContainer_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void PatZjetsElectronAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 83 of file PatZjetsElectronAnalyzer.cc.
References histContainer_, and TFileService::make().
91 histContainer_[
"phi" ]=fs->make<TH1F>(
"phi" ,
"phi" , 60, 3.14, 3.14);
92 histContainer_[
"iso" ]=fs->make<TH1F>(
"iso" ,
"iso" , 30, 0., 10.);
95 histContainer_[
"clus"]=fs->make<TH1F>(
"clus" ,
"clus" , 40, 0., 1.);
96 histContainer_[
"eIDs"]=fs->make<TH1F>(
"eIDs" ,
"eIDS" , 5, 0., 5.);
T * make(const Args &...args) const
make new ROOT object
std::map< std::string, TH1F * > histContainer_
void PatZjetsElectronAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
std::map<std::string,TH1F*> PatZjetsElectronAnalyzer::histContainer_ |
|
private |