ROOTPWA
Functions
fillUdstDataIntoMassBins_example.C File Reference
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include <sys/stat.h>
#include <sys/types.h>
#include <algorithm>
#include <boost/progress.hpp>
#include "TStopwatch.h"
#include "TFile.h"
#include "TTree.h"
#include "TChain.h"
#include "TClonesArray.h"
#include "TLorentzVector.h"
#include "reportingUtils.hpp"

Go to the source code of this file.

Functions

bool createMassBinFiles (vector< TFile * > &pwaFiles, vector< TTree * > &pwaTrees, const string &dirBaseName="/tmp/", const unsigned int nmbMassBins=50, const double massBinWidth=50, const double massRangeMin=500, const string &treeName="rootPwaEvtTree")
bool writeEvent (vector< TTree * > &pwaTrees, const TLorentzVector &beamLv, const TLorentzVector &piZero0, const TLorentzVector &piZero1, const TLorentzVector &piMinus, const double XMass, const unsigned int nmbMassBins=50, const double massBinWidth=50, const double massRangeMin=500, const string &prodKinMomentaLeafName="prodKinMomenta", const string &decayKinMomentaLeafName="decayKinMomenta", const bool debug=false)
void fillUdstDataIntoMassBins_example (const string &inFileNamePattern="fillUdstDataIntoMassBins_example.root", const string &dirName="./test", const long int maxNmbEvents=-1, const unsigned int nmbMassBins=50, const double massBinWidth=40, const double massRangeMin=500, const string &uDstTreeName="pwaDataTree", const string &pwaTreeName="rootPwaEvtTree", const long int treeCacheSize=25000000, const bool debug=false)

Function Documentation

bool createMassBinFiles ( vector< TFile * > &  pwaFiles,
vector< TTree * > &  pwaTrees,
const string &  dirBaseName = "/tmp/",
const unsigned int  nmbMassBins = 50,
const double  massBinWidth = 50,
const double  massRangeMin = 500,
const string &  treeName = "rootPwaEvtTree" 
)

Definition at line 73 of file fillUdstDataIntoMassBins_example.C.

References i, and n.

Referenced by fillUdstDataIntoMassBins_example().

void fillUdstDataIntoMassBins_example ( const string &  inFileNamePattern = "fillUdstDataIntoMassBins_example.root",
const string &  dirName = "./test",
const long int  maxNmbEvents = -1,
const unsigned int  nmbMassBins = 50,
const double  massBinWidth = 40,
const double  massRangeMin = 500,
const string &  uDstTreeName = "pwaDataTree",
const string &  pwaTreeName = "rootPwaEvtTree",
const long int  treeCacheSize = 25000000,
const bool  debug = false 
)
bool writeEvent ( vector< TTree * > &  pwaTrees,
const TLorentzVector &  beamLv,
const TLorentzVector &  piZero0,
const TLorentzVector &  piZero1,
const TLorentzVector &  piMinus,
const double  XMass,
const unsigned int  nmbMassBins = 50,
const double  massBinWidth = 50,
const double  massRangeMin = 500,
const string &  prodKinMomentaLeafName = "prodKinMomenta",
const string &  decayKinMomentaLeafName = "decayKinMomenta",
const bool  debug = false 
)

Definition at line 130 of file fillUdstDataIntoMassBins_example.C.

References bin, debug, int, and mass.

Referenced by fillUdstDataIntoMassBins_example().