FairRoot/PandaRoot
PndDocuSample.cxx
Go to the documentation of this file.
1 #include <iostream>
2 #include <string>
3 
4 #include "PndDocuSample.h"
5 
7  fInitialized(false) {};
8 
9 PndDocuSample::PndDocuSample(std::string _s, int _i) :
10  fString(_s),
11  fNumber(_i),
12  fInitialized(true) {
13  PrintValues();
14 }
15 
21  std::cout << "Values are currently set to: " << std::endl;
22  std::cout << " fString: " << fString << std::endl;
23  std::cout << " fNumber: " << fNumber << std::endl;
24 }
25 
31  fNumber *= fNumber;
32 }
33 
38  fString += fString;
39 }
40 
PndDocuSample()
Default constructor does not need much of a description.
void PrintValues()
You can either document in the header file...
std::string fString
This more verbose method can be used as well.
int fNumber
This is the fastest, though.
void SquareNumber()
Squares the current number.
Documentation Sample Class.
Definition: PndDocuSample.h:77
void AddString()
Adds the current string to itself.
ClassImp(PndAnaContFact)