ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include <vector>
13
23
25 public LArConditionsContainer<LArShapeP2>
26 {
27
28 public:
29
32
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
72CLASS_DEF( LArShapeComplete, 249350685, 1 )
74
75
76#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition ILArShape.h:26
This class implements the ILArShape interface.
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.)
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
LArConditionsContainer< LArShapeP2 > CONTAINER
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
static const std::vector< float > m_empty
ILArShape::ShapeRef_t ShapeRef_t