BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcGeom/test/Test.cxx
Go to the documentation of this file.
1
#include "CLHEP/Geometry/Point3D.h"
2
#include "MdcGeom/MdcDetector.h"
3
#include "MdcGeom/MdcSWire.h"
4
#include "MdcGeom/MdcSagTraj.h"
5
#include "MdcGeomSvc/MdcGeomSvc.h"
6
#include <iostream>
7
using namespace
std
;
8
9
int
main
() {
10
/* const std::string& name = " ";
11
ISvcLocator* svcloc = NULL ;
12
MdcGeomSvc fGeom(name, svcloc);
13
fGeom.initialize();
14
cout <<"dump"<<endl;
15
fGeom.Dump();
16
cout<<"Hi, event routine is running"<<endl;
17
cout<<"1st wire id:"<<fGeom.Wire(0)->Id()<<endl;
18
cout<<"2nd wire lyr id:"<<fGeom.Wire(1)->Lyr()->Id()<<endl;
19
cout<<"6860th wire lyr id:"<<fGeom.Wire(6859)->Lyr()->Id()<<endl;
20
fGeom.finalize();
21
*/
22
MdcDetector
det();
23
// HepPoint3D p1(78.906,6.21,393.);
24
// HepPoint3D p2(76.9631,-18.4772,-393.);
25
// HepPoint3D p2(76.906,6.21,-393.);
26
HepPoint3D
p1
( 0.0, 0.0, 393. );
27
HepPoint3D
p2
( 0.0, 0.0, -393. );
28
MdcSWire
wire(
p1
,
p2
, 0.5 );
29
const
MdcSagTraj
* trr = wire.
getTraj
();
30
MdcSagTraj
tr
( 0.5,
p1
,
p2
);
31
cout <<
tr
.sag() << endl;
32
cout <<
tr
.rawDirection() << endl;
33
cout <<
tr
.position( 300.0 ) << endl;
34
cout << trr->
sag
() << endl;
35
cout << trr->
rawDirection
() << endl;
36
cout << trr->
position
( 300.0 ) << endl;
37
}
p2
double p2[4]
Definition
BabayagaNLO.cxx:41
p1
double p1[4]
Definition
BabayagaNLO.cxx:41
HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition
CosmicGenerator.h:36
tr
DOUBLE_PRECISION tr[3]
Definition
EvtPhokharaDef.hh:63
main
int main()
Definition
Reconstruction/MdcPatRec/MdcGeom/test/Test.cxx:9
MdcDetector
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcDetector.h:18
MdcSWire
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcSWire.h:19
MdcSWire::getTraj
const MdcSagTraj * getTraj(void) const
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcSWire.h:32
MdcSagTraj
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcSagTraj.h:64
MdcSagTraj::rawDirection
const Hep3Vector & rawDirection(void) const
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcSagTraj.h:85
MdcSagTraj::position
HepPoint3D position(double) const
Definition
MdcSagTraj.cxx:111
MdcSagTraj::sag
double sag(void) const
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcSagTraj.h:78
std
Definition
x86_64-el9-gcc13-dbg/Event/RootEventData/RootEventDataDict.cxx:101
8.0.0
BOSS_Source
Reconstruction
MdcPatRec
MdcGeom
test
Test.cxx
Generated by
1.16.1