test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
TopElectronHLTOfflineSource Class Reference

#include <TopElectronHLTOfflineSource.h>

Inheritance diagram for TopElectronHLTOfflineSource:
edm::EDAnalyzer edm::EDConsumerBase

Classes

class  EleMEs
 

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void beginRun (const edm::Run &run, const edm::EventSetup &c)
 
virtual void endJob ()
 
virtual void endRun (const edm::Run &run, const edm::EventSetup &c)
 
void fill (EleMEs &eleMEs, const edm::Event &iEvent, size_t eleIndex, const std::vector< const trigger::TriggerObject * > &triggerJets, const std::vector< const trigger::TriggerObject * > &triggerElectrons, const reco::Vertex::Point &vertexPoint)
 
virtual void setupHistos (const std::vector< EleMEs >)
 
 TopElectronHLTOfflineSource (const edm::ParameterSet &conf)
 
virtual ~TopElectronHLTOfflineSource ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool addExtraId_
 
edm::EDGetTokenT< reco::BeamSpotbeamSpot_
 
DQMStoredbe_
 
std::string dirName_
 
std::vector< std::string > electronIdNames_
 
edm::EDGetTokenT
< reco::GsfElectronCollection
electronLabel_
 
double electronMaxEta_
 
double electronMinEt_
 
std::vector< std::string > electronTriggerNames_
 
edm::Handle
< reco::GsfElectronCollection
eleHandle_
 
std::vector< edm::EDGetTokenT
< edm::ValueMap< float > > > 
eleIdTokenCollection_
 
std::vector< EleMEseleMEs_
 
bool excludeCloseJets_
 
double extraIdCutsDzPV_
 
double extraIdCutsSigmaEta_
 
double extraIdCutsSigmaPhi_
 
HLTConfigProvider hltConfig_
 
bool hltConfigChanged_
 
bool hltConfigValid_
 
std::string hltTag_
 
edm::EDGetTokenT
< reco::VertexCollection
primaryVertexLabel_
 
bool requireTriggerMatch_
 
std::vector< std::string > superTriggerNames_
 
edm::InputTag triggerElectronFilterLabel_
 
edm::Handle
< trigger::TriggerEvent
triggerEvent_
 
edm::InputTag triggerJetFilterLabel_
 
edm::EDGetTokenT
< edm::TriggerResults
triggerResultsLabel_
 
edm::EDGetTokenT
< trigger::TriggerEvent
triggerSummaryLabel_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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 ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 30 of file TopElectronHLTOfflineSource.h.

Constructor & Destructor Documentation

TopElectronHLTOfflineSource::TopElectronHLTOfflineSource ( const edm::ParameterSet conf)

Definition at line 25 of file TopElectronHLTOfflineSource.cc.

References addExtraId_, dbe_, dirName_, electronIdNames_, electronLabel_, electronMaxEta_, electronMinEt_, electronTriggerNames_, excludeCloseJets_, extraIdCutsDzPV_, extraIdCutsSigmaEta_, extraIdCutsSigmaPhi_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hltTag_, cppFunctionSkipper::operator, primaryVertexLabel_, requireTriggerMatch_, DQMStore::setVerbose(), AlCaHLTBitMon_QueryRunRegistry::string, superTriggerNames_, triggerElectronFilterLabel_, triggerJetFilterLabel_, triggerResultsLabel_, and triggerSummaryLabel_.

25  :
26  beamSpot_(consumes<reco::BeamSpot>(conf.getParameter<edm::InputTag>("beamSpot"))) {
27 
29 
30  if (!dbe_)
31  {
32  edm::LogInfo("TopElectronHLTOfflineSource") << "unable to get DQMStore service?";
33  }
34 
35  if(conf.getUntrackedParameter<bool>("DQMStore", false))
36  {
37  if(!dbe_) dbe_->setVerbose(0);
38  }
39 
40  dirName_ = conf.getParameter<std::string>("DQMDirName");
41 
42  electronIdNames_ = conf.getParameter<std::vector<std::string> >("electronIdNames");
43  hltTag_ = conf.getParameter<std::string>("hltTag");
44  superTriggerNames_ = conf.getParameter<std::vector<std::string> >("superTriggerNames");
45  electronTriggerNames_ = conf.getParameter<std::vector<std::string> >("electronTriggerNames");
46 
47  triggerResultsLabel_ = consumes<edm::TriggerResults>(conf.getParameter<edm::InputTag>("triggerResultsLabel"));
48  triggerSummaryLabel_ = consumes<trigger::TriggerEvent>(conf.getParameter<edm::InputTag>("triggerSummaryLabel"));
49  electronLabel_ = consumes<reco::GsfElectronCollection>(conf.getParameter<edm::InputTag>("electronCollection"));
50  primaryVertexLabel_ = consumes<reco::VertexCollection>(conf.getParameter<edm::InputTag>("primaryVertexCollection"));
51  triggerJetFilterLabel_ = conf.getParameter<edm::InputTag>("triggerJetFilterLabel");
52  triggerElectronFilterLabel_ = conf.getParameter<edm::InputTag>("triggerElectronFilterLabel");
53 
54  excludeCloseJets_ = conf.getParameter<bool>("excludeCloseJets");
55  requireTriggerMatch_ = conf.getParameter<bool>("requireTriggerMatch");
56  electronMinEt_ = conf.getParameter<double>("electronMinEt");
57  electronMaxEta_ = conf.getParameter<double>("electronMaxEta");
58 
59  addExtraId_ = conf.getParameter<bool>("addExtraId");
60  extraIdCutsSigmaEta_ = conf.getParameter<double>("extraIdCutsSigmaEta");
61  extraIdCutsSigmaPhi_ = conf.getParameter<double>("extraIdCutsSigmaPhi");
62  extraIdCutsDzPV_ = conf.getParameter<double>("extraIdCutsDzPV");
63 
64 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > electronIdNames_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsLabel_
edm::EDGetTokenT< reco::BeamSpot > beamSpot_
std::vector< std::string > electronTriggerNames_
void setVerbose(unsigned level)
Definition: DQMStore.cc:631
edm::EDGetTokenT< reco::VertexCollection > primaryVertexLabel_
edm::EDGetTokenT< reco::GsfElectronCollection > electronLabel_
std::vector< std::string > superTriggerNames_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryLabel_
TopElectronHLTOfflineSource::~TopElectronHLTOfflineSource ( )
virtual

Definition at line 65 of file TopElectronHLTOfflineSource.cc.

66 {
67 }

Member Function Documentation

void TopElectronHLTOfflineSource::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 105 of file TopElectronHLTOfflineSource.cc.

References funct::abs(), accept(), beamSpot_, dbe_, electronLabel_, electronMaxEta_, electronMinEt_, electronTriggerNames_, eleHandle_, eleMEs_, reco::LeafCandidate::et(), reco::LeafCandidate::eta(), fill(), edm::Event::getByToken(), hltConfig_, hltConfigValid_, JetPDSkim_cfg::hltResults, i, cmsHarvester::index, j, reco::Vertex::position(), primaryVertexLabel_, edm::Handle< T >::product(), findQualityFiles::size, superTriggerNames_, triggerElectronFilterLabel_, triggerEvent_, HLTConfigProvider::triggerIndex(), triggerJetFilterLabel_, triggerResultsLabel_, and triggerSummaryLabel_.

106 {
107  if(!dbe_) return;
108  // ---- Get Trigger Decisions for all triggers under investigation ----
110  if(!iEvent.getByToken(triggerResultsLabel_, hltResults) || !hltResults.product()) return; //bail if we didnt get trigger results
111 
112 
113 
114  if (!hltConfigValid_) return;
115 
116  std::vector<bool> superTriggerAccepts;
117  std::vector<bool> electronTriggerAccepts;
118 
119  for (size_t i = 0; i < superTriggerNames_.size(); ++i)
120  {
121  unsigned int triggerIndex( hltConfig_.triggerIndex(superTriggerNames_[i]) );
122  bool accept = false;
123 
124  if (triggerIndex < hltResults->size())
125  {
126  accept = hltResults->accept(triggerIndex);
127  }
128 
129  superTriggerAccepts.push_back(accept);
130  }
131 
132  for (size_t i = 0; i < electronTriggerNames_.size(); ++i)
133  {
134  unsigned int triggerIndex( hltConfig_.triggerIndex(electronTriggerNames_[i]) );
135  bool accept = false;
136 
137  if (triggerIndex < hltResults->size())
138  {
139  accept = hltResults->accept(triggerIndex);
140  }
141 
142  electronTriggerAccepts.push_back(accept);
143  }
144 
145  // get reconstructed electron collection
146  if(!iEvent.getByToken(electronLabel_, eleHandle_) || !eleHandle_.product()) return;
147 
148  // Get Trigger Event, providing the information about trigger objects
150 
152  if(!iEvent.getByToken(primaryVertexLabel_, vertexHandle) || !vertexHandle.product()) return;
153 
154  reco::Vertex::Point vertexPoint(0., 0., 0.);
155  if (vertexHandle.product()->size() != 0)
156  {
157  const reco::Vertex& theVertex = vertexHandle.product()->front();
158  vertexPoint = theVertex.position();
159  }
160  else
161  {
162  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
163  if(!iEvent.getByToken(beamSpot_, recoBeamSpotHandle) || !recoBeamSpotHandle.product()) return;
164 
165  vertexPoint = recoBeamSpotHandle->position();
166  }
167 
168  trigger::size_type jetFilterPos = triggerEvent_->filterIndex(triggerJetFilterLabel_);
169  std::vector<const trigger::TriggerObject*> triggerJets;
170 
171  if (jetFilterPos != triggerEvent_->sizeFilters())
172  {
173  for (size_t i = 0; i < triggerEvent_->filterKeys(jetFilterPos).size(); ++i)
174  {
175  size_t objNr = triggerEvent_->filterKeys(jetFilterPos)[i];
176  if(objNr<triggerEvent_->sizeObjects()){
177  triggerJets.push_back(& triggerEvent_->getObjects()[objNr]);
178  }
179  }
180  }
181 
182  trigger::size_type eleFilterPos = triggerEvent_->filterIndex(triggerElectronFilterLabel_);
183  std::vector<const trigger::TriggerObject*> triggerElectrons;
184 
185  if (eleFilterPos != triggerEvent_->sizeFilters())
186  {
187  for (size_t i = 0; i < triggerEvent_->filterKeys(eleFilterPos).size(); ++i)
188  {
189  size_t objNr = triggerEvent_->filterKeys(eleFilterPos)[i];
190  if(objNr<triggerEvent_->sizeObjects()){
191  triggerElectrons.push_back(& triggerEvent_->getObjects()[objNr]);
192  }
193  }
194  }
195 
197 
198  for(size_t eleNr=0; eleNr < eles.size(); ++eleNr)
199  {
200 
201  const reco::GsfElectron& ele = eles[eleNr];
202 
203  // electron selection
204 
205  if(ele.et() > electronMinEt_ && std::abs(ele.eta()) < electronMaxEta_)
206  {
207  size_t index = 0;
208  for (size_t i = 0; i < superTriggerNames_.size(); ++i)
209  {
210  if (superTriggerAccepts[i])
211  fill(eleMEs_[index], iEvent, eleNr, triggerJets, triggerElectrons, vertexPoint);
212  index++;
213 
214  for (size_t j = 0; j < electronTriggerNames_.size(); ++j)
215  {
216  if (superTriggerAccepts[i] && electronTriggerAccepts[j])
217  fill(eleMEs_[index], iEvent, eleNr, triggerJets, triggerElectrons, vertexPoint);
218  index++;
219  }
220  }
221  }
222  }
223 }
int i
Definition: DBlmapReader.cc:9
virtual double et() const
transverse energy
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:26
uint16_t size_type
const Point & position() const
position
Definition: Vertex.h:106
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
edm::EDGetTokenT< edm::TriggerResults > triggerResultsLabel_
edm::EDGetTokenT< reco::BeamSpot > beamSpot_
edm::Handle< reco::GsfElectronCollection > eleHandle_
virtual float eta() const
momentum pseudorapidity
std::vector< std::string > electronTriggerNames_
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
math::XYZPoint Point
point in the space
Definition: Vertex.h:39
edm::EDGetTokenT< reco::VertexCollection > primaryVertexLabel_
edm::EDGetTokenT< reco::GsfElectronCollection > electronLabel_
std::vector< std::string > superTriggerNames_
T const * product() const
Definition: Handle.h:81
void fill(EleMEs &eleMEs, const edm::Event &iEvent, size_t eleIndex, const std::vector< const trigger::TriggerObject * > &triggerJets, const std::vector< const trigger::TriggerObject * > &triggerElectrons, const reco::Vertex::Point &vertexPoint)
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryLabel_
edm::Handle< trigger::TriggerEvent > triggerEvent_
tuple size
Write out results.
void TopElectronHLTOfflineSource::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 69 of file TopElectronHLTOfflineSource.cc.

References addExtraId_, edm::EDConsumerBase::consumes(), dbe_, dirName_, electronIdNames_, electronTriggerNames_, eleIdTokenCollection_, eleMEs_, i, j, DQMStore::setCurrentFolder(), and superTriggerNames_.

70 {
71  if(!dbe_) return;
73  for (size_t i = 0; i < superTriggerNames_.size(); ++i)
74  {
76  for (size_t j = 0; j < electronTriggerNames_.size(); ++j)
77  {
79  //std::cout <<superTriggerNames_[i]+"_"+electronTriggerNames_[j]<<std::endl;
80 
81  }
82  }
83  for (size_t i = 0; i < electronIdNames_.size(); i++)
85  //std::cout <<"done"<<std::endl;
86 }
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > electronIdNames_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > eleIdTokenCollection_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< std::string > electronTriggerNames_
int j
Definition: DBlmapReader.cc:9
std::vector< std::string > superTriggerNames_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void TopElectronHLTOfflineSource::beginRun ( const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 97 of file TopElectronHLTOfflineSource.cc.

References hltConfig_, hltConfigChanged_, hltConfigValid_, hltTag_, and HLTConfigProvider::init().

98 {
100 }
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
void TopElectronHLTOfflineSource::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 94 of file TopElectronHLTOfflineSource.cc.

95 {
96 }
void TopElectronHLTOfflineSource::endRun ( const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 101 of file TopElectronHLTOfflineSource.cc.

102 {
103 }
void TopElectronHLTOfflineSource::fill ( EleMEs eleMEs,
const edm::Event iEvent,
size_t  eleIndex,
const std::vector< const trigger::TriggerObject * > &  triggerJets,
const std::vector< const trigger::TriggerObject * > &  triggerElectrons,
const reco::Vertex::Point vertexPoint 
)

Definition at line 269 of file TopElectronHLTOfflineSource.cc.

References funct::abs(), addExtraId_, deltaR(), HWWFunctions::dzPV(), eleHandle_, TopElectronHLTOfflineSource::EleMEs::eleIdNames(), eleIdTokenCollection_, TopElectronHLTOfflineSource::EleMEs::eleMENames(), trigger::TriggerObject::et(), excludeCloseJets_, extraIdCutsDzPV_, extraIdCutsSigmaEta_, extraIdCutsSigmaPhi_, TopElectronHLTOfflineSource::EleMEs::fill(), edm::Event::getByToken(), TopElectronHLTOfflineSource::EleMEs::getMESet(), reco::GsfElectron::gsfTrack(), i, reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), reco::GsfElectron::isGap(), j, metsig::jet, reco::GsfElectron::p4(), requireTriggerMatch_, and reco::Candidate::size.

Referenced by analyze().

270 {
271  const reco::GsfElectron& ele = (*eleHandle_)[eleIndex];
272 
273  float dzPV = std::abs(ele.gsfTrack()->dz(vertexPoint));
274 
275  bool isTriggerMatched = false;
276  for (size_t i = 0; i < triggerElectrons.size(); ++i)
277  {
278  if (deltaR(*(triggerElectrons[i]), ele.p4()) < 0.3)
279  isTriggerMatched = true;
280  }
281 
282  if (requireTriggerMatch_ && !isTriggerMatched)
283  return;
284 
285  // Calculate minimum deltaR to closest jet and sumEt (all jets)
286  float minDeltaR = 999.;
287  float sumEt = 0.;
288 
289  for (size_t jetNr = 0; jetNr < triggerJets.size(); ++jetNr)
290  {
291  const trigger::TriggerObject& jet = *triggerJets[jetNr];
292 
293  sumEt += jet.et();
294 
295  float dr = deltaR(jet, ele.p4());
296 
297  if (!excludeCloseJets_ && dr < minDeltaR)
298  minDeltaR = dr;
299  if (excludeCloseJets_ && dr > 0.1 && dr < minDeltaR)
300  minDeltaR = dr;
301  }
302 
303  for (size_t j = 0; j < eleMEs.eleIdNames().size(); ++j)
304  {
305  bool eId = true;
306 
307  edm::Handle<edm::ValueMap<float> > eIdMapHandle;
308  iEvent.getByToken(eleIdTokenCollection_[j], eIdMapHandle);
309  const edm::ValueMap<float>& eIdMap = *eIdMapHandle;
310  eId = eIdMap[edm::Ref<reco::GsfElectronCollection>(eleHandle_, eleIndex)];
311 
312  bool extraId = true;
313  if (addExtraId_)
314  {
315  if (ele.gsfTrack()->etaError() > extraIdCutsSigmaEta_)
316  extraId = false;
317  if (ele.gsfTrack()->phiError() > extraIdCutsSigmaPhi_)
318  extraId = false;
319  if (dzPV > extraIdCutsDzPV_)
320  extraId = false;
321  }
322 
323  for (size_t i = 0; i < eleMEs.eleMENames().size(); ++i)
324  {
325  if (eId && eleMEs.eleMENames()[i] == "EB" && ele.isEB()&& !ele.isGap())
326  eleMEs.fill(eleMEs.getMESet(i, j), ele, minDeltaR, sumEt, triggerJets.size(), dzPV);
327  if (eId && eleMEs.eleMENames()[i] == "EE" && ele.isEE()&& !ele.isGap())
328  eleMEs.fill(eleMEs.getMESet(i, j), ele, minDeltaR, sumEt, triggerJets.size(), dzPV);
329  if (addExtraId_)
330  {
331  if (eId && extraId && eleMEs.eleMENames()[i] == "EB" && ele.isEB()&& !ele.isGap())
332  eleMEs.fill(eleMEs.getMESet(i, j+1), ele, minDeltaR, sumEt, triggerJets.size(), dzPV);
333  if (eId && extraId && eleMEs.eleMENames()[i] == "EE" && ele.isEE()&& !ele.isGap())
334  eleMEs.fill(eleMEs.getMESet(i, j+1), ele, minDeltaR, sumEt, triggerJets.size(), dzPV);
335  }
336  }
337  if (addExtraId_)
338  ++j;
339 
340  }
341 }
int i
Definition: DBlmapReader.cc:9
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:229
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > eleIdTokenCollection_
bool isEE() const
Definition: GsfElectron.h:348
bool isEB() const
Definition: GsfElectron.h:347
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:22
bool isGap() const
Definition: GsfElectron.h:349
edm::Handle< reco::GsfElectronCollection > eleHandle_
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
double dzPV(const LorentzVector &vtx, const LorentzVector &p4, const LorentzVector &pv)
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition: GsfElectron.h:183
void TopElectronHLTOfflineSource::setupHistos ( const std::vector< EleMEs topEleHists)
virtual

Definition at line 87 of file TopElectronHLTOfflineSource.cc.

References eleMEs_, and i.

88 {
89  for (size_t i = 0; i < eleMEs_.size(); ++i)
90  {
91  topEleHists.push_back(eleMEs_[i]);
92  }
93 }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

bool TopElectronHLTOfflineSource::addExtraId_
private

Definition at line 175 of file TopElectronHLTOfflineSource.h.

Referenced by beginJob(), fill(), and TopElectronHLTOfflineSource().

edm::EDGetTokenT<reco::BeamSpot> TopElectronHLTOfflineSource::beamSpot_
private

Definition at line 159 of file TopElectronHLTOfflineSource.h.

Referenced by analyze().

DQMStore* TopElectronHLTOfflineSource::dbe_
private

Definition at line 141 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), beginJob(), and TopElectronHLTOfflineSource().

std::string TopElectronHLTOfflineSource::dirName_
private

Definition at line 143 of file TopElectronHLTOfflineSource.h.

Referenced by beginJob(), and TopElectronHLTOfflineSource().

std::vector<std::string> TopElectronHLTOfflineSource::electronIdNames_
private

Definition at line 147 of file TopElectronHLTOfflineSource.h.

Referenced by beginJob(), and TopElectronHLTOfflineSource().

edm::EDGetTokenT<reco::GsfElectronCollection> TopElectronHLTOfflineSource::electronLabel_
private

Definition at line 157 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

double TopElectronHLTOfflineSource::electronMaxEta_
private

Definition at line 172 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

double TopElectronHLTOfflineSource::electronMinEt_
private

Definition at line 171 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

std::vector<std::string> TopElectronHLTOfflineSource::electronTriggerNames_
private

Definition at line 151 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), beginJob(), and TopElectronHLTOfflineSource().

edm::Handle<reco::GsfElectronCollection> TopElectronHLTOfflineSource::eleHandle_
private

Definition at line 164 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and fill().

std::vector<edm::EDGetTokenT<edm::ValueMap<float> > > TopElectronHLTOfflineSource::eleIdTokenCollection_
private

Definition at line 160 of file TopElectronHLTOfflineSource.h.

Referenced by beginJob(), and fill().

std::vector<EleMEs> TopElectronHLTOfflineSource::eleMEs_
private

Definition at line 145 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), beginJob(), and setupHistos().

bool TopElectronHLTOfflineSource::excludeCloseJets_
private

Definition at line 167 of file TopElectronHLTOfflineSource.h.

Referenced by fill(), and TopElectronHLTOfflineSource().

double TopElectronHLTOfflineSource::extraIdCutsDzPV_
private

Definition at line 180 of file TopElectronHLTOfflineSource.h.

Referenced by fill(), and TopElectronHLTOfflineSource().

double TopElectronHLTOfflineSource::extraIdCutsSigmaEta_
private

Definition at line 178 of file TopElectronHLTOfflineSource.h.

Referenced by fill(), and TopElectronHLTOfflineSource().

double TopElectronHLTOfflineSource::extraIdCutsSigmaPhi_
private

Definition at line 179 of file TopElectronHLTOfflineSource.h.

Referenced by fill(), and TopElectronHLTOfflineSource().

HLTConfigProvider TopElectronHLTOfflineSource::hltConfig_
private

Definition at line 184 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and beginRun().

bool TopElectronHLTOfflineSource::hltConfigChanged_
private

Definition at line 182 of file TopElectronHLTOfflineSource.h.

Referenced by beginRun().

bool TopElectronHLTOfflineSource::hltConfigValid_
private

Definition at line 183 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and beginRun().

std::string TopElectronHLTOfflineSource::hltTag_
private

Definition at line 148 of file TopElectronHLTOfflineSource.h.

Referenced by beginRun(), and TopElectronHLTOfflineSource().

edm::EDGetTokenT<reco::VertexCollection> TopElectronHLTOfflineSource::primaryVertexLabel_
private

Definition at line 158 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

bool TopElectronHLTOfflineSource::requireTriggerMatch_
private

Definition at line 169 of file TopElectronHLTOfflineSource.h.

Referenced by fill(), and TopElectronHLTOfflineSource().

std::vector<std::string> TopElectronHLTOfflineSource::superTriggerNames_
private

Definition at line 150 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), beginJob(), and TopElectronHLTOfflineSource().

edm::InputTag TopElectronHLTOfflineSource::triggerElectronFilterLabel_
private

Definition at line 156 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

edm::Handle<trigger::TriggerEvent> TopElectronHLTOfflineSource::triggerEvent_
private

Definition at line 162 of file TopElectronHLTOfflineSource.h.

Referenced by analyze().

edm::InputTag TopElectronHLTOfflineSource::triggerJetFilterLabel_
private

Definition at line 155 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

edm::EDGetTokenT<edm::TriggerResults> TopElectronHLTOfflineSource::triggerResultsLabel_
private

Definition at line 154 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().

edm::EDGetTokenT<trigger::TriggerEvent> TopElectronHLTOfflineSource::triggerSummaryLabel_
private

Definition at line 153 of file TopElectronHLTOfflineSource.h.

Referenced by analyze(), and TopElectronHLTOfflineSource().