ATLAS Offline Software
LArShapeFlat.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_LARSHAPEFLAT_H
7 #define LARCOOLCONDITIONS_LARSHAPEFLAT_H
8 
9 #include "LArElecCalib/ILArShape.h"
13 #include <vector>
14 
16 
17 class LArShapeFlat: public ILArShape,
18  public LArShapeBlob,
19  public LArCondFlatBase {
20 
21  private:
22  LArShapeFlat();
23 
24  public:
25  LArShapeFlat(const CondAttrListCollection* attrList);
26  virtual ~LArShapeFlat( );
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 #include "AthenaKernel/CondCont.h"
55 CLASS_DEF( LArShapeFlat , 192810633 , 1 )
57 
58 #endif
LArShapeFlat::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeFlat.cxx:30
CONDCONT_DEF
CONDCONT_DEF(LArShapeFlat, 264124099, ILArShape)
CondCont.h
Hold mappings of ranges to condition objects.
LArCondFlatBase
Definition: LArCondFlatBase.h:20
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArCondFlatBase::m_isInitialized
bool m_isInitialized
Definition: LArCondFlatBase.h:28
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
LArShapeFlat::~LArShapeFlat
virtual ~LArShapeFlat()
Definition: LArShapeFlat.cxx:13
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
LArShapeFlat::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:47
LArShapeBlob.h
LArShapeFlat::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:42
LArShapeFlat::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeFlat.cxx:25
LArShapeFlat::good
bool good() const
Definition: LArShapeFlat.h:28
LArShapeFlat::LArShapeFlat
LArShapeFlat()
Definition: LArShapeFlat.cxx:9
LArShapeBlob
Definition: LArShapeBlob.h:18
LArCondFlatBase.h
Preparation.mode
mode
Definition: Preparation.py:95
LArShapeFlat
Definition: LArShapeFlat.h:19
ILArShape.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
LArShapeFlat::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:35
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
LArShapeBlob::m_nChannels
unsigned m_nChannels
Definition: LArShapeBlob.h:52