Fork me on GitHub

source: git/display/DelphesEventDisplay.h@ ad015db

ImprovedOutputFile Timing dual_readout llp
Last change on this file since ad015db was 2ca23b5, checked in by Christophe Delaere <christophe.delaere@…>, 10 years ago

Started to work on the summary plots

Investigated the way to add a tab with summary plots. A new class is in
place (dummy for now) to manage these plots.
Other small changes: use the status bar, clean the maxPt for MET (easier
to change later on), filter GenParticles on status==1.

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[cfc3160]1/*
2 * Delphes: a framework for fast simulation of a generic collider experiment
3 * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef DelphesEventDisplay_h
20#define DelphesEventDisplay_h
21
22#include <vector>
[fafc433]23#include <iostream>
[cfc3160]24#include "external/ExRootAnalysis/ExRootTreeReader.h"
25#include "display/DelphesDisplay.h"
26#include "display/Delphes3DGeometry.h"
[5fbcfe8]27#include "display/DelphesHtmlSummary.h"
[2ca23b5]28#include "display/DelphesPlotSummary.h"
[cfc3160]29#include "TChain.h"
[4fd37d4]30#include "TAxis.h"
[5fbcfe8]31#include "TGHtml.h"
[cfc3160]32#include "TClonesArray.h"
[2ca23b5]33#include "TGStatusBar.h"
[cfc3160]34
35/*
36 * assembly.C: sauvegarde as shape-extract -> implement in the geometry class (read/write)
37 * histobrowser.C: intégration d'histogrammes dans le display (on pourrait avoir Pt, eta, phi pour les principales collections)
38 * also from alice_esd: summary html table
39 *
40 */
41
42class DelphesEventDisplay
43{
44 public:
45 DelphesEventDisplay();
46 DelphesEventDisplay(const char *configFile, const char *inputFile, Delphes3DGeometry& det3D);
47 ~DelphesEventDisplay();
48
49 private:
[8b04b31]50 void update_html_summary();
[cfc3160]51 void make_gui();
[fafc433]52 void load_event();
[4fd37d4]53 void readConfig(const char *configFile, std::vector<DelphesBranchBase*>& elements);
[cfc3160]54
55 // Configuration and global variables.
[fafc433]56 Int_t event_id_;
57 ExRootTreeReader *treeReader_;
[4fd37d4]58 Double_t tkRadius_, totRadius_, tkHalfLength_, muHalfLength_, bz_;
59 TAxis *etaAxis_, *phiAxis_;
[cfc3160]60 TChain* chain_;
[fafc433]61 std::vector<DelphesBranchBase*> elements_;
62 DelphesDisplay *delphesDisplay_;
[5fbcfe8]63 DelphesHtmlSummary *htmlSummary_;
64 TGHtml *gHtml_;
[2ca23b5]65 DelphesPlotSummary *plotSummary_;
66 TGStatusBar* fStatusBar_;
[cfc3160]67
[fafc433]68 // gui controls
69 public:
70 void Fwd() {
71 if (event_id_ < treeReader_->GetEntries() - 1) {
72 ++event_id_;
73 load_event();
74 } else {
75 printf("Already at last event.\n");
76 }
77 }
[cfc3160]78
[fafc433]79 void Bck() {
80 if (event_id_ > 0) {
81 --event_id_;
82 load_event();
83 } else {
84 printf("Already at first event.\n");
85 }
86 }
[cfc3160]87};
88
89#endif //DelphesEventDisplay_h
Note: See TracBrowser for help on using the repository browser.