Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JZCaPA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
zcitron
JZCaPA
Commits
14b92a44
Commit
14b92a44
authored
6 years ago
by
Chad Stephen Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Revert "New constructor and LoadConfigFile returns vector"
This reverts commit
536dcf09
parent
62b9078c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Analysis/src/DataReader.cpp
+3
-12
3 additions, 12 deletions
Analysis/src/DataReader.cpp
with
3 additions
and
12 deletions
Analysis/src/DataReader.cpp
+
3
−
12
View file @
14b92a44
...
...
@@ -28,15 +28,6 @@ DataReader::DataReader() : DataReader( 0, 0, "", 0 ){
}
/** @brief Constructor for DataReader.
*
* @param1 Run number being used.
*/
DataReader
::
DataReader
(
const
uint
runNum
)
:
m_runNumber
(
runNum
),
m_readListOfFiles
(
false
),
m_fIn
(
NULL
){
}
/** @brief Constructor for DataReader.
*
* @param1 Number of channels being read
...
...
@@ -112,7 +103,7 @@ void DataReader::ReadListOfFiles( std::string listname ){
m_fListOfFiles
=
listname
;
}
v
ector
<
Channel
>
DataReader
::
LoadConfigurationFile
(
std
::
string
_inFile
=
"${JCaPA}/Utils/ConfigFile2018.xml"
){
v
oid
DataReader
::
LoadConfigurationFile
(
std
::
string
_inFile
){
//Temporary implementation - objects will be just created within this method and loaded here.
//TODO: incorporate them in a data-member or better in a ZDC and RPD objects inheriting from a Detector class and return them
...
...
@@ -135,7 +126,7 @@ vector< Channel > DataReader::LoadConfigurationFile(std::string _inFile = "${JCa
m_XMLparser
->
getChildValue
(
"channel"
,
i
,
"end_run"
,
last_run
);
//Discard entries for any channel that does not apply to our run
if
(
m_runNumber
>
first_run
||
m_runNumber
<
last_run
)
continue
;
if
(
m_runNumber
<
first_run
||
m_runNumber
>
last_run
)
continue
;
//If the entry applies, we store it in the vector
m_XMLparser
->
getChildValue
(
"channel"
,
i
,
"detector"
,
buffer_ch
.
detector
);
...
...
@@ -153,7 +144,7 @@ vector< Channel > DataReader::LoadConfigurationFile(std::string _inFile = "${JCa
std
::
cout
<<
"Loaded "
<<
channelEntries
.
size
()
<<
" configuration entries "
<<
std
::
endl
;
return
channelEntries
;
}
...
...
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