FairRoot/PandaRoot
PndDrcHit.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcHit source file -----
3 // ----- Created 12/11/07 by Annalisa Cecchi -----
4 // ----- -----
5 // ----- -----
6 // -------------------------------------------------------------------------
7 #include <iostream>
8 
9 using std::cout;
10 using std::endl;
11 
12 #include "PndDrcHit.h"
13 
14 // ----- Default constructor -------------------------------------------
16  :FairHit(),
17  fSensorId(-999),
18  fThetaC(-999.),
19  fErrThetaC(-999.)
20 {
21 }
22 // -------------------------------------------------------------------------
23 
24 
25 // ----- Standard constructor ------------------------------------------
26 
27 PndDrcHit::PndDrcHit(Int_t detID,
28  Int_t sensorId,
29  TVector3& pos,
30  TVector3& dpos,
32  Double_t errThetaC,
33  Int_t index)
34  :FairHit(detID, pos, dpos, index),
35  fSensorId (sensorId),
36  fThetaC (thetaC),
37  fErrThetaC (errThetaC)
38 {
39 }
40 
41 // ----- Destructor ----------------------------------------------------
43 // -------------------------------------------------------------------------
44 
45 
46 // ----- Public method Print -------------------------------------------
47 void PndDrcHit::Print(const Option_t* opt) const {
48  (void)opt; // to remove "unused" warnings
49  cout << "DIRC hit: ThetaC = " << fThetaC << endl;
50 }
51 // -------------------------------------------------------------------------
52 
TVector3 pos
virtual ~PndDrcHit()
Definition: PndDrcHit.cxx:42
Double_t fThetaC
Definition: PndDrcHit.h:52
Double_t
ClassImp(PndAnaContFact)
virtual void Print(const Option_t *opt="") const
Definition: PndDrcHit.cxx:47
Double_t thetaC
Definition: plot_dirc.C:16