EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmMCResult.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmMCResult.h
1 /*
2  * CbmMCResult.h
3  *
4  * Created on: Dec 1, 2009
5  * Author: stockman
6  */
7 
8 #ifndef CBMMCRESULT_H_
9 #define CBMMCRESULT_H_
10 
11 #include "CbmDetectorList.h"
12 #include "CbmMCObject.h"
13 
14 #include<iostream>
15 
16 class CbmMCResult: public CbmMCObject {
17 public:
18  CbmMCResult();
20  CbmMCResult(const CbmMCResult& result):
21  CbmMCObject(result.GetStartType(), result.GetEntryVector()),
22  fStartType(result.GetStartType()),
23  fStopType(result.GetStopType())
24  {}
25 
26  virtual ~CbmMCResult();
27 
29  void SetStopType(DataType stop){fStopType = stop;}
30 
31  DataType GetStartType(void) const {return fStartType;}
32  DataType GetStopType(void) const {return fStopType;}
33 
35  CbmMCObject::operator=(result);
36  fStartType = result.fStartType;
37  fStopType = result.fStopType;
38  return *this;
39  // SetStage(result.GetEntryVector());
40  }
41 
42  virtual void Print(std::ostream& out = std::cout){ out << *this;}
43 
44  friend std::ostream& operator<< (std::ostream& out, const CbmMCResult& result){
45  out << "MC Link from: " << result.GetStartType() << " to " << result.GetStopType() << ":" << std::endl;
46  ((CbmMCObject)result).Print(out);
47  return out;
48  }
49 
50 
51 private:
54 
56 };
57 
58 #endif /* CbmMCResult_H_ */