CMS 3D CMS Logo

IsoDepositVetos.h
Go to the documentation of this file.
1 #ifndef DataFormats_MuonReco_IsoDepositVetos_h
2 #define DataFormats_MuonReco_IsoDepositVetos_h
3 
6 
7 namespace reco {
8  namespace isodeposit {
9  class ConeVeto : public AbsVeto {
10  public:
11  ConeVeto(Direction dir, double dr) : vetoDir_(dir), dR2_(dr * dr) {}
13  bool veto(double eta, double phi, float value) const override;
14  void centerOn(double eta, double phi) override;
15 
16  private:
18  float dR2_;
19  };
20 
21  class ThresholdVeto : public AbsVeto {
22  public:
24  bool veto(double eta, double phi, float value) const override;
25  void centerOn(double eta, double phi) override;
26 
27  private:
28  float threshold_;
29  };
30 
32  public:
34  bool veto(double eta, double phi, float value) const override;
35  void centerOn(double eta, double phi) override;
36 
37  private:
38  float threshold_;
39  };
40 
41  class AbsThresholdVeto : public AbsVeto {
42  public:
44  bool veto(double eta, double phi, float value) const override;
45  void centerOn(double eta, double phi) override;
46 
47  private:
48  float threshold_;
49  };
50 
52  public:
54  bool veto(double eta, double phi, float value) const override;
55  void centerOn(double eta, double phi) override;
56 
57  private:
58  float threshold_;
59  };
60 
61  class ConeThresholdVeto : public AbsVeto {
62  public:
65  bool veto(double eta, double phi, float value) const override;
66  void centerOn(double eta, double phi) override;
67 
68  private:
70  float dR2_;
71  float threshold_;
72  };
73 
74  class AngleConeVeto : public AbsVeto {
75  public:
76  AngleConeVeto(const math::XYZVectorD& dir, double angle);
78  bool veto(double eta, double phi, float value) const override;
79  void centerOn(double eta, double phi) override;
80 
81  private:
83  float cosTheta_;
84  };
85 
86  class AngleCone : public AbsVeto {
87  public:
88  AngleCone(const math::XYZVectorD& dir, double angle);
89  AngleCone(Direction dir, double angle);
90  bool veto(double eta, double phi, float value) const override;
91  void centerOn(double eta, double phi) override;
92 
93  private:
95  float cosTheta_;
96  };
97 
98  class RectangularEtaPhiVeto : public AbsVeto {
99  public:
100  RectangularEtaPhiVeto(const math::XYZVectorD& dir, double etaMin, double etaMax, double phiMin, double phiMax);
101  RectangularEtaPhiVeto(Direction dir, double etaMin, double etaMax, double phiMin, double phiMax);
102  bool veto(double eta, double phi, float value) const override;
103  void centerOn(double eta, double phi) override;
104 
105  private:
108  };
109 
110  } // namespace isodeposit
111 } // namespace reco
112 #endif
reco::isodeposit::AngleCone::AngleCone
AngleCone(const math::XYZVectorD &dir, double angle)
Definition: IsoDepositVetos.cc:58
reco::isodeposit::ConeThresholdVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:42
reco::isodeposit::AbsThresholdVetoFromTransverse
Definition: IsoDepositVetos.h:51
reco::isodeposit::RectangularEtaPhiVeto::RectangularEtaPhiVeto
RectangularEtaPhiVeto(const math::XYZVectorD &dir, double etaMin, double etaMax, double phiMin, double phiMax)
Definition: IsoDepositVetos.cc:70
ALCARECOTkAlBeamHalo_cff.etaMin
etaMin
GeV.
Definition: ALCARECOTkAlBeamHalo_cff.py:32
reco::isodeposit::ConeVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:9
reco::isodeposit::AngleCone::coneDir_
math::XYZVectorD coneDir_
Definition: IsoDepositVetos.h:94
reco::isodeposit::AbsThresholdVetoFromTransverse::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:35
reco::isodeposit::AngleConeVeto
Definition: IsoDepositVetos.h:74
reco::isodeposit::RectangularEtaPhiVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetos.h:106
reco::isodeposit::RectangularEtaPhiVeto
Definition: IsoDepositVetos.h:98
reco::isodeposit::AbsVeto
Definition: IsoDeposit.h:32
reco::isodeposit::AbsThresholdVeto
Definition: IsoDepositVetos.h:41
reco::isodeposit::ThresholdVetoFromTransverse::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:20
reco::isodeposit::ConeVeto::ConeVeto
ConeVeto(const reco::IsoDeposit::Veto &veto)
Definition: IsoDepositVetos.h:12
reco::isodeposit::RectangularEtaPhiVeto::phiMax_
double phiMax_
Definition: IsoDepositVetos.h:107
reco::isodeposit::RectangularEtaPhiVeto::phiMin_
double phiMin_
Definition: IsoDepositVetos.h:107
reco::isodeposit::ThresholdVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:15
reco::isodeposit::ThresholdVetoFromTransverse::ThresholdVetoFromTransverse
ThresholdVetoFromTransverse(double threshold)
Definition: IsoDepositVetos.h:33
reco::IsoDeposit::Veto
Definition: IsoDeposit.h:59
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::isodeposit::ConeVeto::dR2_
float dR2_
Definition: IsoDepositVetos.h:18
reco::isodeposit::AngleConeVeto::vetoDir_
math::XYZVectorD vetoDir_
Definition: IsoDepositVetos.h:82
reco::isodeposit::RectangularEtaPhiVeto::etaMax_
double etaMax_
Definition: IsoDepositVetos.h:107
reco::isodeposit::RectangularEtaPhiVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:77
reco::isodeposit::AbsThresholdVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:28
reco::isodeposit::ConeVeto
Definition: IsoDepositVetos.h:9
reco::isodeposit::ConeVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:12
reco::isodeposit::ConeVeto::ConeVeto
ConeVeto(Direction dir, double dr)
Definition: IsoDepositVetos.h:11
reco::isodeposit::AngleConeVeto::cosTheta_
float cosTheta_
Definition: IsoDepositVetos.h:83
PVValHelper::eta
Definition: PVValidationHelpers.h:70
AlignmentTrackSelector_cfi.phiMin
phiMin
Definition: AlignmentTrackSelector_cfi.py:18
AlignmentTrackSelector_cfi.phiMax
phiMax
Definition: AlignmentTrackSelector_cfi.py:17
reco::isodeposit::ThresholdVeto::ThresholdVeto
ThresholdVeto(double threshold)
Definition: IsoDepositVetos.h:23
reco::isodeposit::ConeVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetos.h:17
reco::isodeposit::AbsThresholdVeto::AbsThresholdVeto
AbsThresholdVeto(double threshold)
Definition: IsoDepositVetos.h:43
reco::isodeposit::ThresholdVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:16
IsoDeposit.h
reco::isodeposit::ThresholdVetoFromTransverse::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:23
math::XYZVectorD
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
reco::isodeposit::AbsThresholdVetoFromTransverse::AbsThresholdVetoFromTransverse
AbsThresholdVetoFromTransverse(double threshold)
Definition: IsoDepositVetos.h:53
reco::isodeposit::AbsThresholdVetoFromTransverse::threshold_
float threshold_
Definition: IsoDepositVetos.h:58
reco::isodeposit::AngleConeVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:54
reco::isodeposit::RectangularEtaPhiVeto::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:91
reco::isodeposit::AngleConeVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:50
reco::isodeposit::ConeThresholdVeto::dR2_
float dR2_
Definition: IsoDepositVetos.h:70
reco::isodeposit::AbsThresholdVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:27
value
Definition: value.py:1
reco::isodeposit::AngleConeVeto::AngleConeVeto
AngleConeVeto(const math::XYZVectorD &dir, double angle)
Definition: IsoDepositVetos.cc:46
reco::isodeposit::AbsThresholdVeto::threshold_
float threshold_
Definition: IsoDepositVetos.h:48
reco::isodeposit::ThresholdVeto
Definition: IsoDepositVetos.h:21
reco::isodeposit::RectangularEtaPhiVeto::etaMin_
double etaMin_
Definition: IsoDepositVetos.h:107
reco::isodeposit::AngleCone
Definition: IsoDepositVetos.h:86
reco::isodeposit::ConeThresholdVeto::ConeThresholdVeto
ConeThresholdVeto(Direction dir, double dr, double threshold)
Definition: IsoDepositVetos.h:63
reco::isodeposit::AbsThresholdVetoFromTransverse::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:32
reco::isodeposit::ConeThresholdVeto::threshold_
float threshold_
Definition: IsoDepositVetos.h:71
reco::isodeposit::AngleCone::cosTheta_
float cosTheta_
Definition: IsoDepositVetos.h:95
reco::isodeposit::Direction
Definition: IsoDepositDirection.h:19
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
reco::isodeposit::AngleCone::centerOn
void centerOn(double eta, double phi) override
Definition: IsoDepositVetos.cc:66
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition: ALCARECOTkAlBeamHalo_cff.py:33
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
reco::isodeposit::ConeThresholdVeto
Definition: IsoDepositVetos.h:61
reco::isodeposit::ThresholdVetoFromTransverse
Definition: IsoDepositVetos.h:31
reco::isodeposit::ConeThresholdVeto::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:39
reco::isodeposit::ThresholdVeto::threshold_
float threshold_
Definition: IsoDepositVetos.h:28
reco::isodeposit::ThresholdVetoFromTransverse::threshold_
float threshold_
Definition: IsoDepositVetos.h:38
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
reco::isodeposit::AngleCone::veto
bool veto(double eta, double phi, float value) const override
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.
Definition: IsoDepositVetos.cc:62
reco::isodeposit::ConeThresholdVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetos.h:69
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:430
Vector3D.h
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23