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
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) //Mergable scalar
46};
47
48
49#endif
int Int_t
Definition: RtypesCore.h:41
long Long_t
Definition: RtypesCore.h:50
long long Long64_t
Definition: RtypesCore.h:69
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
Collection abstract base class.
Definition: TCollection.h:63
Named parameter, streamable and storable.
Definition: TParameter.h:37
Named scalar type, based on Long64_t, streamable, storable and mergable.
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