2 --------------------------------------------------------------
6 additional to the ALICE C++ Coding Conventions
8 1. Ordering of headers:
11 3. other packages (CLHEP, ODBMS, ROOT, ...)
12 4. system (eg. <iostrem.h>)
14 2. Use G4 basic type instead of "raw" types:
15 G4int, G4double, G4bool, G4String, ...
18 When implementation of inline methods is within two lines,
19 put it in the header file after the class
20 declaration in the header file (*.hh);
21 otherwise put it in a separated *.cc file.
23 4. Re-declare virtual member functions in a derived class
24 with a keyword virtual.
27 Place each section in the class declarations
28 (public, protected, private) in this order:
36 // static data members
38 Use comment line for all sections except for
39 constructors and destructors.
41 7. Implementation file:
42 declare class definitions in this order:
43 // static data members
48 Private definitions should be declared first,
49 then protected and public.
52 Use AliGlobal::Exception()/Warning(); (or TG4Global in TGeant4)
53 use this form of text:
54 class_name::method_name: exception/warning_text
57 Standard indention: 2 spaces;
58 Max. line length: 80 characters;
61 - default constructor - protected in suitable cases
62 (to prevent from creation of invalid objects)