CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ZSelector Struct Reference

Public Member Functions

int operator() (const Candidate &c) const
 
 ZSelector (double ptMin, double etaDau0Min, double etaDau0Max, double etaDau1Min, double etaDau1Max, double massMin, double massMax, double massMinZMC, double massMaxZMC)
 

Public Attributes

double etaDau0Max_
 
double etaDau0Min_
 
double etaDau1Max_
 
double etaDau1Min_
 
double massMax_
 
double massMaxZMC_
 
double massMin_
 
double massMinZMC_
 
double ptMin_
 

Detailed Description

Definition at line 24 of file MCAcceptanceAnalyzer.cc.

Constructor & Destructor Documentation

◆ ZSelector()

ZSelector::ZSelector ( double  ptMin,
double  etaDau0Min,
double  etaDau0Max,
double  etaDau1Min,
double  etaDau1Max,
double  massMin,
double  massMax,
double  massMinZMC,
double  massMaxZMC 
)
inline

Definition at line 25 of file MCAcceptanceAnalyzer.cc.

34  : ptMin_(ptMin),
35  etaDau0Min_(etaDau0Min),
36  etaDau0Max_(etaDau0Max),
37  etaDau1Min_(etaDau1Min),
38  etaDau1Max_(etaDau1Max),
41  massMinZMC_(massMinZMC),
42  massMaxZMC_(massMaxZMC) {}

Member Function Documentation

◆ operator()()

int ZSelector::operator() ( const Candidate c) const
inline

allowing asymmetric cut....

Definition at line 43 of file MCAcceptanceAnalyzer.cc.

43  {
44  // std::cout << "c.numberOfDaughters(): " << c.numberOfDaughters()<< std::endl;
45  if (c.numberOfDaughters() < 2)
46  return 0;
47  if (c.numberOfDaughters() >= 6)
48  return 0;
49  const Candidate* d0 = c.daughter(0);
50  const Candidate* d1 = c.daughter(1);
51  if (c.numberOfDaughters() > 2) {
52  if (d0->numberOfDaughters() > 0)
53  d0 = mcMuDaughter(d0);
54  if (d1->numberOfDaughters() > 0)
55  d1 = mcMuDaughter(d1);
56  }
57  int temp_cut = 0;
59  if ((fabs(d0->eta()) > etaDau0Min_ && fabs(d1->eta()) > etaDau1Min_ && fabs(d0->eta()) < etaDau0Max_ &&
60  fabs(d1->eta()) < etaDau1Max_) ||
61  (fabs(d0->eta()) > etaDau1Min_ && fabs(d1->eta()) > etaDau0Min_ && fabs(d0->eta()) < etaDau1Max_ &&
62  fabs(d1->eta()) < etaDau0Max_)) {
63  temp_cut = 1;
64  if (d0->pt() > ptMin_ && d1->pt() > ptMin_) {
65  temp_cut = 2;
66  double m = (d0->p4() + d1->p4()).mass();
67  if (m > massMin_ && m < massMax_)
68  temp_cut = 3;
69  if (c.mass() > massMinZMC_ && c.mass() < massMaxZMC_)
70  temp_cut = 4;
71  }
72  }
73 
74  return temp_cut;
75  }

References HltBtagPostValidation_cff::c, d0, d1, visualization-live-secondInstance_cfg::m, EgHLTOffHistBins_cfi::mass, and mcMuDaughter().

Member Data Documentation

◆ etaDau0Max_

double ZSelector::etaDau0Max_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ etaDau0Min_

double ZSelector::etaDau0Min_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ etaDau1Max_

double ZSelector::etaDau1Max_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ etaDau1Min_

double ZSelector::etaDau1Min_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ massMax_

double ZSelector::massMax_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ massMaxZMC_

double ZSelector::massMaxZMC_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ massMin_

double ZSelector::massMin_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ massMinZMC_

double ZSelector::massMinZMC_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

◆ ptMin_

double ZSelector::ptMin_

Definition at line 76 of file MCAcceptanceAnalyzer.cc.

ZSelector::massMaxZMC_
double massMaxZMC_
Definition: MCAcceptanceAnalyzer.cc:76
ZSelector::massMinZMC_
double massMinZMC_
Definition: MCAcceptanceAnalyzer.cc:76
ptMin
constexpr float ptMin
Definition: PhotonIDValueMapProducer.cc:153
ZMuMuCategoriesSequences_cff.massMin
massMin
Definition: ZMuMuCategoriesSequences_cff.py:136
ZSelector::etaDau1Max_
double etaDau1Max_
Definition: MCAcceptanceAnalyzer.cc:76
ZSelector::etaDau0Max_
double etaDau0Max_
Definition: MCAcceptanceAnalyzer.cc:76
mcMuDaughter
const Candidate * mcMuDaughter(const Candidate *c)
Definition: MCAcceptanceAnalyzer.cc:14
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
ZSelector::etaDau0Min_
double etaDau0Min_
Definition: MCAcceptanceAnalyzer.cc:76
ZSelector::etaDau1Min_
double etaDau1Min_
Definition: MCAcceptanceAnalyzer.cc:76
ZMuMuCategoriesSequences_cff.massMax
massMax
Definition: ZMuMuCategoriesSequences_cff.py:137
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
ZSelector::massMax_
double massMax_
Definition: MCAcceptanceAnalyzer.cc:76
reco::Candidate
Definition: Candidate.h:27
ZSelector::ptMin_
double ptMin_
Definition: MCAcceptanceAnalyzer.cc:76
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
d0
static constexpr float d0
Definition: L1EGammaCrystalsEmulatorProducer.cc:84
ZSelector::massMin_
double massMin_
Definition: MCAcceptanceAnalyzer.cc:76
d1
static constexpr float d1
Definition: L1EGammaCrystalsEmulatorProducer.cc:84