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
04275504
Commit
04275504
authored
14 years ago
by
matta
Browse files
Options
Downloads
Patches
Plain Diff
* Modify Template so it effectively read the Calibration
parent
4c399f64
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Inputs/DetectorConfiguration/Riken_65mm.detector
+1
-1
1 addition, 1 deletion
Inputs/DetectorConfiguration/Riken_65mm.detector
NPAnalysis/Template/src/Analysis.cc
+5
-4
5 additions, 4 deletions
NPAnalysis/Template/src/Analysis.cc
with
6 additions
and
5 deletions
Inputs/DetectorConfiguration/Riken_65mm.detector
+
1
−
1
View file @
04275504
...
...
@@ -128,7 +128,7 @@ VIS= all
%%%%%%%%%%%%%%%%%%%%%
%
AddThinSi
AddThinSi
%%%%%%%%%% Det 1 %%%%%%%%
ThinSi
A= 17.61 9.85 104.11
...
...
This diff is collapsed.
Click to expand it.
NPAnalysis/Template/src/Analysis.cc
+
5
−
4
View file @
04275504
...
...
@@ -17,21 +17,22 @@ int main(int argc, char** argv)
myOptionManager
->
SetDetectorFile
(
name
);
}
// Instantiate RootOutput
RootOutput
::
getInstance
(
"Analysis/Template_AnalyzedData"
,
"AnalysedTree"
);
// get input files from NPOptionManager
string
detectorfileName
=
myOptionManager
->
GetDetectorFile
();
string
calibrationfileName
=
myOptionManager
->
GetCalibrationFile
();
string
OutputfileName
=
myOptionManager
->
GetOutputFile
();
// Instantiate RootOutput
RootOutput
::
getInstance
(
"Analysis/"
+
OutputfileName
,
"AnalysedTree"
);
// Instantiate the Calibration Manger using a file
CalibrationManager
*
myCalibration
=
CalibrationManager
::
getInstance
(
calibrationfileName
);
// Instantiate the detector using a file
NPA
::
DetectorManager
*
myDetector
=
new
DetectorManager
();
myDetector
->
ReadConfigurationFile
(
detectorfileName
);
myCalibration
->
LoadParameterFromFile
();
// Get the formed Chained Tree and Treat it
TChain
*
Chain
=
RootInput
::
getInstance
()
->
GetChain
();
...
...
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