// @(#)root/tree:$Id$
// Author: Maarten Ballintijn   13/02/2005

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TSelectorScalar
#define ROOT_TSelectorScalar


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TSelectorScalar                                                      //
//                                                                      //
// Named scalar type, based on Long64_t, streamable, storable and       //
// mergable. Ideally to be used in tree selectors in the PROOF          //
// environment due to its merge functionality which allows a single     //
// merged value to be returned to the user.                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


#ifndef ROOT_TParameter
#include "TParameter.h"
#endif

#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif


class TCollection;

class TSelectorScalar : public TParameter<Long64_t> {

public:
   TSelectorScalar(const char *name = "", Long64_t val = 0)
             : TParameter<Long64_t>(name, val) { }
   ~TSelectorScalar() { }

   void     Inc(Long_t n = 1);
   Int_t    Merge(TCollection *list);

   ClassDef(TSelectorScalar,1)  //Mergable scalar
};


#endif
 TSelectorScalar.h:1
 TSelectorScalar.h:2
 TSelectorScalar.h:3
 TSelectorScalar.h:4
 TSelectorScalar.h:5
 TSelectorScalar.h:6
 TSelectorScalar.h:7
 TSelectorScalar.h:8
 TSelectorScalar.h:9
 TSelectorScalar.h:10
 TSelectorScalar.h:11
 TSelectorScalar.h:12
 TSelectorScalar.h:13
 TSelectorScalar.h:14
 TSelectorScalar.h:15
 TSelectorScalar.h:16
 TSelectorScalar.h:17
 TSelectorScalar.h:18
 TSelectorScalar.h:19
 TSelectorScalar.h:20
 TSelectorScalar.h:21
 TSelectorScalar.h:22
 TSelectorScalar.h:23
 TSelectorScalar.h:24
 TSelectorScalar.h:25
 TSelectorScalar.h:26
 TSelectorScalar.h:27
 TSelectorScalar.h:28
 TSelectorScalar.h:29
 TSelectorScalar.h:30
 TSelectorScalar.h:31
 TSelectorScalar.h:32
 TSelectorScalar.h:33
 TSelectorScalar.h:34
 TSelectorScalar.h:35
 TSelectorScalar.h:36
 TSelectorScalar.h:37
 TSelectorScalar.h:38
 TSelectorScalar.h:39
 TSelectorScalar.h:40
 TSelectorScalar.h:41
 TSelectorScalar.h:42
 TSelectorScalar.h:43
 TSelectorScalar.h:44
 TSelectorScalar.h:45
 TSelectorScalar.h:46
 TSelectorScalar.h:47
 TSelectorScalar.h:48
 TSelectorScalar.h:49
 TSelectorScalar.h:50
 TSelectorScalar.h:51
 TSelectorScalar.h:52
 TSelectorScalar.h:53