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

  • Thread starter Thread starter welatiger
  • Start date Start date
  • Tags Tags
    C++ Physicists
AI Thread Summary
A physicist specializing in High Energy Physics seeks recommendations for effective C++ programming textbooks to enhance their skills for software like ROOT and Pythia. Suggested titles include "Object Oriented Programming in C++" by Robert Lafore, "C++ Primer Plus" by Stephen Prata, and "Programming: Principles and Practice Using C++" by Bjarne Stroustrup. The discussion emphasizes the importance of practical application over theoretical concepts, suggesting that starting with a practical book like "C++ Primer" may be beneficial. The standard reference for C++ is noted to be "The C++ Programming Language" by Stroustrup, which is recommended for foundational knowledge. The conversation also touches on the idea that while physicists may not become experts in programming, they are capable of effectively using the language for their work.
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 Langauge 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
 


welatiger said:
so this will be useful and effective for physicists

Yes.
 

Similar threads

Replies
8
Views
3K
Replies
1
Views
3K
Back
Top