Millepede-II V04-17-04
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ReadPedeHists Class Reference

Public Member Functions

 ReadPedeHists (const char *txtFile)
 
 ~ReadPedeHists ()
 
void Draw ()
 
void Write (const char *rootFileName)
 
void Print (const char *printFileName)
 

Private Member Functions

template<class T >
bool readBasic (std::ifstream &aStream, T &outValue)
 
template<class T >
bool readBasicVector (std::ifstream &aStream, std::vector< T > &outVector)
 
bool proceedTo (std::ifstream &aStream, const TString &pattern)
 
void readNumVersTypeTitle (std::ifstream &file, Int_t &num, Int_t &version, Int_t &type, TString &title)
 
TH1 * readNextHist (std::ifstream &file)
 
std::pair< TGraph *, Option_t * > readNextGraph (std::ifstream &file)
 
bool readNext (std::ifstream &file, TH1 *&hist, std::pair< TGraph *, Option_t * > &graphOpt)
 
void read (std::ifstream &stream)
 

Private Attributes

std::ifstream theStream
 
std::vector< TH1 * > theHists
 
std::vector< std::pair< TGraph *, Option_t * > > theGraphOpts
 
std::vector< TCanvas * > theCanvases
 

Detailed Description

Definition at line 110 of file readPedeHists.C.

Constructor & Destructor Documentation

◆ ReadPedeHists()

ReadPedeHists::ReadPedeHists ( const char *  txtFile)
explicit

Definition at line 139 of file readPedeHists.C.

References read(), and theStream.

◆ ~ReadPedeHists()

ReadPedeHists::~ReadPedeHists ( )
inline

Definition at line 114 of file readPedeHists.C.

Member Function Documentation

◆ Draw()

void ReadPedeHists::Draw ( )

Definition at line 512 of file readPedeHists.C.

References theCanvases, theGraphOpts, and theHists.

Referenced by readPedeHists().

◆ Print()

void ReadPedeHists::Print ( const char *  printFileName)

Definition at line 553 of file readPedeHists.C.

References theCanvases.

Referenced by readPedeHists().

◆ proceedTo()

bool ReadPedeHists::proceedTo ( std::ifstream &  aStream,
const TString &  pattern 
)
private

Definition at line 193 of file readPedeHists.C.

Referenced by readNext(), readNextGraph(), and readNextHist().

◆ read()

void ReadPedeHists::read ( std::ifstream &  stream)
private

Definition at line 498 of file readPedeHists.C.

References readNext(), theGraphOpts, and theHists.

Referenced by ReadPedeHists().

◆ readBasic()

template<class T >
bool ReadPedeHists::readBasic ( std::ifstream &  aStream,
T &  outValue 
)
private

◆ readBasicVector()

template<class T >
bool ReadPedeHists::readBasicVector ( std::ifstream &  aStream,
std::vector< T > &  outVector 
)
private

Definition at line 182 of file readPedeHists.C.

References readMilleBinary::i, and readBasic().

Referenced by readNextGraph(), and readNextHist().

◆ readNext()

bool ReadPedeHists::readNext ( std::ifstream &  file,
TH1 *&  hist,
std::pair< TGraph *, Option_t * > &  graphOpt 
)
private

Definition at line 467 of file readPedeHists.C.

References proceedTo(), readNextGraph(), readNextHist(), and readMilleBinary::type.

Referenced by read().

◆ readNextGraph()

std::pair< TGraph *, Option_t * > ReadPedeHists::readNextGraph ( std::ifstream &  file)
private

◆ readNextHist()

TH1 * ReadPedeHists::readNextHist ( std::ifstream &  file)
private

◆ readNumVersTypeTitle()

void ReadPedeHists::readNumVersTypeTitle ( std::ifstream &  file,
Int_t &  num,
Int_t &  version,
Int_t &  type,
TString &  title 
)
private

Definition at line 218 of file readPedeHists.C.

References readBasic(), and readMilleBinary::type.

Referenced by readNextGraph(), and readNextHist().

◆ Write()

void ReadPedeHists::Write ( const char *  rootFileName)

Definition at line 568 of file readPedeHists.C.

References theGraphOpts, and theHists.

Referenced by readPedeHists().

Member Data Documentation

◆ theCanvases

std::vector<TCanvas*> ReadPedeHists::theCanvases
private

Definition at line 135 of file readPedeHists.C.

Referenced by Draw(), and Print().

◆ theGraphOpts

std::vector<std::pair<TGraph*, Option_t*> > ReadPedeHists::theGraphOpts
private

Definition at line 134 of file readPedeHists.C.

Referenced by Draw(), read(), and Write().

◆ theHists

std::vector<TH1*> ReadPedeHists::theHists
private

Definition at line 133 of file readPedeHists.C.

Referenced by Draw(), read(), and Write().

◆ theStream

std::ifstream ReadPedeHists::theStream
private

Definition at line 132 of file readPedeHists.C.

Referenced by ReadPedeHists().


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