CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
Histograms Class Referenceabstract

#include <Histograms.h>

Inheritance diagram for Histograms:
HCovarianceVSParts HCovarianceVSxy HDelta HFunctionResolution HLikelihoodVSPart HMassResolutionVSPart HMassVSPart HMassVSPartProfile HParticle HPartVSEta HPartVSPhi HPartVSPt HResolutionVSPart HTH1D HTH2D HTProfile

Public Member Functions

virtual void Clear ()=0
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const CLHEP::HepLorentzVector &p, const double &likeValue)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
virtual void SetWeight (double weight)
 
virtual void Write ()=0
 
virtual ~Histograms ()
 

Protected Attributes

TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Detailed Description

Collection of histograms for GLB muon analysis

Author
S. Bolognesi - INFN Torino / T.Dorigo - INFN Padova revised S. Casasso, E. Migliore - UniTo & INFN Torino

Collection of histograms for DT RecHit and Segment test.

Author
S. Bolognesi and G. Cerminara - INFN Torino

No description available.

Author
R. Bellan - INFN Torino ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition at line 36 of file Histograms.h.

Constructor & Destructor Documentation

Histograms::Histograms ( )
inline

Definition at line 41 of file Histograms.h.

41 : theWeight_(1), histoDir_(0) {};
TDirectory * histoDir_
Definition: Histograms.h:124
double theWeight_
Definition: Histograms.h:121
Histograms::Histograms ( const TString &  name)
inline

Definition at line 42 of file Histograms.h.

42 : theWeight_(1), name_(name), histoDir_(0) {}
TString name_
Definition: Histograms.h:122
TDirectory * histoDir_
Definition: Histograms.h:124
double theWeight_
Definition: Histograms.h:121
Histograms::Histograms ( TFile *  outputFile,
const TString &  name 
)
inline

Definition at line 43 of file Histograms.h.

References histoDir_.

43  :
44  theWeight_(1),
45  name_(name),
47  histoDir_( outputFile->GetDirectory(name) )
48  {
49  if( histoDir_ == 0 ) {
50  histoDir_ = outputFile->mkdir(name);
51  }
52  histoDir_->cd();
53  }
TFile * outputFile_
Definition: Histograms.h:123
TString name_
Definition: Histograms.h:122
TDirectory * histoDir_
Definition: Histograms.h:124
double theWeight_
Definition: Histograms.h:121
virtual Histograms::~Histograms ( )
inlinevirtual

Definition at line 57 of file Histograms.h.

57 {};

Member Function Documentation

virtual void Histograms::Clear ( )
pure virtual
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p1,
const reco::Particle::LorentzVector p2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 63 of file Histograms.h.

63 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p1,
const reco::Particle::LorentzVector p2,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPartProfile, and HMassVSPart.

Definition at line 64 of file Histograms.h.

64 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 65 of file Histograms.h.

65 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPartProfile, and HMassVSPart.

Definition at line 66 of file Histograms.h.

66 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  p1,
const reco::Particle::LorentzVector p2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 67 of file Histograms.h.

67 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HLikelihoodVSPart, HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 68 of file Histograms.h.

68 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HParticle.

Definition at line 72 of file Histograms.h.

72 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HParticle.

Definition at line 74 of file Histograms.h.

74 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlinevirtual

Reimplemented in HFunctionResolutionVarianceCheck, HFunctionResolution, and HResolutionVSPart.

Definition at line 77 of file Histograms.h.

77 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  genValue,
const double  recValue,
const int  charge 
)
inlinevirtual

Definition at line 78 of file Histograms.h.

78 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  p,
const double &  likeValue 
)
inlinevirtual

Reimplemented in HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 79 of file Histograms.h.

79 {};
virtual void Histograms::Fill ( const unsigned int  number)
inlinevirtual

Reimplemented in HParticle.

Definition at line 80 of file Histograms.h.

80 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const int  charge1,
const reco::Particle::LorentzVector genP1,
const reco::Particle::LorentzVector recoP2,
const int  charge2,
const reco::Particle::LorentzVector genP2,
const double &  recoMass,
const double &  genMass 
)
inlinevirtual

Reimplemented in HMassResolutionVSPart.

Definition at line 81 of file Histograms.h.

85  {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const int  charge1,
const reco::Particle::LorentzVector recoP2,
const int  charge2,
const double &  recoMass,
const double &  genMass 
)
inlinevirtual

Reimplemented in HMassResolutionVSPart.

Definition at line 86 of file Histograms.h.

90  {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const reco::Particle::LorentzVector genP1,
const reco::Particle::LorentzVector recoP2,
const reco::Particle::LorentzVector genP2 
)
inlinevirtual

Reimplemented in HCovarianceVSParts.

Definition at line 91 of file Histograms.h.

94  {};
virtual void Histograms::Fill ( const double &  x,
const double &  y 
)
inlinevirtual

Reimplemented in HTProfile, HTH1D, and HTH2D.

Definition at line 95 of file Histograms.h.

95 {};
virtual void Histograms::Fill ( const double &  x,
const double &  y,
const double &  a,
const double &  b 
)
inlinevirtual

Reimplemented in HCovarianceVSxy.

Definition at line 96 of file Histograms.h.

96 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p41,
const reco::Particle::LorentzVector p42,
const reco::Particle::LorentzVector p4Res,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPart.

Definition at line 97 of file Histograms.h.

100  {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2,
const CLHEP::HepLorentzVector &  momentumRes,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPart.

Definition at line 101 of file Histograms.h.

104  {};
virtual double Histograms::Get ( const reco::Particle::LorentzVector recoP1,
const TString &  covarianceName 
)
inlinevirtual

Reimplemented in HCovarianceVSParts.

Definition at line 107 of file Histograms.h.

107 { return 0.; };
virtual TString Histograms::GetName ( )
inlinevirtual

Definition at line 116 of file Histograms.h.

References name_.

116  {
117  return name_;
118  }
TString name_
Definition: Histograms.h:122
virtual void Histograms::SetWeight ( double  weight)
inlinevirtual

Definition at line 112 of file Histograms.h.

References theWeight_, and histoStyle::weight.

112  {
113  theWeight_ = weight;
114  }
int weight
Definition: histoStyle.py:50
double theWeight_
Definition: Histograms.h:121
virtual void Histograms::Write ( )
pure virtual

Member Data Documentation

TDirectory* Histograms::histoDir_
protected
TString Histograms::name_
protected
TFile* Histograms::outputFile_
protected

Definition at line 123 of file Histograms.h.

Referenced by HFunctionResolution::Write().

double Histograms::theWeight_
protected

Definition at line 121 of file Histograms.h.

Referenced by SetWeight().