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

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 35 of file Histograms.h.

Constructor & Destructor Documentation

Histograms::Histograms ( )
inline

Definition at line 40 of file Histograms.h.

40 : theWeight_(1), histoDir_(0) {};
TDirectory * histoDir_
Definition: Histograms.h:123
double theWeight_
Definition: Histograms.h:120
Histograms::Histograms ( const TString &  name)
inline

Definition at line 41 of file Histograms.h.

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

Definition at line 42 of file Histograms.h.

References histoDir_.

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

Definition at line 56 of file Histograms.h.

56 {};

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 62 of file Histograms.h.

62 {};
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 63 of file Histograms.h.

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

Reimplemented in HDelta.

Definition at line 64 of file Histograms.h.

64 {};
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 65 of file Histograms.h.

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

Reimplemented in HDelta.

Definition at line 66 of file Histograms.h.

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

Reimplemented in HLikelihoodVSPart, HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 67 of file Histograms.h.

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

Reimplemented in HParticle.

Definition at line 71 of file Histograms.h.

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

Reimplemented in HParticle.

Definition at line 73 of file Histograms.h.

73 {};
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 76 of file Histograms.h.

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

Definition at line 77 of file Histograms.h.

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

Reimplemented in HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 78 of file Histograms.h.

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

Reimplemented in HParticle.

Definition at line 79 of file Histograms.h.

79 {};
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 80 of file Histograms.h.

84  {};
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 85 of file Histograms.h.

89  {};
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 90 of file Histograms.h.

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

Reimplemented in HTProfile, HTH1D, and HTH2D.

Definition at line 94 of file Histograms.h.

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

Reimplemented in HCovarianceVSxy.

Definition at line 95 of file Histograms.h.

95 {};
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 96 of file Histograms.h.

99  {};
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 100 of file Histograms.h.

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

Reimplemented in HCovarianceVSParts.

Definition at line 106 of file Histograms.h.

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

Definition at line 115 of file Histograms.h.

References name_.

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

Definition at line 111 of file Histograms.h.

References theWeight_, and histoStyle::weight.

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

Member Data Documentation

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

Definition at line 122 of file Histograms.h.

Referenced by HFunctionResolution::Write().

double Histograms::theWeight_
protected

Definition at line 120 of file Histograms.h.

Referenced by SetWeight().