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