Line | |
---|
1 | // Draw di-electron invariant mass
|
---|
2 |
|
---|
3 | void SimpleDraw(const char *inputFileList)
|
---|
4 | {
|
---|
5 | TChain chain("PGS");
|
---|
6 |
|
---|
7 | if(!FillChain(chain, inputFileList)) return;
|
---|
8 |
|
---|
9 | ExRootResult result;
|
---|
10 |
|
---|
11 | TH1 *mass_hist = result.AddHist1D("mass_hist", "di-electron mass", "di-electron mass, GeV/c^{2}", "number of entries", 70, 60.0, 130.0);
|
---|
12 |
|
---|
13 | chain.Draw("sqrt((Electron.E[0]+Electron.E[1])^2 - (Electron.Px[0]+Electron.Px[1])^2 - (Electron.Py[0]+Electron.Py[1])^2 - (Electron.Pz[0]+Electron.Pz[1])^2) >> mass_hist", "Electron_size > 1");
|
---|
14 |
|
---|
15 | result.Print();
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.