|
ATLAS Offline Software
|
#include <LArHECNoise.h>
|
| LArHECNoise (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
| ~LArHECNoise ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | execute () 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 |
|
|
ServiceHandle< ITHistSvc > | m_thistSvc {this,"THistSvc","THistSvc"} |
|
TTree * | m_tree |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"} |
|
SG::ReadCondHandleKey< ILArPedestal > | m_pedKey {this,"PedestalKey","LArPedestal","SG Key of Pedestal obj"} |
|
PublicToolHandle< Trig::TrigDecisionTool > | m_trigDec {this, "TrigDecisionTool", "", "Handle to the TrigDecisionTool"} |
|
const LArOnlineID * | m_LArOnlineIDHelper |
|
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey |
|
const CaloCell_ID * | m_calocell_id |
|
int | m_nt_run |
|
int | m_nt_evtId |
|
int | m_nt_evtCount |
|
int | m_nt_evtTime |
|
int | m_nt_evtTime_ns |
|
int | m_nt_lb |
|
int | m_nt_bcid |
|
int | m_nt_gain |
|
int | m_nt_side |
|
int | m_nt_samp |
|
int | m_nt_reg |
|
int | m_nt_ieta |
|
int | m_nt_iphi |
|
int | m_nt_quality |
|
short | m_nt_digi [32] |
|
int | m_nt_max |
|
int | m_nt_min |
|
long | m_nt_OID |
|
float | m_nt_avgMu |
|
float | m_nt_actMu |
|
float | m_nt_e |
|
float | m_nt_t |
|
float | m_nt_eta |
|
float | m_nt_phi |
|
float | m_nt_z |
|
float | m_nt_r |
|
float | m_nt_ped |
|
float | m_nt_pedRMS |
|
float * | m_nt_prescale |
|
bool * | m_nt_trigger |
|
std::vector< std::string > | m_TriggerLines |
|
int | m_MinDigitADC |
|
int | m_MaxDeltaT |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 46 of file LArHECNoise.h.
◆ StoreGateSvc_t
◆ LArHECNoise()
LArHECNoise::LArHECNoise |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor.
switches to control the analysis through job options
Definition at line 57 of file LArHECNoise.cxx.
97 declareProperty(
"TriggerLines",
m_TriggerLines={
"L1_J5",
"L1_J10",
"L1_J12",
"L1_J30",
"L1_TAU5",
"L1_TAU8",
"L1_J5_EMPTY",
"L1_J10_EMPTY",
"L1_J12_EMPTY",
"L1_J30_EMPTY",
"L1_TAU5_EMPTY",
"L1_TAU8_EMPTY",
"L1_J5_FIRSTEMPTY",
"L1_J10_FIRSTEMPTY",
"L1_J12_FIRSTEMPTY",
"L1_J30_FIRSTEMPTY",
"L1_TAU5_FIRSTEMPTY",
"L1_TAU8_FIRSTEMPTY"});
◆ ~LArHECNoise()
LArHECNoise::~LArHECNoise |
( |
| ) |
|
|
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 LArHECNoise::execute |
( |
| ) |
|
|
overridevirtual |
Define iterators to loop over Digits containers
Definition at line 186 of file LArHECNoise.cxx.
205 if (
evtStore()->contains<CaloCellContainer>(
"AllCalo")) {
207 }
else if (
evtStore()->contains<LArRawChannelContainer>(
"LArRawChannels")){
212 const LArOnOffIdMapping*
cabling{*cablingHdl};
215 return StatusCode::FAILURE;
223 return StatusCode::FAILURE;
232 if (
evtStore()->contains<LArDigitContainer>(
"LArDigitContainer")) {
234 }
else if (
evtStore()->contains<LArDigitContainer>(
"LArDigitContainer_Thinned")) {
236 }
else if (
evtStore()->contains<LArDigitContainer>(
"FREE")) {
239 msg(MSG::WARNING) <<
"Neither LArDigitContainer nor LArDigitContainer_Thinned nor FREE present, not filling anything "<<
endmsg;
240 return StatusCode::SUCCESS;
247 for ( ; itDig!=itDig_e;++itDig) {
255 short samp0= pLArDigit->
samples()[0];
256 for(
unsigned i=0;
i<(pLArDigit->
samples()).size(); ++
i){
259 if(samp-samp0 > sigmax) {
263 if( samp-samp0 < sigmin) {
297 if(rcell->
ID() != oid) {
298 msg(MSG::WARNING) <<
"Cell iHash does not match ..."<<
endmsg;
305 for(
unsigned l=0;
l<lraw->size(); ++
l) {
325 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 LArHECNoise::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode LArHECNoise::initialize |
( |
| ) |
|
|
overridevirtual |
get a handle on the NTuple and histogramming service
Prepare TTree
Definition at line 106 of file LArHECNoise.cxx.
130 m_tree =
new TTree(
"HECNoise",
"HECNoise" );
171 std::string
treeName =
"/HEC/HECNoise" ;
177 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()
◆ 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_cablingKey
◆ m_calocell_id
◆ m_caloMgrKey
Initial value:{ this
, "CaloDetDescrManager"
, "CaloDetDescrManager"
, "SG Key for CaloDetDescrManager in the Condition Store" }
Definition at line 71 of file LArHECNoise.h.
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_LArOnlineIDHelper
◆ m_MaxDeltaT
int LArHECNoise::m_MaxDeltaT |
|
private |
◆ m_MinDigitADC
int LArHECNoise::m_MinDigitADC |
|
private |
◆ m_nt_actMu
float LArHECNoise::m_nt_actMu |
|
private |
◆ m_nt_avgMu
float LArHECNoise::m_nt_avgMu |
|
private |
◆ m_nt_bcid
int LArHECNoise::m_nt_bcid |
|
private |
◆ m_nt_digi
short LArHECNoise::m_nt_digi[32] |
|
private |
◆ m_nt_e
float LArHECNoise::m_nt_e |
|
private |
◆ m_nt_eta
float LArHECNoise::m_nt_eta |
|
private |
◆ m_nt_evtCount
int LArHECNoise::m_nt_evtCount |
|
private |
◆ m_nt_evtId
int LArHECNoise::m_nt_evtId |
|
private |
◆ m_nt_evtTime
int LArHECNoise::m_nt_evtTime |
|
private |
◆ m_nt_evtTime_ns
int LArHECNoise::m_nt_evtTime_ns |
|
private |
◆ m_nt_gain
int LArHECNoise::m_nt_gain |
|
private |
◆ m_nt_ieta
int LArHECNoise::m_nt_ieta |
|
private |
◆ m_nt_iphi
int LArHECNoise::m_nt_iphi |
|
private |
◆ m_nt_lb
◆ m_nt_max
int LArHECNoise::m_nt_max |
|
private |
◆ m_nt_min
int LArHECNoise::m_nt_min |
|
private |
◆ m_nt_OID
long LArHECNoise::m_nt_OID |
|
private |
◆ m_nt_ped
float LArHECNoise::m_nt_ped |
|
private |
◆ m_nt_pedRMS
float LArHECNoise::m_nt_pedRMS |
|
private |
◆ m_nt_phi
float LArHECNoise::m_nt_phi |
|
private |
◆ m_nt_prescale
float* LArHECNoise::m_nt_prescale |
|
private |
◆ m_nt_quality
int LArHECNoise::m_nt_quality |
|
private |
◆ m_nt_r
float LArHECNoise::m_nt_r |
|
private |
◆ m_nt_reg
int LArHECNoise::m_nt_reg |
|
private |
◆ m_nt_run
int LArHECNoise::m_nt_run |
|
private |
◆ m_nt_samp
int LArHECNoise::m_nt_samp |
|
private |
◆ m_nt_side
int LArHECNoise::m_nt_side |
|
private |
◆ m_nt_t
float LArHECNoise::m_nt_t |
|
private |
◆ m_nt_trigger
bool* LArHECNoise::m_nt_trigger |
|
private |
◆ m_nt_z
float LArHECNoise::m_nt_z |
|
private |
◆ m_pedKey
◆ m_thistSvc
ServiceHandle<ITHistSvc> LArHECNoise::m_thistSvc {this,"THistSvc","THistSvc"} |
|
private |
◆ m_tree
TTree* LArHECNoise::m_tree |
|
private |
◆ m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > LArHECNoise::m_trigDec {this, "TrigDecisionTool", "", "Handle to the TrigDecisionTool"} |
|
private |
◆ m_TriggerLines
std::vector<std::string> LArHECNoise::m_TriggerLines |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
const LArOnlineID * m_LArOnlineIDHelper
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ServiceHandle< ITHistSvc > m_thistSvc
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
const std::vector< short > & samples() const
const HWIdentifier & hardwareID() const
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
virtual double e() const override final
get energy (data member) (synonym to method energy()
const std::string & key() const
Return the StoreGate ID for the referenced object.
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
float time() const
get time (data member)
std::vector< std::string > m_TriggerLines
uint32_t runNumber() const
The current event's run number.
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.
SG::ReadCondHandleKey< ILArPedestal > m_pedKey
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Liquid Argon digit base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
uint32_t lumiBlock() const
The current event's luminosity block number.
uint16_t quality() const
get quality (data member)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
StatusCode initialize(bool used=true)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Container class for CaloCell.
Class describing the basic event information.
DataObjIDColl m_extendedExtraObjects
CaloGain::CaloGain gain() const
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
const CaloCell_ID * m_calocell_id
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Container class for LArDigit.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
const HWIdentifier & channelID() const
float eta() const
cell eta
AthAlgorithm()
Default constructor:
float phi() const
cell phi
bool isHECchannel(const HWIdentifier id) const override final
uint32_t bcid() const
The bunch crossing ID of the event.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Container for LArRawChannel (IDC using LArRawChannelCollection)
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.