CMS 3D CMS Logo

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

#include <GlobalCacheTMTT.h>

Public Member Functions

 GlobalCacheTMTT (const edm::ParameterSet &iConfig)
 
Histoshists () const
 
HTrphi::ErrorMonitorhtRphiErrMon () const
 
const std::list< TrackerModule > & listTrackerModule () const
 
void setListTrackerModule (const std::list< TrackerModule > &list) const
 
const Settingssettings () const
 
StubWindowSuggeststubWindowSuggest () const
 

Private Attributes

Histos hists_
 
HTrphi::ErrorMonitor htRphiErrMon_
 
std::list< TrackerModulelistTrackerModule_
 
Settings settings_
 
StubWindowSuggest stubWindowSuggest_
 

Detailed Description

Definition at line 21 of file GlobalCacheTMTT.h.

Constructor & Destructor Documentation

tmtt::GlobalCacheTMTT::GlobalCacheTMTT ( const edm::ParameterSet iConfig)
inline

Definition at line 23 of file GlobalCacheTMTT.h.

References tmtt::Histos::book(), and hists_.

24  : settings_(iConfig), // Python configuration params
25  htRphiErrMon_(), // rphi HT error monitoring
26  stubWindowSuggest_(&settings_), // Recommend FE stub window sizes.
27  hists_(&settings_) // Histograms
28  {
29  hists_.book();
30  }
StubWindowSuggest stubWindowSuggest_
HTrphi::ErrorMonitor htRphiErrMon_
virtual void book()
Definition: Histos.cc:55

Member Function Documentation

Histos& tmtt::GlobalCacheTMTT::hists ( ) const
inline

Definition at line 37 of file GlobalCacheTMTT.h.

References hists_.

Referenced by tmtt::TMTrackProducer::globalEndJob().

37 { return hists_; }
HTrphi::ErrorMonitor& tmtt::GlobalCacheTMTT::htRphiErrMon ( ) const
inline

Definition at line 34 of file GlobalCacheTMTT.h.

References htRphiErrMon_.

Referenced by tmtt::TMTrackProducer::globalEndJob().

34 { return htRphiErrMon_; }
HTrphi::ErrorMonitor htRphiErrMon_
const std::list<TrackerModule>& tmtt::GlobalCacheTMTT::listTrackerModule ( ) const
inline

Definition at line 36 of file GlobalCacheTMTT.h.

References listTrackerModule_.

Referenced by tmtt::TMTrackProducer::globalEndJob().

36 { return listTrackerModule_; }
std::list< TrackerModule > listTrackerModule_
void tmtt::GlobalCacheTMTT::setListTrackerModule ( const std::list< TrackerModule > &  list) const
inline

Definition at line 40 of file GlobalCacheTMTT.h.

References listTrackerModule_, and mutex.

40  {
41  // Allow only one thread to run this function at a time
42  static std::mutex myMutex;
43  std::lock_guard<std::mutex> myGuard(myMutex);
44 
45  // Only need one copy of tracker geometry for histogramming.
46  if (listTrackerModule_.empty())
47  listTrackerModule_ = list;
48  }
static std::mutex mutex
Definition: Proxy.cc:8
std::list< TrackerModule > listTrackerModule_
const Settings& tmtt::GlobalCacheTMTT::settings ( ) const
inline

Definition at line 33 of file GlobalCacheTMTT.h.

References settings_.

Referenced by tmtt::TMTrackProducer::globalEndJob().

33 { return settings_; }
StubWindowSuggest& tmtt::GlobalCacheTMTT::stubWindowSuggest ( ) const
inline

Definition at line 35 of file GlobalCacheTMTT.h.

References stubWindowSuggest_.

Referenced by tmtt::TMTrackProducer::globalEndJob().

35 { return stubWindowSuggest_; }
StubWindowSuggest stubWindowSuggest_

Member Data Documentation

Histos tmtt::GlobalCacheTMTT::hists_
mutableprivate

Definition at line 55 of file GlobalCacheTMTT.h.

Referenced by GlobalCacheTMTT(), and hists().

HTrphi::ErrorMonitor tmtt::GlobalCacheTMTT::htRphiErrMon_
mutableprivate

Definition at line 52 of file GlobalCacheTMTT.h.

Referenced by htRphiErrMon().

std::list<TrackerModule> tmtt::GlobalCacheTMTT::listTrackerModule_
mutableprivate

Definition at line 54 of file GlobalCacheTMTT.h.

Referenced by listTrackerModule(), and setListTrackerModule().

Settings tmtt::GlobalCacheTMTT::settings_
private

Definition at line 51 of file GlobalCacheTMTT.h.

Referenced by settings().

StubWindowSuggest tmtt::GlobalCacheTMTT::stubWindowSuggest_
mutableprivate

Definition at line 53 of file GlobalCacheTMTT.h.

Referenced by stubWindowSuggest().