er  dev
EREXP1811EventHeader.cxx
1 // ----- EREXP1811EventHeader source file -----
2 // ----- Created 03/16 by V. Schetinin -----
3 // -------------------------------------------------------------------------
4 #include "EREXP1811EventHeader.h"
5 
6 #include "FairLogger.h"
7 
8 void EREXP1811EventHeader::SetData(const TVector3& position, const TLorentzVector& He8,
9  const TLorentzVector& H2, const TLorentzVector& He3,
10  const TLorentzVector& H3,
11  const TLorentzVector& H7, const TLorentzVector& n1,
12  const TLorentzVector& n2, const TLorentzVector& n3,
13  const TLorentzVector& n4) {
14  fReactionPos = position;
15  fHe8 = He8;
16  fH2 = H2;
17  fHe3 = He3;
18  fH3 = H3;
19  fH7 = H7;
20  fn1 = n1;
21  fn2 = n2;
22  fn3 = n3;
23  fn4 = n4;
24 }
25 // -------------------------------------------------------------------------
26 void EREXP1811EventHeader::Clear() {
27  fHe8.SetXYZM(0, 0, 0, 0);
28  fH2.SetXYZM(0, 0, 0, 0);
29  fHe3.SetXYZM(0, 0, 0, 0);
30  fH3.SetXYZM(0, 0, 0, 0);
31  fH7.SetXYZM(0, 0, 0, 0);
32  fn1.SetXYZM(0, 0, 0, 0);
33  fn2.SetXYZM(0, 0, 0, 0);
34  fn3.SetXYZM(0, 0, 0, 0);
35  fn4.SetXYZM(0, 0, 0, 0);
36  fTrigger = 0;
37  fTriggerPriority = 0;
38 }
39 // -------------------------------------------------------------------------
40 
41 ClassImp(EREXP1811EventHeader)