ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TSelectorScalar.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Maarten Ballintijn 13/02/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSelectorScalar
13 #define ROOT_TSelectorScalar
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSelectorScalar //
19 // //
20 // Named scalar type, based on Long64_t, streamable, storable and //
21 // mergable. Ideally to be used in tree selectors in the PROOF //
22 // environment due to its merge functionality which allows a single //
23 // merged value to be returned to the user. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 
28 #ifndef ROOT_TParameter
29 #include "TParameter.h"
30 #endif
31 
32 #ifndef ROOT_Rtypes
33 #include "Rtypes.h"
34 #endif
35 
36 
37 class TCollection;
38 
39 class TSelectorScalar : public TParameter<Long64_t> {
40 
41 public:
42  TSelectorScalar(const char *name = "", Long64_t val = 0)
43  : TParameter<Long64_t>(name, val) { }
45 
46  void Inc(Long_t n = 1);
47  Int_t Merge(TCollection *list);
48 
49  ClassDef(TSelectorScalar,1) //Mergable scalar
50 };
51 
52 
53 #endif
Int_t Merge(TCollection *list)
Merge scalars with scalars in the list.
long long Long64_t
Definition: RtypesCore.h:69
void Inc(Long_t n=1)
int Int_t
Definition: RtypesCore.h:41
Named scalar type, based on Long64_t, streamable, storable and mergable.
#define ClassDef(name, id)
Definition: Rtypes.h:254
Named parameter, streamable and storable.
Definition: TParameter.h:49
TSelectorScalar(const char *name="", Long64_t val=0)
Collection abstract base class.
Definition: TCollection.h:48
long Long_t
Definition: RtypesCore.h:50
#define name(a, b)
Definition: linkTestLib0.cpp:5
const Int_t n
Definition: legend1.C:16