babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
Functions
generate_baby.cxx File Reference
#include "generate_baby.hh"
#include <cstring>
#include <stdexcept>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <fstream>
#include <set>
#include <unistd.h>

Go to the source code of this file.

Functions

string ToCaps (string str)
 
string execute (const string &cmd)
 
vector< string > Tokenize (const string &input, const string &tokens=" ")
 
string FixName (string name)
 
set< VariableGetVariables (const string &file_name)
 
int main ()
 
bool Contains (const string &text, const string &pattern)
 
void WriteBaseHeader (const set< Variable > &all_vars, const set< Variable > &com_vars, const vector< string > &names)
 
void WriteBaseSource (const set< Variable > &all_vars, const set< Variable > &com_vars, const vector< string > &names)
 
void WriteSepHeader (const pair< string, set< Variable > > &sep_vars)
 
void WriteSepSource (const pair< string, set< Variable > > &sep_vars)
 

Function Documentation

bool Contains ( const string &  text,
const string &  pattern 
)
string execute ( const string &  cmd)

Definition at line 26 of file generate_baby.cxx.

Referenced by main().

string FixName ( string  name)

Definition at line 54 of file generate_baby.cxx.

Referenced by main().

set<Variable> GetVariables ( const string &  file_name)

Definition at line 85 of file generate_baby.cxx.

References validate_ntuples::line.

Referenced by main().

int main ( )
string ToCaps ( string  str)

Definition at line 17 of file generate_baby.cxx.

Referenced by WriteSepHeader(), and WriteSepSource().

vector<string> Tokenize ( const string &  input,
const string &  tokens = " " 
)

Definition at line 40 of file generate_baby.cxx.

Referenced by main().

void WriteBaseHeader ( const set< Variable > &  all_vars,
const set< Variable > &  com_vars,
const vector< string > &  names 
)

Definition at line 170 of file generate_baby.cxx.

References Contains().

Referenced by main().

void WriteBaseSource ( const set< Variable > &  all_vars,
const set< Variable > &  com_vars,
const vector< string > &  names 
)

Definition at line 268 of file generate_baby.cxx.

References Contains().

Referenced by main().

void WriteSepHeader ( const pair< string, set< Variable > > &  sep_vars)

Definition at line 512 of file generate_baby.cxx.

References Contains(), and ToCaps().

Referenced by main().

void WriteSepSource ( const pair< string, set< Variable > > &  sep_vars)

Definition at line 571 of file generate_baby.cxx.

References Contains(), and ToCaps().

Referenced by main().