English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TPatternsEventList.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TPatternsEventList.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // $Id$
19 // $Author$
20 // $Date$
21 // $Revision$
22 // $State$
24 
45 #ifndef TPATTERNSEVENTLIST
46 #define TPATTERNSEVENTLIST
47 
48 // ROOT
49 #include "TNamed.h"
50 #include "TEventList.h"
51 
52 // Uranie
53 #include "DataServer.h"
54 
55 class TDirectory;
56 class TCollection;
57 
58 namespace URANIE
59 {
60 namespace DataServer
61 {
62 class TPatternsEventList: public TEventList
63 {
64  // Attributes
65 protected:
66  Int_t _nSeed;
67 public:
68  Bool_t _blog;
69 
70 public:
71  //---------------------------------------------
78  TPatternsEventList(const char *name, const char *title, Int_t initsize);
79 
81  virtual ~TPatternsEventList();
83 
84  //---------------------------------------------
88  virtual void Enter(Long64_t entry);
91 
94  virtual void enter(Long64_t entry)
95  {
96  Enter(entry);
97  }
98 
100  void Mix();
102 
105  void mix()
106  {
107  Mix();
108  }
110 
111  //---------------------------------------------
115 
121  void setSeed(Int_t ind = 0);
123  Int_t getSeed()
124  {
125  return _nSeed;
126  }
128 
129  //---------------------------------------------
133  void setLog()
134  {
135  _blog = kTRUE;
136  }
137  void unsetLog()
138  {
139  _blog = kFALSE;
140  }
141  void changeLog()
142  {
143  _blog = _blog ? kFALSE : kTRUE;
144  }
145  Bool_t getLog()
146  {
147  return _blog;
148  }
149  virtual void Print(Option_t *option = "") const;
150  void printLog(Option_t *option = "")
151  {
152  (void)option;
153  Print("all");
154  }
156 
157  ClassDef(TPatternsEventList, ID_DATASERVER)
158  //A list of selected entries in a TTree.
159 };
160 
161 } // Fin du namespace DataServer
162 } // Fin du namespace URANIE
163 #endif
ROOT.
Definition: TAttribute.h:104
virtual void Print(Option_t *option="") const
void setLog()
Definition: TPatternsEventList.h:133
Int_t getSeed()
Returns the seed value.
Definition: TPatternsEventList.h:123
virtual ~TPatternsEventList()
Default destructor.
Int_t _nSeed
The seed parameter.
Definition: TPatternsEventList.h:66
void unsetLog()
Definition: TPatternsEventList.h:137
void changeLog()
Definition: TPatternsEventList.h:141
void Mix()
Mix all the elements entry into the list.
virtual void Enter(Long64_t entry)
Enter element entry into the list.
void printLog(Option_t *option="")
Definition: TPatternsEventList.h:150
void setSeed(Int_t ind=0)
Init the seed.
Description of the class TPatternsEventList.
Definition: TPatternsEventList.h:62
Bool_t _blog
Definition: TPatternsEventList.h:68
Bool_t getLog()
Definition: TPatternsEventList.h:145
TPatternsEventList()
Default constructor.
void mix()
Mix all the elements entry into the list.
Definition: TPatternsEventList.h:105
virtual void enter(Long64_t entry)
Enter element entry into the list.
Definition: TPatternsEventList.h:94