Belle II Software development
TBranchLeafType.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <RtypesCore.h>
12
13namespace Belle2 {
19 inline char TBranchLeafType(const char*) { return 'C'; };
20
22 inline char TBranchLeafType(const Char_t&) { return 'B'; };
23
25 inline char TBranchLeafType(const unsigned char&) { return 'b'; };
26
28 inline char TBranchLeafType(const short&) { return 'S'; };
29
31 inline char TBranchLeafType(const unsigned short&) { return 's'; };
32
34 inline char TBranchLeafType(const Int_t&) { return 'I'; };
35
37 inline char TBranchLeafType(const UInt_t&) { return 'i'; };
38
40 inline char TBranchLeafType(const Float_t&) { return 'F'; };
41
43 inline char TBranchLeafType(const Double_t&) { return 'D'; };
44
46 inline char TBranchLeafType(const long int&) { return 'L'; };
47
49 inline char TBranchLeafType(const unsigned long int&) { return 'l'; };
50
52 inline char TBranchLeafType(const bool&) { return 'O'; };
54}
char TBranchLeafType(const char *)
Overloading TBranchLeafType to be able to get identifier 'C' for type char*.
Abstract base class for different kinds of events.