DAS  3.0
Das Analysis System
MyTUnfoldDensity.h
Go to the documentation of this file.
1 #ifndef H_MYTUNFOLDDENSITY
2 #define H_MYTUNFOLDDENSITY
3 
4 #include <TH2.h>
5 #include <TUnfoldDensity.h>
6 
7 namespace DAS::Unfolding {
8 
12 class MyTUnfoldDensity : public TUnfoldDensity {
13 
14 public:
15 
20  TH2 * GetA (const char * name)
21  {
22  auto h = new TH2D(name, "probability matrix", fA->GetNrows(), 0.5, 0.5+fA->GetNrows() ,
23  fA->GetNcols(), 0.5, 0.5+fA->GetNcols());
24  for (int i = 0; i < fA->GetNrows(); ++i)
25  for (int j = 0; j < fA->GetNcols(); ++j) {
26  double content = (*fA)[i][j];
27  h->SetBinContent(i+1,j+1,content);
28  }
29  return h;
30  }
31 
34  template<class ...Args> Bool_t MyAddRegularisationCondition (Args ...args)
35  {
36  return AddRegularisationCondition(args...);
37  }
38 
41  template<class ...Args> MyTUnfoldDensity (Args ...args) :
42  TUnfoldDensity(args...)
43  {}
44 };
45 
46 }
47 #endif
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
DAS::Unfolding::MyTUnfoldDensity::GetA
TH2 * GetA(const char *name)
Definition: MyTUnfoldDensity.h:20
DAS::Unfolding::MyTUnfoldDensity::MyAddRegularisationCondition
Bool_t MyAddRegularisationCondition(Args ...args)
Variadic template to access TUnfoldDensity::AddRegularisationCondition
Definition: MyTUnfoldDensity.h:34
Ntupliser_cfg.args
args
Definition: Ntupliser_cfg.py:11
DAS::Unfolding
Definition: getToyCalculation.cc:37
DAS::Unfolding::MyTUnfoldDensity
Definition: MyTUnfoldDensity.h:12
DAS::Unfolding::MyTUnfoldDensity::MyTUnfoldDensity
MyTUnfoldDensity(Args ...args)
Variadic template to access the constructor TUnfoldDensity::TUnfoldDensity
Definition: MyTUnfoldDensity.h:41