Belle II Software  release-05-02-19
StudyMaterialEffectsModule.h
1 #pragma once
2 
3 #include <framework/core/Module.h>
4 #include <framework/datastore/StoreArray.h>
5 #include <framework/datastore/StoreObjPtr.h>
6 #include <framework/pcore/RootMergeable.h>
7 
8 #include <tracking/spacePointCreation/SpacePoint.h>
9 
10 #include <svd/dataobjects/SVDTrueHit.h>
11 
12 #include <TTree.h>
13 #include <TFile.h>
14 
15 
16 namespace Belle2 {
26 
27  public:
28 
31 
33  void initialize() override;
35  void event() override;
37  void terminate() override;
38 
39 
40 
42  B2Vector3D getGlobalPosition(const SVDTrueHit* trueHit, VxdID vxdID, bool useEntry);
43 
45  B2Vector3D getGlobalMomentumVector(const SVDTrueHit* trueHit, VxdID vxdID, bool useEntry);
46 
48  const SVDTrueHit* getTrueHit(const SpacePoint& aSP);
49 
50  protected:
51 
52  //Member variables:
55 
58 
60  TFile* m_file = nullptr;
61 
63  double m_PhiL3L3 = 0;
64 
66  double m_PhiL3L4 = 0;
67 
69  double m_PhiL3L6 = 0;
70 
72  double m_ThetaL3L3 = 0;
73 
75  double m_ThetaL3L4 = 0;
76 
78  double m_ThetaL3L6 = 0;
79 
81  double m_ScatterAngleL3L3 = 0;
82 
84  double m_ScatterAngleL3L4 = 0;
85 
87  double m_ScatterAngleL3L6 = 0;
88 
91 
94 
97 
100 
103 
106 
108  double m_distXY = 0;
109 
111  double m_deltaPL3L3 = 0;
112 
114  double m_deltaPL3L4 = 0;
115 
117  double m_deltaPL3L6 = 0;
118 
121  };
123 } // end namespace Belle2
124 
Belle2::StudyMaterialEffectsModule::m_ScatterAngleL3L4
double m_ScatterAngleL3L4
residual of hit.scatteringAngle (sqrt(theta^2 + phi^2)) between layer 3 begin and 4 begin.
Definition: StudyMaterialEffectsModule.h:84
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::StudyMaterialEffectsModule::m_deltaPL3L6
double m_deltaPL3L6
residual of hit.momentum between layer 3 begin and 6 end.
Definition: StudyMaterialEffectsModule.h:117
Belle2::StudyMaterialEffectsModule::m_ScatterAngleGradL3L6
double m_ScatterAngleGradL3L6
residual of hit.scatteringAngle ((outerHit-innerHit).Angle(innerHit))*180/pi between layer 3 begin an...
Definition: StudyMaterialEffectsModule.h:96
Belle2::StudyMaterialEffectsModule::m_distXY
double m_distXY
residual of hit distance between layer 3 begin and 4 begin.
Definition: StudyMaterialEffectsModule.h:108
Belle2::StudyMaterialEffectsModule::m_ScatterAngleGradL3L4
double m_ScatterAngleGradL3L4
residual of hit.scatteringAngle ((outerHit-innerHit).Angle(innerHit))*180/pi between layer 3 begin an...
Definition: StudyMaterialEffectsModule.h:93
Belle2::StudyMaterialEffectsModule::m_spacePoints
StoreArray< Belle2::SpacePoint > m_spacePoints
Space Points.
Definition: StudyMaterialEffectsModule.h:54
Belle2::StudyMaterialEffectsModule::m_ThetaL3L6
double m_ThetaL3L6
residual of hit.theta between layer 3 begin and 6 end.
Definition: StudyMaterialEffectsModule.h:78
Belle2::SVDTrueHit
Class SVDTrueHit - Records of tracks that either enter or leave the sensitive volume.
Definition: SVDTrueHit.h:35
Belle2::StudyMaterialEffectsModule::m_PhiL3L3
double m_PhiL3L3
residual of hit.phi between layer 3 begin and 3 end.
Definition: StudyMaterialEffectsModule.h:63
Belle2::StudyMaterialEffectsModule::m_tree
StoreObjPtr< RootMergeable< TTree > > m_tree
ROOT Tree.
Definition: StudyMaterialEffectsModule.h:57
Belle2::SpacePoint
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:52
Belle2::B2Vector3< double >
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::StudyMaterialEffectsModule::getGlobalMomentumVector
B2Vector3D getGlobalMomentumVector(const SVDTrueHit *trueHit, VxdID vxdID, bool useEntry)
takes SVDTrueHit and sensorID to get global momentum of the hit.
Definition: StudyMaterialEffectsModule.cc:192
Belle2::StudyMaterialEffectsModule
StudyMaterialEffectsModule.
Definition: StudyMaterialEffectsModule.h:25
Belle2::StudyMaterialEffectsModule::StudyMaterialEffectsModule
StudyMaterialEffectsModule()
Constructor.
Definition: StudyMaterialEffectsModule.cc:21
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::StudyMaterialEffectsModule::m_PhiL3L6
double m_PhiL3L6
residual of hit.phi between layer 3 begin and 6 end.
Definition: StudyMaterialEffectsModule.h:69
Belle2::StudyMaterialEffectsModule::m_PhiL3L4
double m_PhiL3L4
residual of hit.phi between layer 3 begin and 4 begin.
Definition: StudyMaterialEffectsModule.h:66
Belle2::StudyMaterialEffectsModule::m_file
TFile * m_file
a pointer to the file where the Tree shall be stored.
Definition: StudyMaterialEffectsModule.h:60
Belle2::StudyMaterialEffectsModule::m_deltaPL3L4
double m_deltaPL3L4
residual of hit.momentum between layer 3 begin and 4 begin.
Definition: StudyMaterialEffectsModule.h:114
Belle2::StudyMaterialEffectsModule::m_deltaPL3L3
double m_deltaPL3L3
residual of hit.momentum between layer 3 begin and 3 end.
Definition: StudyMaterialEffectsModule.h:111
Belle2::StudyMaterialEffectsModule::getGlobalPosition
B2Vector3D getGlobalPosition(const SVDTrueHit *trueHit, VxdID vxdID, bool useEntry)
takes SVDTrueHit and sensorID to get global position of the hit.
Definition: StudyMaterialEffectsModule.cc:160
Belle2::StudyMaterialEffectsModule::initialize
void initialize() override
Init the module.
Definition: StudyMaterialEffectsModule.cc:29
Belle2::StudyMaterialEffectsModule::m_COUNTERsuccessfullEvents
int m_COUNTERsuccessfullEvents
Counter for successfully processed events.
Definition: StudyMaterialEffectsModule.h:120
Belle2::StudyMaterialEffectsModule::m_ScatterAngleV3GradL3L3
double m_ScatterAngleV3GradL3L3
residual of hit.scatteringAngle ((outerHit.Momentum).Angle(innerHit.Momentum))*180/pi between layer 3...
Definition: StudyMaterialEffectsModule.h:99
Belle2::StudyMaterialEffectsModule::m_ScatterAngleV3GradL3L6
double m_ScatterAngleV3GradL3L6
residual of hit.scatteringAngle (outerHit.Momentum).Angle(innerHit.Momentum))*180/pi between layer 3 ...
Definition: StudyMaterialEffectsModule.h:105
Belle2::StudyMaterialEffectsModule::m_ScatterAngleGradL3L3
double m_ScatterAngleGradL3L3
residual of hit.scatteringAngle ((outerHit-innerHit).Angle(innerHit))*180/pi between layer 3 begin an...
Definition: StudyMaterialEffectsModule.h:90
Belle2::StudyMaterialEffectsModule::m_ScatterAngleV3GradL3L4
double m_ScatterAngleV3GradL3L4
residual of hit.scatteringAngle (outerHit.Momentum).Angle(innerHit.Momentum))*180/pi between layer 3 ...
Definition: StudyMaterialEffectsModule.h:102
Belle2::StudyMaterialEffectsModule::m_ThetaL3L3
double m_ThetaL3L3
residual of hit.theta between layer 3 begin and 3 end.
Definition: StudyMaterialEffectsModule.h:72
Belle2::StoreArray< Belle2::SpacePoint >
Belle2::StudyMaterialEffectsModule::m_ThetaL3L4
double m_ThetaL3L4
residual of hit.theta between layer 3 begin and 4 begin.
Definition: StudyMaterialEffectsModule.h:75
Belle2::StudyMaterialEffectsModule::terminate
void terminate() override
Don't break the terminal.
Definition: StudyMaterialEffectsModule.cc:147
Belle2::StudyMaterialEffectsModule::getTrueHit
const SVDTrueHit * getTrueHit(const SpacePoint &aSP)
takes SpacePoint to get the (first) corresponding trueHit connected to the same particle.
Definition: StudyMaterialEffectsModule.cc:174
Belle2::StudyMaterialEffectsModule::m_ScatterAngleL3L6
double m_ScatterAngleL3L6
residual of hit.scatteringAngle (sqrt(theta^2 + phi^2)) between layer 3 begin and 6 end.
Definition: StudyMaterialEffectsModule.h:87
Belle2::StudyMaterialEffectsModule::m_ScatterAngleL3L3
double m_ScatterAngleL3L3
residual of hit.scatteringAngle (sqrt(theta^2 + phi^2)) between layer 3 begin and 3 end.
Definition: StudyMaterialEffectsModule.h:81
Belle2::StudyMaterialEffectsModule::event
void event() override
Show progress.
Definition: StudyMaterialEffectsModule.cc:66