Belle II Software  release-05-01-25
TBranchLeafType.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Eugenio Paoloni *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <RtypesCore.h>
14 
15 namespace Belle2 {
20  inline char TBranchLeafType(const char*) { return 'C'; };
22 
24  inline char TBranchLeafType(const Char_t&) { return 'B'; };
25 
27  inline char TBranchLeafType(const unsigned char&) { return 'b'; };
28 
30  inline char TBranchLeafType(const short&) { return 'S'; };
31 
33  inline char TBranchLeafType(const unsigned short&) { return 's'; };
34 
36  inline char TBranchLeafType(const Int_t&) { return 'I'; };
37 
39  inline char TBranchLeafType(const UInt_t&) { return 'i'; };
40 
42  inline char TBranchLeafType(const Float_t&) { return 'F'; };
43 
45  inline char TBranchLeafType(const Double_t&) { return 'D'; };
46 
48  inline char TBranchLeafType(const long int&) { return 'L'; };
49 
51  inline char TBranchLeafType(const unsigned long int&) { return 'l'; };
52 
54  inline char TBranchLeafType(const bool&) { return 'O'; };
56 }
Belle2::TBranchLeafType
char TBranchLeafType(const char *)
Overloading TBranchLeafType to be able to get identifier 'C' for type char*.
Definition: TBranchLeafType.h:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19