HeavyFlavorAnalysis
RecoDecay
interface
BPHGenericPtr.h
Go to the documentation of this file.
1
#ifndef HeavyFlavorAnalysis_RecoDecay_BPHGenericPtr_h
2
#define HeavyFlavorAnalysis_RecoDecay_BPHGenericPtr_h
3
4
#include <memory>
5
template
<
class
T>
6
class
BPHGenericPtr
{
7
public
:
8
typedef
typename
std::shared_ptr<T>
type
;
9
template
<
class
... Args>
10
static
type
create
(Args&&...
args
) {
11
return
std::make_shared<T>(
args
...);
12
}
13
};
14
15
#endif
writedatasetfile.args
args
Definition:
writedatasetfile.py:18
BPHGenericPtr::type
std::shared_ptr< T > type
Definition:
BPHGenericPtr.h:8
BPHGenericPtr
Definition:
BPHGenericPtr.h:6
BPHGenericPtr::create
static type create(Args &&... args)
Definition:
BPHGenericPtr.h:10
Generated for CMSSW Reference Manual by
1.8.16