Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
5e76960f
Commit
5e76960f
authored
3 years ago
by
FU Chengdong
Browse files
Options
Downloads
Patches
Plain Diff
add header files
parent
f839ee03
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
Analysis/DumpEvent/src/DumpMCParticleAlg.h
+51
-0
51 additions, 0 deletions
Analysis/DumpEvent/src/DumpMCParticleAlg.h
Analysis/DumpEvent/src/DumpTrackAlg.h
+56
-0
56 additions, 0 deletions
Analysis/DumpEvent/src/DumpTrackAlg.h
with
107 additions
and
0 deletions
Analysis/DumpEvent/src/DumpMCParticleAlg.h
0 → 100644
+
51
−
0
View file @
5e76960f
#ifndef DumpMCParticleAlg_h
#define DumpMCParticleAlg_h 1
#include
"k4FWCore/DataHandle.h"
#include
"GaudiKernel/Algorithm.h"
#include
"edm4hep/MCParticleCollection.h"
#include
"edm4hep/TrackCollection.h"
#include
"GaudiKernel/NTuple.h"
class
DumpMCParticleAlg
:
public
Algorithm
{
public:
// Constructor of this form must be provided
DumpMCParticleAlg
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
);
// Three mandatory member functions of any algorithm
StatusCode
initialize
()
override
;
StatusCode
execute
()
override
;
StatusCode
finalize
()
override
;
private:
DataHandle
<
edm4hep
::
MCParticleCollection
>
_inMCColHdl
{
"MCParticle"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
Gaudi
::
Property
<
double
>
m_field
{
this
,
"Field"
,
3.0
};
NTuple
::
Tuple
*
m_tuple
;
NTuple
::
Item
<
long
>
m_nParticles
;
NTuple
::
Array
<
int
>
m_pdgID
;
NTuple
::
Array
<
int
>
m_genStatus
;
NTuple
::
Array
<
int
>
m_simStatus
;
NTuple
::
Array
<
float
>
m_charge
;
NTuple
::
Array
<
float
>
m_time
;
NTuple
::
Array
<
double
>
m_mass
;
NTuple
::
Array
<
double
>
m_vx
;
NTuple
::
Array
<
double
>
m_vy
;
NTuple
::
Array
<
double
>
m_vz
;
NTuple
::
Array
<
float
>
m_px
;
NTuple
::
Array
<
float
>
m_py
;
NTuple
::
Array
<
float
>
m_pz
;
NTuple
::
Array
<
float
>
m_d0
;
NTuple
::
Array
<
float
>
m_phi0
;
NTuple
::
Array
<
float
>
m_omega
;
NTuple
::
Array
<
float
>
m_z0
;
NTuple
::
Array
<
float
>
m_tanLambda
;
int
_nEvt
;
std
::
string
m_thisName
;
};
#endif
This diff is collapsed.
Click to expand it.
Analysis/DumpEvent/src/DumpTrackAlg.h
0 → 100644
+
56
−
0
View file @
5e76960f
#ifndef DumpTrackAlg_h
#define DumpTrackAlg_h 1
#include
"k4FWCore/DataHandle.h"
#include
"GaudiKernel/Algorithm.h"
#include
"edm4hep/MCParticleCollection.h"
#include
"edm4hep/TrackCollection.h"
#include
"GaudiKernel/NTuple.h"
class
DumpTrackAlg
:
public
Algorithm
{
public:
// Constructor of this form must be provided
DumpTrackAlg
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
);
// Three mandatory member functions of any algorithm
StatusCode
initialize
()
override
;
StatusCode
execute
()
override
;
StatusCode
finalize
()
override
;
private:
DataHandle
<
edm4hep
::
MCParticleCollection
>
_inMCColHdl
{
"MCParticle"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
DataHandle
<
edm4hep
::
TrackCollection
>
_inTrackColHdl
{
"SiTracks"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
Gaudi
::
Property
<
double
>
m_field
{
this
,
"Field"
,
3.0
};
NTuple
::
Tuple
*
m_tuple
;
NTuple
::
Item
<
long
>
m_nTracks
;
NTuple
::
Array
<
float
>
m_x
;
NTuple
::
Array
<
float
>
m_y
;
NTuple
::
Array
<
float
>
m_z
;
NTuple
::
Array
<
float
>
m_px
;
NTuple
::
Array
<
float
>
m_py
;
NTuple
::
Array
<
float
>
m_pz
;
NTuple
::
Array
<
float
>
m_d0
;
NTuple
::
Array
<
float
>
m_phi0
;
NTuple
::
Array
<
float
>
m_omega
;
NTuple
::
Array
<
float
>
m_z0
;
NTuple
::
Array
<
float
>
m_tanLambda
;
NTuple
::
Array
<
float
>
m_sigma_d0
;
NTuple
::
Array
<
float
>
m_sigma_phi0
;
NTuple
::
Array
<
float
>
m_sigma_omega
;
NTuple
::
Array
<
float
>
m_sigma_z0
;
NTuple
::
Array
<
float
>
m_sigma_tanLambda
;
NTuple
::
Array
<
int
>
m_nHitsVXD
;
NTuple
::
Array
<
int
>
m_nHitsFTD
;
NTuple
::
Array
<
int
>
m_nHitsSIT
;
NTuple
::
Array
<
int
>
m_nHitsGAS
;
NTuple
::
Array
<
int
>
m_nHitsSET
;
int
_nEvt
;
std
::
string
m_thisName
;
};
#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