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
0124ce60
Commit
0124ce60
authored
4 years ago
by
gypaos
Browse files
Options
Downloads
Patches
Plain Diff
[CT] cleaning online.cpp
parent
5c04fb73
No related branches found
No related tags found
No related merge requests found
Pipeline
#89321
passed
4 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projects/ComptonTelescope/online/src/online.cpp
+5
-12
5 additions, 12 deletions
Projects/ComptonTelescope/online/src/online.cpp
with
5 additions
and
12 deletions
Projects/ComptonTelescope/online/src/online.cpp
+
5
−
12
View file @
0124ce60
...
...
@@ -23,7 +23,6 @@ int main()
// configure option manager
// NPOptionManager::getInstance()->Destroy();
// string arg = "-D ./ComptonCAM.detector -C Calibration.txt -GH -E Example2.reaction -P %i --circular",port);
string
arg
=
"-D ./ComptonCAM.detector -C calibrations.txt -GH -E ./10He.reaction --circular"
;
NPOptionManager
::
getInstance
(
arg
);
...
...
@@ -39,13 +38,7 @@ int main()
m_NPDetectorManager
->
InitializeRootOutput
();
// configure spectra server
// seems to be needed to stat manually since despite a message saying the
// server is started, it is not the case!! (to be investigated)
m_NPDetectorManager
->
SetSpectraServer
();
// check spectra
m_NPDetectorManager
->
CheckSpectraServer
();
// check if spectra server has some requests
// m_NPDetectorManager->GetSpectraServer()->CheckRequest();
// instantiate raw ComptonCAM data pointer
auto
ccamData
=
new
TComptonTelescopeData
();
...
...
@@ -125,18 +118,18 @@ int main()
usleep
(
100
);
//Simulated 10kHz count rate
}
//std::cout << "test compil\n";
// delete buffer
delete
[]
buffer
;
}
//
E
nd of main loop
}
//
e
nd of main loop
//
F
ill spectra
//
f
ill spectra
m_NPDetectorManager
->
WriteSpectra
();
//
Essential
//
delete DecodeR
delete
D
;
// Essential
#if __cplusplus > 199711L && NPMULTITHREADING
m_NPDetectorManager
->
StopThread
();
#endif
...
...
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