test
CMS 3D CMS Logo

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

#include <DaqScopeModeHistograms.h>

Inheritance diagram for DaqScopeModeHistograms:
CommissioningHistograms

Public Types

typedef
SummaryHistogramFactory
< DaqScopeModeAnalysis
Factory
 
- Public Types inherited from CommissioningHistograms
typedef std::map< uint32_t,
CommissioningAnalysis * > 
Analyses
 
typedef Analyses::iterator Analysis
 
typedef SummaryPlotFactory
< CommissioningAnalysis * > 
Factory
 
typedef std::map< uint32_t,
uint32_t > 
FedToFecMap
 
typedef std::vector< Histo * > Histos
 
typedef std::map< uint32_t,
Histos
HistosMap
 

Public Member Functions

void createSummaryHisto (const sistrip::Monitorable &, const sistrip::Presentation &, const std::string &top_level_dir, const sistrip::Granularity &)
 
 DaqScopeModeHistograms (const edm::ParameterSet &pset, DQMStore *)
 
void histoAnalysis (bool debug)
 
virtual ~DaqScopeModeHistograms ()
 
- Public Member Functions inherited from CommissioningHistograms
 CommissioningHistograms (const edm::ParameterSet &pset, DQMStore *const, const sistrip::RunType &)
 
 CommissioningHistograms ()
 
virtual void configure (const edm::ParameterSet &, const edm::EventSetup &)
 
void createCollations (const std::vector< std::string > &)
 
void extractHistograms (const std::vector< std::string > &)
 
virtual void printAnalyses ()
 
virtual void printSummary ()
 
void remove (std::string pattern="")
 
void save (std::string &filename, uint32_t run_number=0)
 
virtual ~CommissioningHistograms ()
 

Protected Attributes

std::map< uint32_t,
DaqScopeModeAnalysis
data_
 
std::auto_ptr< Factoryfactory_
 
- Protected Attributes inherited from CommissioningHistograms
std::auto_ptr< Factoryfactory_
 

Additional Inherited Members

- Static Public Member Functions inherited from CommissioningHistograms
static void copyCustomInformation (DQMStore *const, const std::vector< std::string > &)
 
static void getContents (DQMStore *const, std::vector< std::string > &)
 
static uint32_t runNumber (DQMStore *const, const std::vector< std::string > &)
 
static sistrip::RunType runType (DQMStore *const, const std::vector< std::string > &)
 
- Protected Member Functions inherited from CommissioningHistograms
DQMStore *const bei () const
 
void clearHistosMap ()
 
Analysesdata ()
 
Factory *const factory ()
 
TH1 * histogram (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory, const uint32_t &xbins, const float &xlow=1.*sistrip::invalid_, const float &xhigh=1.*sistrip::invalid_)
 
const HistosMaphistos () const
 
const FedToFecMapmapping () const
 
void printHistosMap ()
 
const edm::ParameterSetpset () const
 
const sistrip::RunTypetask () const
 

Detailed Description

Definition at line 11 of file DaqScopeModeHistograms.h.

Member Typedef Documentation

Definition at line 18 of file DaqScopeModeHistograms.h.

Constructor & Destructor Documentation

DaqScopeModeHistograms::DaqScopeModeHistograms ( const edm::ParameterSet pset,
DQMStore bei 
)

Definition at line 17 of file DaqScopeModeHistograms.cc.

References gather_cfg::cout.

19  : CommissioningHistograms( pset.getParameter<edm::ParameterSet>("DaqScopeModeParameters"),
20  bei,
22  factory_( new Factory )
23 {
24  cout << endl // LogTrace(mlDqmClient_)
25  << "[DaqScopeModeHistograms::" << __func__ << "]"
26  << " Constructing object...";
27 }
T getParameter(std::string const &) const
SummaryHistogramFactory< DaqScopeModeAnalysis > Factory
std::auto_ptr< Factory > factory_
DQMStore *const bei() const
tuple cout
Definition: gather_cfg.py:121
DaqScopeModeHistograms::~DaqScopeModeHistograms ( )
virtual

Definition at line 31 of file DaqScopeModeHistograms.cc.

References gather_cfg::cout.

31  {
32  cout << endl // LogTrace(mlDqmClient_)
33  << "[DaqScopeModeHistograms::" << __func__ << "]"
34  << " Constructing object...";
35 }
tuple cout
Definition: gather_cfg.py:121

Member Function Documentation

void DaqScopeModeHistograms::createSummaryHisto ( const sistrip::Monitorable histo,
const sistrip::Presentation type,
const std::string &  top_level_dir,
const sistrip::Granularity gran 
)
virtual

Reimplemented from CommissioningHistograms.

Definition at line 87 of file DaqScopeModeHistograms.cc.

References gather_cfg::cout, data_, factory_, histoAnalysis(), CommissioningHistograms::histogram(), edmLumisInFiles::summary, sistrip::UNKNOWN_VIEW, SiStripEnumsAndStrings::view(), and fw3dlego::xbins.

90  {
91  cout << endl // LogTrace(mlDqmClient_)
92  << "[DaqScopeModeHistograms::" << __func__ << "]";
93 
94  // Check view
96  if ( view == sistrip::UNKNOWN_VIEW ) { return; }
97 
98  // Analyze histograms
99  histoAnalysis( false );
100 
101  // Extract data to be histogrammed
102  factory_->init( histo, type, view, directory, gran );
103  uint32_t xbins = factory_->extract( data_ );
104 
105  // Create summary histogram (if it doesn't already exist)
106  TH1* summary = histogram( histo, type, view, directory, xbins );
107 
108  // Fill histogram with data
109  factory_->fill( *summary );
110 
111 }
type
Definition: HCALResponse.h:21
TH1 * histogram(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory, const uint32_t &xbins, const float &xlow=1.*sistrip::invalid_, const float &xhigh=1.*sistrip::invalid_)
const double xbins[]
static std::string view(const sistrip::View &)
std::map< uint32_t, DaqScopeModeAnalysis > data_
std::auto_ptr< Factory > factory_
tuple cout
Definition: gather_cfg.py:121
void DaqScopeModeHistograms::histoAnalysis ( bool  debug)
virtual

Reimplemented from CommissioningHistograms.

Definition at line 39 of file DaqScopeModeHistograms.cc.

References data_.

Referenced by createSummaryHisto().

39  {
40 
41  // Clear std::map holding analysis objects
42  data_.clear();
43 
44 // // Iterate through std::map containing std::vectors of profile histograms
45 // CollationsMap::const_iterator iter = collations().begin();
46 // for ( ; iter != collations().end(); iter++ ) {
47 
48 // // Check std::vector of histos is not empty (should be 1 histo)
49 // if ( iter->second.empty() ) {
50 // edm::LogWarning(mlDqmClient_)
51 // << "[DaqScopeModeHistograms::" << __func__ << "]"
52 // << " Zero collation histograms found!";
53 // continue;
54 // }
55 
56 // // Retrieve pointers to profile histos for this FED channel
57 // std::vector<TH1*> histos;
58 // Collations::const_iterator ihis = iter->second.begin();
59 // for ( ; ihis != iter->second.end(); ihis++ ) {
60 // TH1F* his = ExtractTObject<TH1F>().extract( ihis->second->getMonitorElement() );
61 // if ( his ) { histos.push_back(his); }
62 // }
63 
64 // // Perform histo analysis
65 // DaqScopeModeAnalysis anal( iter->first );
66 // DaqScopeModeAlgorithm algo( &anal );
67 // algo.analysis( histos );
68 // data_[iter->first] = anal;
69 // if ( debug ) {
70 // std::stringstream ss;
71 // anal.print( ss );
72 // cout << ss.str() << endl;
73 // }
74 
75 // }
76 
77 // cout << endl // LogTrace(mlDqmClient_)
78 // << "[DaqScopeModeHistograms::" << __func__ << "]"
79 // << " Analyzed histograms for "
80 // << collations().size()
81 // << " FED channels";
82 
83 }
std::map< uint32_t, DaqScopeModeAnalysis > data_

Member Data Documentation

std::map<uint32_t,DaqScopeModeAnalysis> DaqScopeModeHistograms::data_
protected

Definition at line 31 of file DaqScopeModeHistograms.h.

Referenced by createSummaryHisto(), and histoAnalysis().

std::auto_ptr<Factory> DaqScopeModeHistograms::factory_
protected

Definition at line 33 of file DaqScopeModeHistograms.h.

Referenced by createSummaryHisto().