Public Member Functions | Public Attributes | List of all members
CanMan Class Reference

Public Member Functions

 CanMan ()
 
TCanvas * NewCan (std::string name, std::string title)
 
TCanvas * NewCan (std::string nameTitle)
 
TCanvas * SaveCans (std::string prefix="", std::string suffix=".pdf")
 

Public Attributes

std::vector< TCanvas * > fCans
 

Detailed Description

Definition at line 53 of file numu_cut_flow.C.

Constructor & Destructor Documentation

CanMan::CanMan ( )
inline

Definition at line 56 of file numu_cut_flow.C.

56  :
57  fCans()
58  {}
std::vector< TCanvas * > fCans
Definition: numu_cut_flow.C:80

Member Function Documentation

TCanvas* CanMan::NewCan ( std::string  name,
std::string  title 
)
inline

Definition at line 60 of file numu_cut_flow.C.

Referenced by numu_cut_flow().

61  {
62  fCans.push_back(new TCanvas(name.c_str(), title.c_str()));
63  return fCans.back();
64  }
std::vector< TCanvas * > fCans
Definition: numu_cut_flow.C:80
const XML_Char * name
Definition: expat.h:151
TCanvas* CanMan::NewCan ( std::string  nameTitle)
inline

Definition at line 66 of file numu_cut_flow.C.

67  {
68  return NewCan(nameTitle, nameTitle);
69  }
TCanvas * NewCan(std::string name, std::string title)
Definition: numu_cut_flow.C:60
TCanvas* CanMan::SaveCans ( std::string  prefix = "",
std::string  suffix = ".pdf" 
)
inline

Definition at line 71 of file numu_cut_flow.C.

References allTimeWatchdog::can, and string.

Referenced by numu_cut_flow().

72  {
73  for(const auto& can:fCans)
74  {
75  std::string name = prefix + std::string(can->GetName()) + suffix;
76  can->SaveAs(name.c_str());
77  }
78  }
std::vector< TCanvas * > fCans
Definition: numu_cut_flow.C:80
const XML_Char * name
Definition: expat.h:151
const XML_Char * prefix
Definition: expat.h:380
enum BeamMode string

Member Data Documentation

std::vector<TCanvas*> CanMan::fCans

Definition at line 80 of file numu_cut_flow.C.


The documentation for this class was generated from the following file: