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
DBCALHit.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DBCALHit.h
4
// Created: Thu Jun 9 10:14:35 EDT 2005
5
// Creator: davidl (on Darwin wire129.jlab.org 7.8.0 powerpc)
6
//
7
8
#ifndef _DBCALHit_
9
#define _DBCALHit_
10
11
#include "
BCAL/DBCALGeometry.h
"
12
13
#include <JANA/JObject.h>
14
#include <JANA/JFactory.h>
15
using namespace
jana;
16
17
class
DBCALHit
:
public
JObject{
18
19
/// This class holds data originating from the fADC250
20
/// modules connected to the BCAL
21
22
public
:
23
JOBJECT_PUBLIC(
DBCALHit
);
24
25
int
module
;
26
int
layer
;
27
int
sector
;
28
DBCALGeometry::End
end
;
29
int
pulse_peak
;
// Pedestal subtracted pulse peak (per event)
30
float
E
;
31
float
t
;
32
float
t_raw
;
///< Uncalibrated time in ns
33
34
int
cellId
;
35
36
void
toStrings
(vector<pair<string,string> > &items)
const
{
37
AddString(items,
"module"
,
"%d"
, module);
38
AddString(items,
"layer"
,
"%d"
,
layer
);
39
AddString(items,
"sector"
,
"%d"
, sector);
40
AddString(items,
"end"
,
"%s"
, end==0 ?
"upstream"
:
"downstream"
);
41
AddString(items,
"E(GeV)"
,
"%6.3f"
, E);
42
AddString(items,
"t(ns)"
,
"%4.2f"
, t);
43
}
44
};
45
46
#endif // _DBCALHit_
47
DBCALHit::E
float E
Definition:
DBCALHit.h:30
DBCALGeometry::End
End
Definition:
DBCALGeometry.h:34
layer
Int_t layer
Definition:
Read_bcal_hadronic_eff2.C:50
DBCALHit::module
int module
Definition:
DBCALHit.h:25
DBCALHit::layer
int layer
Definition:
DBCALHit.h:26
DBCALHit
Definition:
DBCALHit.h:17
DBCALHit::end
DBCALGeometry::End end
Definition:
DBCALHit.h:28
DBCALGeometry.h
DBCALHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DBCALHit.h:36
DBCALHit::t
float t
Definition:
DBCALHit.h:31
DBCALHit::sector
int sector
Definition:
DBCALHit.h:27
DBCALHit::cellId
int cellId
Definition:
DBCALHit.h:34
DBCALHit::pulse_peak
int pulse_peak
Definition:
DBCALHit.h:29
DBCALHit::t_raw
float t_raw
Uncalibrated time in ns.
Definition:
DBCALHit.h:32
libraries
BCAL
DBCALHit.h
Generated on Fri Jul 26 2019 14:00:23 for Hall-D Software by
1.8.5