|
|
Go to the documentation of this file.
8 #include "TLorentzVector.h"
22 edm::LogInfo(
"DQMExample_Step1") <<
"Constructor DQMExample_Step1::DQMExample_Step1 " << std::endl;
48 edm::LogInfo(
"DQMExample_Step1") <<
"Destructor DQMExample_Step1::~DQMExample_Step1 " << std::endl;
56 edm::LogInfo(
"DQMExample_Step1") <<
"DQMExample_Step1::beginRun" << std::endl;
63 edm::LogInfo(
"DQMExample_Step1") <<
"DQMExample_Step1::bookHistograms" << std::endl;
73 edm::LogInfo(
"DQMExample_Step1") <<
"DQMExample_Step1::analyze" << std::endl;
81 edm::LogError(
"DQMClientExample") <<
"invalid collection: vertex"
86 int vertex_number = vertexHandle->size();
87 reco::VertexCollection::const_iterator
v = vertexHandle->begin();
90 if (vertex_number != 0)
91 PVPoint =
math::XYZPoint(
v->position().x(),
v->position().y(),
v->position().z());
101 edm::LogError(
"DQMClientExample") <<
"invalid collection: MET"
111 edm::LogError(
"DQMClientExample") <<
"invalid collection: electrons"
117 int posEle = 0, negEle = 0;
120 for (reco::GsfElectronCollection::const_iterator recoElectron =
electronCollection->begin();
126 ele1 = &(*recoElectron);
128 else if (!ele2 && recoElectron->
pt() >
ptThrL2_)
129 ele2 = &(*recoElectron);
132 if (recoElectron->charge() == 1)
134 else if (recoElectron->charge() == -1)
139 nEle = posEle + negEle;
147 edm::LogError(
"DQMClientExample") <<
"invalid collection: jets"
156 for (reco::CaloJetCollection::const_iterator i_calojet =
caloJetCollection->begin();
161 if (
Distance(*i_calojet, *ele1) < 0.3)
165 if (
Distance(*i_calojet, *ele2) < 0.3)
174 jet1 = &(*i_calojet);
177 jet2 = &(*i_calojet);
189 edm::LogError(
"DQMClientExample") <<
"invalid collection: TriggerResults"
194 bool hasFired =
false;
196 unsigned int numTriggers =
trigNames.size();
198 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
207 edm::LogError(
"DQMClientExample") <<
"invalid collection: TriggerEvent"
219 std::vector<reco::Particle> triggeredEle;
221 for (
size_t j = 0;
j <
keys.size(); ++
j) {
226 triggeredEle.push_back(foundObject.
particle());
230 if (!triggeredEle.empty())
231 ele1_HLT = &(triggeredEle.at(0));
268 if (ele1 && ele1_HLT &&
deltaR(*ele1_HLT, *ele1) < 0.3 && hasFired ==
true) {
293 h_vertex_number = ibooker_.
book1D(
"Vertex_number",
"Number of event vertices in collection", 40, -0.5, 39.5);
295 h_pfMet = ibooker_.
book1D(
"pfMet",
"Pf Missing E_{T}; GeV", 20, 0.0, 100);
318 ibooker_.
book1D(
"EleEta_leading_HLT_matched",
"Eta of leading electron @HLT", 50, -5., 5.);
320 ibooker_.
book1D(
"ElePhi_leading_HLT_matched",
"Phi of leading electron @HLT", 50, -3.5, 3.5);
322 h_ePt_diff = ibooker_.
book1D(
"ElePt_diff_matched",
"pT(RECO) - pT(HLT) for mathed candidates", 100, -10, 10.);
359 bool isMediumEle =
false;
365 float sigmaIetaIeta =
electron.sigmaIetaIeta();
366 float DetaIn =
electron.deltaEtaSuperClusterTrackAtVtx();
367 float DphiIn =
electron.deltaPhiSuperClusterTrackAtVtx();
368 float HOverE =
electron.hadronicOverEm();
372 int nAmbiguousGsfTracks =
electron.ambiguousGsfTracksSize();
385 if ((
pt > 12.) && (fabs(
eta) < 2.5) &&
386 (((isEB == 1) && (fabs(DetaIn) < 0.004)) || ((isEB == 0) && (fabs(DetaIn) < 0.007))) &&
387 (((isEB == 1) && (fabs(DphiIn) < 0.060)) || ((isEB == 0) && (fabs(DphiIn) < 0.030))) &&
388 (((isEB == 1) && (sigmaIetaIeta < 0.010)) || ((isEB == 0) && (sigmaIetaIeta < 0.030))) &&
389 (((isEB == 1) && (HOverE < 0.120)) || ((isEB == 0) && (HOverE < 0.100))) &&
390 (((isEB == 1) && (fabs(ooemoop) < 0.050)) || ((isEB == 0) && (fabs(ooemoop) < 0.050))) &&
391 (((isEB == 1) && (fabs(
dxy) < 0.020)) || ((isEB == 0) && (fabs(
dxy) < 0.020))) &&
392 (((isEB == 1) && (fabs(
dz) < 0.100)) || ((isEB == 0) && (fabs(
dz) < 0.100))) &&
393 (((isEB == 1) && (!isConverted)) || ((isEB == 0) && (!isConverted))) && (mishits == 0) &&
394 (nAmbiguousGsfTracks == 0))
int pdgId() const
PDG identifier.
Jets made from CaloTowers.
MonitorElement * h_jMultiplicity
edm::EDGetTokenT< reco::GsfElectronCollection > theElectronCollection_
DQMExample_Step1(const edm::ParameterSet &ps)
MonitorElement * h_eMultiplicity
reco::Particle particle(reco::Particle::Charge q=0, const reco::Particle::Point &vertex=reco::Particle::Point(0, 0, 0), int status=0, bool integerCharge=true) const
MonitorElement * h_ePhi_leading_matched
static const char *const trigNames[]
~DQMExample_Step1() override
double pt() const
transverse momentum
MonitorElement * h_jPt_leading
edm::EDGetTokenT< reco::BeamSpot > theBSCollection_
MonitorElement * h_eEta_leading_matched
MonitorElement * h_jEta_leading
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< trigger::TriggerEvent > triggerEvent_
MonitorElement * h_eEta_leading_HLT_matched
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
double Distance(const reco::Candidate &c1, const reco::Candidate &c2)
T getUntrackedParameter(std::string const &, T const &) const
double pt() const final
transverse momentum
MonitorElement * h_ePt_leading_HLT
double eta() const
momentum pseudorapidity
MonitorElement * h_ePt_diff
MonitorElement * h_ePhi_leading
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
edm::EDGetTokenT< reco::ConversionCollection > theConversionCollection_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
const Point & position() const
position
Single trigger physics object (e.g., an isolated muon)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_ePt_leading_HLT_matched
XYZPointD XYZPoint
point in space with cartesian internal representation
double DistancePhi(const reco::Candidate &c1, const reco::Candidate &c2)
double eta() const final
momentum pseudorapidity
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
MonitorElement * h_jPhi_leading
std::vector< size_type > Keys
MonitorElement * h_ePhi_leading_HLT_matched
MonitorElement * h_eEta_leading
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_eMultiplicity_HLT
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
T getParameter(std::string const &) const
MonitorElement * h_vertex_number
MonitorElement * h_eEta_leading_HLT
double phi() const final
momentum azimuthal angle
void bookHistos(DQMStore::IBooker &)
MonitorElement * h_ePhi_leading_HLT
double phi() const
momentum azimuthal angle
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
bool MediumEle(const edm::Event &iEvent, const edm::EventSetup &iESetup, const reco::GsfElectron &electron)
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
edm::InputTag triggerFilter_
Abs< T >::type abs(const T &t)
double calcDeltaPhi(double phi1, double phi2)
MonitorElement * h_ePt_leading_matched
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * h_ePt_leading