QwAnalysis
MQwHistograms Class Reference

#include <MQwHistograms.h>

+ Inheritance diagram for MQwHistograms:

Public Member Functions

void ShareHistograms (const MQwHistograms *source)
 Share histogram pointers between objects. More...
 

Protected Member Functions

 MQwHistograms ()
 Default constructor. More...
 
 MQwHistograms (const MQwHistograms &source)
 Copy constructor. More...
 
virtual ~MQwHistograms ()
 Virtual destructor. More...
 
virtual MQwHistogramsoperator= (const MQwHistograms &value)
 
void Fill_Pointer (TH1_ptr hist_ptr, Double_t value)
 
void AddHistogram (TH1 *h)
 Register a histogram. More...
 

Protected Attributes

std::vector< TH1_ptrfHistograms
 Histograms associated with this data element. More...
 

Private Types

typedef TH1 * TH1_ptr
 Regular pointers for the histograms. More...
 

Detailed Description

Definition at line 13 of file MQwHistograms.h.

Member Typedef Documentation

typedef TH1* MQwHistograms::TH1_ptr
private

Regular pointers for the histograms.

Definition at line 16 of file MQwHistograms.h.

Constructor & Destructor Documentation

MQwHistograms::MQwHistograms ( )
inlineprotected

Default constructor.

Definition at line 25 of file MQwHistograms.h.

25 { }
MQwHistograms::MQwHistograms ( const MQwHistograms source)
inlineprotected

Copy constructor.

Definition at line 27 of file MQwHistograms.h.

28  : fHistograms(source.fHistograms) { }
std::vector< TH1_ptr > fHistograms
Histograms associated with this data element.
Definition: MQwHistograms.h:46
virtual MQwHistograms::~MQwHistograms ( )
inlineprotectedvirtual

Virtual destructor.

Definition at line 30 of file MQwHistograms.h.

30 { }

Member Function Documentation

void MQwHistograms::AddHistogram ( TH1 *  h)
inlineprotected

Register a histogram.

Definition at line 50 of file MQwHistograms.h.

References fHistograms.

50  {
51  fHistograms.push_back(TH1_ptr(h));
52  }
std::vector< TH1_ptr > fHistograms
Histograms associated with this data element.
Definition: MQwHistograms.h:46
TH1 * TH1_ptr
Regular pointers for the histograms.
Definition: MQwHistograms.h:16
void MQwHistograms::Fill_Pointer ( TH1_ptr  hist_ptr,
Double_t  value 
)
inlineprotected

Definition at line 38 of file MQwHistograms.h.

38  {
39  if (hist_ptr != NULL){
40  hist_ptr->Fill(value);
41  }
42  }
virtual MQwHistograms& MQwHistograms::operator= ( const MQwHistograms value)
inlineprotectedvirtual

Arithmetic assignment operator: Should only copy event-based data. In this particular class, there is no event-based data.

Definition at line 34 of file MQwHistograms.h.

Referenced by VQwDataElement::operator=().

34  {
35  return *this;
36  }

+ Here is the caller graph for this function:

void MQwHistograms::ShareHistograms ( const MQwHistograms source)
inline

Share histogram pointers between objects.

Definition at line 56 of file MQwHistograms.h.

References fHistograms.

56  {
57  if (source) fHistograms = source->fHistograms;
58  }
std::vector< TH1_ptr > fHistograms
Histograms associated with this data element.
Definition: MQwHistograms.h:46

Field Documentation


The documentation for this class was generated from the following file: