CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
CommissioningAlgorithm Class Referenceabstract

#include <CommissioningAlgorithm.h>

Inheritance diagram for CommissioningAlgorithm:
ApvLatencyAlgorithm ApvTimingAlgorithm CalibrationAlgorithm CalibrationScanAlgorithm DaqScopeModeAlgorithm FastFedCablingAlgorithm FedCablingAlgorithm FedTimingAlgorithm NoiseAlgorithm OptoScanAlgorithm PedestalsAlgorithm PedsFullNoiseAlgorithm PedsOnlyAlgorithm SamplingAlgorithm VpspScanAlgorithm

Public Types

typedef std::pair< TH1 *, std::string > Histo
 

Public Member Functions

void analysis (const std::vector< TH1 * > &)
 
 CommissioningAlgorithm ()
 
 CommissioningAlgorithm (CommissioningAnalysis *const)
 
virtual ~CommissioningAlgorithm ()
 

Protected Member Functions

CommissioningAnalysis *const anal () const
 
virtual void analyse ()=0
 
virtual void extract (const std::vector< TH1 * > &)=0
 
uint32_t extractFedKey (const TH1 *const)
 

Private Attributes

CommissioningAnalysisanal_
 

Detailed Description

Author
R.Bainbridge

Definition at line 17 of file CommissioningAlgorithm.h.

Member Typedef Documentation

◆ Histo

typedef std::pair<TH1*, std::string> CommissioningAlgorithm::Histo

Definition at line 25 of file CommissioningAlgorithm.h.

Constructor & Destructor Documentation

◆ CommissioningAlgorithm() [1/2]

CommissioningAlgorithm::CommissioningAlgorithm ( CommissioningAnalysis * const  anal)

Definition at line 11 of file CommissioningAlgorithm.cc.

11 : anal_(anal) { ; }

◆ CommissioningAlgorithm() [2/2]

CommissioningAlgorithm::CommissioningAlgorithm ( )

Definition at line 15 of file CommissioningAlgorithm.cc.

15 : anal_(nullptr) { ; }

◆ ~CommissioningAlgorithm()

virtual CommissioningAlgorithm::~CommissioningAlgorithm ( )
inlinevirtual

Definition at line 23 of file CommissioningAlgorithm.h.

23 { ; }

Member Function Documentation

◆ anal()

CommissioningAnalysis *const CommissioningAlgorithm::anal ( ) const
inlineprotected

◆ analyse()

virtual void CommissioningAlgorithm::analyse ( )
protectedpure virtual

◆ analysis()

void CommissioningAlgorithm::analysis ( const std::vector< TH1 * > &  histos)

Performs histogram analysis.

Definition at line 19 of file CommissioningAlgorithm.cc.

19  {
20  if (anal_) {
21  anal()->reset();
22  }
23  extract(histos);
24  analyse();
25 }

References anal(), anal_, analyse(), extract(), combine::histos, and CommissioningAnalysis::reset().

◆ extract()

virtual void CommissioningAlgorithm::extract ( const std::vector< TH1 * > &  )
protectedpure virtual

◆ extractFedKey()

uint32_t CommissioningAlgorithm::extractFedKey ( const TH1 * const  his)
protected

Member Data Documentation

◆ anal_

CommissioningAnalysis* CommissioningAlgorithm::anal_
private

Analysis class.

Definition at line 45 of file CommissioningAlgorithm.h.

Referenced by anal(), and analysis().

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
CommissioningAlgorithm::anal_
CommissioningAnalysis * anal_
Definition: CommissioningAlgorithm.h:45
CommissioningAlgorithm::anal
CommissioningAnalysis *const anal() const
Definition: CommissioningAlgorithm.h:50
CommissioningAlgorithm::extract
virtual void extract(const std::vector< TH1 * > &)=0
combine.histos
histos
Definition: combine.py:4
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
CommissioningAnalysis::reset
virtual void reset()=0
CommissioningAlgorithm::analyse
virtual void analyse()=0