C++ for High Energy Physics: Reference and Textbook Guide

  • Thread starter Thread starter welatiger
  • Start date Start date
  • Tags Tags
    C++ Physicists
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 9K views
welatiger
Messages
85
Reaction score
0
Hi all;
I'm a physicist _High Energy Physics Major_ and i use some computer software that is based on C++ Programming language such as (ROOT data analysis frame work - Pythia event generator)
and i need a reference or textbook that learns me C++ effectively, i have some choices:

1)Object Oriented Programming in c++ by Robert Lafore.
2)C++ Primer Plus (6th Edition) (Developer's Library) by Stephen Prata.
3)Programming: Principles and Practice Using C++ by Bjarne Stroustrup.

can you help me ?
 
Physics news on Phys.org


This may help as a navigation thru the maze of C++ books:

http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

and

http://stackoverflow.com/questions/189090/a-good-c-book?lq=1

I remember using Bruce Eckels book Thinking in C++ some years ago and that it was well thought out.

ALso Scott Meyers Effective C++ was great for learning what works well and what doesn't.
 
Last edited by a moderator:


Just start already. ;)

Experience teaches me that physicists never become great programmers who know all the ins and outs of a computer language.
They don't have the patience and neatness required.

Fortunately, physicists usually do know how to get the job done.
Just start using the language for practical purposes and you're set to go.
Perhaps look up a couple of examples using keywords that apply to you and combine them with the keyword C++ (yes, google recognizes it as a separate keyword).
 


thank you for your replies,

I understand from your words that the concepts of ​​programming may not be useful for me, it may be a later a stage, so i must read a practical book such as the 2nd one ( C++ Primer).
 


The standard work is "The C++ Programming Language" by Bjarne Stroustrup who invented the language.
That's the one I recommend to start with.

"Object Oriented" comes later imo.
That's what you will need if you want to scale your work up.
 


I like Serena said:
The standard work is "The C++ Programming Language" by Bjarne Stroustrup who invented the language.

so this will be useful and effective for physicists