21#include "GaudiKernel/MsgStream.h"
28 ISvcLocator* pSvcLocator)
67 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"});
105 m_tree =
new TTree(
"HECNoise",
"HECNoise" );
142 std::string treeName =
"/HEC/HECNoise" ;
148 return StatusCode::SUCCESS;
153 return StatusCode::SUCCESS;
182 return StatusCode::FAILURE;
190 return StatusCode::FAILURE;
206 msg(MSG::WARNING) <<
"Neither LArDigitContainer nor LArDigitContainer_Thinned nor FREE present, not filling anything "<<
endmsg;
207 return StatusCode::SUCCESS;
214 for ( ; itDig!=itDig_e;++itDig) {
222 short samp0= pLArDigit->
samples()[0];
223 for(
unsigned i=0; i<(pLArDigit->
samples()).
size(); ++i){
224 short samp=pLArDigit->
samples()[i];
226 if(samp-samp0 > sigmax) {
230 if( samp-samp0 < sigmin) {
247 Identifier oid = cabling->cnvToIdentifier(hid);
263 const CaloCell *rcell = cc->findCell(ihash);
264 if(rcell->
ID() != oid) {
265 msg(MSG::WARNING) <<
"Cell iHash does not match ..."<<
endmsg;
272 for(
unsigned l=0; l<lraw->size(); ++l) {
273 if((*lraw)[l].identify() == hid) {
274 m_nt_e = (*lraw)[l].energy();
275 m_nt_t = (*lraw)[l].time()*1e-3;
292 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
Definition of CaloDetDescrManager.
#define CHECK(...)
Evaluate an expression and check for errors.
size_t size() const
Number of registered mappings.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
Data object for each calorimeter readout cell.
float time() const
get time (data member)
virtual double e() const override final
get energy (data member) (synonym to method energy()
uint16_t quality() const
get quality (data member)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
DataModel_detail::const_iterator< DataVector > const_iterator
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
Container class for LArDigit.
Liquid Argon digit base class.
CaloGain::CaloGain gain() const
const HWIdentifier & hardwareID() const
const std::vector< short > & samples() const
const HWIdentifier & channelID() const
virtual StatusCode initialize() override
SG::ReadCondHandleKey< ILArPedestal > m_pedKey
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
const LArOnlineID * m_LArOnlineIDHelper
ServiceHandle< ITHistSvc > m_thistSvc
virtual StatusCode finalize() override
std::vector< int > m_nt_trigger
std::vector< std::string > m_TriggerLines
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
std::vector< float > m_nt_prescale
const CaloCell_ID * m_calocell_id
LArHECNoise(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Container for LArRawChannel (IDC using LArRawChannelCollection).
uint32_t lumiBlock() const
The current event's luminosity block number.
uint32_t bcid() const
The bunch crossing ID of the event.
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
uint32_t runNumber() const
The current event's run number.
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
uint64_t eventNumber() const
The current event's event number.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
EventInfo_v1 EventInfo
Definition of the latest event info version.