Reimplemented from DQMEDAnalyzer.
Definition at line 179 of file ZEEDetails.cc.
References pwdgSkimBPark_cfi::beamSpot, bsTag_, bsToken_, nano_mu_digi_cff::bx, nano_mu_local_reco_cff::chi2, electronIdCutBasedExt_cfi::deltaEtaIn, electronIdCutBasedExt_cfi::deltaPhiIn, doPUCorrection_, electronTag_, electronToken_, EoverP_, PVValHelper::eta, dqm::impl::MonitorElement::Fill(), EgHLTOffHistBins_cfi::hOverE, Exhume::I, iEvent, edm::Ref< C, T, F >::isNonnull(), edm::HandleBase::isValid(), SiStripPI::max, maxD0_, maxDeltaEtaInEB_, maxDeltaEtaInEE_, maxDeltaPhiInEB_, maxDeltaPhiInEE_, maxHOEEB_, maxHOEEE_, maxInvMass_, maxIso_, maxNormChi2_, maxSigmaiEiEEB_, maxSigmaiEiEEE_, minInvMass_, minPixelHits_, minPt_, minPtHighest_, minStripHits_, ndof, reco::HitPattern::numberOfValidPixelHits(), reco::HitPattern::numberOfValidStripHits(), L1TEGammaOffline_cfi::nVertex, phi, puSummaryTag_, puSummaryToken_, reco::TrackBase::qualityByName(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, reco::GsfElectron::PflowIsolationVariables::sumPUPt, trackQuality_, findQualityFiles::v, vertexTag_, vertexToken_, vpu_, ZInvMass_, Zpt_, and gpuVertexFinder::zv.
180 std::vector<TLorentzVector> list;
181 std::vector<int> chrgeList;
182 std::vector<reco::GsfElectron> finalelectrons;
192 for (
auto const& ele : *electronColl) {
193 if (!ele.ecalDriven())
198 if (!(ele.isEB() || ele.isEE()))
201 double hOverE = ele.hadronicOverEm();
202 double sigmaee = ele.sigmaIetaIeta();
203 double deltaPhiIn = ele.deltaPhiSuperClusterTrackAtVtx();
204 double deltaEtaIn = ele.deltaEtaSuperClusterTrackAtVtx();
211 }
else if (ele.isEE()) {
223 double chi2 = trk->chi2();
224 double ndof = trk->ndof();
229 double trkd0 = trk->d0();
231 trkd0 = -(trk->dxy(
beamSpot->position()));
233 edm::LogError(
"ElectronTrackProducer") <<
"Error >> Failed to get BeamSpot for label: " <<
bsTag_;
235 if (std::fabs(trkd0) >=
maxD0_)
258 lv.SetPtEtaPhiE(ele.pt(), ele.eta(), ele.phi(), ele.energy());
260 chrgeList.push_back(ele.charge());
261 finalelectrons.push_back(ele);
272 if (vertexColl->empty()) {
273 edm::LogError(
"DqmTrackStudy") <<
"No good vertex in the event!!";
279 if (!
iEvent.isRealData()) {
284 for (
auto const&
v : *PupInfo) {
285 int bx =
v.getBunchCrossing();
300 for (
unsigned int I = 0;
I != finalelectrons.size();
I++) {
302 finalelectrons[
I].superCluster()->
phi(),
303 finalelectrons[
I].eEleClusterOverPout(),
307 if (list.size() >= 2) {
308 if (chrgeList[0] + chrgeList[1] == 0) {
310 TLorentzVector
zv = list[0] + list[1];
int numberOfValidPixelHits() const
const edm::InputTag puSummaryTag_
const std::string trackQuality_
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
const edm::InputTag electronTag_
bool isNonnull() const
Checks for non-null.
std::vector< float > vpu_
Log< level::Error, false > LogError
const double maxDeltaPhiInEE_
int numberOfValidStripHits() const
const bool doPUCorrection_
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > puSummaryToken_
const double maxDeltaEtaInEB_
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
const double maxDeltaEtaInEE_
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
const std::complex< double > I
const double maxNormChi2_
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
const double maxDeltaPhiInEB_
const edm::InputTag vertexTag_
static TrackQuality qualityByName(const std::string &name)
const edm::EDGetTokenT< reco::VertexCollection > vertexToken_
const double maxSigmaiEiEEE_
const double minPtHighest_
const double maxSigmaiEiEEB_
MonitorElement * ZInvMass_
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
const edm::InputTag bsTag_