|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CLHEP/Random/RandomEngine.h"
18 const std::string&
name,
19 const IInterface*
parent) :
37 {0.000001,0.000001,0.000001,0.000001,0.000001,
38 0.000001,0.000001,0.000001,0.000001,0.000001,
39 0.000001,0.000001,0.000001,0.000001,0.000001},
41 m_key_digitCnt (
"Lucid_Digits")
43 declareProperty(
"SimHitCollection" ,
45 "Name of the input Collection of simulated hits");
46 declareProperty(
"LucidDigitsContainer",
48 "Name of the Container to hold the output from the digitization");
59 declareProperty(
"Q1bin" ,
m_Q1bin);
99 return StatusCode::SUCCESS;
105 ATH_MSG_DEBUG (
"prepareEvent() called for " << nInputEvents <<
" input events" );
108 ATH_MSG_DEBUG (
" Digit container is recorded in StoreGate " );
112 return StatusCode::SUCCESS;
120 ATH_MSG_DEBUG (
"LUCID_PileUpTool::processBunchXing() " << bunchXing );
124 for (; iEvt!=eSubEvents; ++iEvt)
128 ATH_MSG_VERBOSE (
"SubEvt EventInfo from StoreGate " << seStore.name() <<
" :"
129 <<
" bunch crossing : " << bunchXing
130 <<
" time offset : " << iEvt->time()
131 <<
" event number : " << iEvt->ptr()->eventNumber()
132 <<
" run number : " << iEvt->ptr()->runNumber()
139 ATH_MSG_ERROR (
"SubEvent BCM SiHitCollection not found in StoreGate " << seStore.name() );
141 return StatusCode::FAILURE;
144 ATH_MSG_DEBUG (
"LUCID_SimHitCollection found with " << tmpColl->
size() <<
" hits" );
153 return StatusCode::SUCCESS;
161 CLHEP::HepRandomEngine* rngEngine = rngWrapper->
getEngine(ctx);
163 ATH_MSG_DEBUG (
" LUCID_DigitContainer successfully registered in StoreGate " );
165 return StatusCode::SUCCESS;
175 TimedHitCollList hitCollList;
187 while (iColl != endColl)
191 thpclucid.
insert(iColl->first, tmpColl);
193 ATH_MSG_DEBUG (
" LUCID_SimHitCollection found with " << tmpColl->
size() <<
" hits " << iColl->first );
200 ATH_MSG_DEBUG (
" Digit container is recorded in StoreGate " );
204 CLHEP::HepRandomEngine* rngEngine = rngWrapper->
getEngine(ctx);
206 ATH_MSG_DEBUG (
" Digit container was filled successfully " );
208 return StatusCode::SUCCESS;
213 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
AtlasHitsVector< LUCID_SimHit > LUCID_SimHitCollection
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
#define ATH_MSG_VERBOSE(x)
const_iterator begin() const
CONT::const_iterator const_iterator
std::list< value_t > type
type of the collection of timed data object
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
The Athena Transient Store API.
void insert(const PileUpTimeEventIndex &timeEventIndex, const AtlasHitsVector< HIT > *inputCollection)
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
A wrapper class for event-slot-local random engines.
Helpers for checking error return status codes and reporting errors.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
const_iterator end() const
void push_back(const T &t)