Fork me on GitHub

source: git/classes/DelphesTF2.cc@ 8ab9694

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 8ab9694 was 1fa50c2, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

fix GPLv3 header

  • Property mode set to 100644
File size: 1.7 KB
Line 
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#include "classes/DelphesTF2.h"
20#include "TString.h"
21#include <stdexcept>
22#include <string>
23
24using namespace std;
25
26//------------------------------------------------------------------------------
27
28DelphesTF2::DelphesTF2() :
29 TF2()
30{
31}
32
33//------------------------------------------------------------------------------
34
35DelphesTF2::DelphesTF2(const char *name, const char *expression) :
36 TF2(name,expression)
37{
38}
39
40//------------------------------------------------------------------------------
41
42DelphesTF2::~DelphesTF2()
43{
44}
45
46//------------------------------------------------------------------------------
47
48Int_t DelphesTF2::DefinedVariable(TString &chaine, Int_t &action)
49{
50 action = kVariable;
51 if(chaine == "z")
52 {
53 if(fNdim < 1) fNdim = 1;
54 return 0;
55 }
56 else if(chaine == "t")
57 {
58 if(fNdim < 2) fNdim = 2;
59 return 1;
60 }
61 return -1;
62}
63
64//------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.