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 (CommissioningAnalysis *const)
 
 CommissioningAlgorithm ()
 
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) { ; }
CommissioningAnalysis *const anal() const
CommissioningAnalysis * anal_

◆ CommissioningAlgorithm() [2/2]

CommissioningAlgorithm::CommissioningAlgorithm ( )

Definition at line 15 of file CommissioningAlgorithm.cc.

15 : anal_(nullptr) { ; }
CommissioningAnalysis * anal_

◆ ~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.

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

19  {
20  if (anal_) {
21  anal()->reset();
22  }
23  extract(histos);
24  analyse();
25 }
CommissioningAnalysis *const anal() const
virtual void reset()=0
virtual void extract(const std::vector< TH1 *> &)=0
virtual void analyse()=0
histos
Definition: combine.py:4
CommissioningAnalysis * anal_

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