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
DBCALSiPMHit.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DBCALSiPMHit.h
4
// Created: Fri May 13 11:06:38 EDT 2011
5
// Creator: davidl (on Darwin eleanor.jlab.org 10.7.0 i386)
6
//
7
8
#ifndef _DBCALSiPMHit_
9
#define _DBCALSiPMHit_
10
11
#include "
BCAL/DBCALGeometry.h
"
12
13
#include <JANA/JObject.h>
14
#include <JANA/JFactory.h>
15
using namespace
jana;
16
17
// WARNING: This class represents the SiPM hits and is intended
18
// for debugging of simulated data only. The information contained
19
// here may not be available in real data (use the DBCALHit objects
20
// for that).
21
//
22
// Objects of this class hold hold data from the bcalSiPMUpHit and
23
// bcalSiPMDownHit structures from HDDM
24
25
class
DBCALSiPMHit
:
public
JObject{
26
public
:
27
JOBJECT_PUBLIC(
DBCALSiPMHit
);
28
29
DBCALSiPMHit
(){}
30
virtual
~DBCALSiPMHit
(){}
31
32
int
module
;
33
int
layer
;
34
int
sector
;
35
DBCALGeometry::End
end
;
36
float
E
;
37
float
t
;
38
39
int
cellId
;
40
41
void
toStrings
(vector<pair<string,string> > &items)
const
{
42
AddString(items,
"cellId"
,
"%d"
, cellId);
43
AddString(items,
"module"
,
"%d"
, module);
44
AddString(items,
"layer"
,
"%d"
,
layer
);
45
AddString(items,
"sector"
,
"%d"
, sector);
46
AddString(items,
"end"
,
"%s"
, end==0 ?
"upstream"
:
"downstream"
);
47
AddString(items,
"E(GeV)"
,
"%2.3f"
, E);
48
AddString(items,
"t(ns)"
,
"%4.2f"
, t);
49
}
50
};
51
52
#endif // _DBCALSiPMHit_
53
DBCALSiPMHit::end
DBCALGeometry::End end
Definition:
DBCALSiPMHit.h:35
DBCALGeometry::End
End
Definition:
DBCALGeometry.h:34
layer
Int_t layer
Definition:
Read_bcal_hadronic_eff2.C:50
DBCALSiPMHit::layer
int layer
Definition:
DBCALSiPMHit.h:33
DBCALSiPMHit::t
float t
Definition:
DBCALSiPMHit.h:37
DBCALSiPMHit::E
float E
Definition:
DBCALSiPMHit.h:36
DBCALSiPMHit::~DBCALSiPMHit
virtual ~DBCALSiPMHit()
Definition:
DBCALSiPMHit.h:30
DBCALGeometry.h
DBCALSiPMHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DBCALSiPMHit.h:41
DBCALSiPMHit::cellId
int cellId
Definition:
DBCALSiPMHit.h:39
DBCALSiPMHit::sector
int sector
Definition:
DBCALSiPMHit.h:34
DBCALSiPMHit::DBCALSiPMHit
DBCALSiPMHit()
Definition:
DBCALSiPMHit.h:29
DBCALSiPMHit
Definition:
DBCALSiPMHit.h:25
DBCALSiPMHit::module
int module
Definition:
DBCALSiPMHit.h:32
libraries
BCAL
DBCALSiPMHit.h
Generated on Fri Jul 26 2019 14:00:24 for Hall-D Software by
1.8.5