|
ATLAS Offline Software
|
Go to the documentation of this file.
25 #include "Gaudi/Property.h"
26 #include "GaudiKernel/ISvcLocator.h"
28 #include "GaudiKernel/INTupleSvc.h"
30 #include "GaudiKernel/SmartDataPtr.h"
79 NTuple::Directory*
dir =
nullptr;
80 NTupleFilePtr file1(
ntupleSvc(),
"/NTUPLES/FILE1");
83 if (!(
dir =
ntupleSvc()->createDirectory(
"/NTUPLES/FILE1/DIR"))) {
88 return StatusCode::FAILURE;
93 NTuplePtr pnt(
ntupleSvc(),
"/NTUPLES/FILE1/DIR/10");
95 pnt =
ntupleSvc()->book(
dir, 10, CLID_ColumnWiseTuple,
"LArLvl1TT");
142 return StatusCode::SUCCESS;
160 std::vector<std::string> containerVec;
161 containerVec.push_back(
"LArTTL1EM");
162 containerVec.push_back(
"LArTTL1HAD");
168 for (
unsigned int iTTL1Container = 0; iTTL1Container < containerVec.size();
173 ATH_MSG_DEBUG(
" asking for: " << containerVec[iTTL1Container]);
182 int samp = iTTL1Container;
188 int hecfcal_mostE = 99;
191 int phiMax_mostE = -99;
197 for (
const LArTTL1* ttl1 : *ttl1_container) {
198 ttOffId = ttl1->ttOfflineID();
199 std::vector<float> sampleV = ttl1->samples();
200 float e = sampleV[3] * 1
e-3;
212 hecfcal_mostE = hecfcal;
215 phiMax_mostE = phiMax;
256 ATH_MSG_DEBUG(
"number of em/had ttl1s: " << indexem <<
" / " << indexhad);
259 if (hecfcal_mostE > 0) {
266 for (
int i = 0;
i < indexem; ++
i) {
286 for (
int i = 0;
i < indexhad; ++
i) {
289 if ((deltaEta <= 1 || deltaEta >= etaLim) &&
305 return StatusCode::SUCCESS;
316 ATH_MSG_DEBUG(
" LArTTL1Calib finalize completed successfully");
317 return StatusCode::SUCCESS;
334 }
else if (region == 1 || region == 2) {
342 }
else if (region == 3) {
def retrieve(aClass, aKey=None)
NTuple::Array< long > m_hecfcaltthad
NTuple::Item< long > m_Lphi_mostEem
NTuple::Array< long > m_Lphittem
NTuple::Item< float > m_etothad
Const iterator class for DataVector/DataList.
NTuple::Item< long > m_hecfcal_mostEhad
Scalar eta() const
pseudorapidity method
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
NTuple::Item< long > m_nttem
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
const CaloLVL1_ID * m_lvl1Helper
virtual StatusCode execute()
~LArTTL1Calib()
destructor
int region(const Identifier id) const
return region according to :
NTuple::Array< long > m_emfcalttem
NTuple::Item< long > m_n3x3em
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
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.
NTuple::Array< float > m_ettem
void decodeInverseTTChannel(int region, int layer, int eta, int &bec, int &emhf, int &Ieta) const
NTuple::Item< long > m_ntthad
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
NTuple::Array< long > m_Ietattem
::StatusCode StatusCode
StatusCode definition for legacy code.
NTuple::Item< float > m_emosthad
NTuple::Item< long > m_ntothad
Container class for LArTTL1.
virtual StatusCode initialize()
NTuple::Item< long > m_bec_mostEem
NTuple::Item< float > m_etotem
int eta(const Identifier id) const
return eta according to :
LArTTL1Calib(const std::string &name, ISvcLocator *pSvcLocator)
constructor
NTuple::Item< long > m_n3x3had
NTuple::Item< float > m_emostem
NTuple::Item< float > m_e3x3had
NTuple::Array< long > m_Ietatthad
#define ATH_MSG_WARNING(x)
NTuple::Item< long > m_ntotem
NTuple::Item< long > m_emfcal_mostEem
NTuple::Item< long > m_Ieta_mostEhad
NTuple::Array< float > m_etthad
NTuple::Array< long > m_becttem
NTuple::Item< long > m_Lphi_mostEhad
size_type size() const noexcept
Returns the number of elements in the collection.
NTuple::Array< long > m_Lphitthad
Liquid Argon TT L1 sum class.
virtual StatusCode finalize()
NTuple::Item< long > m_Ieta_mostEem
NTuple::Item< float > m_e3x3em