CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Centrality.h
Go to the documentation of this file.
1 //
2 // $Id: Centrality.h,v 1.11 2010/08/14 17:06:50 nart Exp $
3 //
4 
5 #ifndef DataFormats_Centrality_h
6 #define DataFormats_Centrality_h
7 
8 #include <string>
9 #include <vector>
10 
11 namespace reco { class Centrality {
12 public:
13  Centrality(double d=0, std::string label = "");
14  virtual ~Centrality();
15 
16  friend class CentralityProducer;
17 
18  double raw() const { return value_; }
19  std::string label() const { return label_; }
20 
21  double EtHFhitSum() const {return etHFhitSumPlus_ + etHFhitSumMinus_;}
22  double EtHFhitSumPlus() const {return etHFhitSumPlus_;}
23  double EtHFhitSumMinus() const {return etHFhitSumMinus_;}
25  double EtHFtowerSumPlus() const {return etHFtowerSumPlus_;}
26  double EtHFtowerSumMinus() const {return etHFtowerSumMinus_;}
28  double EtHFtruncatedPlus() const {return etHFtruncatedPlus_;}
29  double EtHFtruncatedMinus() const {return etHFtruncatedMinus_;}
30  double EtEESum() const {return etEESumPlus_ + etEESumMinus_;}
31  double EtEESumPlus() const {return etEESumPlus_;}
32  double EtEESumMinus() const {return etEESumMinus_;}
34  double EtEEtruncatedPlus() const {return etEEtruncatedPlus_;}
35  double EtEEtruncatedMinus() const {return etEEtruncatedMinus_;}
36  double EtEBSum() const {return etEBSum_;}
37  double EtEBtruncated() const {return etEBtruncated_;}
38  double EtEcalSum() const {return etEBSum_ + EtEESum();}
39  double EtEcaltruncated() const {return etEBtruncated_ + EtEEtruncated();}
40  double multiplicityPixel() const {return pixelMultiplicity_;}
41  double Ntracks() const {return trackMultiplicity_;}
42  double NtracksPtCut() const {return ntracksPtCut_;}
43  double NtracksEtaCut() const {return ntracksEtaCut_;}
44  double NtracksEtaPtCut() const {return ntracksEtaPtCut_;}
45  double NpixelTracks() const {return nPixelTracks_;}
46 
47  double zdcSum() const {return zdcSumPlus_ + zdcSumMinus_;}
48  double zdcSumPlus() const {return zdcSumPlus_;}
49  double zdcSumMinus() const {return zdcSumMinus_;}
50  double EtMidRapiditySum() const {return etMidRapiditySum_;}
51 
52 protected:
53  double value_;
54  std::string label_;
55 
59 
63 
64  double etEESumPlus_;
66  double etEESumMinus_;
68  double etEBSum_;
70 
73  double zdcSumPlus_;
74  double zdcSumMinus_;
76  double ntracksPtCut_;
79  double nPixelTracks_;
80 
81 };
82 
83  typedef std::vector<reco::Centrality> CentralityCollection;
84 
85 }
86 
90 
91 
92 
93 #endif
94 
95 
double zdcSum() const
Definition: Centrality.h:47
double trackMultiplicity_
Definition: Centrality.h:72
double EtEESum() const
Definition: Centrality.h:30
double Ntracks() const
Definition: Centrality.h:41
double etMidRapiditySum_
Definition: Centrality.h:75
double EtHFtowerSumMinus() const
Definition: Centrality.h:26
double etHFhitSumMinus_
Definition: Centrality.h:60
double raw() const
Definition: Centrality.h:18
double etHFtowerSumPlus_
Definition: Centrality.h:57
double ntracksEtaCut_
Definition: Centrality.h:77
double NtracksEtaPtCut() const
Definition: Centrality.h:44
double etHFtruncatedPlus_
Definition: Centrality.h:58
double EtEESumMinus() const
Definition: Centrality.h:32
double pixelMultiplicity_
Definition: Centrality.h:71
double EtHFtruncatedPlus() const
Definition: Centrality.h:28
double EtEEtruncatedPlus() const
Definition: Centrality.h:34
double etHFtruncatedMinus_
Definition: Centrality.h:62
double etHFhitSumPlus_
Definition: Centrality.h:56
double EtEEtruncated() const
Definition: Centrality.h:33
virtual ~Centrality()
Definition: Centrality.cc:41
double NtracksPtCut() const
Definition: Centrality.h:42
double EtEEtruncatedMinus() const
Definition: Centrality.h:35
double zdcSumMinus() const
Definition: Centrality.h:49
double ntracksPtCut_
Definition: Centrality.h:76
double EtHFtowerSumPlus() const
Definition: Centrality.h:25
std::string label() const
Definition: Centrality.h:19
std::vector< reco::Centrality > CentralityCollection
Definition: Centrality.h:83
double zdcSumMinus_
Definition: Centrality.h:74
double NtracksEtaCut() const
Definition: Centrality.h:43
double EtEESumPlus() const
Definition: Centrality.h:31
double EtEcaltruncated() const
Definition: Centrality.h:39
double etEESumPlus_
Definition: Centrality.h:64
double etEEtruncatedPlus_
Definition: Centrality.h:65
double EtHFhitSumPlus() const
Definition: Centrality.h:22
std::string label_
Definition: Centrality.h:54
double EtHFtruncatedMinus() const
Definition: Centrality.h:29
double multiplicityPixel() const
Definition: Centrality.h:40
double EtHFtowerSum() const
Definition: Centrality.h:24
double EtEBSum() const
Definition: Centrality.h:36
double EtEcalSum() const
Definition: Centrality.h:38
double EtMidRapiditySum() const
Definition: Centrality.h:50
const CentralityBins * getCentralityBinsFromDB(const edm::EventSetup &iSetup)
Definition: Centrality.cc:49
double zdcSumPlus_
Definition: Centrality.h:73
Centrality(double d=0, std::string label="")
Definition: Centrality.cc:12
double EtHFhitSum() const
Definition: Centrality.h:21
double etEESumMinus_
Definition: Centrality.h:66
double EtHFtruncated() const
Definition: Centrality.h:27
double etEBtruncated_
Definition: Centrality.h:69
double ntracksEtaPtCut_
Definition: Centrality.h:78
double etEEtruncatedMinus_
Definition: Centrality.h:67
double etHFtowerSumMinus_
Definition: Centrality.h:61
double EtEBtruncated() const
Definition: Centrality.h:37
double NpixelTracks() const
Definition: Centrality.h:45
double EtHFhitSumMinus() const
Definition: Centrality.h:23
double nPixelTracks_
Definition: Centrality.h:79
double zdcSumPlus() const
Definition: Centrality.h:48