emcGainEvolution Class Reference
[Tower calibration]

#include <emcGainEvolution.h>

List of all members.


Detailed Description

Helper class to draw gain evolution over time, and play with gain base line.

Definition at line 18 of file emcGainEvolution.h.

Public Types

enum  EHistogrammingType { kNone = -1, kOneFilePerRun, kOneFilePer1KRange, kOneFileForAll }

Public Member Functions

 emcGainEvolution (const char *outputfile)
void setTimeOffset (time_t offset)
void setHistogrammingType (emcGainEvolution::EHistogrammingType htype)
 ~emcGainEvolution ()
void addRun (int runnumber)
void clearRun ()
void addSector (const char *sector)
void clearSector ()
void addTrimmingPercentage (float percent)
void clearDetails ()
void clearTrimmingPercentage ()
void print (std::ostream &out=std::cout) const
void run ()
void addDetails (const char *femdetails)
void reset ()
void verbose (int verboselevel)
int verbose () const

Private Member Functions

void writeGraphs ()
void createGraph (const std::string &graphname, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &xerr, const std::vector< double > &yerr)
std::string graphName (const std::string &process, const std::string &suffix)
void makeGraphs (const std::string &process)
void makeGraph_absolute (const std::string &process)
void makeGraph_wrt_production (const std::string &process)
void makeGraph_distriShape (const std::string &process)
void save (int run)

Private Attributes

std::string fOutputFile
time_t fTimeOffset
std::vector< int > fRuns
std::map< int, RunCheckfRunChecks
std::vector< float > fPercent
std::vector< std::string > fSectors
std::set< std::string > fProcesses
std::vector< std::string > fDetails
std::map< std::string, TGraphErrors * > fGraphs
int fVerbose
EHistogrammingType fHistogrammingType

Classes

class  BaseLine
class  RunCheck


Member Enumeration Documentation

enum emcGainEvolution::EHistogrammingType
 

Enumerator:
kNone 
kOneFilePerRun 
kOneFilePer1KRange 
kOneFileForAll 

Definition at line 22 of file emcGainEvolution.h.


Constructor & Destructor Documentation

emcGainEvolution::emcGainEvolution const char *  outputfile  ) 
 

Definition at line 52 of file emcGainEvolution.C.

emcGainEvolution::~emcGainEvolution  ) 
 

Definition at line 67 of file emcGainEvolution.C.

References fGraphs.


Member Function Documentation

void emcGainEvolution::addDetails const char *  femdetails  )  [inline]
 

Definition at line 77 of file emcGainEvolution.h.

References fDetails.

Referenced by run_GainEvolution().

void emcGainEvolution::addRun int  runnumber  )  [inline]
 

Definition at line 38 of file emcGainEvolution.h.

References fRuns.

Referenced by run_GainEvolution().

void emcGainEvolution::addSector const char *  sector  )  [inline]
 

Definition at line 48 of file emcGainEvolution.h.

References fSectors.

Referenced by run_GainEvolution().

void emcGainEvolution::addTrimmingPercentage float  percent  )  [inline]
 

Definition at line 58 of file emcGainEvolution.h.

References fPercent.

Referenced by run_GainEvolution().

void emcGainEvolution::clearDetails  )  [inline]
 

Definition at line 63 of file emcGainEvolution.h.

References fDetails.

Referenced by reset().

void emcGainEvolution::clearRun  )  [inline]
 

Definition at line 43 of file emcGainEvolution.h.

References fRuns.

Referenced by reset().

void emcGainEvolution::clearSector  )  [inline]
 

Definition at line 53 of file emcGainEvolution.h.

References fSectors.

Referenced by reset().

void emcGainEvolution::clearTrimmingPercentage  )  [inline]
 

Definition at line 68 of file emcGainEvolution.h.

References fPercent.

Referenced by reset().

void emcGainEvolution::createGraph const std::string &  graphname,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  xerr,
const std::vector< double > &  yerr
[private]
 

Definition at line 80 of file emcGainEvolution.C.

References fGraphs, and verbose().

std::string emcGainEvolution::graphName const std::string &  process,
const std::string &  suffix
[private]
 

Definition at line 108 of file emcGainEvolution.C.

References name.

Referenced by makeGraph_absolute(), and makeGraph_wrt_production().

void emcGainEvolution::makeGraph_absolute const std::string &  process  )  [private]
 

Definition at line 185 of file emcGainEvolution.C.

References fRunChecks, fRuns, graphName(), and run().

Referenced by makeGraphs().

void emcGainEvolution::makeGraph_distriShape const std::string &  process  )  [private]
 

Definition at line 155 of file emcGainEvolution.C.

References fRunChecks, fRuns, and run().

Referenced by makeGraphs().

void emcGainEvolution::makeGraph_wrt_production const std::string &  process  )  [private]
 

Definition at line 214 of file emcGainEvolution.C.

References fRunChecks, fRuns, graphName(), and run().

Referenced by makeGraphs().

void emcGainEvolution::makeGraphs const std::string &  process  )  [private]
 

Definition at line 146 of file emcGainEvolution.C.

References makeGraph_absolute(), makeGraph_distriShape(), and makeGraph_wrt_production().

Referenced by writeGraphs().

void emcGainEvolution::print std::ostream &  out = std::cout  )  const
 

Definition at line 246 of file emcGainEvolution.C.

References fProcesses, fRunChecks, fRuns, and emcGainEvolution::BaseLine::print().

void emcGainEvolution::reset  )  [inline]
 

Definition at line 82 of file emcGainEvolution.h.

References clearDetails(), clearRun(), clearSector(), clearTrimmingPercentage(), fProcesses, and fRunChecks.

void emcGainEvolution::run  ) 
 

Definition at line 267 of file emcGainEvolution.C.

References EmcIndexer::EmcSectorNumber(), error(), fDetails, fPercent, fProcesses, fRunChecks, fRuns, fSectors, fTimeOffset, emcCalibrationDataHelper::getGainBaseLine(), emcDataManager::GetInstance(), emcTimeStamp::getTimeStamp(), emcManageable::kDB_Pg, emcDataManager::Read(), emcManageable::SetSource(), and verbose().

Referenced by makeGraph_absolute(), makeGraph_distriShape(), makeGraph_wrt_production(), and run_GainEvolution().

void emcGainEvolution::save int  run  )  [private]
 

Definition at line 385 of file emcGainEvolution.C.

References emcGainBaseLineCalculator::deleteHistos(), fHistogrammingType, fOutputFile, kNone, kOneFileForAll, kOneFilePer1KRange, kOneFilePerRun, range(), and emcGainBaseLineCalculator::write().

void emcGainEvolution::setHistogrammingType emcGainEvolution::EHistogrammingType  htype  ) 
 

Definition at line 131 of file emcGainEvolution.C.

References fHistogrammingType, emcGainBaseLineCalculator::histogramming(), and kNone.

Referenced by run_GainEvolution().

void emcGainEvolution::setTimeOffset time_t  offset  )  [inline]
 

Definition at line 32 of file emcGainEvolution.h.

References fTimeOffset.

int emcGainEvolution::verbose  )  const [inline]
 

Definition at line 94 of file emcGainEvolution.h.

References fVerbose.

Referenced by createGraph(), and run().

void emcGainEvolution::verbose int  verboselevel  )  [inline]
 

Definition at line 92 of file emcGainEvolution.h.

References fVerbose.

void emcGainEvolution::writeGraphs  )  [private]
 

Definition at line 436 of file emcGainEvolution.C.

References fOutputFile, fProcesses, and makeGraphs().


Member Data Documentation

std::vector<std::string> emcGainEvolution::fDetails [private]
 

Definition at line 187 of file emcGainEvolution.h.

Referenced by addDetails(), clearDetails(), and run().

std::map<std::string,TGraphErrors*> emcGainEvolution::fGraphs [private]
 

Definition at line 188 of file emcGainEvolution.h.

Referenced by createGraph(), and ~emcGainEvolution().

EHistogrammingType emcGainEvolution::fHistogrammingType [private]
 

Definition at line 190 of file emcGainEvolution.h.

Referenced by save(), and setHistogrammingType().

std::string emcGainEvolution::fOutputFile [private]
 

Definition at line 120 of file emcGainEvolution.h.

Referenced by save(), and writeGraphs().

std::vector<float> emcGainEvolution::fPercent [private]
 

Definition at line 184 of file emcGainEvolution.h.

Referenced by addTrimmingPercentage(), clearTrimmingPercentage(), and run().

std::set<std::string> emcGainEvolution::fProcesses [private]
 

Definition at line 186 of file emcGainEvolution.h.

Referenced by print(), reset(), run(), and writeGraphs().

std::map<int,RunCheck> emcGainEvolution::fRunChecks [private]
 

Definition at line 183 of file emcGainEvolution.h.

Referenced by makeGraph_absolute(), makeGraph_distriShape(), makeGraph_wrt_production(), print(), reset(), and run().

std::vector<int> emcGainEvolution::fRuns [private]
 

Definition at line 182 of file emcGainEvolution.h.

Referenced by addRun(), clearRun(), makeGraph_absolute(), makeGraph_distriShape(), makeGraph_wrt_production(), print(), and run().

std::vector<std::string> emcGainEvolution::fSectors [private]
 

Definition at line 185 of file emcGainEvolution.h.

Referenced by addSector(), clearSector(), and run().

time_t emcGainEvolution::fTimeOffset [private]
 

Definition at line 181 of file emcGainEvolution.h.

Referenced by run(), and setTimeOffset().

int emcGainEvolution::fVerbose [private]
 

Definition at line 189 of file emcGainEvolution.h.

Referenced by verbose().


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