emcTracedFEMPlotter Class Reference

#include <emcTracedFEMPlotter.h>

List of all members.


Detailed Description

A utility class to draw emcTracedFEM objects.

Definition at line 12 of file emcTracedFEMPlotter.h.

Public Member Functions

 emcTracedFEMPlotter (const emcTracedFEM &tf, time_t tics0)
 ctor from a tracedFEM.
 emcTracedFEMPlotter (const emcTracedFEM &tf, int tics0)
 ctor from a tracedFEM with a plain int instead of time_t.
 emcTracedFEMPlotter (const emcTracedFEM &tf)
TGraph * CopyGraph (int ichannel)
 Returns a copy graph for a given channel.
 ~emcTracedFEMPlotter ()
 dtor.
bool Draw (int ichannel, const char *option="")
 Draw a given channel of the tracedFEM.
bool Write (int ichannel, const char *name)
 Write a given channel graphical representation into a ROOT file.

Private Member Functions

 emcTracedFEMPlotter (const emcTracedFEMPlotter &)
 Make it private so we can not call it.
void MakeGraph (int ichannel)
 Create a TGraph for this channel.
bool ValidChannel (int ichannel) const
 Test if ichannel is within bounds.

Private Attributes

emcTracedFEMfTracedFEM
std::vector< TGraph * > fGraphs
time_t fTics0


Constructor & Destructor Documentation

emcTracedFEMPlotter::emcTracedFEMPlotter const emcTracedFEM tf,
time_t  tics0
 

ctor from a tracedFEM.

Definition at line 13 of file emcTracedFEMPlotter.C.

References fGraphs, fTracedFEM, and emcCalFEM::size().

emcTracedFEMPlotter::emcTracedFEMPlotter const emcTracedFEM tf,
int  tics0
 

ctor from a tracedFEM with a plain int instead of time_t.

(mainly for CINT).

Definition at line 21 of file emcTracedFEMPlotter.C.

References fGraphs, fTracedFEM, and emcCalFEM::size().

emcTracedFEMPlotter::emcTracedFEMPlotter const emcTracedFEM tf  ) 
 

Definition at line 29 of file emcTracedFEMPlotter.C.

References fGraphs, fTracedFEM, and emcCalFEM::size().

emcTracedFEMPlotter::~emcTracedFEMPlotter  ) 
 

dtor.

Definition at line 36 of file emcTracedFEMPlotter.C.

References fGraphs.

emcTracedFEMPlotter::emcTracedFEMPlotter const emcTracedFEMPlotter  )  [private]
 

Make it private so we can not call it.


Member Function Documentation

TGraph * emcTracedFEMPlotter::CopyGraph int  ichannel  ) 
 

Returns a copy graph for a given channel.

The returned pointer is yours.

Definition at line 47 of file emcTracedFEMPlotter.C.

References fGraphs, MakeGraph(), and ValidChannel().

Referenced by emcChannelEvolution::graph(), and testTracedFEMMerger().

bool emcTracedFEMPlotter::Draw int  ichannel,
const char *  option = ""
 

Draw a given channel of the tracedFEM.

Definition at line 63 of file emcTracedFEMPlotter.C.

References fGraphs, MakeGraph(), and ValidChannel().

void emcTracedFEMPlotter::MakeGraph int  ichannel  )  [private]
 

Create a TGraph for this channel.

Definition at line 80 of file emcTracedFEMPlotter.C.

References emcTracedFEM::FirstItem(), fTics0, fTracedFEM, emcTracedValue::GetConstant(), emcTracedValue::getValue(), emcTracedValue::GetX(), emcCalFEM::GetXmax(), emcCalFEM::GetXmin(), and emcTracedFEM::NextItem().

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

bool emcTracedFEMPlotter::ValidChannel int  ichannel  )  const [private]
 

Test if ichannel is within bounds.

Definition at line 126 of file emcTracedFEMPlotter.C.

References fGraphs.

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

bool emcTracedFEMPlotter::Write int  ichannel,
const char *  name
 

Write a given channel graphical representation into a ROOT file.

A ROOT file must be opened.

Definition at line 140 of file emcTracedFEMPlotter.C.

References fGraphs, MakeGraph(), and ValidChannel().


Member Data Documentation

std::vector<TGraph*> emcTracedFEMPlotter::fGraphs [private]
 

Definition at line 53 of file emcTracedFEMPlotter.h.

Referenced by CopyGraph(), Draw(), emcTracedFEMPlotter(), ValidChannel(), Write(), and ~emcTracedFEMPlotter().

time_t emcTracedFEMPlotter::fTics0 [private]
 

Definition at line 54 of file emcTracedFEMPlotter.h.

Referenced by MakeGraph().

emcTracedFEM* emcTracedFEMPlotter::fTracedFEM [private]
 

Definition at line 52 of file emcTracedFEMPlotter.h.

Referenced by emcTracedFEMPlotter(), and MakeGraph().


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