|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "CLHEP/Random/RandGaussZiggurat.h"
17 #include "CLHEP/Random/Randomize.h"
68 ATH_MSG_ERROR(
"Unable to retrieve CaloIdManager from DetectorStore" );
70 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
92 return StatusCode::SUCCESS;
132 return StatusCode::FAILURE;
172 std::vector<double> vnoise;
178 std::vector< std::vector<double> > vAutoCorrMatrix(
m_nSamples, std::vector<double>(
m_nSamples,0));
184 std::vector<double> vsamples;
206 if(bIsTile||bIsHadronic)
TT->addHadAmps(vsamples);
208 else TT->addEMAmps(vsamples);
226 std::map<unsigned int, LVL1::InternalTriggerTower*>::const_iterator
it =
m_IntTTContainer->begin();
230 double eta =
it->second->eta();
232 double phi =
it->second->phi();
234 unsigned int key =
it->second->key();
238 std::vector<double> vEmAmps =
it->second->EmAmps();
240 std::vector<int> emDigits(vEmAmps.size());
241 for (
size_t i = 0;
i < vEmAmps.size();
i++)
242 emDigits[
i] =
static_cast<int> (vEmAmps[
i]);
245 std::vector<double> vHadAmps =
it->second->HadAmps();
247 std::vector<int> hadDigits(vHadAmps.size());
248 for (
size_t i = 0;
i < vHadAmps.size();
i++)
249 hadDigits[
i] =
static_cast<int> (vHadAmps[
i]);
258 std::vector<int> emEt; emEt.push_back(0);
260 std::vector<int> hadEt; hadEt.push_back(0);
262 std::vector<int> emBCID; emBCID.push_back(0);
264 std::vector<int> hadBCID; hadBCID.push_back(0);
266 std::vector<int> emExt; emExt.push_back(0);
268 std::vector<int> hadExt; hadExt.push_back(0);
282 emDigits, emEt, emExt, emBCID, 0, peak, emADCPeak,
284 hadDigits, hadEt, hadExt, hadBCID, 0, peak, hadADCPeak);
308 return StatusCode::FAILURE;
324 return StatusCode::SUCCESS;
345 return StatusCode::SUCCESS;
405 int region = l1id->
region(
id);
407 int ieta = l1id->
eta(
id);
413 double gran[4] = {0.1, 0.2, 0.1, 0.425};
415 double offset[4] = {0., 2.5, 3.1, 3.2};
421 if (region>=0 && region<=3) {
423 eta =
sign* ( ( (ieta+0.5) * gran[region] ) +
offset[region] );
445 double phiMax = l1id->
phi_max(regId);
447 int iphi = l1id->
phi(
id);
451 double phi = (iphi+0.5)*2*
M_PI/(phiMax+1);
JetConstituentVector::iterator iterator
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Scalar phi() const
phi method
L1CaloPedestalGenerator(const std::string &name, ISvcLocator *pSvcLocator)
std::map< unsigned int, LVL1::InternalTriggerTower * > * m_IntTTContainer
const CaloLVL1_ID * m_lvl1Helper
virtual ~L1CaloPedestalGenerator()
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
LVL1::InternalTriggerTower * findInternalTriggerTower(const Identifier &towerId, bool bCreate=true)
int region(const Identifier id) const
return region according to :
LVL1::TriggerTowerKey * m_towerKey
Identifier region_id(int pos_neg_z, int sampling, int region) const
build a region (of towers) identifier
const CaloIdManager * m_caloMgr
double IDphi(const Identifier &id, const CaloLVL1_ID *l1id)
id_iterator tower_end() const
end iterator over towers
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual double eta() const
returns the centre of the TT at eta_coord:
int phi(const Identifier id) const
return phi according to :
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
const CaloLVL1_ID * getLVL1_ID(void) const
A version of the TriggerTower that contains information that would not be availiable during datatakin...
Trigger towers are the inputs to all other parts of the calorimeter trigger.
Helper class for offline TT identifiers.
int eta(const Identifier id) const
return eta according to :
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual StatusCode execute()
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
DataVector< LVL1::TriggerTower > TriggerTowerCollection
double IDeta(const Identifier &id, const CaloLVL1_ID *l1id)
id_iterator tower_begin() const
begin iterator over towers
int sampling(const Identifier id) const
return sampling according to :
virtual StatusCode finalize()
virtual unsigned int ttKey(const TriggerTower &tower)
returns the key of the passed tower
bool is_tile(const Identifier id) const
Test wether given tower or layer is part of the Tile Calorimeter.
size_type size() const noexcept
Returns the number of elements in the collection.
The TriggerTowerKey object provides the key for each trigger tower depending on its eta-phi coords.
virtual StatusCode initialize()
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.