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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
np
nptool
Commits
03f5a4ef
Commit
03f5a4ef
authored
8 years ago
by
moukaddam
Browse files
Options
Downloads
Patches
Plain Diff
Clearing Pretreated Data in function Pretreat(); fixing a leak
parent
0e69f6a7
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
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx
+6
-5
6 additions, 5 deletions
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h
+5
-3
5 additions, 3 deletions
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h
with
11 additions
and
8 deletions
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx
+
6
−
5
View file @
03f5a4ef
...
...
@@ -52,6 +52,7 @@ ClassImp(TGeTAMUPhysics)
/////////////////////////////////////////////////
void
TGeTAMUPhysics
::
BuildPhysicalEvent
(){
PreTreat
();
unsigned
int
c_size_e
=
m_PreTreatedData
->
GetMultiplicityCoreE
();
unsigned
int
s_size_e
=
m_PreTreatedData
->
GetMultiplicitySegmentE
();
unsigned
int
c_size_t
=
m_PreTreatedData
->
GetMultiplicityCoreT
();
...
...
@@ -107,6 +108,9 @@ for (unsigned i = 0 ; i < m_PreTreatedData->GetMultiplicityCoreT(); i++)
/////////////////////////////////////////////////
void
TGeTAMUPhysics
::
PreTreat
(){
ClearPreTreatedData
();
static
CalibrationManager
*
cal
=
CalibrationManager
::
getInstance
();
static
string
name
;
unsigned
int
mysizeE
=
m_EventData
->
GetMultiplicityCoreE
();
...
...
@@ -304,6 +308,7 @@ void TGeTAMUPhysics::InitializeRootOutput() {
TTree
*
outputTree
=
RootOutput
::
getInstance
()
->
GetTree
();
outputTree
->
Branch
(
"GeTAMU"
,
"TGeTAMUPhysics"
,
&
m_EventPhysics
);
}
///////////////////////////////////////////////////////////////////////////
void
TGeTAMUPhysics
::
Clear
()
{
AddBack_E
.
clear
();
...
...
@@ -318,11 +323,7 @@ void TGeTAMUPhysics::Clear() {
AddBack_T
.
clear
();
GeTime
.
clear
();
}
///////////////////////////////////////////////////////////////////////////
void
TGeTAMUPhysics
::
ClearEventData
()
{
m_EventData
->
Clear
();
m_PreTreatedData
->
Clear
();
}
///////////////////////////////////////////////////////////////////////////
void
TGeTAMUPhysics
::
AddParameterToCalibrationManager
(){
CalibrationManager
*
Cal
=
CalibrationManager
::
getInstance
();
...
...
This diff is collapsed.
Click to expand it.
NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h
+
5
−
3
View file @
03f5a4ef
...
...
@@ -72,11 +72,13 @@ class TGeTAMUPhysics : public TObject, public NPL::VDetector{
void
BuildSimplePhysicalEvent
(){
BuildPhysicalEvent
();}
;
// Clear the Event Physics
void
ClearEventPhysics
()
{
Clear
();}
void
ClearEventData
()
;
void
ClearEventPhysics
()
{
Clear
();}
void
ClearEventData
()
{
m_EventData
->
Clear
();}
public
:
void
PreTreat
();
// clear the pre-treated object
void
ClearPreTreatedData
()
{
m_PreTreatedData
->
Clear
();}
private
:
// Root Input and Output tree classes
...
...
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