Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
JEventProcessor_PS_flux.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: JEventProcessor_PS_flux.h
4
//
5
//
6
7
#ifndef _JEventProcessor_PS_flux_
8
#define _JEventProcessor_PS_flux_
9
10
#include "TRandom3.h"
11
12
#include <JANA/JEventProcessor.h>
13
14
#include "
PAIR_SPECTROMETER/DPSGeometry.h
"
15
#include "
ANALYSIS/DTreeInterface.h
"
16
#include "
DAQ/DBeamCurrent.h
"
17
#include "
DAQ/DBeamCurrent_factory.h
"
18
19
class
JEventProcessor_PS_flux
:
public
jana::JEventProcessor{
20
public
:
21
JEventProcessor_PS_flux
();
22
~JEventProcessor_PS_flux
();
23
const
char
*
className
(
void
){
return
"JEventProcessor_PS_flux"
;}
24
25
private
:
26
jerror_t
init
(
void
);
///< Called once at program start.
27
jerror_t
brun
(jana::JEventLoop *eventLoop, int32_t runnumber);
///< Called everytime a new run number is detected.
28
jerror_t
evnt
(jana::JEventLoop *eventLoop, uint64_t eventnumber);
///< Called every event.
29
jerror_t
erun
(
void
);
///< Called everytime run number changes, provided brun has been called.
30
jerror_t
fini
(
void
);
///< Called after last event of last event source has been processed.
31
32
DBeamCurrent_factory
*
dBeamCurrentFactory
;
33
double
dBeamBunchPeriod
;
34
double
t_start
;
35
double
t_end
;
36
double
t_fiducial
;
37
38
//TREE
39
DTreeInterface
*
dTreeInterface
;
40
//thread_local: Each thread has its own object: no lock needed
41
//important: manages it's own data internally: don't want to call new/delete every event!
42
static
thread_local
DTreeFillData
dTreeFillData
;
43
44
45
int
geomModuleColumn
[8][2] = {{110, 145}, {90, 115}, {73, 93}, {56, 76}, {40, 60}, {24, 45}, {8, 28}, {0, 12}};
// {min, max}
46
TRandom3 *
dRandom
;
47
};
48
49
#endif // _JEventProcessor_PS_flux_
50
JEventProcessor_PS_flux::t_end
double t_end
Definition:
JEventProcessor_PS_flux.h:35
JEventProcessor_PS_flux::JEventProcessor_PS_flux
JEventProcessor_PS_flux()
Definition:
JEventProcessor_PS_flux.cc:74
DTreeInterface
Definition:
DTreeInterface.h:29
DPSGeometry.h
JEventProcessor_PS_flux::brun
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
Definition:
JEventProcessor_PS_flux.cc:191
JEventProcessor_PS_flux::erun
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
Definition:
JEventProcessor_PS_flux.cc:459
JEventProcessor_PS_flux::dBeamCurrentFactory
DBeamCurrent_factory * dBeamCurrentFactory
Definition:
JEventProcessor_PS_flux.h:32
JEventProcessor_PS_flux::t_start
double t_start
Definition:
JEventProcessor_PS_flux.h:34
JEventProcessor_PS_flux::geomModuleColumn
int geomModuleColumn[8][2]
Definition:
JEventProcessor_PS_flux.h:45
JEventProcessor_PS_flux::init
jerror_t init(void)
Called once at program start.
Definition:
JEventProcessor_PS_flux.cc:90
JEventProcessor_PS_flux::fini
jerror_t fini(void)
Called after last event of last event source has been processed.
Definition:
JEventProcessor_PS_flux.cc:476
DBeamCurrent_factory.h
JEventProcessor_PS_flux
Definition:
JEventProcessor_PS_flux.h:19
JEventProcessor_PS_flux::dBeamBunchPeriod
double dBeamBunchPeriod
Definition:
JEventProcessor_PS_flux.h:33
JEventProcessor_PS_flux::className
const char * className(void)
Definition:
JEventProcessor_PS_flux.h:23
JEventProcessor_PS_flux::dTreeInterface
DTreeInterface * dTreeInterface
Definition:
JEventProcessor_PS_flux.h:39
DBeamCurrent_factory
Definition:
DBeamCurrent_factory.h:14
JEventProcessor_PS_flux::evnt
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
Definition:
JEventProcessor_PS_flux.cc:280
JEventProcessor_PS_flux::t_fiducial
double t_fiducial
Definition:
JEventProcessor_PS_flux.h:36
DTreeFillData
Definition:
DTreeInterfaceObjects.h:145
DBeamCurrent.h
DTreeInterface.h
JEventProcessor_PS_flux::~JEventProcessor_PS_flux
~JEventProcessor_PS_flux()
Definition:
JEventProcessor_PS_flux.cc:82
JEventProcessor_PS_flux::dRandom
TRandom3 * dRandom
Definition:
JEventProcessor_PS_flux.h:46
JEventProcessor_PS_flux::dTreeFillData
static thread_local DTreeFillData dTreeFillData
Definition:
JEventProcessor_PS_flux.h:42
plugins
monitoring
PS_flux
JEventProcessor_PS_flux.h
Generated on Fri Jul 26 2019 14:02:25 for Hall-D Software by
1.8.5