Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
e018e56e
Commit
e018e56e
authored
4 years ago
by
gypaos
Browse files
Options
Downloads
Patches
Plain Diff
[CT] tests
parent
98f631c7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Projects/ComptonTelescope/online/src/online.C
+3
-3
3 additions, 3 deletions
Projects/ComptonTelescope/online/src/online.C
Projects/ComptonTelescope/online/src/online.cpp
+5
-4
5 additions, 4 deletions
Projects/ComptonTelescope/online/src/online.cpp
with
8 additions
and
7 deletions
Projects/ComptonTelescope/online/src/online.C
+
3
−
3
View file @
e018e56e
...
...
@@ -347,7 +347,7 @@ void online()
// sprintf(arg,"-D ./ComptonCAM.detector -C Calibration.txt -GH -E Example2.reaction -P %i --circular",port);
// sprintf(arg,"-D ./ComptonCAM.detector -C calibrations.txt -GH -E Example2.reaction --circular");
// sprintf(arg,"-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular");
/*
string arg = "-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular";
string
arg
=
"-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular"
;
NPOptionManager
::
getInstance
(
arg
);
// ROOT output file name
...
...
@@ -357,7 +357,7 @@ void online()
string
detectorfileName
=
NPOptionManager
::
getInstance
()
->
GetDetectorFile
();
cout
<<
"detector file name from NPOptionManager: "
<<
detectorfileName
<<
"
\n
"
;
NPL
::
DetectorManager
*
m_NPDetectorManager
=
new
NPL
::
DetectorManager
();
m_NPDetectorManager->ReadConfigurationFile(detectorfileName);
*/
//
m_NPDetectorManager->ReadConfigurationFile(detectorfileName);
/* m_NPDetectorManager->InitializeRootOutput();*/
// instantiate raw ComptonCAM data pointer
...
...
@@ -374,7 +374,7 @@ void online()
// Load a file
ifstream
is
;
is
.
open
(
"
decodeR
/mfm.bin"
,
ios
::
binary
);
is
.
open
(
"
..
/mfm.bin"
,
ios
::
binary
);
is
.
seekg
(
0
,
ios
::
end
);
int
length
=
is
.
tellg
();
is
.
seekg
(
0
,
ios
::
beg
);
...
...
This diff is collapsed.
Click to expand it.
Projects/ComptonTelescope/online/src/online.cpp
+
5
−
4
View file @
e018e56e
...
...
@@ -22,27 +22,28 @@ int main()
{
///////////////////////////////////////////////////////////////////////////
// configure option manager
//
NPOptionManager::getInstance()->Destroy();
// NPOptionManager::getInstance()->Destroy();
// char arg[1000];
// sprintf(arg,"-D ./ComptonCAM.detector -C Calibration.txt -GH -E Example2.reaction -P %i --circular",port);
// sprintf(arg,"-D ./ComptonCAM.detector -C calibrations.txt -GH -E Example2.reaction --circular");
// sprintf(arg,"-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular");
// string arg = "-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular";
string
arg
=
"-D ./Example1.detector -GH -E Example1.reaction"
;
string
arg
=
"-D ./Example1.detector -GH -E Example1.reaction
--circular
"
;
NPOptionManager
::
getInstance
(
arg
);
// ROOT output file name
RootOutput
::
getInstance
(
"OnlineTree.root"
,
"OnlineTree"
);
// configure detector manager
string
detectorfileName
=
NPOptionManager
::
getInstance
()
->
GetDetectorFile
();
cout
<<
"detector file name from NPOptionManager: "
<<
detectorfileName
<<
"
\n
"
;
NPL
::
DetectorManager
*
m_NPDetectorManager
=
new
NPL
::
DetectorManager
();
m_NPDetectorManager
->
ReadConfigurationFile
(
detectorfileName
);
//
m_NPDetectorManager->ReadConfigurationFile(detectorfileName);
// Essential!
#if __cplusplus > 199711L && NPMULTITHREADING
m_NPDetectorManager
->
StopThread
();
m_NPDetectorManager
->
StopThread
();
#endif
RootOutput
::
Destroy
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment