CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EWKSystUnc Class Reference
Inheritance diagram for EWKSystUnc:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EWKSystUnc (const edm::ParameterSet &pset)
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &event, const edm::EventSetup &setup) override
 
void endJob () override
 

Private Attributes

double accEtaMax_
 
double accEtaMin_
 
double accMassMax_
 
double accMassMin_
 
double accPtMin_
 
double angMax_
 
std::string filename_
 
edm::EDGetTokenT< reco::GenParticleCollectiongenToken_
 
TH1F * h_etaZMC_
 
TH1F * h_mZMC_
 
TH1F * h_nZ_
 
TH1F * h_phiZMC_
 
TH1F * h_ptZMC_
 
TH1F * h_rapidityZMC_
 
TH1F * h_thetaZMC_
 
TH1F * h_weight_histo
 
TH1F * hardeta
 
TH1F * hardpt
 
bool isMCatNLO_
 
double massMax_
 
double nAcc_
 
double nAccReW_
 
unsigned int nbinsAng_
 
unsigned int nbinsMass_
 
unsigned int nbinsPt_
 
double nBothMuHasZHasGrandMa_
 
double ptMax_
 
TH1F * softeta
 
TH1F * softpt
 
edm::EDGetTokenT< double > weightsToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 7 of file EWKSystUnc.cc.

Constructor & Destructor Documentation

◆ EWKSystUnc()

EWKSystUnc::EWKSystUnc ( const edm::ParameterSet pset)

Definition at line 48 of file EWKSystUnc.cc.

49  : genToken_(consumes<GenParticleCollection>(pset.getParameter<InputTag>("genParticles"))),
50  weightsToken_(consumes<double>(pset.getParameter<InputTag>("weights"))),
51  nbinsMass_(pset.getUntrackedParameter<unsigned int>("nbinsMass")),
52  nbinsPt_(pset.getUntrackedParameter<unsigned int>("nbinsPt")),
53  nbinsAng_(pset.getUntrackedParameter<unsigned int>("nbinsAng")),
54  massMax_(pset.getUntrackedParameter<double>("massMax")),
55  ptMax_(pset.getUntrackedParameter<double>("ptMax")),
56  angMax_(pset.getUntrackedParameter<double>("angMax")),
57  accPtMin_(pset.getUntrackedParameter<double>("accPtMin")),
58  accMassMin_(pset.getUntrackedParameter<double>("accMassMin")),
59  accMassMax_(pset.getUntrackedParameter<double>("accMassMax")),
60  accEtaMin_(pset.getUntrackedParameter<double>("accEtaMin")),
61  accEtaMax_(pset.getUntrackedParameter<double>("accEtaMax")),
62  isMCatNLO_(pset.getUntrackedParameter<bool>("isMCatNLO")),
63  filename_(pset.getUntrackedParameter<std::string>("outfilename")) {
64  cout << ">>> Z Histogrammer constructor" << endl;
66 
67  TFileDirectory ZMCHisto = fs->mkdir("ZMCHisto");
68  h_nZ_ = ZMCHisto.make<TH1F>("ZNumber", "number of Z particles", 11, -0.5, 10.5);
69  h_weight_histo = ZMCHisto.make<TH1F>("weight_histo", "weight_histo", 20, -10, 10);
70 
71  h_mZMC_ = ZMCHisto.make<TH1F>("ZMCMass", "Z MC mass (GeV/c^{2})", nbinsMass_, 0, massMax_);
72  h_ptZMC_ = ZMCHisto.make<TH1F>("ZMCPt", "Z MC p_{t} (GeV/c)", nbinsPt_, 0, ptMax_);
73  hardpt = ZMCHisto.make<TH1F>("hardpt", "hard muon p_{t} (GeV/c)", nbinsPt_, 0, ptMax_);
74  softpt = ZMCHisto.make<TH1F>("softpt", "soft muon p_{t} (GeV/c)", nbinsPt_, 0, ptMax_);
75 
76  h_phiZMC_ = ZMCHisto.make<TH1F>("ZMCPhi", "Z MC #phi", nbinsAng_, -angMax_, angMax_);
77  h_thetaZMC_ = ZMCHisto.make<TH1F>("ZMCTheta", "Z MC #theta", nbinsAng_, 0, angMax_);
78  h_etaZMC_ = ZMCHisto.make<TH1F>("ZMCEta", "Z MC #eta", nbinsAng_, -angMax_, angMax_);
79  h_rapidityZMC_ = ZMCHisto.make<TH1F>("ZMCRapidity", "Z MC y", nbinsAng_, -angMax_, angMax_);
80 
81  hardeta = ZMCHisto.make<TH1F>("hard muon eta", "hard muon #eta", nbinsAng_, -angMax_, angMax_);
82  softeta = ZMCHisto.make<TH1F>("soft muon eta", "soft muon #eta", nbinsAng_, -angMax_, angMax_);
83  nAcc_ = 0.;
84  nAccReW_ = 0;
86 }

References angMax_, gather_cfg::cout, h_etaZMC_, h_mZMC_, h_nZ_, h_phiZMC_, h_ptZMC_, h_rapidityZMC_, h_thetaZMC_, h_weight_histo, hardeta, hardpt, TFileDirectory::make(), massMax_, TFileService::mkdir(), nAcc_, nAccReW_, nbinsAng_, nbinsMass_, nbinsPt_, nBothMuHasZHasGrandMa_, ptMax_, softeta, and softpt.

Member Function Documentation

◆ analyze()

void EWKSystUnc::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 88 of file EWKSystUnc.cc.

88  {
89  cout << ">>> Z Histogrammer analyze" << endl;
90 
93 
94  event.getByToken(genToken_, gen);
95  event.getByToken(weightsToken_, weights);
96 
97  // get weight and fill it to histogram
98  double weight = (*weights);
99 
100  // protection...
101  if (weight > 2. || weight < 0.1) {
102  std::cout << "weight = " << weight << ", something strange...." << std::endl;
103  weight = 1;
104  }
105  h_weight_histo->Fill(weight);
106 
107  std::vector<GenParticle> muons;
108 
109  for (unsigned int i = 0; i < gen->size(); ++i) {
110  const GenParticle& muMC = (*gen)[i];
111  // filling only muons coming form Z
112  if (abs(muMC.pdgId()) == 13 && muMC.status() == 1 && muMC.numberOfMothers() > 0) {
113  if (muMC.mother()->numberOfMothers() > 0) {
114  cout << "I'm getting a muon \n"
115  << "with "
116  << "muMC.numberOfMothers() " << muMC.numberOfMothers() << "\n the first mother has pdgId "
117  << muMC.mother()->pdgId() << "with "
118  << "muMC.mother()->numberOfMothers() " << muMC.mother()->numberOfMothers()
119  << "\n the first grandma has pdgId " << muMC.mother()->mother()->pdgId() << endl;
120  if (muMC.mother()->mother()->pdgId() == 23)
121  muons.push_back(muMC);
122  }
123  }
124  }
125 
126  cout << "finally I selected " << muons.size() << " muons" << endl;
127 
128  // if there are at least two muons,
129  // calculate invarant mass of first two and fill it into histogram
130 
131  double inv_mass = 0.0;
132  double Zpt_ = 0.0;
133  double Zeta_ = 0.0;
134  double Ztheta_ = 0.0;
135  double Zphi_ = 0.0;
136  double Zrapidity_ = 0.0;
137 
138  if (muons.size() > 1) {
139  if (muons[0].mother()->mother()->pdgId() == 23 && muons[1].mother()->mother()->pdgId() == 23)
141  math::XYZTLorentzVector tot_momentum(muons[0].p4());
142  math::XYZTLorentzVector mom2(muons[1].p4());
143  tot_momentum += mom2;
144  inv_mass = sqrt(tot_momentum.mass2());
145  Zpt_ = tot_momentum.pt();
146  Zeta_ = tot_momentum.eta();
147  Ztheta_ = tot_momentum.theta();
148  Zphi_ = tot_momentum.phi();
149  Zrapidity_ = tot_momentum.Rapidity();
150 
151  // IMPORTANT: use the weight of the event ...
152 
153  double weight_sign = weight;
154  //double weight_sign = 1. ;
155  h_mZMC_->Fill(inv_mass, weight_sign);
156  h_ptZMC_->Fill(Zpt_, weight_sign);
157  h_etaZMC_->Fill(Zeta_, weight_sign);
158  h_thetaZMC_->Fill(Ztheta_, weight_sign);
159  h_phiZMC_->Fill(Zphi_, weight_sign);
160  h_rapidityZMC_->Fill(Zrapidity_, weight_sign);
161 
162  double pt1 = muons[0].pt();
163  double pt2 = muons[1].pt();
164  double eta1 = muons[0].eta();
165  double eta2 = muons[1].eta();
166 
167  if (pt1 > pt2) {
168  hardpt->Fill(pt1, weight_sign);
169  softpt->Fill(pt2, weight_sign);
170  hardeta->Fill(eta1, weight_sign);
171  softeta->Fill(eta2, weight_sign);
172  } else {
173  hardpt->Fill(pt2, weight_sign);
174  softpt->Fill(pt1, weight_sign);
175  hardeta->Fill(eta2, weight_sign);
176  softeta->Fill(eta1, weight_sign);
177  }
178 
179  //evaluating the geometric acceptance
180  if (pt1 >= accPtMin_ && pt2 >= accPtMin_ && fabs(eta1) >= accEtaMin_ && fabs(eta2) >= accEtaMin_ &&
181  fabs(eta1) <= accEtaMax_ && fabs(eta2) <= accEtaMax_ && inv_mass >= accMassMin_ && inv_mass <= accMassMax_) {
182  nAcc_++;
183  nAccReW_ += weight;
184  }
185  }
186 }

References funct::abs(), accEtaMax_, accEtaMin_, accMassMax_, accMassMin_, accPtMin_, gather_cfg::cout, HLT_FULL_cff::eta1, HLT_FULL_cff::eta2, relval_steps::gen(), genToken_, h_etaZMC_, h_mZMC_, h_phiZMC_, h_ptZMC_, h_rapidityZMC_, h_thetaZMC_, h_weight_histo, hardeta, hardpt, mps_fire::i, reco::CompositeRefCandidateT< D >::mother(), reco::Candidate::mother(), PDWG_BPHSkim_cff::muons, nAcc_, nAccReW_, nBothMuHasZHasGrandMa_, reco::CompositeRefCandidateT< D >::numberOfMothers(), reco::Candidate::numberOfMothers(), p4, reco::Candidate::pdgId(), reco::LeafCandidate::pdgId(), HLT_FULL_cff::pt1, HLT_FULL_cff::pt2, softeta, softpt, mathSSE::sqrt(), reco::LeafCandidate::status(), mps_merge::weight, HLT_FULL_cff::weights, and weightsToken_.

◆ endJob()

void EWKSystUnc::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 188 of file EWKSystUnc.cc.

188  {
189  cout << " number of events accepted :" << nAcc_ << endl;
190  cout << " number of events accepted reweigthed :" << nAccReW_ << endl;
191  double nev = h_mZMC_->GetEntries();
192  double nev_weigthed = h_mZMC_->Integral(0, nbinsMass_ + 1);
193  cout << " number of total events :" << nev << endl;
194  cout << " number of total weighted events :" << nev_weigthed << endl;
195  cout << " number of cases in which BothMuHasZHasGrandMa :" << nBothMuHasZHasGrandMa_ << endl;
196  double eff = (double)nAcc_ / (double)h_mZMC_->GetEntries();
197  double eff_rew = (double)nAccReW_ / (double)h_mZMC_->Integral(0, nbinsMass_ + 1);
198  double err = sqrt(eff * (1. - eff) / (double)h_mZMC_->GetEntries());
199  double err_rew = sqrt(eff_rew * (1. - eff_rew) / (double)h_mZMC_->Integral(0, nbinsMass_ + 1));
200  cout << " geometric acceptance: " << eff << "+/-" << err << endl;
201  cout << " geometric acceptance reweighted: " << eff_rew << "+/-" << err_rew << endl;
202 
203  ofstream myfile;
204  myfile.open(filename_.c_str(), std::ios::app);
205  myfile << eff << " " << eff_rew << " " << nev << " " << nev_weigthed << endl;
206  myfile.close();
207 }

References gather_cfg::cout, submitPVResolutionJobs::err, filename_, h_mZMC_, nAcc_, nAccReW_, nbinsMass_, nBothMuHasZHasGrandMa_, and mathSSE::sqrt().

Member Data Documentation

◆ accEtaMax_

double EWKSystUnc::accEtaMax_
private

Definition at line 18 of file EWKSystUnc.cc.

Referenced by analyze().

◆ accEtaMin_

double EWKSystUnc::accEtaMin_
private

Definition at line 18 of file EWKSystUnc.cc.

Referenced by analyze().

◆ accMassMax_

double EWKSystUnc::accMassMax_
private

Definition at line 18 of file EWKSystUnc.cc.

Referenced by analyze().

◆ accMassMin_

double EWKSystUnc::accMassMin_
private

Definition at line 18 of file EWKSystUnc.cc.

Referenced by analyze().

◆ accPtMin_

double EWKSystUnc::accPtMin_
private

Definition at line 18 of file EWKSystUnc.cc.

Referenced by analyze().

◆ angMax_

double EWKSystUnc::angMax_
private

Definition at line 17 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ filename_

std::string EWKSystUnc::filename_
private

Definition at line 25 of file EWKSystUnc.cc.

Referenced by endJob().

◆ genToken_

edm::EDGetTokenT<reco::GenParticleCollection> EWKSystUnc::genToken_
private

Definition at line 14 of file EWKSystUnc.cc.

Referenced by analyze().

◆ h_etaZMC_

TH1F * EWKSystUnc::h_etaZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ h_mZMC_

TH1F* EWKSystUnc::h_mZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), endJob(), and EWKSystUnc().

◆ h_nZ_

TH1F* EWKSystUnc::h_nZ_
private

Definition at line 19 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ h_phiZMC_

TH1F * EWKSystUnc::h_phiZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ h_ptZMC_

TH1F * EWKSystUnc::h_ptZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ h_rapidityZMC_

TH1F * EWKSystUnc::h_rapidityZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ h_thetaZMC_

TH1F * EWKSystUnc::h_thetaZMC_
private

Definition at line 20 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ h_weight_histo

TH1F* EWKSystUnc::h_weight_histo
private

Definition at line 22 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ hardeta

TH1F * EWKSystUnc::hardeta
private

Definition at line 21 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ hardpt

TH1F* EWKSystUnc::hardpt
private

Definition at line 21 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ isMCatNLO_

bool EWKSystUnc::isMCatNLO_
private

Definition at line 23 of file EWKSystUnc.cc.

◆ massMax_

double EWKSystUnc::massMax_
private

Definition at line 17 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ nAcc_

double EWKSystUnc::nAcc_
private

Definition at line 24 of file EWKSystUnc.cc.

Referenced by analyze(), endJob(), and EWKSystUnc().

◆ nAccReW_

double EWKSystUnc::nAccReW_
private

Definition at line 24 of file EWKSystUnc.cc.

Referenced by analyze(), endJob(), and EWKSystUnc().

◆ nbinsAng_

unsigned int EWKSystUnc::nbinsAng_
private

Definition at line 16 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ nbinsMass_

unsigned int EWKSystUnc::nbinsMass_
private

Definition at line 16 of file EWKSystUnc.cc.

Referenced by endJob(), and EWKSystUnc().

◆ nbinsPt_

unsigned int EWKSystUnc::nbinsPt_
private

Definition at line 16 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ nBothMuHasZHasGrandMa_

double EWKSystUnc::nBothMuHasZHasGrandMa_
private

Definition at line 24 of file EWKSystUnc.cc.

Referenced by analyze(), endJob(), and EWKSystUnc().

◆ ptMax_

double EWKSystUnc::ptMax_
private

Definition at line 17 of file EWKSystUnc.cc.

Referenced by EWKSystUnc().

◆ softeta

TH1F * EWKSystUnc::softeta
private

Definition at line 21 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ softpt

TH1F * EWKSystUnc::softpt
private

Definition at line 21 of file EWKSystUnc.cc.

Referenced by analyze(), and EWKSystUnc().

◆ weightsToken_

edm::EDGetTokenT<double> EWKSystUnc::weightsToken_
private

Definition at line 15 of file EWKSystUnc.cc.

Referenced by analyze().

PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
mps_fire.i
i
Definition: mps_fire.py:428
reco::LeafCandidate::status
int status() const final
status word
Definition: LeafCandidate.h:180
reco::CompositeRefCandidateT::mother
const Candidate * mother(size_type=0) const override
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode)
TFileDirectory::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileDirectory.h:53
EWKSystUnc::accPtMin_
double accPtMin_
Definition: EWKSystUnc.cc:18
mps_merge.weight
weight
Definition: mps_merge.py:88
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EWKSystUnc::hardpt
TH1F * hardpt
Definition: EWKSystUnc.cc:21
EWKSystUnc::nAcc_
double nAcc_
Definition: EWKSystUnc.cc:24
reco::CompositeRefCandidateT::numberOfMothers
size_t numberOfMothers() const override
number of mothers
TFileDirectory
Definition: TFileDirectory.h:24
EWKSystUnc::h_weight_histo
TH1F * h_weight_histo
Definition: EWKSystUnc.cc:22
reco::Candidate::mother
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
EWKSystUnc::h_ptZMC_
TH1F * h_ptZMC_
Definition: EWKSystUnc.cc:20
edm::Handle
Definition: AssociativeIterator.h:50
EWKSystUnc::isMCatNLO_
bool isMCatNLO_
Definition: EWKSystUnc.cc:23
GenParticle
Definition: GenParticle.py:1
EWKSystUnc::nbinsAng_
unsigned int nbinsAng_
Definition: EWKSystUnc.cc:16
EWKSystUnc::accEtaMax_
double accEtaMax_
Definition: EWKSystUnc.cc:18
EWKSystUnc::hardeta
TH1F * hardeta
Definition: EWKSystUnc.cc:21
reco::Candidate::numberOfMothers
virtual size_type numberOfMothers() const =0
number of mothers (zero or one in most of but not all the cases)
EWKSystUnc::accEtaMin_
double accEtaMin_
Definition: EWKSystUnc.cc:18
EWKSystUnc::h_mZMC_
TH1F * h_mZMC_
Definition: EWKSystUnc.cc:20
EWKSystUnc::nBothMuHasZHasGrandMa_
double nBothMuHasZHasGrandMa_
Definition: EWKSystUnc.cc:24
EWKSystUnc::h_etaZMC_
TH1F * h_etaZMC_
Definition: EWKSystUnc.cc:20
HLT_FULL_cff.weights
weights
Definition: HLT_FULL_cff.py:99178
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9542
EWKSystUnc::accMassMin_
double accMassMin_
Definition: EWKSystUnc.cc:18
HLT_FULL_cff.pt1
pt1
Definition: HLT_FULL_cff.py:9870
gen
Definition: PythiaDecays.h:13
EWKSystUnc::softeta
TH1F * softeta
Definition: EWKSystUnc.cc:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
TFileService::mkdir
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
EWKSystUnc::massMax_
double massMax_
Definition: EWKSystUnc.cc:17
reco::LeafCandidate::pdgId
int pdgId() const final
PDG identifier.
Definition: LeafCandidate.h:176
EWKSystUnc::ptMax_
double ptMax_
Definition: EWKSystUnc.cc:17
edm::Service< TFileService >
EWKSystUnc::h_rapidityZMC_
TH1F * h_rapidityZMC_
Definition: EWKSystUnc.cc:20
p4
double p4[4]
Definition: TauolaWrapper.h:92
EWKSystUnc::h_nZ_
TH1F * h_nZ_
Definition: EWKSystUnc.cc:19
EWKSystUnc::softpt
TH1F * softpt
Definition: EWKSystUnc.cc:21
HLT_FULL_cff.pt2
pt2
Definition: HLT_FULL_cff.py:9872
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
EWKSystUnc::nbinsMass_
unsigned int nbinsMass_
Definition: EWKSystUnc.cc:16
reco::Candidate::pdgId
virtual int pdgId() const =0
PDG identifier.
EWKSystUnc::accMassMax_
double accMassMax_
Definition: EWKSystUnc.cc:18
EWKSystUnc::h_phiZMC_
TH1F * h_phiZMC_
Definition: EWKSystUnc.cc:20
EWKSystUnc::nAccReW_
double nAccReW_
Definition: EWKSystUnc.cc:24
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
EWKSystUnc::angMax_
double angMax_
Definition: EWKSystUnc.cc:17
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition: relval_steps.py:509
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
EWKSystUnc::filename_
std::string filename_
Definition: EWKSystUnc.cc:25
EWKSystUnc::genToken_
edm::EDGetTokenT< reco::GenParticleCollection > genToken_
Definition: EWKSystUnc.cc:14
EWKSystUnc::nbinsPt_
unsigned int nbinsPt_
Definition: EWKSystUnc.cc:16
edm::InputTag
Definition: InputTag.h:15
EWKSystUnc::h_thetaZMC_
TH1F * h_thetaZMC_
Definition: EWKSystUnc.cc:20
weight
Definition: weight.py:1
EWKSystUnc::weightsToken_
edm::EDGetTokenT< double > weightsToken_
Definition: EWKSystUnc.cc:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27