|
ATLAS Offline Software
|
#include <LArAutoCorrMaker.h>
|
| LArAutoCorrMaker (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArAutoCorrMaker () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | stop () |
|
StatusCode | finalize () |
|
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 38 of file LArAutoCorrMaker.h.
◆ LARACMAP
◆ StoreGateSvc_t
◆ LArAutoCorrMaker()
LArAutoCorrMaker::LArAutoCorrMaker |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArAutoCorrMaker()
LArAutoCorrMaker::~LArAutoCorrMaker |
( |
| ) |
|
|
default |
◆ 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 LArAutoCorrMaker::execute |
( |
| ) |
|
Definition at line 89 of file LArAutoCorrMaker.cxx.
103 if (!bunchCrossing) {
105 return StatusCode::FAILURE;
112 <<
", type= " << bunchCrossing->
bcType(
bcid) <<
")" );
113 return StatusCode::SUCCESS;
124 if (
sc.isFailure() || !larDigitContainer) {
128 if(larDigitContainer->
empty()) {
132 ATH_MSG_DEBUG(
"Got LArDigitContainer with key " <<
key <<
", size=" << larDigitContainer->
size());
142 return StatusCode::FAILURE;
144 const std::vector<short> & samples =
digit->samples();
149 std::vector<short>::const_iterator s_it=samples.begin();
150 std::vector<short>::const_iterator s_it_e=samples.end();
154 for (;s_it!=s_it_e && *s_it>=
min && *s_it<=
max;++s_it)
175 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 LArAutoCorrMaker::finalize |
( |
| ) |
|
|
inline |
◆ initialize()
StatusCode LArAutoCorrMaker::initialize |
( |
| ) |
|
Definition at line 60 of file LArAutoCorrMaker.cxx.
74 return StatusCode::FAILURE;
80 ATH_MSG_ERROR(
"Failed initialize intermediate AutoCorr object" );
84 return StatusCode::SUCCESS;
◆ 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()
◆ stop()
StatusCode LArAutoCorrMaker::stop |
( |
| ) |
|
Definition at line 180 of file LArAutoCorrMaker.cxx.
187 ATH_MSG_ERROR(
"Key list is empty! No containers processed!" );
188 return StatusCode::FAILURE;
195 if (
sc.isFailure()) {
196 ATH_MSG_ERROR(
"Failed to set groupingType for LArAutoCorrComplete object" );
201 if (
sc.isFailure()) {
202 ATH_MSG_ERROR(
"Failed initialize LArAutoCorrComplete object" );
211 for (;cell_it!=cell_it_e;cell_it++) {
223 std::vector<float> cov_flt;
224 cov_flt.reserve(
cov.size());
225 std::vector<double>::const_iterator
it=
cov.begin();
226 std::vector<double>::const_iterator it_e=
cov.end();
228 cov_flt.push_back((
float)*
it);
233 larAutoCorrComplete->
set(ch_id,
gain,cov_flt);
240 ATH_MSG_INFO(
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 4096 " );
241 ATH_MSG_INFO(
" Summary : Number of Barrel cells side A or C (connected+unconnected): 53248 " );
242 ATH_MSG_INFO(
" Summary : Number of EMEC cells side A or C (connected+unconnected): 35328 " );
243 ATH_MSG_INFO(
" Summary : Number of HEC cells side A or C (connected+unconnected): 3072 ");
244 ATH_MSG_INFO(
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1792 " );
248 if (
sc != StatusCode::SUCCESS) {
249 ATH_MSG_ERROR(
" Cannot store LArAutoCorrComplete in DetectorStore " );
255 if (
sc != StatusCode::SUCCESS) {
260 return StatusCode::SUCCESS;
◆ 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_autocorr
◆ m_bcDataKey
◆ m_bunchCrossingsFromFront
int LArAutoCorrMaker::m_bunchCrossingsFromFront |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_groupingType
std::string LArAutoCorrMaker::m_groupingType |
|
private |
◆ m_keylist
std::vector<std::string> LArAutoCorrMaker::m_keylist |
|
private |
◆ m_keylistproperty
std::vector<std::string> LArAutoCorrMaker::m_keylistproperty |
|
private |
◆ m_keyoutput
std::string LArAutoCorrMaker::m_keyoutput |
|
private |
◆ m_nEvents
unsigned LArAutoCorrMaker::m_nEvents |
|
private |
◆ m_normalize
int LArAutoCorrMaker::m_normalize |
|
private |
◆ m_nref
int LArAutoCorrMaker::m_nref |
|
private |
◆ m_nsamples
int LArAutoCorrMaker::m_nsamples = 0 |
|
private |
◆ m_physics
int LArAutoCorrMaker::m_physics |
|
private |
◆ m_rms_cut
int LArAutoCorrMaker::m_rms_cut |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vAutoCorr)
const short & get_max() const
const std::vector< double > & get_cov(int m_normalize, int m_phys)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
unsigned int totalNumberOfConditions() const
Statistics: total number of conditions.
This class implements the ILArAutoCorr interface.
std::vector< std::string > m_keylist
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadCondHandleKey< BunchCrossingCondData > m_bcDataKey
void set_max(const short max)
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
Liquid Argon digit base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
void set_min(const short min)
@ BunchCrossings
Distance in units of 25 nanoseconds.
void add(const std::vector< short > &samples, size_t maxnsamples)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::string m_groupingType
ConditionsMap::iterator ConditionsMapIterator
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const short & get_min() const
setEventNumber setTimeStamp bcid
Class describing the basic event information.
DataObjIDColl m_extendedExtraObjects
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
BunchCrossingType bcType(const bcid_type bcid) const
Convenience function for the type of the specific bunch crossing.
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Container class for LArDigit.
AthAlgorithm()
Default constructor:
std::vector< std::string > m_keylistproperty
uint32_t bcid() const
The bunch crossing ID of the event.
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>
int m_bunchCrossingsFromFront
bool empty() const noexcept
Returns true if the collection is empty.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.