|
ATLAS Offline Software
|
#include <LArPedestalMaker.h>
|
| LArPedestalMaker (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArPedestalMaker () |
|
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 34 of file LArPedestalMaker.h.
◆ LARPEDMAP
◆ StoreGateSvc_t
◆ LArPedestalMaker()
LArPedestalMaker::LArPedestalMaker |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArPedestalMaker()
LArPedestalMaker::~LArPedestalMaker |
( |
| ) |
|
|
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 LArPedestalMaker::execute |
( |
| ) |
|
Definition at line 74 of file LArPedestalMaker.cxx.
78 ATH_MSG_ERROR (
"Key list is empty! No containers to process!" );
79 return StatusCode::FAILURE;
85 if (
sc.isFailure() || !larDigitContainer) {
86 ATH_MSG_DEBUG (
"Cannot read LArCalibDigitContainer from StoreGate! key=" <<
key );
89 if(larDigitContainer->
empty()) {
101 return StatusCode::FAILURE;
103 const std::vector<short> & samples =
digit->samples();
106 std::vector<short>::const_iterator s_it=samples.begin();
107 std::vector<short>::const_iterator s_it_e=samples.end();
110 for (;s_it!=s_it_e && *s_it>=
min && *s_it<=
max;++s_it)
113 thisPed.
add(samples);
116 thisPed.
add(samples);
129 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 LArPedestalMaker::finalize |
( |
| ) |
|
|
inline |
◆ initialize()
StatusCode LArPedestalMaker::initialize |
( |
| ) |
|
◆ 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 LArPedestalMaker::stop |
( |
| ) |
|
Definition at line 134 of file LArPedestalMaker.cxx.
140 ATH_MSG_ERROR (
"Key list is empty! No containers processed!" );
141 return StatusCode::FAILURE;
145 auto larPedestalComplete = std::make_unique<LArPedestalComplete>();
148 ATH_CHECK( larPedestalComplete->initialize() );
158 int n_zero,n_min, n_max, n_cur;
159 n_zero=0; n_max=n_min=-1;
160 for (;cell_it!=cell_it_e;cell_it++) {
178 if(n_cur<n_min || n_min<0) n_min=n_cur;
179 if(n_cur>n_max || n_max<0) n_max=n_cur;
188 ATH_MSG_INFO (
"Gain " <<
gain <<
" Number of cells with 0 events to compute pedestal: " << n_zero );
189 ATH_MSG_INFO (
"Gain " <<
gain <<
" Minimum number of events|samples to compute pedestal: " << n_min );
190 ATH_MSG_INFO (
"Gain " <<
gain <<
" Maximum number of events|samples to compute pedestal: " << n_max );
193 ATH_MSG_INFO (
" Summary : Number of cells with a pedestal value computed : " << larPedestalComplete->totalNumberOfConditions() );
194 ATH_MSG_INFO (
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 4096 " );
195 ATH_MSG_INFO (
" Summary : Number of Barrel cells side A or C (connected+unconnected): 53248 " );
196 ATH_MSG_INFO (
" Summary : Number of EMEC cells side A or C (connected+unconnected): 35328 " );
197 ATH_MSG_INFO (
" Summary : Number of HEC cells side A or C (connected+unconnected): 3072 ");
198 ATH_MSG_INFO (
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1792 " );
204 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_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_groupingType
std::string LArPedestalMaker::m_groupingType |
|
private |
◆ m_keylist
std::vector<std::string> LArPedestalMaker::m_keylist |
|
private |
◆ m_keyoutput
std::string LArPedestalMaker::m_keyoutput |
|
private |
◆ m_mean
std::vector<float> LArPedestalMaker::m_mean |
|
private |
◆ m_nref
int LArPedestalMaker::m_nref |
|
private |
◆ m_pedestal
◆ m_rms
std::vector<float> LArPedestalMaker::m_rms |
|
private |
◆ m_rms_cut
double LArPedestalMaker::m_rms_cut |
|
private |
◆ m_sample_max
int LArPedestalMaker::m_sample_max |
|
private |
◆ m_sample_min
int LArPedestalMaker::m_sample_min |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_which_sample
int LArPedestalMaker::m_which_sample |
|
private |
The documentation for this class was generated from the following files:
std::vector< float > m_mean
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="")
void set(const std::string &id)
build from a string form - hexadecimal
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
const short & get_max() const
void add(const std::vector< short > &samples)
const short & get_min() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
unsigned get_nsamples() const
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
void set_min(const short min)
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
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void set_max(const short max)
ConditionsMap::iterator ConditionsMapIterator
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< std::string > m_keylist
std::vector< float > m_rms
DataObjIDColl m_extendedExtraObjects
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
std::string m_groupingType
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:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool empty() const noexcept
Returns true if the collection is empty.