Professional Documents
Culture Documents
Summer2015 CPPTutorial 00
Summer2015 CPPTutorial 00
Execute simplest
Execute example_00.exe
example_03.h example_03.cc
polygon.h
C++ introduction ... example_04
example_04.cc
polygon.h
C++ introduction ... example_05
example_05.cc
I/O Class
Manager Class • Writing an algorithm requires minimal effort
Use I/O class and - Focus on “find hit from an waveform”
Read data file
executes algorithm
- Nothing else. No “data read”. No “make TH1”.
Algorithm base class - Algorithm becomes simple and readable
Defines analysis histograms • Algorithm base class for common features
GausHit Algorithm - All algorithms benefit from changes here
Find “gaussian hit” ‣ e.g.) Add a new histogram
LandauHit Algorithm • I/O class decouples data product dependency
Find “landau hit” - Simply replace I/O class for each fmwk
- No need to change the rest of the code
OK... let’s take a break here...
Any question?
Any coffee/donuts left?