|
ATLAS Offline Software
|
#include <TBLArRawChannelBuilder.h>
|
| TBLArRawChannelBuilder (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 25 of file TBLArRawChannelBuilder.h.
◆ StoreGateSvc_t
◆ TBLArRawChannelBuilder()
TBLArRawChannelBuilder::TBLArRawChannelBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TBLArRawChannelBuilder::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 67 of file TBLArRawChannelBuilder.cxx.
74 return StatusCode::FAILURE;
82 ATH_MSG_DEBUG (
"1) LArDigitContainer container size = " << digitContainer->
size() );
84 ATH_MSG_DEBUG (
"2) LArDigitContainer container size = " << digitContainer->
size() );
85 if( digitContainer->
size() < 1 ) {
87 return StatusCode::SUCCESS;
93 larRawChannelContainer->reserve(digitContainer->
size());
102 const std::vector<short>& samples =
digit->samples();
103 unsigned int nSamples = samples.size();
108 std::vector<float> mySamples;
109 mySamples.resize(samples.size());
114 for (
unsigned int i=0;
i<samples.size();
i++ )
116 mySamples[
i] = ((
float)samples[
i]) - thePedestal;
122 GainFactor = 9.8*9.8;
133 float maxADCPeak = 0.;
134 unsigned int iPeakSamp = 0;
136 if ( maxADCPeak < mySamples[
i] )
138 maxADCPeak = mySamples[
i];
143 bool CubicFailed =
false;
150 ADCPeak = maxADCPeak;
155 else if (
m_mode ==
"CUBIC" &&
160 const float invT[4][4]
162 { -1.83333, 3, -1.5, 0.333333},
164 {-0.166666, 0.5, -0.5, 0.166666} };
167 if ( iPeakSamp <= 1 )
172 else if ( iPeakSamp >=
nSamples - 2 )
179 it0 = ( mySamples[iPeakSamp-2] > mySamples[iPeakSamp+2] )
185 float A[4] = {0, 0, 0, 0};
189 for (
int ia = 0; ia < 4; ia++)
190 for (
int it = 0;
it < 4;
it++)
191 A[ia] += invT[ia][
it] * mySamples[it0+
it];
194 disc =
A[2]*
A[2] - 3*
A[1]*
A[3];
195 if ( ! ( CubicFailed = ( disc < 0 ||
A[3] == 0 ) ) )
197 dtmax = (-
A[2]-sqrt(disc))/(3*
A[3]);
198 if ( ! ( CubicFailed = ( dtmax < 0 || dtmax > 3 ) ) )
201 for(
int ia = 0; ia < 4; ia++)
202 ADCPeak +=
A[ia] *
pow(dtmax, ia);
218 if(
m_mode ==
"FIXED" || CubicFailed )
226 float ADCtoMeV = 10.0;
256 float Energy = ADCPeak * ADCtoMeV * GainFactor;
262 larRawChannelContainer->
add(larRawChannel);
270 ATH_MSG_DEBUG (
"sorted RawChannelContainer, now lock it " );
274 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TBLArRawChannelBuilder::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode TBLArRawChannelBuilder::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_ADCtoMeVEMB
float TBLArRawChannelBuilder::m_ADCtoMeVEMB[2] |
|
private |
◆ m_ADCtoMeVEMECInner
float TBLArRawChannelBuilder::m_ADCtoMeVEMECInner[2] |
|
private |
◆ m_ADCtoMeVEMECOuter
float TBLArRawChannelBuilder::m_ADCtoMeVEMECOuter[2] |
|
private |
◆ m_ADCtoMeVFCAL
float TBLArRawChannelBuilder::m_ADCtoMeVFCAL[3] |
|
private |
◆ m_ADCtoMeVHEC
float TBLArRawChannelBuilder::m_ADCtoMeVHEC[2] |
|
private |
◆ m_cablingKey
◆ m_ChannelContainerName
std::string TBLArRawChannelBuilder::m_ChannelContainerName |
|
private |
◆ m_cubicAdcCut
float TBLArRawChannelBuilder::m_cubicAdcCut |
|
private |
◆ m_DataLocation
std::string TBLArRawChannelBuilder::m_DataLocation |
|
private |
◆ m_detStore
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fcalId
◆ m_hecId
◆ m_imaxSamp
int TBLArRawChannelBuilder::m_imaxSamp |
|
private |
◆ m_iPedestal
unsigned int TBLArRawChannelBuilder::m_iPedestal |
|
private |
◆ m_larRawOrdering
◆ m_mode
std::string TBLArRawChannelBuilder::m_mode |
|
private |
◆ m_onlineHelper
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
const LArEM_ID * em_idHelper() const
access to EM idHelper
bool is_lar_fcal(Identifier id) const
bool is_em_endcap_outer(const Identifier id) const
test if the id belongs to the EM Endcap outer wheel
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< double > Energy
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
int module(const Identifier id) const
module [1,3]
int sampling(const Identifier id) const
return sampling according to :
float m_ADCtoMeVEMECInner[2]
const std::string & key() const
Return the StoreGate ID for the referenced object.
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Liquid Argon digit base class.
void add(const LArRawChannel &rc)
Liquid Argon ROD output object base class.
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old LArRawChannelContainer
std::string m_DataLocation
::StatusCode StatusCode
StatusCode definition for legacy code.
const LArOnlineID * m_onlineHelper
const LArHEC_ID * m_hecId
std::string m_ChannelContainerName
bool is_lar_hec(Identifier id) const
Helper class for offline cell identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
StatusCode initialize(bool used=true)
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
DataObjIDColl m_extendedExtraObjects
def time(flags, cells_name, *args, **kw)
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
#define ATH_MSG_WARNING(x)
int sampling(const Identifier id) const
return sampling [0,3] (only 0 for supercells)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
float m_ADCtoMeVEMECOuter[2]
Container class for LArDigit.
AthAlgorithm()
Default constructor:
const LArFCAL_ID * m_fcalId
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
Container for LArRawChannel (IDC using LArRawChannelCollection)