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
Riccardo Longo
JZCaPA
Commits
af461ba6
Commit
af461ba6
authored
5 years ago
by
Chad Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Created AnalysisManager class in the style of examples/analysis/AnaEx01
parent
53fee4ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MonteCarlo/include/AnalysisManager.hh
+47
-2
47 additions, 2 deletions
MonteCarlo/include/AnalysisManager.hh
MonteCarlo/src/AnalysisManager.cc
+386
-0
386 additions, 0 deletions
MonteCarlo/src/AnalysisManager.cc
with
433 additions
and
2 deletions
MonteCarlo/include/Analysis.hh
→
MonteCarlo/include/Analysis
Manager
.hh
+
47
−
2
View file @
af461ba6
...
...
@@ -26,11 +26,56 @@
/// \file Analysis.hh
/// \brief Selection of the analysis technology
#ifndef Analysis_h
#define Analysis_h 1
#ifndef Analysis
Manager
_h
#define Analysis
Manager
_h 1
#include
"g4root.hh"
//#include "g4cvs.hh"
//#include "g4xml.hh"
#include
"DetectorConstruction.hh"
#include
"G4RunManager.hh"
#include
<vector>
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class
AnalysisManager
{
public:
static
AnalysisManager
*
getInstance
(
void
);
~
AnalysisManager
();
void
Book
();
void
Save
();
void
FillNtuples
(
);
void
CreateVectors
(
G4int
nZDCs
,
G4int
nRPDs
);
void
MakeZDCTree
(
G4int
nTupleNo
,
G4int
zdcNo
);
void
MakeZDCOpticalTree
(
G4int
nTupleNo
,
G4int
zdcNo
);
void
MakeRPDTree
(
G4int
nTupleNo
,
G4int
rpdNo
);
void
MakeRPDOpticalTree
(
G4int
nTupleNo
,
G4int
rpdNo
);
inline
G4bool
GetClusterFlag
(){
return
CLUSTER
;
}
inline
std
::
vector
<
std
::
vector
<
std
::
vector
<
double
>
>
>*
GetRPDdoubleVectors
(
){
return
m_RPDdblVec
;}
inline
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>
>
>*
GetRPDintVectors
(
){
return
m_RPDintVec
;}
inline
std
::
vector
<
std
::
vector
<
std
::
vector
<
double
>
>
>*
GetZDCdoubleVectors
(
){
return
m_ZDCdblVec
;}
inline
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>
>
>*
GetZDCintVectors
(
){
return
m_ZDCintVec
;}
private
:
AnalysisManager
();
static
AnalysisManager
*
analysisManager
;
G4bool
m_FactoryOn
;
G4bool
CLUSTER
;
G4AnalysisManager
*
m_analysisManager
;
DetectorConstruction
*
m_detectorConstruction
;
std
::
vector
<
std
::
vector
<
std
::
vector
<
double
>
>
>
*
m_ZDCdblVec
,
*
m_RPDdblVec
;
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>
>
>
*
m_ZDCintVec
,
*
m_RPDintVec
;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
This diff is collapsed.
Click to expand it.
MonteCarlo/src/AnalysisManager.cc
0 → 100644
+
386
−
0
View file @
af461ba6
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