CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
Histograms Class Referenceabstract

#include <Histograms.h>

Public Member Functions

virtual void Clear ()=0
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, 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 CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p, const double &likeValue)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
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 &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 reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
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 reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
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 unsigned int number)
 
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() [1/3]

Histograms::Histograms ( )
inline

Definition at line 40 of file Histograms.h.

40 : theWeight_(1), histoDir_(nullptr){};

References histoDir_, and theWeight_.

◆ Histograms() [2/3]

Histograms::Histograms ( const TString &  name)
inline

Definition at line 41 of file Histograms.h.

41 : theWeight_(1), name_(name), histoDir_(nullptr) {}

References histoDir_, name_, and theWeight_.

◆ Histograms() [3/3]

Histograms::Histograms ( TFile *  outputFile,
const TString &  name 
)
inline

Definition at line 42 of file Histograms.h.

44  if (histoDir_ == nullptr) {
45  histoDir_ = outputFile->mkdir(name);
46  }
47  histoDir_->cd();
48  }

References histoDir_, Skims_PA_cff::name, name_, download_sqlite_cfg::outputFile, outputFile_, and theWeight_.

◆ ~Histograms()

virtual Histograms::~Histograms ( )
inlinevirtual

Definition at line 52 of file Histograms.h.

52 {};

Member Function Documentation

◆ Clear()

virtual void Histograms::Clear ( )
pure virtual

◆ Fill() [1/19]

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

Definition at line 75 of file Histograms.h.

75 {};

◆ Fill() [2/19]

virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2 
)
inlinevirtual

Definition at line 63 of file Histograms.h.

63 {};

◆ Fill() [3/19]

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

Definition at line 111 of file Histograms.h.

114  {};

◆ Fill() [4/19]

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

Definition at line 64 of file Histograms.h.

67  {};

◆ Fill() [5/19]

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

Definition at line 83 of file Histograms.h.

83 {};

◆ Fill() [6/19]

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

Definition at line 68 of file Histograms.h.

68 {};

◆ Fill() [7/19]

virtual void Histograms::Fill ( const double &  x,
const double &  y 
)
inlinevirtual

Definition at line 105 of file Histograms.h.

105 {};

◆ Fill() [8/19]

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

Definition at line 106 of file Histograms.h.

106 {};

◆ Fill() [9/19]

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

Definition at line 58 of file Histograms.h.

58 {};

◆ Fill() [10/19]

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

Definition at line 59 of file Histograms.h.

62  {};

◆ Fill() [11/19]

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

Definition at line 79 of file Histograms.h.

82  {};

◆ Fill() [12/19]

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

Definition at line 78 of file Histograms.h.

78 {};

◆ Fill() [13/19]

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

Definition at line 69 of file Histograms.h.

69 {};

◆ Fill() [14/19]

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

Definition at line 73 of file Histograms.h.

73 {};

◆ Fill() [15/19]

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

Definition at line 107 of file Histograms.h.

110  {};

◆ Fill() [16/19]

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

Definition at line 85 of file Histograms.h.

92  {};

◆ Fill() [17/19]

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

Definition at line 93 of file Histograms.h.

100  {};

◆ Fill() [18/19]

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

Definition at line 101 of file Histograms.h.

104  {};

◆ Fill() [19/19]

virtual void Histograms::Fill ( const unsigned int  number)
inlinevirtual

Definition at line 84 of file Histograms.h.

84 {};

◆ Get()

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

Definition at line 116 of file Histograms.h.

116 { return 0.; };

◆ GetName()

virtual TString Histograms::GetName ( )
inlinevirtual

Definition at line 123 of file Histograms.h.

123 { return name_; }

References name_.

◆ SetWeight()

virtual void Histograms::SetWeight ( double  weight)
inlinevirtual

Definition at line 121 of file Histograms.h.

121 { theWeight_ = weight; }

References theWeight_, and mps_merge::weight.

◆ Write()

virtual void Histograms::Write ( )
pure virtual

Member Data Documentation

◆ histoDir_

TDirectory* Histograms::histoDir_
protected

Definition at line 129 of file Histograms.h.

Referenced by Histograms().

◆ name_

TString Histograms::name_
protected

Definition at line 127 of file Histograms.h.

Referenced by GetName(), and Histograms().

◆ outputFile_

TFile* Histograms::outputFile_
protected

Definition at line 128 of file Histograms.h.

Referenced by Histograms().

◆ theWeight_

double Histograms::theWeight_
protected

Definition at line 126 of file Histograms.h.

Referenced by Histograms(), and SetWeight().

Histograms::name_
TString name_
Definition: Histograms.h:127
Histograms::histoDir_
TDirectory * histoDir_
Definition: Histograms.h:129
mps_merge.weight
weight
Definition: mps_merge.py:88
download_sqlite_cfg.outputFile
outputFile
Definition: download_sqlite_cfg.py:5
Histograms::theWeight_
double theWeight_
Definition: Histograms.h:126
Histograms::outputFile_
TFile * outputFile_
Definition: Histograms.h:128
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17