FairRoot/PandaRoot
RhoEventInfo.cxx
Go to the documentation of this file.
1 // //
3 // RhoEventInfo //
4 // //
5 // Contains and provides access to summary information in the event //
6 // useful for analysis //
7 // //
8 // Author List: //
9 // Marcel Kunze, RUB, Dec. 2k //
10 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
11 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
12 // //
14 
15 #include "RhoBase/RhoEventInfo.h"
16 #include <assert.h>
17 
19 
20 #include <iostream>
21 using namespace std;
22 
24  fMCIP ( 0 ),fBeamSpot ( RhoVector3Err() ),fPrimaryVertex (),fEventShape ( 0 )
25 {}
26 
27 //--------------
28 // Destructor --
29 //--------------
30 
32 {
33  delete fPrimaryVertex;
34  delete fMCIP;
35 }
36 
37 void
39 {
40  delete fPrimaryVertex;
41  fPrimaryVertex = inVtx;
42 // fPrimaryVertex = ( inVtx == 0 ) ? ( VAbsVertex* ) 0 : ( VAbsVertex* ) inVtx->Clone();
43 }
44 
45 const RhoVector3Err
47 {
48  return ( fPrimaryVertex == 0 ) ? RhoVector3Err ( TVector3 ( 0,0,0 ) ) :
50 }
51 void
52 RhoEventInfo::SetIPTruth ( const TLorentzVector& inVtx )
53 {
54  fMCIP=new TVector3 ( inVtx.X(),inVtx.Y(),inVtx.Z() );
55 }
56 
57 void
58 RhoEventInfo::SetIPTruth ( const TVector3& inVtx )
59 {
60  fMCIP=new TVector3 ( inVtx );
61 }
62 
63 void
65 {
66  fEventShape = eventShape;
67 }
68 //--------------
69 // Operations --
70 //--------------
71 
73 {
74 }
75 
77 {
78  a.PrintOn ( o );
79  return o;
80 }
81 
82 
RhoVector3Err * fPrimaryVertex
The beam spot w/ error matrix.
Definition: RhoEventInfo.h:89
std::ostream & operator<<(std::ostream &o, const PndEventInfo &a)
TVector3 * fMCIP
The CMS frame.
Definition: RhoEventInfo.h:87
void SetPrimaryVertex(RhoVector3Err *inVtx)
void SetIPTruth(const TLorentzVector &inVtx)
Int_t a
Definition: anaLmdDigi.C:126
const RhoVector3Err PrimaryVertex() const
void SetEventShape(RhoEventShape *eventShape)
virtual ~RhoEventInfo()
virtual void PrintOn(std::ostream &o=std::cout) const
RhoEventShape * fEventShape
The primary vertex.
Definition: RhoEventInfo.h:91
ClassImp(PndAnaContFact)
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68