@@ -34,6 +34,7 @@ EntryConfig::EntryConfig(const Axis& axis, Cuts* cuts, bool is_integral, const s
3434 name_ += " _integral" ;
3535 }
3636 InitPlot ();
37+ Print ();
3738}
3839
3940EntryConfig::EntryConfig (const Axis& x, const Axis& y, Cuts* cuts, bool is_profile, const std::string& name)
@@ -43,6 +44,7 @@ EntryConfig::EntryConfig(const Axis& x, const Axis& y, Cuts* cuts, bool is_profi
4344{
4445 name_ = name.empty () ? Construct2DName () : name;
4546 InitPlot ();
47+ Print ();
4648}
4749
4850EntryConfig::EntryConfig (const Axis& x, Cuts* cuts_x, const Axis& y, Cuts* cuts_y, const std::string& name)
@@ -52,6 +54,7 @@ EntryConfig::EntryConfig(const Axis& x, Cuts* cuts_x, const Axis& y, Cuts* cuts_
5254{
5355 name_ = name.empty () ? Construct2DName () : name;
5456 InitPlot ();
57+ Print ();
5558}
5659
5760TH1* EntryConfig::CreateHisto1D () const {
@@ -158,5 +161,26 @@ std::string EntryConfig::GetDirectoryName() const {
158161 return name;
159162}
160163
164+ void EntryConfig::Print () const {
165+ using std::cout;
166+ using std::endl;
167+ using std::setw;
168+
169+ switch (type_) {
170+ case PlotType::kHisto1D : cout << setw (12 ) << " 1D histo" ; break ;
171+ case PlotType::kHisto2D : cout << setw (12 ) << " 2D histo" ; break ;
172+ case PlotType::kProfile : cout << setw (12 ) << " Profile" ; break ;
173+ case PlotType::kIntegral1D : cout << setw (12 ) << " Integral" ; break ;
174+ case PlotType::kIntegral2D : cout << setw (12 ) << " 2D integral" ; break ;
175+ }
176+ for (const auto & axis : axes_){
177+ axis.Print ();
178+ }
179+ if (entry_cuts_){
180+ cout << setw (15 ) << entry_cuts_->GetName ();
181+ }
182+ cout << endl;
183+ }
184+
161185}// namespace QA
162186}// namespace AnalysisTree
0 commit comments