Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
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
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
jlab
hallc
analyzer_software
hcana
Commits
7a0a683e
Commit
7a0a683e
authored
13 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Start of a Hall C analyzer class
parent
a5a739a7
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
src/HallC_LinkDef.h
+1
-0
1 addition, 0 deletions
src/HallC_LinkDef.h
src/THcAnalyzer.cxx
+67
-0
67 additions, 0 deletions
src/THcAnalyzer.cxx
src/THcAnalyzer.h
+29
-0
29 additions, 0 deletions
src/THcAnalyzer.h
with
98 additions
and
1 deletion
Makefile
+
1
−
1
View file @
7a0a683e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# there must be a corresponding header file (*.h).
# there must be a corresponding header file (*.h).
SRC
=
src/THcInterface.cxx src/THcParmList.cxx
SRC
=
src/THcInterface.cxx src/THcParmList.cxx
src/THcAnalyzer.cxx
# Name of your package.
# Name of your package.
# The shared library that will be built will get the name lib$(PACKAGE).so
# The shared library that will be built will get the name lib$(PACKAGE).so
...
...
This diff is collapsed.
Click to expand it.
src/HallC_LinkDef.h
+
1
−
0
View file @
7a0a683e
...
@@ -8,5 +8,6 @@
...
@@ -8,5 +8,6 @@
#pragma link C++ class THcInterface+;
#pragma link C++ class THcInterface+;
#pragma link C++ class THcParmList+;
#pragma link C++ class THcParmList+;
#pragma link C++ class THcAnalyzer+;
#endif
#endif
This diff is collapsed.
Click to expand it.
src/THcAnalyzer.cxx
0 → 100644
+
67
−
0
View file @
7a0a683e
//*-- Author : Stephen Wood 13-March-2012
//////////////////////////////////////////////////////////////////////////
//
// THcAnalyzer
//
// THcAnalyzer is the base class for a "Hall C analyzer" class.
// An analyzer defines the basic actions to perform during analysis.
// THcAnalyzer is the default analyzer that is used if no user class is
// defined. It performs a standard analysis consisting of
//
// 1. Decoding/Calibrating
// 2. Track Reconstruction
// 3. Physics variable processing
//
// At the end of each step, testing and histogramming are done for
// the appropriate block defined in the global test/histogram lists.
//
// Hall C has their own analyzer class because some things are bound to
// be different.
//
//////////////////////////////////////////////////////////////////////////
#include
"THcAnalyzer.h"
#include
"THaBenchmark.h"
#include
"TList.h"
#include
<fstream>
#include
<algorithm>
#include
<iomanip>
#include
<cstring>
using
namespace
std
;
// Pointer to single instance of this object
//THcAnalyzer* THcAnalyzer::fgAnalyzer = 0;
//FIXME:
// do we need to "close" scalers/EPICS analysis if we reach the event limit?
//_____________________________________________________________________________
THcAnalyzer
::
THcAnalyzer
()
{
THaAnalyzer
();
}
//_____________________________________________________________________________
THcAnalyzer
::~
THcAnalyzer
()
{
// Destructor.
Close
();
delete
fPostProcess
;
//deletes PostProcess objects
delete
fBench
;
delete
[]
fStages
;
delete
[]
fCounters
;
if
(
fgAnalyzer
==
this
)
fgAnalyzer
=
NULL
;
}
//_____________________________________________________________________________
ClassImp
(
THcAnalyzer
)
This diff is collapsed.
Click to expand it.
src/THcAnalyzer.h
0 → 100644
+
29
−
0
View file @
7a0a683e
#ifndef ROOT_THcAnalyzer
#define ROOT_THcAnalyzer
//////////////////////////////////////////////////////////////////////////
//
// THcAnalyzer
//
//////////////////////////////////////////////////////////////////////////
#include
"THaAnalyzer.h"
class
THcAnalyzer
:
public
THaAnalyzer
{
public:
THcAnalyzer
();
virtual
~
THcAnalyzer
();
protected:
private:
// THcAnalyzer( const THcAnalyzer& );
// THcAnalyzer& operator=( const THcAnalyzer& );
ClassDef
(
THcAnalyzer
,
0
)
//Hall C Analyzer Standard Event Loop
};
#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