CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter > Class Template Reference
Inheritance diagram for FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >:
FSQ::BaseHandler

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, const edm::TriggerResults &triggerResults, const edm::TriggerNames &triggerNames, float weight) override
 
void book (DQMStore::IBooker &booker) override
 
template<class T >
int count (const edm::Event &iEvent, InputTag &input, StringCutObjectSelector< T > &sel, float weight)
 
void fillSingleObjectPlots (const TInputCandidateType &cand, float weight)
 
std::vector< std::string > findPathAndFilter (const HLTConfigProvider &hltConfig)
 
void getAndStoreTokens (edm::ConsumesCollector &&iC) override
 
template<>
void getAndStoreTokens (edm::ConsumesCollector &&iC)
 
template<>
void getAndStoreTokens (edm::ConsumesCollector &&iC)
 
template<>
void getAndStoreTokens (edm::ConsumesCollector &&iC)
 
template<>
void getAndStoreTokens (edm::ConsumesCollector &&iC)
 
std::vector< TOutputCandidateType > getBestCombination (std::vector< TOutputCandidateType > &cands)
 
void getFilteredCands (TInputCandidateType *, std::vector< TOutputCandidateType > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::Candidate::LorentzVector *, std::vector< reco::Candidate::LorentzVector > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::Track *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::GenParticle *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::Track *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::PFJet *, std::vector< reco::PFJet > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (reco::Candidate::LorentzVector *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
template<>
void getFilteredCands (trigger::TriggerObject *, std::vector< trigger::TriggerObject > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
 
 HandlerTemplate (const edm::ParameterSet &iConfig, triggerExpression::Data &eventCache)
 
 ~HandlerTemplate () override=default
 
- Public Member Functions inherited from FSQ::BaseHandler
 BaseHandler ()
 
 BaseHandler (const edm::ParameterSet &iConfig, triggerExpression::Data &eventCache)
 
virtual ~BaseHandler ()=default
 

Private Attributes

int m_combinedObjectDimension
 
std::vector< edm::ParameterSetm_combinedObjectDrawables
 
StringCutObjectSelector< std::vector< TOutputCandidateType > > m_combinedObjectSelection
 
StringObjectFunction< std::vector< TOutputCandidateType > > m_combinedObjectSortFunction
 
std::string m_dqmhistolabel
 
std::string m_filterPartialName
 
edm::InputTag m_input
 
bool m_isSetup
 
std::string m_pathPartialName
 
std::map< std::string, std::shared_ptr< StringObjectFunction< std::vector< TOutputCandidateType > > > > m_plottersCombinedObject
 
std::map< std::string, std::shared_ptr< StringObjectFunction< TInputCandidateType > > > m_plottersSingleObject
 
std::map< std::string, int > m_plotterType
 
std::vector< edm::ParameterSetm_singleObjectDrawables
 
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
 
std::map< std::string, edm::EDGetTokenm_tokens
 

Static Private Attributes

static const int CombinedObjectPlotter = 1
 
static const int SingleObjectPlotter = 0
 xxx More...
 

Additional Inherited Members

- Public Types inherited from FSQ::BaseHandler
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Public Attributes inherited from FSQ::BaseHandler
std::string m_dirname
 
triggerExpression::Datam_eventCache
 
std::unique_ptr< triggerExpression::Evaluatorm_expression
 
std::map< std::string, MonitorElement * > m_histos
 
edm::ParameterSet m_pset
 
std::set< std::string > m_usedPaths
 

Detailed Description

template<class TInputCandidateType, class TOutputCandidateType, SpecialFilters filter = None>
class FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >

Definition at line 107 of file FSQDiJetAve.cc.

Constructor & Destructor Documentation

◆ HandlerTemplate()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::HandlerTemplate ( const edm::ParameterSet iConfig,
triggerExpression::Data eventCache 
)
inline

Definition at line 132 of file FSQDiJetAve.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

133  : BaseHandler(iConfig, eventCache),
134  m_singleObjectSelection(iConfig.getParameter<std::string>("singleObjectsPreselection")),
135  m_combinedObjectSelection(iConfig.getParameter<std::string>("combinedObjectSelection")),
136  m_combinedObjectSortFunction(iConfig.getParameter<std::string>("combinedObjectSortCriteria")) {
137  std::string type = iConfig.getParameter<std::string>("handlerType");
138  if (type != "FromHLT") {
139  m_input = iConfig.getParameter<edm::InputTag>("inputCol");
140  }
141 
142  m_dqmhistolabel = iConfig.getParameter<std::string>("dqmhistolabel");
144  iConfig.getParameter<std::string>("partialFilterName"); // std::string find is used to match filter
145  m_pathPartialName = iConfig.getParameter<std::string>("partialPathName");
146  m_combinedObjectDimension = iConfig.getParameter<int>("combinedObjectDimension");
147  m_combinedObjectDrawables = iConfig.getParameter<std::vector<edm::ParameterSet> >("combinedObjectDrawables");
148  m_singleObjectDrawables = iConfig.getParameter<std::vector<edm::ParameterSet> >("singleObjectDrawables");
149  m_isSetup = false;
150  }
std::vector< edm::ParameterSet > m_combinedObjectDrawables
Definition: FSQDiJetAve.cc:125
std::string m_filterPartialName
Definition: FSQDiJetAve.cc:111
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< edm::ParameterSet > m_singleObjectDrawables
Definition: FSQDiJetAve.cc:126
StringObjectFunction< std::vector< TOutputCandidateType > > m_combinedObjectSortFunction
Definition: FSQDiJetAve.cc:117
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::string m_pathPartialName
Definition: FSQDiJetAve.cc:110
std::string m_dqmhistolabel
Definition: FSQDiJetAve.cc:109
StringCutObjectSelector< std::vector< TOutputCandidateType > > m_combinedObjectSelection
Definition: FSQDiJetAve.cc:116
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115

◆ ~HandlerTemplate()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::~HandlerTemplate ( )
overridedefault

Member Function Documentation

◆ analyze()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
const edm::TriggerResults triggerResults,
const edm::TriggerNames triggerNames,
float  weight 
)
inlineoverridevirtual

Implements FSQ::BaseHandler.

Definition at line 297 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, newFWLiteAna::found, HltComparatorCreateWorkflow::hltConfig, mps_fire::i, iEvent, L1TEGammaOffline_cfi::triggerNames, and heppy_batch::val.

303  {
304  size_t found = 0;
305  for (size_t i = 0; i < triggerNames.size(); ++i) {
306  auto itUsedPaths = m_usedPaths.begin();
307  for (; itUsedPaths != m_usedPaths.end(); ++itUsedPaths) {
308  if (triggerNames.triggerName(i).find(*itUsedPaths) != std::string::npos) {
309  ++found;
310  break;
311  }
312  }
313 
314  if (found == m_usedPaths.size())
315  break;
316  }
317  if (found != m_usedPaths.size()) {
318  edm::LogInfo("FSQDiJetAve") << "One of requested paths not found, skipping event";
319  return;
320  }
322  m_expression->init(*m_eventCache);
323  }
324  if (not(*m_expression)(*m_eventCache))
325  return;
326 
327  /*
328  std::vector<std::string> pathAndFilter = findPathAndFilter(hltConfig);
329 
330  std::string pathFullName = pathAndFilter[0];
331  if (pathFullName == "") {
332  return;
333  }
334  unsigned indexNum = triggerNames.triggerIndex(pathFullName);
335  if(indexNum >= triggerNames.size()){
336  edm::LogError("FSQDiJetAve") << "Problem determining trigger index for " << pathFullName << " " << m_pathPartialName;
337  }
338  if (!triggerResults.accept(indexNum)) return;*/
339 
340  std::vector<TOutputCandidateType> cands;
341  getFilteredCands((TInputCandidateType*)nullptr, cands, iEvent, iSetup, hltConfig, trgEvent, weight);
342 
343  if (cands.empty())
344  return;
345 
346  std::vector<TOutputCandidateType> bestCombinationFromCands = getBestCombination(cands);
347  if (bestCombinationFromCands.empty())
348  return;
349 
350  // plot
351  std::map<std::string, MonitorElement*>::iterator it, itE;
352  it = m_histos.begin();
353  itE = m_histos.end();
354  for (; it != itE; ++it) {
355  if (m_plotterType[it->first] != CombinedObjectPlotter)
356  continue;
357  float val = (*m_plottersCombinedObject[it->first])(bestCombinationFromCands);
358  it->second->Fill(val, weight);
359  }
360  }
Definition: weight.py:1
static const int CombinedObjectPlotter
Definition: FSQDiJetAve.cc:123
std::map< std::string, MonitorElement * > m_histos
Definition: FSQDiJetAve.cc:96
std::vector< TOutputCandidateType > getBestCombination(std::vector< TOutputCandidateType > &cands)
Definition: FSQDiJetAve.cc:362
int iEvent
Definition: GenABIO.cc:224
std::map< std::string, int > m_plotterType
Definition: FSQDiJetAve.cc:124
std::set< std::string > m_usedPaths
Definition: FSQDiJetAve.cc:97
void getFilteredCands(TInputCandidateType *, std::vector< TOutputCandidateType > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
Definition: FSQDiJetAve.cc:231
Log< level::Info, false > LogInfo
std::unique_ptr< triggerExpression::Evaluator > m_expression
Definition: FSQDiJetAve.cc:93
triggerExpression::Data * m_eventCache
Definition: FSQDiJetAve.cc:94
std::map< std::string, std::shared_ptr< StringObjectFunction< std::vector< TOutputCandidateType > > > > m_plottersCombinedObject
Definition: FSQDiJetAve.cc:119

◆ book()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::book ( DQMStore::IBooker booker)
inlineoverridevirtual

Implements FSQ::BaseHandler.

Definition at line 152 of file FSQDiJetAve.cc.

References trigObjTnPSource_cfi::bins, dqm::implementation::IBooker::book1D(), EcalMonitorTask_cff::func, HltBtagPostValidation_cff::histoName, mps_fire::i, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and DQMOfflineHeavyIons_cff::todo.

152  {
153  if (!m_isSetup) {
154  booker.setCurrentFolder(m_dirname);
155  m_isSetup = true;
156  std::vector<std::vector<edm::ParameterSet>*> todo(2, (std::vector<edm::ParameterSet>*)nullptr);
159  for (size_t ti = 0; ti < todo.size(); ++ti) {
160  for (size_t i = 0; i < todo[ti]->size(); ++i) {
161  std::string histoName = m_dqmhistolabel + "_" + todo[ti]->at(i).template getParameter<std::string>("name");
162  std::string expression = todo[ti]->at(i).template getParameter<std::string>("expression");
163  int bins = todo[ti]->at(i).template getParameter<int>("bins");
164  double rangeLow = todo[ti]->at(i).template getParameter<double>("min");
165  double rangeHigh = todo[ti]->at(i).template getParameter<double>("max");
166  m_histos[histoName] = booker.book1D(histoName, histoName, bins, rangeLow, rangeHigh);
167  m_plotterType[histoName] = ti;
168  if (ti == CombinedObjectPlotter) {
171  std::shared_ptr<StringObjectFunction<std::vector<TOutputCandidateType> > >(func);
172  } else {
173  auto* func = new StringObjectFunction<TInputCandidateType>(expression);
174  m_plottersSingleObject[histoName] = std::shared_ptr<StringObjectFunction<TInputCandidateType> >(func);
175  }
176  }
177  }
178  }
179  }
std::vector< edm::ParameterSet > m_combinedObjectDrawables
Definition: FSQDiJetAve.cc:125
std::vector< edm::ParameterSet > m_singleObjectDrawables
Definition: FSQDiJetAve.cc:126
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
static const int CombinedObjectPlotter
Definition: FSQDiJetAve.cc:123
static const int SingleObjectPlotter
xxx
Definition: FSQDiJetAve.cc:122
std::map< std::string, MonitorElement * > m_histos
Definition: FSQDiJetAve.cc:96
std::string m_dqmhistolabel
Definition: FSQDiJetAve.cc:109
std::map< std::string, int > m_plotterType
Definition: FSQDiJetAve.cc:124
std::map< std::string, std::shared_ptr< StringObjectFunction< TInputCandidateType > > > m_plottersSingleObject
Definition: FSQDiJetAve.cc:120
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
std::string m_dirname
Definition: FSQDiJetAve.cc:95
std::map< std::string, std::shared_ptr< StringObjectFunction< std::vector< TOutputCandidateType > > > > m_plottersCombinedObject
Definition: FSQDiJetAve.cc:119

◆ count()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
template<class T >
int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::count ( const edm::Event iEvent,
InputTag input,
StringCutObjectSelector< T > &  sel,
float  weight 
)
inline

Definition at line 191 of file FSQDiJetAve.cc.

References mps_fire::i, iEvent, input, edm::HandleBase::isValid(), singleTopDQM_cfi::preselection, runTheMatrix::ret, EgammaValidation_Wenu_cff::sel, and mps_merge::weight.

191  {
192  int ret = 0;
193  Handle<std::vector<T> > hIn;
194  iEvent.getByToken(m_tokens[input.encode()], hIn);
195  if (!hIn.isValid()) {
196  edm::LogError("FSQDiJetAve") << "product not found: " << input.encode();
197  return -1; // return nonsense value
198  }
199  for (size_t i = 0; i < hIn->size(); ++i) {
200  bool preselection = sel(hIn->at(i));
201  if (preselection) {
202  fillSingleObjectPlots(hIn->at(i), weight);
203  ret += 1;
204  }
205  }
206  return ret;
207  }
ret
prodAgent to be discontinued
Log< level::Error, false > LogError
static std::string const input
Definition: EdmProvDump.cc:47
int iEvent
Definition: GenABIO.cc:224
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
bool isValid() const
Definition: HandleBase.h:70
preselection
PRESELECTION

◆ fillSingleObjectPlots()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::fillSingleObjectPlots ( const TInputCandidateType &  cand,
float  weight 
)
inline

Definition at line 210 of file FSQDiJetAve.cc.

References heppy_batch::val.

210  {
211  std::map<std::string, MonitorElement*>::iterator it, itE;
212  it = m_histos.begin();
213  itE = m_histos.end();
214  for (; it != itE; ++it) {
215  if (m_plotterType[it->first] != SingleObjectPlotter)
216  continue;
217  float val = (*m_plottersSingleObject[it->first])(cand);
218  it->second->Fill(val, weight);
219  }
220  }
Definition: weight.py:1
static const int SingleObjectPlotter
xxx
Definition: FSQDiJetAve.cc:122
std::map< std::string, MonitorElement * > m_histos
Definition: FSQDiJetAve.cc:96
std::map< std::string, int > m_plotterType
Definition: FSQDiJetAve.cc:124
std::map< std::string, std::shared_ptr< StringObjectFunction< TInputCandidateType > > > m_plottersSingleObject
Definition: FSQDiJetAve.cc:120

◆ findPathAndFilter()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::vector<std::string> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::findPathAndFilter ( const HLTConfigProvider hltConfig)
inline

Definition at line 255 of file FSQDiJetAve.cc.

References HltComparatorCreateWorkflow::hltConfig, mps_fire::i, HerwigMaxPtPartonFilter_cfi::moduleLabel, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.

255  {
256  std::vector<std::string> ret(2, "");
257  std::string filterFullName = "";
258  std::string pathFullName = "";
259  std::vector<std::string> filtersForThisPath;
260  //int pathIndex = -1;
261  int numPathMatches = 0;
262  int numFilterMatches = 0;
263  for (size_t i = 0; i < hltConfig.size(); ++i) {
264  if (hltConfig.triggerName(i).find(m_pathPartialName) == std::string::npos)
265  continue;
266  pathFullName = hltConfig.triggerName(i);
267  //pathIndex = i;
268  ++numPathMatches;
269  std::vector<std::string> moduleLabels = hltConfig.moduleLabels(i);
270  for (auto& moduleLabel : moduleLabels) {
271  if ("EDFilter" == hltConfig.moduleEDMType(moduleLabel)) {
272  filtersForThisPath.push_back(moduleLabel);
273  if (moduleLabel.find(m_filterPartialName) != std::string::npos) {
274  filterFullName = moduleLabel;
275  ++numFilterMatches;
276  }
277  }
278  }
279  }
280 
281  // LogWarning or LogError?
282  if (numPathMatches != 1) {
283  edm::LogInfo("FSQDiJetAve") << "Problem: found " << numPathMatches << " paths matching " << m_pathPartialName
284  << std::endl;
285  return ret;
286  }
287  ret[0] = pathFullName;
288  if (numFilterMatches != 1) {
289  edm::LogError("FSQDiJetAve") << "Problem: found " << numFilterMatches << " filter matching "
290  << m_filterPartialName << " in path " << m_pathPartialName << std::endl;
291  return ret;
292  }
293  ret[1] = filterFullName;
294  return ret;
295  }
std::string m_filterPartialName
Definition: FSQDiJetAve.cc:111
ret
prodAgent to be discontinued
Log< level::Error, false > LogError
std::string m_pathPartialName
Definition: FSQDiJetAve.cc:110
Log< level::Info, false > LogInfo

◆ getAndStoreTokens() [1/5]

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
inlineoverridevirtual

Implements FSQ::BaseHandler.

Definition at line 180 of file FSQDiJetAve.cc.

References edm::InputTag::encode().

180  {
181  edm::EDGetTokenT<std::vector<TInputCandidateType> > tok = iC.consumes<std::vector<TInputCandidateType> >(m_input);
183  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::string encode() const
Definition: InputTag.cc:159
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129

◆ getAndStoreTokens() [2/5]

Implements FSQ::BaseHandler.

Definition at line 440 of file FSQDiJetAve.cc.

441  {
444  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::string encode() const
Definition: InputTag.cc:159
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129

◆ getAndStoreTokens() [3/5]

template<>
void FSQ::HandlerTemplate< reco::Track, int, BestVertexMatching >::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
virtual

Implements FSQ::BaseHandler.

Definition at line 508 of file FSQDiJetAve.cc.

References edm::InputTag::encode().

508  {
509  edm::EDGetTokenT<std::vector<reco::Track> > tok = iC.consumes<std::vector<reco::Track> >(m_input);
511 
512  edm::InputTag lVerticesTag = m_pset.getParameter<edm::InputTag>("vtxCollection");
514  m_tokens[lVerticesTag.encode()] = edm::EDGetToken(tok2);
515  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string encode() const
Definition: InputTag.cc:159
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:98

◆ getAndStoreTokens() [4/5]

template<>
void FSQ::HandlerTemplate< reco::PFJet, reco::PFJet, ApplyJEC >::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
virtual

Implements FSQ::BaseHandler.

Definition at line 600 of file FSQDiJetAve.cc.

References edm::InputTag::encode().

600  {
601  edm::EDGetTokenT<std::vector<reco::PFJet> > tok = iC.consumes<std::vector<reco::PFJet> >(m_input);
603 
604  edm::InputTag jetCorTag = m_pset.getParameter<edm::InputTag>("PFJetCorLabel");
606  m_tokens[jetCorTag.encode()] = edm::EDGetToken(jetcortoken);
607  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string encode() const
Definition: InputTag.cc:159
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:98

◆ getAndStoreTokens() [5/5]

template<>
void FSQ::HandlerTemplate< reco::Candidate::LorentzVector, int >::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
virtual

Implements FSQ::BaseHandler.

Definition at line 649 of file FSQDiJetAve.cc.

649  {
652  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::string encode() const
Definition: InputTag.cc:159
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129

◆ getBestCombination()

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::vector<TOutputCandidateType> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::getBestCombination ( std::vector< TOutputCandidateType > &  cands)
inline

Definition at line 362 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, HLT_2022v12_cff::distance, mps_fire::i, jetUpdater_cfi::sort, and tier0::unique().

362  {
363  int columnSize = cands.size();
364  std::vector<int> currentCombination(m_combinedObjectDimension, 0);
365  std::vector<int> bestCombination(m_combinedObjectDimension, -1);
366 
367  int maxCombinations = 1;
368  int cnt = 0;
369  while (cnt < m_combinedObjectDimension) {
370  cnt += 1;
371  maxCombinations *= columnSize;
372  }
373 
374  cnt = 0;
375  float bestCombinedCandVal = -1;
376  while (cnt < maxCombinations) {
377  cnt += 1;
378 
379  // 1. Check if current combination contains duplicates
380  std::vector<int> currentCombinationCopy(currentCombination);
381  std::vector<int>::iterator it;
382  std::sort(currentCombinationCopy.begin(), currentCombinationCopy.end());
383  it = std::unique(currentCombinationCopy.begin(), currentCombinationCopy.end());
384  currentCombinationCopy.resize(std::distance(currentCombinationCopy.begin(), it));
385  bool duplicatesPresent = currentCombination.size() != currentCombinationCopy.size();
386  // 2. If no duplicates found -
387  // - check if current combination passes the cut
388  // - rank current combination
389  if (!duplicatesPresent) { // no duplicates, we can consider this combined object
390  std::vector<TOutputCandidateType> currentCombinationFromCands;
391  currentCombinationFromCands.reserve(m_combinedObjectDimension);
392  for (int i = 0; i < m_combinedObjectDimension; ++i) {
393  currentCombinationFromCands.push_back(cands.at(currentCombination.at(i)));
394  }
395  bool isOK = m_combinedObjectSelection(currentCombinationFromCands);
396  if (isOK) {
397  float curVal = m_combinedObjectSortFunction(currentCombinationFromCands);
398  // FIXME
399  if (curVal < 0) {
400  edm::LogError("FSQDiJetAve")
401  << "Problem: ranking function returned negative value: " << curVal << std::endl;
402  } else if (curVal > bestCombinedCandVal) {
403  //std::cout << curVal << " " << bestCombinedCandVal << std::endl;
404  bestCombinedCandVal = curVal;
405  bestCombination = currentCombination;
406  }
407  }
408  }
409  // 3. Prepare next combination to test
410  // note to future self: less error prone method with modulo
411  currentCombination.at(m_combinedObjectDimension - 1) += 1; // increase last number
412  int carry = 0;
413  for (int i = m_combinedObjectDimension - 1; i >= 0;
414  --i) { // iterate over all numbers, check if we are out of range
415  currentCombination.at(i) += carry;
416  carry = 0;
417  if (currentCombination.at(i) >= columnSize) {
418  carry = 1;
419  currentCombination.at(i) = 0;
420  }
421  }
422  } // combinations loop ends
423 
424  std::vector<TOutputCandidateType> bestCombinationFromCands;
425  if (!bestCombination.empty() && bestCombination.at(0) >= 0) {
426  for (int i = 0; i < m_combinedObjectDimension; ++i) {
427  bestCombinationFromCands.push_back(cands.at(bestCombination.at(i)));
428  }
429  }
430  return bestCombinationFromCands;
431  }
StringObjectFunction< std::vector< TOutputCandidateType > > m_combinedObjectSortFunction
Definition: FSQDiJetAve.cc:117
Log< level::Error, false > LogError
StringCutObjectSelector< std::vector< TOutputCandidateType > > m_combinedObjectSelection
Definition: FSQDiJetAve.cc:116
def unique(seq, keepstr=True)
Definition: tier0.py:24

◆ getFilteredCands() [1/8]

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::getFilteredCands ( TInputCandidateType *  ,
std::vector< TOutputCandidateType > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)
inline

Definition at line 231 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, edm::InputTag::encode(), mps_fire::i, iEvent, edm::HandleBase::isValid(), singleTopDQM_cfi::preselection, and mps_merge::weight.

237  {
239  iEvent.getByToken(m_tokens[m_input.encode()], hIn);
240 
241  if (!hIn.isValid()) {
242  edm::LogError("FSQDiJetAve") << "product not found: " << m_input.encode();
243  return;
244  }
245 
246  for (size_t i = 0; i < hIn->size(); ++i) {
247  bool preselection = m_singleObjectSelection(hIn->at(i));
248  if (preselection) {
249  fillSingleObjectPlots(hIn->at(i), weight);
250  cands.push_back(hIn->at(i));
251  }
252  }
253  }
std::string encode() const
Definition: InputTag.cc:159
Log< level::Error, false > LogError
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
bool isValid() const
Definition: HandleBase.h:70
preselection
PRESELECTION

◆ getFilteredCands() [2/8]

template<>
void FSQ::HandlerTemplate< reco::Candidate::LorentzVector, reco::Candidate::LorentzVector >::getFilteredCands ( reco::Candidate::LorentzVector ,
std::vector< reco::Candidate::LorentzVector > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 446 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, mps_fire::i, iEvent, edm::HandleBase::isValid(), singleTopDQM_cfi::preselection, and mps_merge::weight.

453  {
455  iEvent.getByToken(m_tokens[m_input.encode()], hIn);
456  if (!hIn.isValid()) {
457  edm::LogError("FSQDiJetAve") << "product not found: " << m_input.encode();
458  return;
459  }
460  for (auto const& i : *hIn) {
462  if (preselection) {
464  cands.push_back(i.p4());
465  }
466  }
467  }
std::string encode() const
Definition: InputTag.cc:159
Log< level::Error, false > LogError
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
bool isValid() const
Definition: HandleBase.h:70
preselection
PRESELECTION

◆ getFilteredCands() [3/8]

template<>
void FSQ::HandlerTemplate< reco::Track, int >::getFilteredCands ( reco::Track ,
std::vector< int > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 476 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, and iEvent.

483  {
484  cands.clear();
485  cands.push_back(count<reco::Track>(iEvent, m_input, m_singleObjectSelection, weight));
486  }
Definition: weight.py:1
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115

◆ getFilteredCands() [4/8]

template<>
void FSQ::HandlerTemplate< reco::GenParticle, int >::getFilteredCands ( reco::GenParticle ,
std::vector< int > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 488 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, and iEvent.

495  {
496  cands.clear();
497  cands.push_back(count<reco::GenParticle>(iEvent, m_input, m_singleObjectSelection, weight));
498  }
Definition: weight.py:1
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115

◆ getFilteredCands() [5/8]

template<>
void FSQ::HandlerTemplate< reco::Track, int, BestVertexMatching >::getFilteredCands ( reco::Track ,
std::vector< int > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 518 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, PVValHelper::dxy, PVValHelper::dz, edm::InputTag::encode(), mps_fire::i, iEvent, edm::HandleBase::isValid(), mathSSE::sqrt(), and AlignmentTracksFromVertexSelector_cfi::vertices.

525  {
526  // this is not elegant, but should be thread safe
527  static const edm::InputTag lVerticesTag = m_pset.getParameter<edm::InputTag>("vtxCollection");
528  static const int lMinNDOF = m_pset.getParameter<int>("minNDOF"); //7
529  static const double lMaxZ = m_pset.getParameter<double>("maxZ"); // 15
530  static const double lMaxDZ = m_pset.getParameter<double>("maxDZ"); // 0.12
531  static const double lMaxDZ2dzsigma = m_pset.getParameter<double>("maxDZ2dzsigma"); // 3
532  static const double lMaxDXY = m_pset.getParameter<double>("maxDXY"); // 0.12
533  static const double lMaxDXY2dxysigma = m_pset.getParameter<double>("maxDXY2dxysigma"); // 3
534 
535  cands.clear();
536  cands.push_back(0);
537 
539  iEvent.getByToken(m_tokens[lVerticesTag.encode()], vertices);
540 
541  //double bestvz=-999.9, bestvx=-999.9, bestvy=-999.9;
542 
543  double dxy, dz, dzsigma, dxysigma;
544  math::XYZPoint vtxPoint(0.0, 0.0, 0.0);
545  double vzErr = 0.0, vxErr = 0.0, vyErr = 0.0;
546 
547  // take first vertex passing the criteria
548  int bestVtx = -1;
549  for (size_t i = 0; i < vertices->size(); ++i) {
550  if (vertices->at(i).ndof() < lMinNDOF)
551  continue;
552  if (fabs(vertices->at(i).z()) > lMaxZ)
553  continue;
554 
555  vtxPoint = vertices->at(i).position();
556  vzErr = vertices->at(i).zError();
557  vxErr = vertices->at(i).xError();
558  vyErr = vertices->at(i).yError();
559  bestVtx = i;
560  break;
561  }
562  if (bestVtx < 0)
563  return;
564  // const reco::Vertex & vtx = vertices->at(bestVtx);
565 
567  iEvent.getByToken(m_tokens[m_input.encode()], hIn);
568  if (!hIn.isValid()) {
569  edm::LogError("FSQDiJetAve") << "product not found: " << m_input.encode();
570  return;
571  }
572 
573  for (auto const& i : *hIn) {
575  continue;
576  dxy = 0.0, dz = 0.0, dxysigma = 0.0, dzsigma = 0.0;
577  dxy = -1. * i.dxy(vtxPoint);
578  dz = i.dz(vtxPoint);
579  dxysigma = sqrt(i.dxyError() * i.dxyError() + vxErr * vyErr);
580  dzsigma = sqrt(i.dzError() * i.dzError() + vzErr * vzErr);
581 
582  if (fabs(dz) > lMaxDZ)
583  continue; // TODO...
584  if (fabs(dz / dzsigma) > lMaxDZ2dzsigma)
585  continue;
586  if (fabs(dxy) > lMaxDXY)
587  continue;
588  if (fabs(dxy / dxysigma) > lMaxDXY2dxysigma)
589  continue;
590 
591  cands.at(0) += 1;
592  } //loop over tracks
593  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string encode() const
Definition: InputTag.cc:159
Log< level::Error, false > LogError
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
T sqrt(T t)
Definition: SSEVec.h:19
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
bool isValid() const
Definition: HandleBase.h:70
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:98

◆ getFilteredCands() [6/8]

template<>
void FSQ::HandlerTemplate< reco::PFJet, reco::PFJet, ApplyJEC >::getFilteredCands ( reco::PFJet ,
std::vector< reco::PFJet > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 610 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, edm::InputTag::encode(), mps_fire::i, iEvent, edm::HandleBase::isValid(), singleTopDQM_cfi::preselection, and L1EGammaClusterEmuProducer_cfi::scale.

617  {
618  cands.clear();
619  static const edm::InputTag jetCorTag = m_pset.getParameter<edm::InputTag>("PFJetCorLabel");
621  iEvent.getByToken(m_tokens[jetCorTag.encode()], pfcorrector);
622 
624  iEvent.getByToken(m_tokens[m_input.encode()], hIn);
625 
626  if (!hIn.isValid()) {
627  edm::LogError("FSQDiJetAve") << "product not found: " << m_input.encode();
628  return;
629  }
630 
631  for (auto const& i : *hIn) {
632  double scale = pfcorrector->correction(i);
633  reco::PFJet newPFJet(scale * i.p4(), i.vertex(), i.getSpecific(), i.getJetConstituents());
634 
635  bool preselection = m_singleObjectSelection(newPFJet);
636  if (preselection) {
637  fillSingleObjectPlots(newPFJet, weight);
638  cands.push_back(newPFJet);
639  }
640  }
641  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string encode() const
Definition: InputTag.cc:159
Definition: weight.py:1
Log< level::Error, false > LogError
Jets made from PFObjects.
Definition: PFJet.h:20
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
bool isValid() const
Definition: HandleBase.h:70
preselection
PRESELECTION
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:98

◆ getFilteredCands() [7/8]

template<>
void FSQ::HandlerTemplate< reco::Candidate::LorentzVector, int >::getFilteredCands ( reco::Candidate::LorentzVector ,
std::vector< int > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 654 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, mps_fire::i, iEvent, edm::HandleBase::isValid(), singleTopDQM_cfi::preselection, and mps_merge::weight.

661  {
662  cands.clear();
663  cands.push_back(0);
664 
666  iEvent.getByToken(m_tokens[m_input.encode()], hIn);
667  if (!hIn.isValid()) {
668  edm::LogError("FSQDiJetAve") << "product not found: " << m_input.encode();
669  return;
670  }
671  for (auto const& i : *hIn) {
673  if (preselection) {
675  cands.at(0) += 1;
676  }
677  }
678  }
std::string encode() const
Definition: InputTag.cc:159
Log< level::Error, false > LogError
edm::InputTag m_input
Definition: FSQDiJetAve.cc:128
int iEvent
Definition: GenABIO.cc:224
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
std::map< std::string, edm::EDGetToken > m_tokens
Definition: FSQDiJetAve.cc:129
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
bool isValid() const
Definition: HandleBase.h:70
preselection
PRESELECTION

◆ getFilteredCands() [8/8]

template<>
void FSQ::HandlerTemplate< trigger::TriggerObject, trigger::TriggerObject >::getFilteredCands ( trigger::TriggerObject ,
std::vector< trigger::TriggerObject > &  cands,
const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
float  weight 
)

Definition at line 685 of file FSQDiJetAve.cc.

References HLT_2022v12_cff::cands, trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), HltComparatorCreateWorkflow::hltConfig, EgHLTOfflineClient_cfi::hltTag, singleTopDQM_cfi::preselection, LaserDQM_cfg::process, trigger::TriggerEvent::sizeFilters(), AlCaHLTBitMon_QueryRunRegistry::string, and trigger::TriggerEvent::usedProcessName().

692  {
693  // 1. Find matching path. Inside matchin path find matching filter
694  std::string filterFullName = findPathAndFilter(hltConfig)[1];
695  if (filterFullName.empty()) {
696  return;
697  }
698 
699  // 2. Fetch HLT objects saved by selected filter. Save those fullfilling preselection
700  // objects are saved in cands variable
701  const std::string& process = trgEvent.usedProcessName(); // broken?
702  edm::InputTag hltTag(filterFullName, "", process);
703 
704  const int hltIndex = trgEvent.filterIndex(hltTag);
705  if (hltIndex >= trgEvent.sizeFilters()) {
706  edm::LogInfo("FSQDiJetAve") << "Cannot determine hlt index for |" << filterFullName << "|" << process;
707  return;
708  }
709 
710  const trigger::TriggerObjectCollection& toc(trgEvent.getObjects());
711  const trigger::Keys& khlt = trgEvent.filterKeys(hltIndex);
712 
713  auto kj = khlt.begin();
714 
715  for (; kj != khlt.end(); ++kj) {
716  bool preselection = m_singleObjectSelection(toc[*kj]);
717  if (preselection) {
718  fillSingleObjectPlots(toc[*kj], weight);
719  cands.push_back(toc[*kj]);
720  }
721  }
722  }
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:118
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
std::vector< std::string > findPathAndFilter(const HLTConfigProvider &hltConfig)
Definition: FSQDiJetAve.cc:255
Definition: weight.py:1
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
Definition: FSQDiJetAve.cc:210
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:101
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
Log< level::Info, false > LogInfo
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:132
std::vector< size_type > Keys
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
Definition: FSQDiJetAve.cc:115
const std::string & usedProcessName() const
getters
Definition: TriggerEvent.h:98
preselection
PRESELECTION

Member Data Documentation

◆ CombinedObjectPlotter

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
const int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::CombinedObjectPlotter = 1
staticprivate

Definition at line 123 of file FSQDiJetAve.cc.

◆ m_combinedObjectDimension

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_combinedObjectDimension
private

Definition at line 113 of file FSQDiJetAve.cc.

◆ m_combinedObjectDrawables

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::vector<edm::ParameterSet> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_combinedObjectDrawables
private

Definition at line 125 of file FSQDiJetAve.cc.

◆ m_combinedObjectSelection

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
StringCutObjectSelector<std::vector<TOutputCandidateType> > FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_combinedObjectSelection
private

Definition at line 116 of file FSQDiJetAve.cc.

◆ m_combinedObjectSortFunction

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
StringObjectFunction<std::vector<TOutputCandidateType> > FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_combinedObjectSortFunction
private

Definition at line 117 of file FSQDiJetAve.cc.

◆ m_dqmhistolabel

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_dqmhistolabel
private

Definition at line 109 of file FSQDiJetAve.cc.

◆ m_filterPartialName

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_filterPartialName
private

Definition at line 111 of file FSQDiJetAve.cc.

◆ m_input

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
edm::InputTag FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_input
private

Definition at line 128 of file FSQDiJetAve.cc.

◆ m_isSetup

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
bool FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_isSetup
private

Definition at line 127 of file FSQDiJetAve.cc.

◆ m_pathPartialName

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_pathPartialName
private

Definition at line 110 of file FSQDiJetAve.cc.

◆ m_plottersCombinedObject

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::map<std::string, std::shared_ptr<StringObjectFunction<std::vector<TOutputCandidateType> > > > FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_plottersCombinedObject
private

Definition at line 119 of file FSQDiJetAve.cc.

◆ m_plottersSingleObject

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::map<std::string, std::shared_ptr<StringObjectFunction<TInputCandidateType> > > FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_plottersSingleObject
private

Definition at line 120 of file FSQDiJetAve.cc.

◆ m_plotterType

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::map<std::string, int> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_plotterType
private

Definition at line 124 of file FSQDiJetAve.cc.

◆ m_singleObjectDrawables

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::vector<edm::ParameterSet> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_singleObjectDrawables
private

Definition at line 126 of file FSQDiJetAve.cc.

◆ m_singleObjectSelection

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
StringCutObjectSelector<TInputCandidateType> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_singleObjectSelection
private

Definition at line 115 of file FSQDiJetAve.cc.

◆ m_tokens

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::map<std::string, edm::EDGetToken> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_tokens
private

Definition at line 129 of file FSQDiJetAve.cc.

◆ SingleObjectPlotter

template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
const int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::SingleObjectPlotter = 0
staticprivate

xxx

Definition at line 122 of file FSQDiJetAve.cc.