CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes

DaqScopeModeHistograms Class Reference

#include <DaqScopeModeHistograms.h>

Inheritance diagram for DaqScopeModeHistograms:
CommissioningHistograms

List of all members.

Public Types

typedef
SummaryHistogramFactory
< DaqScopeModeAnalysis
Factory

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 ()

Protected Attributes

std::map< uint32_t,
DaqScopeModeAnalysis
data_
std::auto_ptr< Factoryfactory_

Detailed Description

Definition at line 11 of file DaqScopeModeHistograms.h.


Member Typedef Documentation

Reimplemented from CommissioningHistograms.

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.

  : CommissioningHistograms( pset.getParameter<edm::ParameterSet>("DaqScopeModeParameters"),
                             bei,
                             sistrip::DAQ_SCOPE_MODE ),
    factory_( new Factory )
{
  cout << endl // LogTrace(mlDqmClient_) 
       << "[DaqScopeModeHistograms::" << __func__ << "]"
       << " Constructing object...";
}
DaqScopeModeHistograms::~DaqScopeModeHistograms ( ) [virtual]

Definition at line 31 of file DaqScopeModeHistograms.cc.

References gather_cfg::cout.

                                                {
  cout << endl // LogTrace(mlDqmClient_) 
       << "[DaqScopeModeHistograms::" << __func__ << "]"
       << " Constructing object...";
}

Member Function Documentation

void DaqScopeModeHistograms::createSummaryHisto ( const sistrip::Monitorable histo,
const sistrip::Presentation type,
const std::string &  directory,
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(), summarizeEdmComparisonLogfiles::summary, sistrip::UNKNOWN_VIEW, SiStripEnumsAndStrings::view(), and fw3dlego::xbins.

                                                                                  {
  cout << endl // LogTrace(mlDqmClient_)
       << "[DaqScopeModeHistograms::" << __func__ << "]";
  
  // Check view 
  sistrip::View view = SiStripEnumsAndStrings::view(directory);
  if ( view == sistrip::UNKNOWN_VIEW ) { return; }

  // Analyze histograms
  histoAnalysis( false );

  // Extract data to be histogrammed
  factory_->init( histo, type, view, directory, gran );
  uint32_t xbins = factory_->extract( data_ );

  // Create summary histogram (if it doesn't already exist)
  TH1* summary = histogram( histo, type, view, directory, xbins );

  // Fill histogram with data
  factory_->fill( *summary );
  
}
void DaqScopeModeHistograms::histoAnalysis ( bool  debug) [virtual]

Reimplemented from CommissioningHistograms.

Definition at line 39 of file DaqScopeModeHistograms.cc.

References data_.

Referenced by createSummaryHisto().

                                                       {

  // Clear std::map holding analysis objects
  data_.clear();
  
//   // Iterate through std::map containing std::vectors of profile histograms
//   CollationsMap::const_iterator iter = collations().begin();
//   for ( ; iter != collations().end(); iter++ ) {
    
//     // Check std::vector of histos is not empty (should be 1 histo)
//     if ( iter->second.empty() ) {
//       edm::LogWarning(mlDqmClient_) 
//      << "[DaqScopeModeHistograms::" << __func__ << "]"
//      << " Zero collation histograms found!";
//       continue;
//     }
    
//     // Retrieve pointers to profile histos for this FED channel 
//     std::vector<TH1*> histos;
//     Collations::const_iterator ihis = iter->second.begin(); 
//     for ( ; ihis != iter->second.end(); ihis++ ) {
//       TH1F* his = ExtractTObject<TH1F>().extract( ihis->second->getMonitorElement() );
//       if ( his ) { histos.push_back(his); }
//     } 
    
//     // Perform histo analysis
//     DaqScopeModeAnalysis anal( iter->first );
//     DaqScopeModeAlgorithm algo( &anal );
//     algo.analysis( histos );
//     data_[iter->first] = anal; 
//     if ( debug ) {
//       std::stringstream ss;
//       anal.print( ss ); 
//       cout << ss.str() << endl;
//     }
    
//   }
  
//   cout << endl // LogTrace(mlDqmClient_) 
//        << "[DaqScopeModeHistograms::" << __func__ << "]"
//        << " Analyzed histograms for " 
//        << collations().size() 
//        << " FED channels";
  
}

Member Data Documentation

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

Reimplemented from CommissioningHistograms.

Definition at line 31 of file DaqScopeModeHistograms.h.

Referenced by createSummaryHisto(), and histoAnalysis().

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

Reimplemented from CommissioningHistograms.

Definition at line 33 of file DaqScopeModeHistograms.h.

Referenced by createSummaryHisto().