|
ATLAS Offline Software
|
This algorithm is meant to be run in standalone only for TTL1 calibration purposes.
More...
#include <LArTTL1Calib.h>
|
| LArTTL1Calib (const std::string &name, ISvcLocator *pSvcLocator) |
| constructor More...
|
|
| ~LArTTL1Calib () |
| destructor More...
|
|
virtual StatusCode | initialize () |
|
virtual StatusCode | execute () |
|
virtual StatusCode | finalize () |
|
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 |
|
This algorithm is meant to be run in standalone only for TTL1 calibration purposes.
Definition at line 28 of file LArTTL1Calib.h.
◆ StoreGateSvc_t
◆ LArTTL1Calib()
LArTTL1Calib::LArTTL1Calib |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArTTL1Calib()
LArTTL1Calib::~LArTTL1Calib |
( |
| ) |
|
◆ 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]
◆ decodeInverseTTChannel()
void LArTTL1Calib::decodeInverseTTChannel |
( |
int |
region, |
|
|
int |
layer, |
|
|
int |
eta, |
|
|
int & |
bec, |
|
|
int & |
emhf, |
|
|
int & |
Ieta |
|
) |
| const |
|
private |
Definition at line 320 of file LArTTL1Calib.cxx.
334 }
else if (region == 1 || region == 2) {
342 }
else if (region == 3) {
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode LArTTL1Calib::execute |
( |
| ) |
|
|
virtual |
Definition at line 145 of file LArTTL1Calib.cxx.
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;
◆ 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 LArTTL1Calib::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode LArTTL1Calib::initialize |
( |
| ) |
|
|
virtual |
Definition at line 67 of file LArTTL1Calib.cxx.
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;
◆ 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_bec_mostEem
NTuple::Item<long> LArTTL1Calib::m_bec_mostEem |
|
private |
◆ m_becttem
NTuple::Array<long> LArTTL1Calib::m_becttem |
|
private |
◆ m_detStore
◆ m_e3x3em
NTuple::Item<float> LArTTL1Calib::m_e3x3em |
|
private |
◆ m_e3x3had
NTuple::Item<float> LArTTL1Calib::m_e3x3had |
|
private |
◆ m_emfcal_mostEem
NTuple::Item<long> LArTTL1Calib::m_emfcal_mostEem |
|
private |
◆ m_emfcalttem
NTuple::Array<long> LArTTL1Calib::m_emfcalttem |
|
private |
◆ m_emostem
NTuple::Item<float> LArTTL1Calib::m_emostem |
|
private |
◆ m_emosthad
NTuple::Item<float> LArTTL1Calib::m_emosthad |
|
private |
◆ m_etotem
NTuple::Item<float> LArTTL1Calib::m_etotem |
|
private |
◆ m_etothad
NTuple::Item<float> LArTTL1Calib::m_etothad |
|
private |
◆ m_ettem
NTuple::Array<float> LArTTL1Calib::m_ettem |
|
private |
◆ m_etthad
NTuple::Array<float> LArTTL1Calib::m_etthad |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_hecfcal_mostEhad
NTuple::Item<long> LArTTL1Calib::m_hecfcal_mostEhad |
|
private |
◆ m_hecfcaltthad
NTuple::Array<long> LArTTL1Calib::m_hecfcaltthad |
|
private |
◆ m_Ieta_mostEem
NTuple::Item<long> LArTTL1Calib::m_Ieta_mostEem |
|
private |
◆ m_Ieta_mostEhad
NTuple::Item<long> LArTTL1Calib::m_Ieta_mostEhad |
|
private |
◆ m_Ietattem
NTuple::Array<long> LArTTL1Calib::m_Ietattem |
|
private |
◆ m_Ietatthad
NTuple::Array<long> LArTTL1Calib::m_Ietatthad |
|
private |
◆ m_Lphi_mostEem
NTuple::Item<long> LArTTL1Calib::m_Lphi_mostEem |
|
private |
◆ m_Lphi_mostEhad
NTuple::Item<long> LArTTL1Calib::m_Lphi_mostEhad |
|
private |
◆ m_Lphittem
NTuple::Array<long> LArTTL1Calib::m_Lphittem |
|
private |
◆ m_Lphitthad
NTuple::Array<long> LArTTL1Calib::m_Lphitthad |
|
private |
◆ m_lvl1Helper
◆ m_maxNtt
int LArTTL1Calib::m_maxNtt |
|
private |
◆ m_n3x3em
NTuple::Item<long> LArTTL1Calib::m_n3x3em |
|
private |
◆ m_n3x3had
NTuple::Item<long> LArTTL1Calib::m_n3x3had |
|
private |
◆ m_ntotem
NTuple::Item<long> LArTTL1Calib::m_ntotem |
|
private |
◆ m_ntothad
NTuple::Item<long> LArTTL1Calib::m_ntothad |
|
private |
◆ m_nttem
NTuple::Item<long> LArTTL1Calib::m_nttem |
|
private |
◆ m_ntthad
NTuple::Item<long> LArTTL1Calib::m_ntthad |
|
private |
◆ m_pnt
NTuple::Tuple* LArTTL1Calib::m_pnt |
|
private |
◆ m_thresholdGeVTTs
float LArTTL1Calib::m_thresholdGeVTTs |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
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.
virtual void setOwner(IDataHandleHolder *o)=0
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
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
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
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
NTuple::Item< long > m_ntothad
Container class for LArTTL1.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
NTuple::Item< long > m_bec_mostEem
NTuple::Item< float > m_etotem
int eta(const Identifier id) const
return eta according to :
NTuple::Item< long > m_n3x3had
NTuple::Item< float > m_emostem
DataObjIDColl m_extendedExtraObjects
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
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
NTuple::Item< long > m_Ieta_mostEhad
AthAlgorithm()
Default constructor:
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.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
NTuple::Item< long > m_Ieta_mostEem
NTuple::Item< float > m_e3x3em