ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
LArRawConditions
LArShapeComplete.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARRAWCONDITIONS_LARSHAPECOMPLETE_H
6
#define LARRAWCONDITIONS_LARSHAPECOMPLETE_H
7
8
#include "
LArElecCalib/ILArShape.h
"
9
#include "
LArRawConditions/LArShapeP2.h
"
10
#include "
LArRawConditions/LArConditionsContainer.h
"
11
12
#include <vector>
13
23
24
class
LArShapeComplete
:
public
ILArShape
,
25
public
LArConditionsContainer
<LArShapeP2>
26
{
27
28
public
:
29
30
typedef
ILArShape::ShapeRef_t
ShapeRef_t
;
31
typedef
LArConditionsContainer<LArShapeP2>
CONTAINER
;
32
33
LArShapeComplete
();
34
35
virtual
~LArShapeComplete
( );
36
37
// retrieving Shape using online ID ('mode' is still here, but ignored)
38
virtual
ShapeRef_t
Shape
(
const
HWIdentifier
& CellID,
39
int
gain,
40
int
tbin=0,
41
int
mode=0)
const override
;
42
virtual
ShapeRef_t
ShapeDer
(
const
HWIdentifier
& CellID,
43
int
gain,
44
int
tbin=0,
45
int
mode=0)
const override
;
46
47
48
// retrieving time offset using onlineID
49
virtual
float
timeOffset
(
const
HWIdentifier
& CellID,
int
gain)
const
;
50
51
//For the TB / cosmic case: retrieve the number of time-bins (aka "phases")
52
virtual
unsigned
nTimeBins
(
const
HWIdentifier
& CellID,
int
gain)
const
;
53
54
//For the TB / cosmic case: retrieve the witdth of the time bin (default 24 bins in 25 ns)
55
virtual
float
timeBinWidth
(
const
HWIdentifier
& CellID,
int
gain)
const
;
56
57
// set method filling the data members individually (if one
58
// wants to fill this class not using the DB)
59
void
set
(
const
HWIdentifier
& CellID,
int
gain,
60
const
std::vector<std::vector<float> >& vShape,
61
const
std::vector<std::vector<float> >& vShapeDer,
62
float
timeOffset
=0,
float
timeBinWidth
=25./24.);
63
64
protected
:
65
66
private
:
67
static
const
std::vector<float>
m_empty
;
68
69
};
70
71
#include "
AthenaKernel/CondCont.h
"
72
CLASS_DEF
(
LArShapeComplete
, 249350685, 1 )
73
CONDCONT_DEF
(
LArShapeComplete
, 55610575,
ILArShape
);
74
75
76
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
ILArShape.h
LArConditionsContainer.h
LArShapeP2.h
HWIdentifier
Definition
HWIdentifier.h:13
ILArShape
Definition
ILArShape.h:13
ILArShape::ShapeRef_t
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition
ILArShape.h:26
LArConditionsContainer< LArShapeP2 >::LArConditionsContainer
LArConditionsContainer()
LArShapeComplete
This class implements the ILArShape interface.
Definition
LArShapeComplete.h:26
LArShapeComplete::set
void set(const HWIdentifier &CellID, int gain, const std::vector< std::vector< float > > &vShape, const std::vector< std::vector< float > > &vShapeDer, float timeOffset=0, float timeBinWidth=25./24.)
Definition
LArShapeComplete.cxx:17
LArShapeComplete::LArShapeComplete
LArShapeComplete()
Definition
LArShapeComplete.cxx:10
LArShapeComplete::~LArShapeComplete
virtual ~LArShapeComplete()
Definition
LArShapeComplete.cxx:13
LArShapeComplete::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
Definition
LArShapeComplete.cxx:44
LArShapeComplete::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition
LArShapeComplete.cxx:83
LArShapeComplete::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition
LArShapeComplete.cxx:72
LArShapeComplete::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition
LArShapeComplete.cxx:59
LArShapeComplete::CONTAINER
LArConditionsContainer< LArShapeP2 > CONTAINER
Definition
LArShapeComplete.h:31
LArShapeComplete::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
Definition
LArShapeComplete.cxx:29
LArShapeComplete::m_empty
static const std::vector< float > m_empty
Definition
LArShapeComplete.h:67
LArShapeComplete::ShapeRef_t
ILArShape::ShapeRef_t ShapeRef_t
Definition
LArShapeComplete.h:30
Generated on
for ATLAS Offline Software by
1.17.0