|
ATLAS Offline Software
|
#include <MDTHitAnalysis.h>
|
| MDTHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~MDTHitAnalysis () |
|
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 MDTHitAnalysis.h.
◆ StoreGateSvc_t
◆ MDTHitAnalysis()
MDTHitAnalysis::MDTHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~MDTHitAnalysis()
MDTHitAnalysis::~MDTHitAnalysis |
( |
| ) |
|
|
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 MDTHitAnalysis::execute |
( |
| ) |
|
|
virtual |
Definition at line 167 of file MDTHitAnalysis.cxx.
186 if (
evtStore()->
retrieve(mdt_container,
"MDT_Hits") == StatusCode::SUCCESS) {
218 m_hits_lx->push_back((*i_hit).localPosition().x());
219 m_hits_ly->push_back((*i_hit).localPosition().y());
220 m_hits_lz->push_back((*i_hit).localPosition().z());
230 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 MDTHitAnalysis::initialize |
( |
| ) |
|
|
virtual |
Histograms
now add branches and leaves to the tree
Definition at line 67 of file MDTHitAnalysis.cxx.
74 m_h_hits_x =
new TH1D(
"h_hits_mdt_x",
"hits_x", 100,-25000, 25000);
78 m_h_hits_y =
new TH1D(
"h_hits_mdt_y",
"hits_y", 100,-25000,25000);
82 m_h_hits_z =
new TH1D(
"h_hits_mdt_z",
"hits_z", 100,-45000,45000);
86 m_h_hits_r =
new TH1D(
"h_hits_mdt_r",
"hits_r", 100,4000,26000);
90 m_h_xy =
new TH2D(
"h_mdt_xy",
"xy", 100,-25000.,25000.,100, -25000., 25000.);
94 m_h_zr =
new TH2D(
"h_mdt_zr",
"zr", 100,-45000.,45000.,100, 4000., 26000.);
98 m_h_hits_eta =
new TH1D(
"h_hits_mdt_eta",
"hits_eta", 100,-3.0,3.0);
102 m_h_hits_phi =
new TH1D(
"h_hits_mdt_phi",
"hits_phi", 100,-3.2,3.2);
106 m_h_hits_lx =
new TH1D(
"h_hits_mdt_lx",
"hits_lx", 100,-20, 20);
110 m_h_hits_ly =
new TH1D(
"h_hits_mdt_ly",
"hits_ly", 100,-20,20);
114 m_h_hits_lz =
new TH1D(
"h_hits_mdt_lz",
"hits_lz", 100,-2000,2000);
118 m_h_hits_driftR =
new TH1D(
"h_hits_mdt_driftR",
"hits_driftR", 100,0,15);
122 m_h_hits_time =
new TH1D(
"h_hits_mdt_time",
"hits_time", 100,0, 150);
126 m_h_hits_edep =
new TH1D(
"h_hits_mdt_edep",
"hits_edep", 100,0,0.2);
130 m_h_hits_kine =
new TH1D(
"h_hits_mdt_kine",
"hits_kine", 100,0,20000);
134 m_h_hits_step =
new TH1D(
"h_hits_mdt_step",
"hits_step", 100,0,100);
139 m_tree =
new TTree(
"MDT",
"MDT");
163 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_hits_driftR
TH1* MDTHitAnalysis::m_h_hits_driftR |
|
private |
◆ m_h_hits_edep
TH1* MDTHitAnalysis::m_h_hits_edep |
|
private |
◆ m_h_hits_eta
TH1* MDTHitAnalysis::m_h_hits_eta |
|
private |
◆ m_h_hits_kine
TH1* MDTHitAnalysis::m_h_hits_kine |
|
private |
◆ m_h_hits_lx
TH1* MDTHitAnalysis::m_h_hits_lx |
|
private |
◆ m_h_hits_ly
TH1* MDTHitAnalysis::m_h_hits_ly |
|
private |
◆ m_h_hits_lz
TH1* MDTHitAnalysis::m_h_hits_lz |
|
private |
◆ m_h_hits_phi
TH1* MDTHitAnalysis::m_h_hits_phi |
|
private |
◆ m_h_hits_r
TH1* MDTHitAnalysis::m_h_hits_r |
|
private |
◆ m_h_hits_step
TH1* MDTHitAnalysis::m_h_hits_step |
|
private |
◆ m_h_hits_time
TH1* MDTHitAnalysis::m_h_hits_time |
|
private |
◆ m_h_hits_x
TH1* MDTHitAnalysis::m_h_hits_x |
|
private |
◆ m_h_hits_y
TH1* MDTHitAnalysis::m_h_hits_y |
|
private |
◆ m_h_hits_z
TH1* MDTHitAnalysis::m_h_hits_z |
|
private |
◆ m_h_xy
TH2* MDTHitAnalysis::m_h_xy |
|
private |
◆ m_h_zr
TH2* MDTHitAnalysis::m_h_zr |
|
private |
◆ m_hits_driftR
std::vector<float>* MDTHitAnalysis::m_hits_driftR |
|
private |
◆ m_hits_edep
std::vector<float>* MDTHitAnalysis::m_hits_edep |
|
private |
◆ m_hits_eta
std::vector<float>* MDTHitAnalysis::m_hits_eta |
|
private |
◆ m_hits_kine
std::vector<float>* MDTHitAnalysis::m_hits_kine |
|
private |
◆ m_hits_lx
std::vector<float>* MDTHitAnalysis::m_hits_lx |
|
private |
◆ m_hits_ly
std::vector<float>* MDTHitAnalysis::m_hits_ly |
|
private |
◆ m_hits_lz
std::vector<float>* MDTHitAnalysis::m_hits_lz |
|
private |
◆ m_hits_phi
std::vector<float>* MDTHitAnalysis::m_hits_phi |
|
private |
◆ m_hits_r
std::vector<float>* MDTHitAnalysis::m_hits_r |
|
private |
◆ m_hits_step
std::vector<float>* MDTHitAnalysis::m_hits_step |
|
private |
◆ m_hits_time
std::vector<float>* MDTHitAnalysis::m_hits_time |
|
private |
◆ m_hits_x
std::vector<float>* MDTHitAnalysis::m_hits_x |
|
private |
◆ m_hits_y
std::vector<float>* MDTHitAnalysis::m_hits_y |
|
private |
◆ m_hits_z
std::vector<float>* MDTHitAnalysis::m_hits_z |
|
private |
◆ m_ntupleFileName
std::string MDTHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string MDTHitAnalysis::m_path |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* MDTHitAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
std::vector< float > * m_hits_time
def retrieve(aClass, aKey=None)
std::vector< float > * m_hits_edep
TH1 * m_h_hits_x
Some variables.
std::vector< float > * m_hits_ly
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< float > * m_hits_lz
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< float > * m_hits_x
std::vector< float > * m_hits_driftR
const_iterator begin() const
CONT::const_iterator const_iterator
std::vector< float > * m_hits_eta
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< float > * m_hits_r
std::vector< float > * m_hits_lx
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
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_hits_phi
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::vector< float > * m_hits_kine
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< float > * m_hits_y
std::vector< float > * m_hits_z
std::string m_ntupleFileName
Eigen::Matrix< double, 3, 1 > Vector3D
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
const_iterator end() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::vector< float > * m_hits_step
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>