20 #include "cetlib/search_path.h" 36 mf::LogWarning(
"CalorPad") <<
"CalorPad::" << fcn <<
" failed with message:\n" <<
e;
47 :
DrawingPad(name, title, x1, y1, x2, y2), fcurvetype(curvetype)
52 this->
Pad()->SetBit(kCannotPick);
53 this->
Pad()->SetBit(TPad::kCannotMove);
54 this->
Pad()->SetFillColor(kWhite);
55 this->
Pad()->SetLeftMargin(0.10);
56 this->
Pad()->SetRightMargin(0.025);
57 this->
Pad()->SetTopMargin(0.025);
58 this->
Pad()->SetBottomMargin(0.10);
124 this->
Pad()->Clear();
147 writeErrMsg(
"Draw->DrawDeDx", e);
149 writeErrMsg(
"Draw->DrawKineticEnergy", e);
151 writeErrMsg(
"Draw->CalorShower", e);
205 TH1F* h = this->
Pad()->DrawFrame(0.0, 0.0, 25.0, ymax);
206 h->GetXaxis()->SetLabelSize(0.04);
207 h->GetXaxis()->SetTitleSize(0.04);
208 h->GetXaxis()->CenterTitle();
209 h->GetYaxis()->SetLabelSize(0.04);
210 h->GetYaxis()->SetTitleSize(0.04);
211 h->GetYaxis()->CenterTitle();
214 h->GetXaxis()->SetTitle(
"Residual Range (cm)");
215 h->GetYaxis()->SetTitle(
"dE/dx (MeV/cm)");
218 h->GetXaxis()->SetTitle(
"Total Range (cm)");
219 h->GetYaxis()->SetTitle(
"T (MeV)");
224 cet::search_path sp(
"FW_SEARCH_PATH");
227 <<
"cannot find the root template file: \n" 254 ke_range_ka = (TGraph*)file->Get(
"kinen_range_ka");
255 ke_range_pi = (TGraph*)file->Get(
"kinen_range_pi");
256 ke_range_mu = (TGraph*)file->Get(
"kinen_range_mu");
AnalysisBaseDrawer * AnalysisBaseDraw()
void DrawDeDx(const art::Event &evt, evdb::View2D *view)
Class to aid in the rendering of AnalysisBase objects.
const art::Event * GetEvent() const
void Draw(const char *opt=0)
Float_t y1[n_points_granero]
TGraph * ke_range_pi
pion template
Float_t x1[n_points_granero]
evdb::View2D * fView
Collection of graphics objects to render; text labels.
TGraph * dedx_range_pi
pion template
A collection of drawable 2-D objects.
Singleton to hold the current art::Event for the event display.
Float_t y2[n_points_geant4]
std::string fCalorTemplateFileName
files that have calorimetry template curves
static EventHolder * Instance()
Drawing pad showing calorimetric particle ID information.
CalorPad(const char *name, const char *title, double x1, double y1, double x2, double y2, int curvetype)
Base class for event display drawing pads.
TGraph * ke_range_ka
kaon template
TGraph * ke_range_pro
proton template
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
TPad * fPad
The ROOT graphics pad.
TGraph * dedx_range_ka
kaon template
void CalorShower(const art::Event &evt, evdb::View2D *view)
Float_t x2[n_points_geant4]
TGraph * ke_range_mu
muon template
TGraph * dedx_range_mu
muon template
void DrawKineticEnergy(const art::Event &evt, evdb::View2D *view)
TGraph * dedx_range_pro
proton template
cet::coded_exception< error, detail::translate > exception