Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:28

0001 #include "DQM/SiStripCommissioningAnalysis/interface/CommissioningAlgorithm.h"
0002 #include "CondFormats/SiStripObjects/interface/CommissioningAnalysis.h"
0003 #include "DataFormats/SiStripCommon/interface/SiStripHistoTitle.h"
0004 #include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
0005 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0006 #include "TProfile.h"
0007 #include <iomanip>
0008 
0009 // ----------------------------------------------------------------------------
0010 //
0011 CommissioningAlgorithm::CommissioningAlgorithm(CommissioningAnalysis* const anal) : anal_(anal) { ; }
0012 
0013 // ----------------------------------------------------------------------------
0014 //
0015 CommissioningAlgorithm::CommissioningAlgorithm() : anal_(nullptr) { ; }
0016 
0017 // ----------------------------------------------------------------------------
0018 //
0019 void CommissioningAlgorithm::analysis(const std::vector<TH1*>& histos) {
0020   if (anal_) {
0021     anal()->reset();
0022   }
0023   extract(histos);
0024   analyse();
0025 }
0026 
0027 // ----------------------------------------------------------------------------
0028 //
0029 uint32_t CommissioningAlgorithm::extractFedKey(const TH1* const his) {
0030   SiStripHistoTitle title(his->GetName());
0031   return title.keyValue();
0032 }