English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TPatternsEventList.h Source File
Uranie / DataServer v4.9.0
/* @license-end */
TPatternsEventList.h
Go to the documentation of this file.
1
2// 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
55class TDirectory;
56class TCollection;
57
58namespace URANIE
59{
60namespace DataServer
61{
62class TPatternsEventList: public TEventList
63{
64 // Attributes
65protected:
66 Int_t _nSeed;
67public:
68 Bool_t _blog;
69
70public:
71 //---------------------------------------------
75
78 TPatternsEventList(const char *name, const char *title, Int_t initsize);
79
83
84 //---------------------------------------------
88
89 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 }
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
Description of the class TPatternsEventList.
Definition TPatternsEventList.h:63
virtual void enter(Long64_t entry)
Enter element entry into the list.
Definition TPatternsEventList.h:94
Bool_t getLog()
Definition TPatternsEventList.h:145
void unsetLog()
Definition TPatternsEventList.h:137
void setSeed(Int_t ind=0)
Init the seed.
TPatternsEventList(const char *name, const char *title, Int_t initsize)
Default constructor with a name, a title and the init size.
void mix()
Mix all the elements entry into the list.
Definition TPatternsEventList.h:105
virtual ~TPatternsEventList()
Default destructor.
void Mix()
Mix all the elements entry into the list.
virtual void Print(Option_t *option="") const
void printLog(Option_t *option="")
Definition TPatternsEventList.h:150
void setLog()
Definition TPatternsEventList.h:133
Int_t getSeed()
Returns the seed value.
Definition TPatternsEventList.h:123
Bool_t _blog
Definition TPatternsEventList.h:68
TPatternsEventList()
Default constructor.
void changeLog()
Definition TPatternsEventList.h:141
virtual void Enter(Long64_t entry)
Enter element entry into the list.
Int_t _nSeed
The seed parameter.
Definition TPatternsEventList.h:66
ROOT.
Definition TAttribute.h:106