CMS 3D CMS Logo

Classes | Functions
hist_helper Namespace Reference

Classes

struct  no_deleter
 

Functions

template<typename T >
std::shared_ptr< Tmake_non_owning (T *iT)
 
template<typename T >
std::shared_ptr< Tmake_non_owning_cast (TObject *iT)
 

Function Documentation

◆ make_non_owning()

template<typename T >
std::shared_ptr<T> hist_helper::make_non_owning ( T iT)

Definition at line 25 of file Histograms.h.

25  {
26  return std::shared_ptr<T>(iT, no_deleter());
27  }

◆ make_non_owning_cast()

template<typename T >
std::shared_ptr<T> hist_helper::make_non_owning_cast ( TObject *  iT)

Definition at line 30 of file Histograms.h.

Referenced by hDeltaR::hDeltaR(), hDigis::hDigis(), hHits::hHits(), hMuonStat::hMuonStat(), hParam::hParam(), hTDelay::hTDelay(), hTimes< hTime >::hTimes(), and hTOF::hTOF().

30  {
31  return std::shared_ptr<T>(dynamic_cast<T *>(iT), no_deleter());
32  }
long double T