Logo ROOT   6.12/07
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
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)
Increment scalar value by n.
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:320
Named parameter, streamable and storable.
Definition: TParameter.h:37
TSelectorScalar(const char *name="", Long64_t val=0)
Collection abstract base class.
Definition: TCollection.h:63
long Long_t
Definition: RtypesCore.h:50
const Int_t n
Definition: legend1.C:16
char name[80]
Definition: TGX11.cxx:109