CMS 3D CMS Logo

Centrality.h
Go to the documentation of this file.
1 //
2 //
3 
4 #ifndef DataFormats_Centrality_h
5 #define DataFormats_Centrality_h
6 
7 #include <string>
8 #include <vector>
9 
10 namespace reco { class Centrality {
11 public:
12  Centrality(double d=0, std::string label = "");
13  virtual ~Centrality();
14 
15  friend class CentralityProducer;
16 
17  double raw() const { return value_; }
18  std::string label() const { return label_; }
19 
20  double EtHFhitSum() const {return etHFhitSumPlus_ + etHFhitSumMinus_;}
21  double EtHFhitSumPlus() const {return etHFhitSumPlus_;}
22  double EtHFhitSumMinus() const {return etHFhitSumMinus_;}
24  double EtHFtowerSumPlus() const {return etHFtowerSumPlus_;}
25  double EtHFtowerSumMinus() const {return etHFtowerSumMinus_;}
30  double EtHFtruncatedPlus() const {return etHFtruncatedPlus_;}
31  double EtHFtruncatedMinus() const {return etHFtruncatedMinus_;}
32  double EtEESum() const {return etEESumPlus_ + etEESumMinus_;}
33  double EtEESumPlus() const {return etEESumPlus_;}
34  double EtEESumMinus() const {return etEESumMinus_;}
36  double EtEEtruncatedPlus() const {return etEEtruncatedPlus_;}
37  double EtEEtruncatedMinus() const {return etEEtruncatedMinus_;}
38  double EtEBSum() const {return etEBSum_;}
39  double EtEBtruncated() const {return etEBtruncated_;}
40  double EtEcalSum() const {return etEBSum_ + EtEESum();}
41  double EtEcaltruncated() const {return etEBtruncated_ + EtEEtruncated();}
42  double multiplicityPixel() const {return pixelMultiplicity_;}
45  double Ntracks() const {return trackMultiplicity_;}
46  double NtracksPtCut() const {return ntracksPtCut_;}
47  double NtracksEtaCut() const {return ntracksEtaCut_;}
48  double NtracksEtaPtCut() const {return ntracksEtaPtCut_;}
49  double NpixelTracks() const {return nPixelTracks_;}
50  double NpixelTracksPlus() const {return nPixelTracksPlus_;}
51  double NpixelTracksMinus() const {return nPixelTracksMinus_;}
52 
53  double zdcSum() const {return zdcSumPlus_ + zdcSumMinus_;}
54  double zdcSumPlus() const {return zdcSumPlus_;}
55  double zdcSumMinus() const {return zdcSumMinus_;}
56  double EtMidRapiditySum() const {return etMidRapiditySum_;}
57 
58 protected:
59  double value_;
61 
66 
71 
72  double etEESumPlus_;
74  double etEESumMinus_;
76  double etEBSum_;
78 
83  double zdcSumPlus_;
84  double zdcSumMinus_;
86  double ntracksPtCut_;
89  double nPixelTracks_;
92 
93 };
94 
95  typedef std::vector<reco::Centrality> CentralityCollection;
96 
97 }
98 
99 #endif
100 
double zdcSum() const
Definition: Centrality.h:53
double trackMultiplicity_
Definition: Centrality.h:82
double EtEESum() const
Definition: Centrality.h:32
double Ntracks() const
Definition: Centrality.h:45
double etMidRapiditySum_
Definition: Centrality.h:85
double EtHFtowerSumMinus() const
Definition: Centrality.h:25
double etHFhitSumMinus_
Definition: Centrality.h:67
double raw() const
Definition: Centrality.h:17
double etHFtowerSumPlus_
Definition: Centrality.h:63
double ntracksEtaCut_
Definition: Centrality.h:87
double NtracksEtaPtCut() const
Definition: Centrality.h:48
double etHFtruncatedPlus_
Definition: Centrality.h:65
double EtEESumMinus() const
Definition: Centrality.h:34
double pixelMultiplicity_
Definition: Centrality.h:79
double nPixelTracksPlus_
Definition: Centrality.h:90
double EtHFtruncatedPlus() const
Definition: Centrality.h:30
double EtEEtruncatedPlus() const
Definition: Centrality.h:36
double etHFtruncatedMinus_
Definition: Centrality.h:70
double pixelMultiplicityMinus_
Definition: Centrality.h:81
double etHFhitSumPlus_
Definition: Centrality.h:62
double EtEEtruncated() const
Definition: Centrality.h:35
virtual ~Centrality()
Definition: Centrality.cc:45
double NtracksPtCut() const
Definition: Centrality.h:46
double pixelMultiplicityPlus_
Definition: Centrality.h:80
double EtEEtruncatedMinus() const
Definition: Centrality.h:37
double zdcSumMinus() const
Definition: Centrality.h:55
double ntracksPtCut_
Definition: Centrality.h:86
double EtHFtowerSumPlus() const
Definition: Centrality.h:24
std::string label() const
Definition: Centrality.h:18
std::vector< reco::Centrality > CentralityCollection
Definition: Centrality.h:95
double zdcSumMinus_
Definition: Centrality.h:84
double NpixelTracksPlus() const
Definition: Centrality.h:50
double NtracksEtaCut() const
Definition: Centrality.h:47
double EtEESumPlus() const
Definition: Centrality.h:33
double EtEcaltruncated() const
Definition: Centrality.h:41
double etEESumPlus_
Definition: Centrality.h:72
double etEEtruncatedPlus_
Definition: Centrality.h:73
double EtHFhitSumPlus() const
Definition: Centrality.h:21
double EtHFtowerSumECut() const
Definition: Centrality.h:26
std::string label_
Definition: Centrality.h:60
double EtHFtruncatedMinus() const
Definition: Centrality.h:31
double multiplicityPixel() const
Definition: Centrality.h:42
double EtHFtowerSum() const
Definition: Centrality.h:23
double multiplicityPixelPlus() const
Definition: Centrality.h:43
double EtHFtowerSumECutPlus() const
Definition: Centrality.h:27
double NpixelTracksMinus() const
Definition: Centrality.h:51
double etHFtowerSumECutPlus_
Definition: Centrality.h:64
double nPixelTracksMinus_
Definition: Centrality.h:91
double EtEBSum() const
Definition: Centrality.h:38
double EtEcalSum() const
Definition: Centrality.h:40
double EtMidRapiditySum() const
Definition: Centrality.h:56
double zdcSumPlus_
Definition: Centrality.h:83
Centrality(double d=0, std::string label="")
Definition: Centrality.cc:10
double EtHFhitSum() const
Definition: Centrality.h:20
double etEESumMinus_
Definition: Centrality.h:74
double EtHFtruncated() const
Definition: Centrality.h:29
fixed size matrix
double multiplicityPixelMinus() const
Definition: Centrality.h:44
double etEBtruncated_
Definition: Centrality.h:77
double ntracksEtaPtCut_
Definition: Centrality.h:88
double etEEtruncatedMinus_
Definition: Centrality.h:75
double EtHFtowerSumECutMinus() const
Definition: Centrality.h:28
double etHFtowerSumMinus_
Definition: Centrality.h:68
double EtEBtruncated() const
Definition: Centrality.h:39
double NpixelTracks() const
Definition: Centrality.h:49
double EtHFhitSumMinus() const
Definition: Centrality.h:22
double nPixelTracks_
Definition: Centrality.h:89
double etHFtowerSumECutMinus_
Definition: Centrality.h:69
double zdcSumPlus() const
Definition: Centrality.h:54