CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CentralityProvider.h
Go to the documentation of this file.
1 #ifndef __CentralityProvider_h__
2 #define __CentralityProvider_h__
3 #include <iostream>
4 
11 
13 
14  public:
15  CentralityProvider(const edm::EventSetup& iSetup);
17 
19 
20  int getNbins() const {return table_.size();}
21  double centralityValue() const;
23  float lowEdge() const { return lowEdgeOfBin(getBin());}
24  float NpartMean() const { return NpartMeanOfBin(getBin());}
25  float NpartSigma() const { return NpartSigmaOfBin(getBin());}
26  float NcollMean() const { return NcollMeanOfBin(getBin());}
27  float NcollSigma()const { return NcollSigmaOfBin(getBin());}
28  float NhardMean() const { return NhardMeanOfBin(getBin());}
29  float NhardSigma() const { return NhardSigmaOfBin(getBin());}
30  float bMean() const { return bMeanOfBin(getBin());}
31  float bSigma() const { return bSigmaOfBin(getBin());}
32  void newRun(const edm::EventSetup& iSetup);
33  void newEvent(const edm::Event& ev,const edm::EventSetup& iSetup);
34  void print();
35  const CentralityBins* table() const {return this;}
36  const reco::Centrality* raw() const {return chandle_.product();}
37 
38  private:
40  std::string centralityVariable_;
41  std::string centralityLabel_;
42  std::string centralityMC_;
43  unsigned int prevRun_;
46  unsigned int pPbRunFlip_;
47 };
48 
49 #endif
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
float bMean() const
float NpartSigmaOfBin(int bin) const
const CentralityBins * table() const
float NcollSigma() const
float lowEdgeOfBin(int bin) const
float NhardMean() const
const reco::Centrality * raw() const
float NpartMean() const
CentralityProvider(const edm::EventSetup &iSetup)
float NcollMeanOfBin(int bin) const
void newEvent(const edm::Event &ev, const edm::EventSetup &iSetup)
float NpartSigma() const
float bSigmaOfBin(int bin) const
edm::Handle< reco::Centrality > chandle_
std::string centralityLabel_
float NhardMeanOfBin(int bin) const
unsigned int pPbRunFlip_
float lowEdge() const
float NhardSigma() const
float NpartMeanOfBin(int bin) const
void newRun(const edm::EventSetup &iSetup)
T const * product() const
Definition: Handle.h:74
int getBin(double value) const
float bSigma() const
float bMeanOfBin(int bin) const
std::string centralityVariable_
float NcollMean() const
std::vector< CBin > table_
double centralityValue() const
float NhardSigmaOfBin(int bin) const
float NcollSigmaOfBin(int bin) const