|
ATLAS Offline Software
|
#include <TRTHitAnalysis.h>
|
| TRTHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TRTHitAnalysis () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | execute () |
|
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 |
|
Definition at line 24 of file TRTHitAnalysis.h.
◆ StoreGateSvc_t
◆ TRTHitAnalysis()
TRTHitAnalysis::TRTHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TRTHitAnalysis()
TRTHitAnalysis::~TRTHitAnalysis |
( |
| ) |
|
|
inline |
◆ 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]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TRTHitAnalysis::execute |
( |
| ) |
|
|
virtual |
Definition at line 142 of file TRTHitAnalysis.cxx.
158 if (
evtStore()->
retrieve(p_collection,
"TRTUncompressedHits") == StatusCode::SUCCESS) {
161 HepGeom::Point3D<double>
p = ghit.getGlobalPosition();
177 int particleId(i_hit->GetParticleEncoding());
178 if(particleId == 22 ||
static_cast<int>(std::abs(particleId)/100000)==41 ||
static_cast<int>(std::abs(particleId)/10000000)==1) {
199 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();
◆ initialize()
StatusCode TRTHitAnalysis::initialize |
( |
| ) |
|
|
virtual |
Histograms
now add branches and leaves to the tree
Definition at line 57 of file TRTHitAnalysis.cxx.
64 m_h_TRT_x =
new TH1D(
"h_TRT_x",
"hits_x", 100,-1100, 1100);
68 m_h_TRT_y =
new TH1D(
"h_TRT_y",
"hits_y", 100,-1100,1100);
72 m_h_TRT_z =
new TH1D(
"h_TRT_z",
"hits_z", 100,-3000,3000);
76 m_h_TRT_r =
new TH1D(
"h_TRT_r",
"hits_r", 100,500,1100);
80 m_h_TRT_xy =
new TH2D(
"h_TRT_xy",
"xy", 100,-1100.,1100.,100, -1100., 1100.);
84 m_h_TRT_zr =
new TH2D(
"h_TRT_zr",
"zr", 100,-3000,3000,100,500.,1100.);
112 m_h_TRT_barcode =
new TH1D(
"h_TRT_barcode",
"hits_barcode", 100,-500,300000);
117 m_tree =
new TTree(
"TRT",
"TRT");
138 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_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_h_TRT_barcode
TH1* TRTHitAnalysis::m_h_TRT_barcode |
|
private |
◆ m_h_TRT_edep_nonphotons
TH1* TRTHitAnalysis::m_h_TRT_edep_nonphotons |
|
private |
◆ m_h_TRT_edep_photons
TH1* TRTHitAnalysis::m_h_TRT_edep_photons |
|
private |
◆ m_h_TRT_kine_nonphotons
TH1* TRTHitAnalysis::m_h_TRT_kine_nonphotons |
|
private |
◆ m_h_TRT_kine_photons
TH1* TRTHitAnalysis::m_h_TRT_kine_photons |
|
private |
◆ m_h_TRT_r
TH1* TRTHitAnalysis::m_h_TRT_r |
|
private |
◆ m_h_TRT_time_nonphotons
TH1* TRTHitAnalysis::m_h_TRT_time_nonphotons |
|
private |
◆ m_h_TRT_time_photons
TH1* TRTHitAnalysis::m_h_TRT_time_photons |
|
private |
◆ m_h_TRT_x
TH1* TRTHitAnalysis::m_h_TRT_x |
|
private |
◆ m_h_TRT_xy
TH2* TRTHitAnalysis::m_h_TRT_xy |
|
private |
◆ m_h_TRT_y
TH1* TRTHitAnalysis::m_h_TRT_y |
|
private |
◆ m_h_TRT_z
TH1* TRTHitAnalysis::m_h_TRT_z |
|
private |
◆ m_h_TRT_zr
TH2* TRTHitAnalysis::m_h_TRT_zr |
|
private |
◆ m_ntupleFileName
std::string TRTHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string TRTHitAnalysis::m_path |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* TRTHitAnalysis::m_tree |
|
private |
◆ m_TRT_barcode
std::vector<float>* TRTHitAnalysis::m_TRT_barcode |
|
private |
◆ m_TRT_edep_nonphotons
std::vector<float>* TRTHitAnalysis::m_TRT_edep_nonphotons |
|
private |
◆ m_TRT_edep_photons
std::vector<float>* TRTHitAnalysis::m_TRT_edep_photons |
|
private |
◆ m_TRT_kine_nonphotons
std::vector<float>* TRTHitAnalysis::m_TRT_kine_nonphotons |
|
private |
◆ m_TRT_kine_photons
std::vector<float>* TRTHitAnalysis::m_TRT_kine_photons |
|
private |
◆ m_TRT_r
std::vector<float>* TRTHitAnalysis::m_TRT_r |
|
private |
◆ m_TRT_time_nonphotons
std::vector<float>* TRTHitAnalysis::m_TRT_time_nonphotons |
|
private |
◆ m_TRT_time_photons
std::vector<float>* TRTHitAnalysis::m_TRT_time_photons |
|
private |
◆ m_TRT_x
std::vector<float>* TRTHitAnalysis::m_TRT_x |
|
private |
◆ m_TRT_y
std::vector<float>* TRTHitAnalysis::m_TRT_y |
|
private |
◆ m_TRT_z
std::vector<float>* TRTHitAnalysis::m_TRT_z |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< float > * m_TRT_z
std::vector< float > * m_TRT_time_nonphotons
TH1 * m_h_TRT_kine_photons
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TH1 * m_h_TRT_x
Some variables.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
TH1 * m_h_TRT_time_nonphotons
const_iterator begin() const
std::vector< float > * m_TRT_kine_nonphotons
std::vector< float > * m_TRT_x
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > * m_TRT_barcode
std::string m_ntupleFileName
virtual StatusCode sysInitialize() override
Override sysInitialize.
ServiceHandle< ITHistSvc > m_thistSvc
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_TRT_y
AtlasHitsVector< TRTUncompressedHit >::const_iterator TRTUncompressedHitConstIter
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
TH1 * m_h_TRT_edep_nonphotons
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_TRT_kine_photons
DataObjIDColl m_extendedExtraObjects
std::vector< float > * m_TRT_edep_nonphotons
#define ATH_MSG_WARNING(x)
const_iterator end() const
TH1 * m_h_TRT_kine_nonphotons
TH1 * m_h_TRT_edep_photons
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
TH1 * m_h_TRT_time_photons
std::vector< float > * m_TRT_r
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< float > * m_TRT_edep_photons
std::vector< float > * m_TRT_time_photons