ATLAS Offline Software
Loading...
Searching...
No Matches
LArOFCComplete.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#ifndef LARRAWCONDITIONS_LAROFCCOMPLETE_H
6#define LARRAWCONDITIONS_LAROFCCOMPLETE_H
7
11
12#include <vector>
13#include <iostream>
14
22
23class LArOFCComplete: public ILArOFC,
24 public LArConditionsContainer<LArOFCP1>
25 {
26
27 public:
28
32
34
35 virtual ~LArOFCComplete( );
36
37 // retrieving coefficients using online ID
38
39 virtual OFCRef_t OFC_a(const HWIdentifier& CellID,
40 int gain,
41 int tbin=0) const override;
42 virtual OFCRef_t OFC_b(const HWIdentifier& CellID,
43 int gain,
44 int tbin=0) const override;
45
46 // retrieving time offset using online/offline ID
47
48 virtual float timeOffset(const HWIdentifier& CellID, int gain) const override;
49
50 //For the TB / cosmic case: retrieve the number of time-bins (aka "phases")
51 virtual unsigned nTimeBins(const HWIdentifier& CellID, int gain) const override;
52
53 //For the TB / cosmic case: retrieve the witdth of the time bin (default 24 bins in 25 ns)
54 virtual float timeBinWidth(const HWIdentifier& CellID, int gain) const override;
55
56 // set method filling the data members individually (if one
57 // wants to fill this class not using the DB)
58 void set(const HWIdentifier& CellID, int gain,
59 const std::vector<std::vector<float> >& vOFC_a,
60 const std::vector<std::vector<float> >& vOFC_b,
61 float timeOffset=0, float timeBinWidth=25./24.);
62
63 void dumpOFC(const std::string& output_file_name) const ;
64
65
66 private:
67 static const std::vector<float> m_empty;
68
69 };
70
72CLASS_DEF( LArOFCComplete, 101879462, 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 OFCRef_t
This class defines the interface for accessing Optimal Filtering coefficients for each channel provid...
Definition ILArOFC.h:26
This class implements the ILArOFC interface.
LArConditionsContainer< LArCondObj > CONTAINER
virtual ~LArOFCComplete()
ILArOFC::OFCRef_t OFCRef_t
virtual OFCRef_t OFC_a(const HWIdentifier &CellID, int gain, int tbin=0) const override
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)
virtual float timeOffset(const HWIdentifier &CellID, int gain) const override
void dumpOFC(const std::string &output_file_name) const
virtual OFCRef_t OFC_b(const HWIdentifier &CellID, int gain, int tbin=0) const override
LArOFCP1 LArCondObj
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const override
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const override
void set(const HWIdentifier &CellID, int gain, const std::vector< std::vector< float > > &vOFC_a, const std::vector< std::vector< float > > &vOFC_b, float timeOffset=0, float timeBinWidth=25./24.)
static const std::vector< float > m_empty
c-struct reproducing the structure of the persistent data
Definition LArOFCP1.h:22