Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
root2email.cc File Reference
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <sstream>
#include <stdlib.h>
#include <TCanvas.h>
#include <TFrame.h>
#include <TFile.h>
#include <TH2F.h>
#include <TROOT.h>

Go to the source code of this file.

Classes

struct  plot_t
 

Functions

void ParseCommandLineArguments (int narg, char *argv[])
 
void Usage (void)
 
void AddPlot (TFile &f, string what)
 
int main (int narg, char *argv[])
 

Variables

const char * filename = "mctrk_ana.root"
 
vector< stringemail_address
 
vector< stringhistnames
 
vector< plot_tplots
 
int colors [] = {kRed, kBlue, kGreen}
 
int Ncolors = 3
 

Function Documentation

void AddPlot ( TFile &  f,
string  what 
)

Definition at line 90 of file root2email.cc.

References c1, colors, plot_t::gif_file, hist, plot_t::message, Ncolors, outfile, plots, and string.

Referenced by main().

int main ( int  narg,
char *  argv[] 
)

Definition at line 44 of file root2email.cc.

References AddPlot(), email_address, f, filename, histnames, ParseCommandLineArguments(), and plots.

void ParseCommandLineArguments ( int  narg,
char *  argv[] 
)
void Usage ( void  )

Variable Documentation

int colors[] = {kRed, kBlue, kGreen}

Definition at line 38 of file root2email.cc.

vector<string> email_address

Definition at line 30 of file root2email.cc.

Referenced by main().

const char* filename = "mctrk_ana.root"

Definition at line 23 of file root2email.cc.

vector<string> histnames

Definition at line 31 of file root2email.cc.

Referenced by main().

int Ncolors = 3

Definition at line 39 of file root2email.cc.

Referenced by AddPlot(), and Parameterize().

vector<plot_t> plots

Definition at line 32 of file root2email.cc.

Referenced by AddPlot(), and main().