ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
dqi::HanOutput::Result Class Reference

#include <HanOutput.h>

Collaboration diagram for dqi::HanOutput::Result:

Public Member Functions

 Result (TDirectory *dir)
 
 Result (const Result &)=delete
 
Resultoperator= (const Result &)=delete
 
virtual ~Result ()
 
virtual void fill (const dqm_core::Result &result)
 
virtual void write ()
 

Protected Member Functions

void copyString (char *to, const std::string &from)
 

Protected Attributes

std::unique_ptr< TTree > m_result
 
char * m_status
 

Static Protected Attributes

static const int s_charArrSize = 10
 

Detailed Description

Definition at line 70 of file HanOutput.h.

Constructor & Destructor Documentation

◆ Result() [1/2]

dqi::HanOutput::Result::Result ( TDirectory *  dir)

Definition at line 640 of file HanOutput.cxx.

641  : m_result(new TTree("result", "Assessment Result")), m_status(new char[s_charArrSize])
642  {
643  m_result->SetDirectory(dir);
644  m_result->Branch("Status", m_status, "Status/C");
645  }

◆ Result() [2/2]

dqi::HanOutput::Result::Result ( const Result )
delete

◆ ~Result()

dqi::HanOutput::Result::~Result ( )
virtual

Definition at line 647 of file HanOutput.cxx.

647 { delete[] m_status; }

Member Function Documentation

◆ copyString()

void dqi::HanOutput::Result::copyString ( char *  to,
const std::string &  from 
)
protected

Definition at line 657 of file HanOutput.cxx.

658  {
659  int i = 0;
660  const char* f = from.c_str();
661  while (++i < s_charArrSize && (*to++ = *f++) != 0)
662  ;
663  if (i == s_charArrSize)
664  {
665  *to = 0;
666  }
667  }

◆ fill()

void dqi::HanOutput::Result::fill ( const dqm_core::Result result)
virtual

Definition at line 649 of file HanOutput.cxx.

650  {
651  copyString(m_status, StatusToStr(result.status_));
652  m_result->Fill();
653  }

◆ operator=()

Result& dqi::HanOutput::Result::operator= ( const Result )
delete

◆ write()

void dqi::HanOutput::Result::write ( )
virtual

Definition at line 655 of file HanOutput.cxx.

655 { m_result->Write(); }

Member Data Documentation

◆ m_result

std::unique_ptr<TTree> dqi::HanOutput::Result::m_result
protected

Definition at line 82 of file HanOutput.h.

◆ m_status

char* dqi::HanOutput::Result::m_status
protected

Definition at line 83 of file HanOutput.h.

◆ s_charArrSize

const int dqi::HanOutput::Result::s_charArrSize = 10
staticprotected

Definition at line 84 of file HanOutput.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
dqi::HanOutput::Result::copyString
void copyString(char *to, const std::string &from)
Definition: HanOutput.cxx:657
lumiFormat.i
int i
Definition: lumiFormat.py:85
dqi::HanOutput::Result::m_status
char * m_status
Definition: HanOutput.h:83
hist_file_dump.f
f
Definition: hist_file_dump.py:135
beamspotman.dir
string dir
Definition: beamspotman.py:623
dqi::HanOutput::Result::s_charArrSize
static const int s_charArrSize
Definition: HanOutput.h:84
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
dqi::HanOutput::Result::m_result
std::unique_ptr< TTree > m_result
Definition: HanOutput.h:82