Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mergeTrees.C File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <chrono>
#include <algorithm>
#include "TFile.h"
#include "TTree.h"
#include "TObjArray.h"
#include "TBranch.h"
#include "TTreeReader.h"
#include "TTreeReaderValue.h"
#include "TTreeReaderArray.h"

Go to the source code of this file.

Functions

vector< const char * > getBranches (TTree *tree)
 
bool searchMap (map< string, Int_t > p_map, string substring)
 
bool compareMaps (map< string, Int_t > p_map, map< string, Int_t > s_map)
 
void mergeTrees (const char *primaryFile, const char *primaryTree, const char *secondaryFile, const char *secondaryTree)
 

Function Documentation

bool compareMaps ( map< string, Int_t >  p_map,
map< string, Int_t >  s_map 
)

Definition at line 66 of file mergeTrees.C.

Referenced by mergeTrees().

vector<const char*> getBranches ( TTree *  tree)

Definition at line 29 of file mergeTrees.C.

Referenced by mergeTrees().

void mergeTrees ( const char *  primaryFile,
const char *  primaryTree,
const char *  secondaryFile,
const char *  secondaryTree 
)

Definition at line 97 of file mergeTrees.C.

References compareMaps(), getBranches(), run, searchMap(), and t1.

bool searchMap ( map< string, Int_t >  p_map,
string  substring 
)

Definition at line 53 of file mergeTrees.C.

Referenced by mergeTrees().