CMS 3D CMS Logo

Classes | Public Member Functions | Private Member Functions | Private Attributes

reco::JPTJet Class Reference

Jets made from CaloJets corrected for ZSP and tracks. More...

#include <JPTJet.h>

Inheritance diagram for reco::JPTJet:
reco::Jet reco::CompositePtrCandidate reco::LeafCandidate reco::Candidate

List of all members.

Classes

struct  Specific

Public Member Functions

float chargedEmEnergy () const
 chargedEmEnergy
float chargedEmEnergyFraction () const
 chargedEmEnergyFraction
float chargedHadronEnergy () const
 chargedHadronEnergy
float chargedHadronEnergyFraction () const
 chargedHadronEnergyFraction
int chargedMultiplicity () const
 chargedMultiplicity
virtual JPTJetclone () const
 Polymorphic clone.
int elecMultiplicity () const
 elecMultiplicity
const edm::RefToBase< reco::Jet > & getCaloJetRef () const
const reco::TrackRefVectorgetElecsInVertexInCalo () const
const reco::TrackRefVectorgetElecsInVertexOutCalo () const
const reco::TrackRefVectorgetElecsOutVertexInCalo () const
const reco::TrackRefVectorgetMuonsInVertexInCalo () const
const reco::TrackRefVectorgetMuonsInVertexOutCalo () const
const reco::TrackRefVectorgetMuonsOutVertexInCalo () const
const reco::TrackRefVectorgetPionsInVertexInCalo () const
 Tracks.
const reco::TrackRefVectorgetPionsInVertexOutCalo () const
const reco::TrackRefVectorgetPionsOutVertexInCalo () const
const SpecificgetSpecific () const
 block accessors
const float & getZSPCor () const
 JPTJet ()
 JPTJet (const LorentzVector &fP4, const Point &fVertex, const Specific &fSpecific, const Jet::Constituents &fConstituents)
 JPTJet (const LorentzVector &fP4, const Specific &fSpecific, const Jet::Constituents &fConstituents)
int muonMultiplicity () const
 muonMultiplicity
float neutralEmEnergy () const
 neutralEmEnergy
float neutralEmEnergyFraction () const
 neutralEmEnergyFraction
float neutralHadronEnergy () const
 neutralHadronEnergy
float neutralHadronEnergyFraction () const
 neutralHadronEnergyFraction
virtual std::string print () const
 Print object.
virtual void printJet () const
 Print object in details.
virtual ~JPTJet ()

Private Member Functions

virtual bool overlap (const Candidate &) const
 Polymorphic overlap.

Private Attributes

Specific mspecific

Detailed Description

Jets made from CaloJets corrected for ZSP and tracks.

JPTJet represents Jets made from CaloTowers and corrected for tracks in addition to generic Jet parameters it gives reference to the original jet, ZSP scale, associated tracks

Author:
Olga Kodolova

Definition at line 29 of file JPTJet.h.


Constructor & Destructor Documentation

reco::JPTJet::JPTJet ( ) [inline]

Default constructor

Definition at line 80 of file JPTJet.h.

Referenced by clone().

{}
JPTJet::JPTJet ( const LorentzVector fP4,
const Point fVertex,
const Specific fSpecific,
const Jet::Constituents fConstituents 
)

Constructor from values

Definition at line 14 of file JPTJet.cc.

  : Jet (fP4, fVertex),
    mspecific (fSpecific)
{}
JPTJet::JPTJet ( const LorentzVector fP4,
const Specific fSpecific,
const Jet::Constituents fConstituents 
)

backward compatible, vertex=(0,0,0)

Definition at line 21 of file JPTJet.cc.

  : Jet (fP4, Point(0,0,0)),
    mspecific (fSpecific)
{}
virtual reco::JPTJet::~JPTJet ( ) [inline, virtual]

Definition at line 88 of file JPTJet.h.

{};

Member Function Documentation

float reco::JPTJet::chargedEmEnergy ( ) const [inline]

chargedEmEnergy

Definition at line 100 of file JPTJet.h.

References reco::JPTJet::Specific::mChargedEmEnergy, and mspecific.

Referenced by chargedEmEnergyFraction().

float reco::JPTJet::chargedEmEnergyFraction ( ) const [inline]

chargedEmEnergyFraction

Definition at line 102 of file JPTJet.h.

References chargedEmEnergy(), and reco::LeafCandidate::energy().

{return chargedEmEnergy () / energy ();}
float reco::JPTJet::chargedHadronEnergy ( ) const [inline]

chargedHadronEnergy

Definition at line 92 of file JPTJet.h.

References reco::JPTJet::Specific::mChargedHadronEnergy, and mspecific.

Referenced by chargedHadronEnergyFraction(), print(), and printJet().

float reco::JPTJet::chargedHadronEnergyFraction ( ) const [inline]

chargedHadronEnergyFraction

Definition at line 94 of file JPTJet.h.

References chargedHadronEnergy(), and reco::LeafCandidate::energy().

{return chargedHadronEnergy () / energy ();}
int reco::JPTJet::chargedMultiplicity ( ) const [inline]
JPTJet * JPTJet::clone ( void  ) const [virtual]

Polymorphic clone.

Reimplemented from reco::CompositePtrCandidate.

Definition at line 29 of file JPTJet.cc.

References JPTJet().

                             {
  return new JPTJet (*this);
}
int reco::JPTJet::elecMultiplicity ( ) const [inline]
const edm::RefToBase<reco::Jet>& reco::JPTJet::getCaloJetRef ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getElecsInVertexInCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getElecsInVertexOutCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getElecsOutVertexInCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getMuonsInVertexInCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getMuonsInVertexOutCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getMuonsOutVertexInCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getPionsInVertexInCalo ( ) const [inline]

Tracks.

Definition at line 116 of file JPTJet.h.

References mspecific, and reco::JPTJet::Specific::pionsInVertexInCalo.

Referenced by JPTJetAnalyzer::analyze(), print(), and printJet().

const reco::TrackRefVector& reco::JPTJet::getPionsInVertexOutCalo ( ) const [inline]
const reco::TrackRefVector& reco::JPTJet::getPionsOutVertexInCalo ( ) const [inline]
const Specific& reco::JPTJet::getSpecific ( ) const [inline]

block accessors

Definition at line 133 of file JPTJet.h.

References mspecific.

Referenced by pat::Jet::tryImportSpecific().

{return mspecific;}
const float& reco::JPTJet::getZSPCor ( ) const [inline]

Definition at line 128 of file JPTJet.h.

References mspecific, and reco::JPTJet::Specific::mZSPCor.

{return mspecific.mZSPCor;} 
int reco::JPTJet::muonMultiplicity ( ) const [inline]
float reco::JPTJet::neutralEmEnergy ( ) const [inline]

neutralEmEnergy

Definition at line 104 of file JPTJet.h.

References reco::JPTJet::Specific::mNeutralEmEnergy, and mspecific.

Referenced by neutralEmEnergyFraction().

float reco::JPTJet::neutralEmEnergyFraction ( ) const [inline]

neutralEmEnergyFraction

Definition at line 106 of file JPTJet.h.

References reco::LeafCandidate::energy(), and neutralEmEnergy().

{return neutralEmEnergy () / energy ();}
float reco::JPTJet::neutralHadronEnergy ( ) const [inline]

neutralHadronEnergy

Definition at line 96 of file JPTJet.h.

References reco::JPTJet::Specific::mNeutralHadronEnergy, and mspecific.

Referenced by neutralHadronEnergyFraction().

float reco::JPTJet::neutralHadronEnergyFraction ( ) const [inline]

neutralHadronEnergyFraction

Definition at line 98 of file JPTJet.h.

References reco::LeafCandidate::energy(), and neutralHadronEnergy().

{return neutralHadronEnergy () / energy ();}
bool JPTJet::overlap ( const Candidate ) const [private, virtual]

Polymorphic overlap.

Reimplemented from reco::CompositePtrCandidate.

Definition at line 33 of file JPTJet.cc.

                                              {
  return false;
}
std::string JPTJet::print ( void  ) const [virtual]

Print object.

Reimplemented from reco::Jet.

Definition at line 50 of file JPTJet.cc.

References chargedHadronEnergy(), chargedMultiplicity(), getElecsInVertexInCalo(), getElecsInVertexOutCalo(), getMuonsInVertexInCalo(), getMuonsInVertexOutCalo(), getPionsInVertexInCalo(), getPionsInVertexOutCalo(), dbtoconf::out, and edm::RefVector< C, T, F >::size().

                               {
  std::ostringstream out;
  out << Jet::print () // generic jet info
      << "    JPTJet specific:" << std::endl
      << "      chargedhadrons energy: " << chargedHadronEnergy () << std::endl
      << "      charged: " << chargedMultiplicity () << std::endl;
  out << "      JPTCandidate constituents:" << std::endl;

  out<< " Number of pions: "<< getPionsInVertexInCalo().size()+getPionsInVertexOutCalo().size()<<std::endl;
  out<< " Number of muons: "<< getMuonsInVertexInCalo().size()+getMuonsInVertexOutCalo().size()<<std::endl;
  out<< " Number of Electrons: "<< getElecsInVertexInCalo().size()+getElecsInVertexOutCalo().size()<<std::endl;
  
  return out.str ();
}
void JPTJet::printJet ( ) const [virtual]

Print object in details.

Definition at line 38 of file JPTJet.cc.

References chargedHadronEnergy(), chargedMultiplicity(), gather_cfg::cout, getCaloJetRef(), getElecsInVertexInCalo(), getElecsInVertexOutCalo(), getMuonsInVertexInCalo(), getMuonsInVertexOutCalo(), getPionsInVertexInCalo(), getPionsInVertexOutCalo(), and edm::RefVector< C, T, F >::size().

                             {
  std::cout <<  " Raw Calo jet " <<getCaloJetRef()->et()<<" "<<getCaloJetRef()->eta()<<" "<<getCaloJetRef()->phi()
      << "    JPTJet specific:" << std::endl
      << "      chargedhadrons energy: " << chargedHadronEnergy () << std::endl
      << "      charged multiplicity: " << chargedMultiplicity () << std::endl;
  std::cout << "      JPTCandidate constituents:" << std::endl;
  std::cout<< " Number of pions: "<< getPionsInVertexInCalo().size()+getPionsInVertexOutCalo().size()<<std::endl;
  std::cout<< " Number of muons: "<< getMuonsInVertexInCalo().size()+getMuonsInVertexOutCalo().size()<<std::endl;
  std::cout<< " Number of Electrons: "<< getElecsInVertexInCalo().size()+getElecsInVertexOutCalo().size()<<std::endl;
  
}

Member Data Documentation