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 
12 
14 
15  public:
16  CentralityProvider(const edm::EventSetup& iSetup);
19 
21 
22  int getNbins() const {return table_.size();}
23  double centralityValue() const;
25  float lowEdge() const { return lowEdgeOfBin(getBin());}
26  float NpartMean() const { return NpartMeanOfBin(getBin());}
27  float NpartSigma() const { return NpartSigmaOfBin(getBin());}
28  float NcollMean() const { return NcollMeanOfBin(getBin());}
29  float NcollSigma()const { return NcollSigmaOfBin(getBin());}
30  float NhardMean() const { return NhardMeanOfBin(getBin());}
31  float NhardSigma() const { return NhardSigmaOfBin(getBin());}
32  float bMean() const { return bMeanOfBin(getBin());}
33  float bSigma() const { return bSigmaOfBin(getBin());}
34  void newRun(const edm::EventSetup& iSetup);
35  void newEvent(const edm::Event& ev,const edm::EventSetup& iSetup);
36  void print();
37  const CentralityBins* table() const {return this;}
38  const reco::Centrality* raw() const {return chandle_.product();}
39 
40  private:
45  unsigned int prevRun_;
48  unsigned int pPbRunFlip_;
49 };
50 
51 #endif
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
float bMean() const
float NpartSigmaOfBin(int bin) const
const CentralityBins * table() const
bool ev
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
edm::EDGetTokenT< reco::Centrality > tag_
float NhardSigma() const
T const * product() const
Definition: Handle.h:81
float NpartMeanOfBin(int bin) const
void newRun(const edm::EventSetup &iSetup)
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