test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PhotonPair Class Reference

#include <GammaJetAnalysis.h>

Inheritance diagram for PhotonPair:

Public Member Functions

void idx (int set_idx)
 
int idx () const
 
bool isValid () const
 
const reco::Photonphoton (void) const
 
void photon (const reco::Photon *ph)
 
 PhotonPair ()
 
 PhotonPair (const reco::Photon *ph, double pt, int setIdx=-1)
 
double pt (void) const
 
void pt (double d)
 
 ~PhotonPair ()
 

Private Attributes

int fIdx
 

Detailed Description

Definition at line 64 of file GammaJetAnalysis.h.

Constructor & Destructor Documentation

PhotonPair::PhotonPair ( )
inline

Definition at line 67 of file GammaJetAnalysis.h.

References fIdx, plotBeamSpotDB::first, and edm::second().

67  {
68  first=0;
69  second=0.0;
70  fIdx=-1;
71  }
U second(std::pair< T, U > const &p)
PhotonPair::PhotonPair ( const reco::Photon ph,
double  pt,
int  setIdx = -1 
)
inline

Definition at line 72 of file GammaJetAnalysis.h.

References fIdx, plotBeamSpotDB::first, pt(), and edm::second().

72  {
73  first=ph;
74  second=pt;
75  fIdx=setIdx;
76  }
U second(std::pair< T, U > const &p)
double pt(void) const
PhotonPair::~PhotonPair ( )
inline

Definition at line 77 of file GammaJetAnalysis.h.

77 {}

Member Function Documentation

void PhotonPair::idx ( int  set_idx)
inline

Definition at line 83 of file GammaJetAnalysis.h.

References fIdx.

Referenced by GammaJetAnalysis::analyze().

83 { fIdx=set_idx; };
int PhotonPair::idx ( ) const
inline

Definition at line 84 of file GammaJetAnalysis.h.

References fIdx.

84 { return fIdx; }
bool PhotonPair::isValid ( void  ) const
inline
const reco::Photon* PhotonPair::photon ( void  ) const
inline
void PhotonPair::photon ( const reco::Photon ph)
inline

Definition at line 80 of file GammaJetAnalysis.h.

References plotBeamSpotDB::first.

80 { first=ph; return; }
double PhotonPair::pt ( void  ) const
inline
void PhotonPair::pt ( double  d)
inline

Member Data Documentation

int PhotonPair::fIdx
private

Definition at line 88 of file GammaJetAnalysis.h.

Referenced by idx(), and PhotonPair().