Logo ROOT  
Reference Guide
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 #include "TParameter.h"
29 
30 #include "Rtypes.h"
31 
32 
33 class TCollection;
34 
35 class TSelectorScalar : public TParameter<Long64_t> {
36 
37 public:
38  TSelectorScalar(const char *name = "", Long64_t val = 0)
39  : TParameter<Long64_t>(name, val) { }
41 
42  void Inc(Long_t n = 1);
43  Int_t Merge(TCollection *list);
44 
45  ClassDef(TSelectorScalar,1) //Mergable scalar
46 };
47 
48 
49 #endif
n
const Int_t n
Definition: legend1.C:16
Long64_t
long long Long64_t
Definition: RtypesCore.h:73
Int_t
int Int_t
Definition: RtypesCore.h:45
TSelectorScalar
Named scalar type, based on Long64_t, streamable, storable and mergable.
Definition: TSelectorScalar.h:35
TSelectorScalar::~TSelectorScalar
~TSelectorScalar()
Definition: TSelectorScalar.h:40
TSelectorScalar::Merge
Int_t Merge(TCollection *list)
Merge scalars with scalars in the list.
Definition: TSelectorScalar.cxx:38
TParameter.h
TSelectorScalar::TSelectorScalar
TSelectorScalar(const char *name="", Long64_t val=0)
Definition: TSelectorScalar.h:38
Long_t
long Long_t
Definition: RtypesCore.h:54
TParameter
Named parameter, streamable and storable.
Definition: TParameter.h:35
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
TSelectorScalar::Inc
void Inc(Long_t n=1)
Increment scalar value by n.
Definition: TSelectorScalar.cxx:29
TCollection
Collection abstract base class.
Definition: TCollection.h:63
Rtypes.h