#include <DQM/SiStripCommissioningClients/interface/SamplingHistograms.h>
Public Member Functions | |
virtual void | configure (const edm::ParameterSet &, const edm::EventSetup &) |
void | histoAnalysis (bool debug) |
SamplingHistograms (DQMOldReceiver *, const sistrip::RunType &task=sistrip::APV_LATENCY) | |
SamplingHistograms (DQMStore *, const sistrip::RunType &task=sistrip::APV_LATENCY) | |
virtual | ~SamplingHistograms () |
Private Attributes | |
float | sOnCut_ |
Definition at line 10 of file SamplingHistograms.h.
SamplingHistograms::SamplingHistograms | ( | DQMStore * | bei, | |
const sistrip::RunType & | task = sistrip::APV_LATENCY | |||
) |
Definition at line 19 of file SamplingHistograms.cc.
References CommissioningHistograms::factory_, LogTrace, and sistrip::mlDqmClient_.
00020 : CommissioningHistograms( bei, task ),sOnCut_(3) 00021 { 00022 LogTrace(mlDqmClient_) 00023 << "[SamplingHistograms::" << __func__ << "]" 00024 << " Constructing object..."; 00025 factory_ = auto_ptr<SamplingSummaryFactory>( new SamplingSummaryFactory ); 00026 }
SamplingHistograms::SamplingHistograms | ( | DQMOldReceiver * | mui, | |
const sistrip::RunType & | task = sistrip::APV_LATENCY | |||
) |
Definition at line 30 of file SamplingHistograms.cc.
References CommissioningHistograms::factory_, LogTrace, and sistrip::mlDqmClient_.
00031 : CommissioningHistograms( mui, task ),sOnCut_(3) 00032 { 00033 LogTrace(mlDqmClient_) 00034 << "[SamplingHistograms::" << __func__ << "]" 00035 << " Constructing object..."; 00036 factory_ = auto_ptr<SamplingSummaryFactory>( new SamplingSummaryFactory ); 00037 }
SamplingHistograms::~SamplingHistograms | ( | ) | [virtual] |
Definition at line 41 of file SamplingHistograms.cc.
References LogTrace, and sistrip::mlDqmClient_.
00041 { 00042 LogTrace(mlDqmClient_) 00043 << "[SamplingHistograms::" << __func__ << "]" 00044 << " Deleting object..."; 00045 }
void SamplingHistograms::configure | ( | const edm::ParameterSet & | pset, | |
const edm::EventSetup & | ||||
) | [virtual] |
Reimplemented from CommissioningHistograms.
Reimplemented in FineDelayHistosUsingDb.
Definition at line 88 of file SamplingHistograms.cc.
References sOnCut_.
Referenced by FineDelayHistosUsingDb::configure().
00089 { 00090 //TODO: should use the parameter set. Why is this crashing ??? 00091 // sOnCut_ = pset.getParameter<double>("SignalToNoiseCut"); 00092 sOnCut_ = 3.; 00093 }
Reimplemented from CommissioningHistograms.
Definition at line 49 of file SamplingHistograms.cc.
References CommissioningAlgorithm::analysis(), begin, CommissioningHistograms::data(), extract(), CommissioningHistograms::histos(), iter, sistrip::mlDqmClient_, SamplingAnalysis::setSoNcut(), and sOnCut_.
00049 { 00050 00051 // Clear map holding analysis objects 00052 Analyses::iterator ianal; 00053 for ( ianal = data().begin(); ianal != data().end(); ianal++ ) { 00054 if ( ianal->second ) { delete ianal->second; } 00055 } 00056 data().clear(); 00057 00058 // Iterate through map containing vectors of profile histograms 00059 HistosMap::const_iterator iter = histos().begin(); 00060 for ( ; iter != histos().end(); iter++ ) { 00061 // Check vector of histos is not empty (should be 1 histo) 00062 if ( iter->second.empty() ) { 00063 edm::LogWarning(mlDqmClient_) 00064 << "[SamplingHistograms::" << __func__ << "]" 00065 << " Zero collation histograms found!"; 00066 continue; 00067 } 00068 00069 // Retrieve pointers to profile histos for this FED channel 00070 vector<TH1*> profs; 00071 Histos::const_iterator ihis = iter->second.begin(); 00072 for ( ; ihis != iter->second.end(); ihis++ ) { 00073 TProfile* prof = ExtractTObject<TProfile>().extract( (*ihis)->me_ ); 00074 if ( prof ) { profs.push_back(prof); } 00075 } 00076 00077 // Perform histo analysis 00078 SamplingAnalysis* anal = new SamplingAnalysis( iter->first ); 00079 anal->setSoNcut(sOnCut_); 00080 SamplingAlgorithm algo( anal ); 00081 algo.analysis( profs ); 00082 data()[iter->first] = anal; 00083 00084 } 00085 00086 }
float SamplingHistograms::sOnCut_ [private] |