File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ void EntryConfig::InitPlot() {
192192void EntryConfig::Set2DName (const std::string& name) {
193193 name_ = name.empty () ? Form (" %s_%s" , axes_[0 ].GetName (), axes_[1 ].GetName ()) : name;
194194 if (name.empty ()) {
195- name_ += " _" + entry_cuts_name_;
195+ if (!entry_cuts_name_.empty ()) {
196+ name_ += " _" + entry_cuts_name_;
197+ }
196198
197199 if (!var4weight_.GetName ().empty () && var4weight_.GetFields ().at (0 ).GetName () != " ones" ) {
198200 name_ += " _weight_" + var4weight_.GetName ();
@@ -225,7 +227,9 @@ std::string EntryConfig::GetDirectoryName() const {
225227 for (auto it = ++branches.begin (); it != branches.end (); ++it) {
226228 name += " _" + *it;
227229 }
228- name += " _" + entry_cuts_name_;
230+ if (!entry_cuts_name_.empty ()) {
231+ name += " _" + entry_cuts_name_;
232+ }
229233 if (!var4weight_.GetName ().empty () && var4weight_.GetFields ().at (0 ).GetName () != " ones" ) {
230234 name += " _weight_" + var4weight_.GetName ();
231235 }
You can’t perform that action at this time.
0 commit comments