Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acc2go4
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pavel Sharov
acc2go4
Commits
756eb644
Commit
756eb644
authored
Sep 25, 2024
by
Pavel Sharov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* update crate config.
parent
ec74e750
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
314 additions
and
192 deletions
+314
-192
README.md
README.md
+7
-0
TNeEvent.cxx
TNeEvent.cxx
+41
-32
TNeEvent.h
TNeEvent.h
+7
-2
TNeProc.cxx
TNeProc.cxx
+240
-153
TNeProc.h
TNeProc.h
+19
-5
No files found.
README.md
0 → 100644
View file @
756eb644
# Go4 library for ACCULINNA2 experiments
## 24e01
### Naming conventions
-
prefix T
[
number
]
x is for telescope
-
By default channel 1--16 for X-strips 16--32 for Y.
TNeEvent.cxx
View file @
756eb644
/* -*- mode:c++ c-file-style:"linux" -*- */
//===================================================================
//===================================================================
//== TNeEvent.cxx:
//== TNeEvent.cxx:
//== Version:
//== Version:
//===================================================================
//===================================================================
using
namespace
std
;
using
namespace
std
;
#include "TNeEvent.h"
#include "TNeEvent.h"
#include "Riostream.h"
#include "Riostream.h"
#include <algorithm>
TNeEvent
::
TNeEvent
()
TNeEvent
::
TNeEvent
()
:
TGo4EventElement
()
:
TGo4EventElement
()
{
{
cout
<<
"**** TNeEvent: Create instance"
<<
endl
;
cout
<<
"**** TNeEvent: Create instance"
<<
endl
;
}
//-------------------------------------------------------------------
}
//-------------------------------------------------------------------
TNeEvent
::
TNeEvent
(
const
char
*
name
)
TNeEvent
::
TNeEvent
(
const
char
*
name
)
:
TGo4EventElement
(
name
)
:
TGo4EventElement
(
name
)
{
{
cout
<<
"**** TNeEvent: Create instance "
<<
name
<<
endl
;
cout
<<
"**** TNeEvent: Create instance "
<<
name
<<
endl
;
...
@@ -26,45 +29,51 @@ TNeEvent::~TNeEvent()
...
@@ -26,45 +29,51 @@ TNeEvent::~TNeEvent()
void
TNeEvent
::
Clear
(
Option_t
*
t
)
void
TNeEvent
::
Clear
(
Option_t
*
t
)
{
{
//==================================================================
//==================================================================
//== all members should be cleared.
//== all members should be cleared.
//== memset(fRawData,0, sizeof(fRawData));
//== memset(fRawData,0, sizeof(fRawData));
//==================================================================
//==================================================================
// Si
// Si
memset
(
Lxa
,
0
,
sizeof
(
Lxa
));
memset
(
Lxa
,
0
,
sizeof
(
Lxa
));
memset
(
Lxt
,
0
,
sizeof
(
Lxt
));
memset
(
Lxt
,
0
,
sizeof
(
Lxt
));
memset
(
Lya
,
0
,
sizeof
(
Lya
));
memset
(
Lya
,
0
,
sizeof
(
Lya
));
memset
(
Lyt
,
0
,
sizeof
(
Lyt
));
memset
(
Lyt
,
0
,
sizeof
(
Lyt
));
memset
(
Rxa
,
0
,
sizeof
(
Rxa
));
memset
(
Rxa
,
0
,
sizeof
(
Rxa
));
memset
(
Rxt
,
0
,
sizeof
(
Rxt
));
memset
(
Rxt
,
0
,
sizeof
(
Rxt
));
memset
(
Rya
,
0
,
sizeof
(
Rya
));
memset
(
Rya
,
0
,
sizeof
(
Rya
));
memset
(
Ryt
,
0
,
sizeof
(
Ryt
));
memset
(
Ryt
,
0
,
sizeof
(
Ryt
));
memset
(
RVa
,
0
,
sizeof
(
RVa
));
memset
(
RVa
,
0
,
sizeof
(
RVa
));
memset
(
RVt
,
0
,
sizeof
(
RVt
));
memset
(
RVt
,
0
,
sizeof
(
RVt
));
memset
(
R60a
,
0
,
sizeof
(
R60a
));
memset
(
R20a
,
0
,
sizeof
(
R20a
));
memset
(
R60t
,
0
,
sizeof
(
R60t
));
memset
(
R20t
,
0
,
sizeof
(
R20t
));
memset
(
AnSa
,
0
,
sizeof
(
AnSa
));
memset
(
AnSa
,
0
,
sizeof
(
AnSa
));
memset
(
AnSt
,
0
,
sizeof
(
AnSt
));
memset
(
AnSt
,
0
,
sizeof
(
AnSt
));
memset
(
AnRa
,
0
,
sizeof
(
AnRa
));
memset
(
AnRa
,
0
,
sizeof
(
AnRa
));
memset
(
AnRt
,
0
,
sizeof
(
AnRt
));
memset
(
AnRt
,
0
,
sizeof
(
AnRt
));
memset
(
AnVa
,
0
,
sizeof
(
AnVa
));
memset
(
AnVa
,
0
,
sizeof
(
AnVa
));
memset
(
AnVt
,
0
,
sizeof
(
AnVt
));
memset
(
AnVt
,
0
,
sizeof
(
AnVt
));
std
::
fill_n
(
Rcsa
,
16
,
0
);
std
::
fill_n
(
Rcst
,
16
,
0
);
std
::
fill_n
(
Lcsa
,
16
,
0
);
std
::
fill_n
(
Lcst
,
16
,
0
);
// ToF
// ToF
memset
(
F3
,
0
,
sizeof
(
F3
));
memset
(
F3
,
0
,
sizeof
(
F3
));
memset
(
tF3
,
0
,
sizeof
(
tF3
));
memset
(
tF3
,
0
,
sizeof
(
tF3
));
memset
(
F5
,
0
,
sizeof
(
F5
));
memset
(
F5
,
0
,
sizeof
(
F5
));
memset
(
tF5
,
0
,
sizeof
(
tF5
));
memset
(
tF5
,
0
,
sizeof
(
tF5
));
// MWPC
// MWPC
memset
(
tMWPC
,
0
,
sizeof
(
tMWPC
));
memset
(
tMWPC
,
0
,
sizeof
(
tMWPC
));
nevent
=
0
;
nevent
=
0
;
trigger
=
0
;
trigger
=
0
;
subevents
=
0
;
subevents
=
0
;
evsize
=
0
;
evsize
=
0
;
mtime
=
0
;
mtime
=
0
;
}
//-------------------------------------------------------------------
}
//-------------------------------------------------------------------
TNeEvent.h
View file @
756eb644
/* -*- mode:c++ c-file-style:"linux" -*- */
//===================================================================
//===================================================================
//== TNeEvent.h:
//== TNeEvent.h:
//== Version:
//== Version:
...
@@ -29,14 +30,18 @@ public:
...
@@ -29,14 +30,18 @@ public:
unsigned
short
Ryt
[
16
];
unsigned
short
Ryt
[
16
];
unsigned
short
RVa
[
16
];
unsigned
short
RVa
[
16
];
unsigned
short
RVt
[
16
];
unsigned
short
RVt
[
16
];
unsigned
short
R
6
0a
[
16
];
unsigned
short
R
2
0a
[
16
];
unsigned
short
R
6
0t
[
16
];
unsigned
short
R
2
0t
[
16
];
unsigned
short
AnSa
[
16
];
unsigned
short
AnSa
[
16
];
unsigned
short
AnSt
[
16
];
unsigned
short
AnSt
[
16
];
unsigned
short
AnRa
[
16
];
unsigned
short
AnRa
[
16
];
unsigned
short
AnRt
[
16
];
unsigned
short
AnRt
[
16
];
unsigned
short
AnVa
[
16
];
unsigned
short
AnVa
[
16
];
unsigned
short
AnVt
[
16
];
unsigned
short
AnVt
[
16
];
unsigned
short
Rcsa
[
16
];
unsigned
short
Rcst
[
16
];
unsigned
short
Lcsa
[
16
];
unsigned
short
Lcst
[
16
];
unsigned
short
F3
[
4
];
unsigned
short
F3
[
4
];
unsigned
short
tF3
[
4
];
unsigned
short
tF3
[
4
];
...
...
TNeProc.cxx
View file @
756eb644
This diff is collapsed.
Click to expand it.
TNeProc.h
View file @
756eb644
...
@@ -8,17 +8,17 @@
...
@@ -8,17 +8,17 @@
//-----class TNeParam-----;
//-----class TNeParam-----;
extern
int
otl
;
extern
int
otl
;
class
TNeProc
:
public
TGo4EventProcessor
class
TNeProc
:
public
TGo4EventProcessor
{
{
public
:
public
:
TNeProc
()
;
TNeProc
()
;
TNeProc
(
const
char
*
name
);
TNeProc
(
const
char
*
name
);
virtual
~
TNeProc
()
;
virtual
~
TNeProc
()
;
//! event processing function
Bool_t
BuildEvent
(
TGo4EventElement
*
target
);
// event processing function
Bool_t
BuildEvent
(
TGo4EventElement
*
target
);
double
GetClasters
(
unsigned
short
n
,
unsigned
short
*
x
);
double
GetClasters
(
unsigned
short
n
,
unsigned
short
*
x
);
static
long
bit
[
32
];
static
long
bit
[
32
];
private
:
private
:
TH1
*
fTrigger
;
TH1
*
fTrigger
;
TH1
*
fSubEvents
;
TH1
*
fSubEvents
;
...
@@ -47,6 +47,20 @@ private:
...
@@ -47,6 +47,20 @@ private:
TH1
*
d1AnVa
[
16
];
TH1
*
d1AnVa
[
16
];
TH1
*
d1AnVt
[
16
];
TH1
*
d1AnVt
[
16
];
TH1
*
d1AnVc
[
16
];
TH1
*
d1AnVc
[
16
];
TH1
*
d1R20a
[
16
];
TH1
*
d1R20t
[
16
];
TH1
*
d1R20c
[
16
];
TH1
*
d1Rcsa
[
16
];
TH1
*
d1Rcst
[
16
];
TH1
*
d1Rcsc
[
16
];
TH1
*
d1Lcsa
[
16
];
TH1
*
d1Lcst
[
16
];
TH1
*
d1Lcsc
[
16
];
//-----clb-----
//-----clb-----
TH1
*
d1sq1_x_c
[
16
];
TH1
*
d1sq1_x_c
[
16
];
//-----ToF+MWPC-----
//-----ToF+MWPC-----
...
@@ -64,7 +78,7 @@ private:
...
@@ -64,7 +78,7 @@ private:
TH2
*
d2ToFaF5
;
TH2
*
d2ToFaF5
;
//-----CALIBRATED-----
//-----CALIBRATED-----
//-----neutrons-----
//-----neutrons-----
//-----WIRES-----
//-----WIRES-----
TH1
*
d1X1
;
TH1
*
d1X1
;
TH1
*
d1Y1
;
TH1
*
d1Y1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment