ATLAS Offline Software
Loading...
Searching...
No Matches
LArShapeBlob.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5//Dear emacs, this is -*-c++-*-
6#ifndef LARCOOLCONDITIONS_LARSHAPEBLOB_H
7#define LARCOOLCONDITIONS_LARSHAPEBLOB_H
8
10//#include "LArCOOLConditions/LArCondBlobBase.h"
12//#include "LArIdentifier/LArOnlineID.h"
14#include <vector>
15
17
19
20 public:
21 //typedef ILArShape::ShapeRef_t ShapeRef_t;
23
26
27
28 void readBlob(const CondAttrListCollection* attrList, MsgStream& msg);
29
31 const float* pStart=m_pShape[gain]+(hs*m_nSamples);
32 if (*pStart==static_cast<float>(ERRORCODE))
33 return ILArShape::ShapeRef_t(NULL,NULL);
34 else
35 return ILArShape::ShapeRef_t(pStart,pStart+m_nSamples);
36 }
37
39 const float* pStart=m_pShapeDer[gain]+(hs*m_nSamples);
40 if (*pStart==static_cast<float>(ERRORCODE))
41 return ILArShape::ShapeRef_t(NULL,NULL);
42 else
43 return ILArShape::ShapeRef_t(pStart,pStart+m_nSamples);
44 }
45
46
47protected:
48 std::vector<const float*> m_pShape;
49 std::vector<const float*> m_pShapeDer;
50 std::vector<const float*> m_pTimeOffset;
51
52 unsigned m_nChannels;
53 unsigned m_nSamples;
54};
55
56
57#endif
Defines a common ERRORCODE enum for LAr-Calibration objects.
This class is a collection of AttributeLists where each one is associated with a channel number.
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition ILArShape.h:26
This is a "hash" representation of an Identifier.
std::vector< const float * > m_pTimeOffset
ILArShape::ShapeRef_t ShapeByHash(const IdentifierHash &hs, int gain) const
std::vector< const float * > m_pShape
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
std::vector< const float * > m_pShapeDer
unsigned m_nSamples
ILArShape::ShapeRef_t ShapeDerByHash(const IdentifierHash &hs, int gain) const
unsigned m_nChannels
MsgStream & msg
Definition testRead.cxx:32