CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CommissioningAlgorithm.cc
Go to the documentation of this file.
6 #include "TProfile.h"
7 #include <iomanip>
8 
9 // ----------------------------------------------------------------------------
10 //
12  : anal_( anal )
13 {;}
14 
15 // ----------------------------------------------------------------------------
16 //
18  : anal_(0)
19 {;}
20 
21 // ----------------------------------------------------------------------------
22 //
23 void CommissioningAlgorithm::analysis( const std::vector<TH1*>& histos ) {
24  if ( anal_ ) { anal()->reset(); }
25  extract( histos );
26  analyse();
27 }
28 
29 // ----------------------------------------------------------------------------
30 //
31 uint32_t CommissioningAlgorithm::extractFedKey( const TH1* const his ) {
32  SiStripHistoTitle title( his->GetName() );
33  return title.keyValue();
34 }
void analysis(const std::vector< TH1 * > &)
Utility class that holds histogram title.
virtual void reset()=0
virtual void extract(const std::vector< TH1 * > &)=0
uint32_t extractFedKey(const TH1 *const )
virtual void analyse()=0
CommissioningAnalysis * anal_
Abstract base for derived classes that provide analysis of commissioning histograms.
CommissioningAnalysis *const anal() const