Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
FWLite
src
branchToClass.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: FWLite
4
// Class : BranchToClass
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Wed Aug 2 09:04:04 EDT 2006
11
// $Id: branchToClass.cc,v 1.2 2007/06/14 21:03:37 wmtan Exp $
12
//
13
14
// system include files
15
class
TBranch;
16
class
TClass;
17
#include "TBranchBrowsable.h"
18
19
// user include files
20
#include "
FWCore/FWLite/src/branchToClass.h
"
21
22
namespace
{
23
class
BranchToClass :
private
TVirtualBranchBrowsable
24
{
25
26
public
:
27
static
TClass* doit(
const
TBranch* iBranch );
28
29
private
:
31
BranchToClass();
32
};
33
34
TClass*
35
BranchToClass::doit(
const
TBranch* iBranch )
36
{
37
TClass* contained = 0;
38
TClass*
type
= TVirtualBranchBrowsable::GetCollectionContainedType(iBranch,0,contained);
39
if
( type == 0) {
40
type = contained;
41
}
42
return
type
;
43
}
44
45
}
46
47
TClass*
48
branchToClass
(
const
TBranch* iBranch)
49
{
50
return
BranchToClass::doit(iBranch);
51
}
52
//
53
// constants, enums and typedefs
54
//
55
56
//
57
// static data member definitions
58
//
59
60
//
61
// constructors and destructor
62
//
type
type
Definition:
HCALResponse.h:21
branchToClass.h
branchToClass
TClass * branchToClass(const TBranch *iBranch)
Definition:
branchToClass.cc:48
Generated for CMSSW Reference Manual by
1.8.5