ATLAS Offline Software
LArShapeSC.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 #ifndef LARCOOLCONDITIONS_LARSHAPESC_H
7 #define LARCOOLCONDITIONS_LARSHAPESC_H
8 
9 #include "LArElecCalib/ILArShape.h"
13 #include <vector>
14 
16 
17 class LArShapeSC: public ILArShape,
18  public LArShapeBlob,
19  public LArCondSuperCellBase {
20 
21  private:
22  LArShapeSC();
23 
24  public:
25  LArShapeSC(const CondAttrListCollection* attrList);
26  virtual ~LArShapeSC( );
27 
28  bool good() const { return m_isInitialized && m_nChannels>0; }
29 
30 
31  // retrieving coefficients using online ID
32 
33  virtual ShapeRef_t Shape(const HWIdentifier& CellID,
34  int gain,
35  int tbin=0,
36  int mode=0) const ;
37 
38  virtual ShapeRef_t ShapeDer(const HWIdentifier& CellID,
39  int gain,
40  int tbin=0,
41  int mode=0) const ;
42 
43  // retrieving time offset using online/offline ID
44 
45  virtual float timeOffset(const HWIdentifier& CellID, int gain) const;
46 
47  //For the TB / cosmic case: retrieve the number of time-bins (aka "phases")
48  virtual unsigned nTimeBins(const HWIdentifier& CellID, int gain) const;
49 
50  //For the TB / cosmic case: retrieve the witdth of the time bin (default 24 bins in 25 ns)
51  virtual float timeBinWidth(const HWIdentifier& CellID, int gain) const;
52 
53 };
54 
55 #include "AthenaKernel/CondCont.h"
56 CLASS_DEF( LArShapeSC , 125125776 , 1 )
58 #endif
CONDCONT_DEF
CONDCONT_DEF(LArShapeSC, 70096552, ILArShape)
CondCont.h
Hold mappings of ranges to condition objects.
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
HWIdentifier
Definition: HWIdentifier.h:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
LArShapeSC::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:37
LArShapeBlob.h
LArShapeSC::good
bool good() const
Definition: LArShapeSC.h:28
LArShapeBlob
Definition: LArShapeBlob.h:18
Preparation.mode
mode
Definition: Preparation.py:95
LArShapeSC::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:48
LArCondSuperCellBase
Definition: LArCondSuperCellBase.h:19
LArShapeSC::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeSC.cxx:27
ILArShape.h
LArShapeSC::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeSC.cxx:32
LArCondSuperCellBase.h
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:64
LArShapeSC::~LArShapeSC
virtual ~LArShapeSC()
Definition: LArShapeSC.cxx:13
LArShapeSC
Definition: LArShapeSC.h:19
LArShapeSC::LArShapeSC
LArShapeSC()
Definition: LArShapeSC.cxx:9
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
LArCondSuperCellBase::m_isInitialized
bool m_isInitialized
Definition: LArCondSuperCellBase.h:26
LArShapeBlob::m_nChannels
unsigned m_nChannels
Definition: LArShapeBlob.h:52
LArShapeSC::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:43