Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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// mergeable. 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
33class TCollection;
34
35class TSelectorScalar : public TParameter<Long64_t> {
36
37public:
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) // Mergeable scalar
46};
47
48
49#endif
int Int_t
Definition RtypesCore.h:45
long Long_t
Definition RtypesCore.h:54
long long Long64_t
Definition RtypesCore.h:80
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
Collection abstract base class.
Definition TCollection.h:65
Named parameter, streamable and storable.
Definition TParameter.h:35
Named scalar type, based on Long64_t, streamable, storable and mergeable.
TSelectorScalar(const char *name="", Long64_t val=0)
Int_t Merge(TCollection *list)
Merge scalars with scalars in the list.
void Inc(Long_t n=1)
Increment scalar value by n.
const Int_t n
Definition legend1.C:16