ROOTPWA
Functions
createDiffTree.C File Reference
#include <string>
#include <cassert>
#include <algorithm>
#include <boost/progress.hpp>
#include "TChain.h"
#include "TFile.h"
#include "TTree.h"
#include "TClonesArray.h"
#include "TObjString.h"
#include "TVector3.h"
#include "reportingUtils.hpp"
#include "reportingUtilsRoot.hpp"
#include "evtTreeHelper.h"

Go to the source code of this file.

Functions

void fillDiffLeafs (const TClonesArray &partNames, TClonesArray *partMomenta[3], const unsigned int index, const bool absoluteDiff, const bool debug=false)
bool createDiffTree (const string &inFileNamePatternA="testEvents.root", const string &inFileNamePatternB="testEvents2.root", const string &outFileName="testDiffTree.root", const bool absoluteDiff=true, const long int maxNmbEvents=-1, const string &inTreeName="rootPwaEvtTree", const string &prodKinPartNamesObjName="prodKinParticles", const string &prodKinMomentaLeafName="prodKinMomenta", const string &decayKinPartNamesObjName="decayKinParticles", const string &decayKinMomentaLeafName="decayKinMomenta", const bool debug=false, const long int treeCacheSize=25000000)

Function Documentation

bool createDiffTree ( const string &  inFileNamePatternA = "testEvents.root",
const string &  inFileNamePatternB = "testEvents2.root",
const string &  outFileName = "testDiffTree.root",
const bool  absoluteDiff = true,
const long int  maxNmbEvents = -1,
const string &  inTreeName = "rootPwaEvtTree",
const string &  prodKinPartNamesObjName = "prodKinParticles",
const string &  prodKinMomentaLeafName = "prodKinMomenta",
const string &  decayKinPartNamesObjName = "decayKinParticles",
const string &  decayKinMomentaLeafName = "decayKinMomenta",
const bool  debug = false,
const long int  treeCacheSize = 25000000 
)

Definition at line 90 of file createDiffTree.C.

References debug, fillDiffLeafs(), i, rpwa::openRootEvtFiles(), and progressIndicator().

void fillDiffLeafs ( const TClonesArray &  partNames,
TClonesArray *  partMomenta[3],
const unsigned int  index,
const bool  absoluteDiff,
const bool  debug = false 
)

Definition at line 62 of file createDiffTree.C.

References debug.

Referenced by createDiffTree().