hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MCEcalHit.cxx
Go to the documentation of this file.
1
7#include "MCEcalHit.h"
8
10
12 : TObject() {
13 }
14
18
19void MCEcalHit::Clear(Option_t* /* options */) {
20 TObject::Clear();
21}
22
23void MCEcalHit::setPosition(const double* position, bool rotate) {
24
25 //svt angle: it's already with minus sign.
26 float svtAngle = 30.5e-3;
27 //Rotate the the input position automatically to match with the SVT tracker system
28 if (rotate)
29 {
30 y_ = position[2];
31 z_ = position[1] * sin(svtAngle) + position[0]*cos(svtAngle);
32 x_ = position[1] * cos(svtAngle) - position[0]*sin(svtAngle);
33 }
34 else {
35 x_ = position[0];
36 y_ = position[1];
37 z_ = position[2];
38 }
39}
ClassImp(MCEcalHit) MCEcalHit
Definition MCEcalHit.cxx:9
Class used to encapsulate mc Ecal hit information.
void setPosition(const double *position, bool rotate=false)
Definition MCEcalHit.cxx:23
void Clear(Option_t *option="")
Definition MCEcalHit.cxx:19
double z_
Definition MCEcalHit.h:115
double y_
Definition MCEcalHit.h:112
double x_
Definition MCEcalHit.h:109
virtual ~MCEcalHit()
Definition MCEcalHit.cxx:15