|
ATLAS Offline Software
|
#include <TGCHitAnalysis.h>
|
| TGCHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~TGCHitAnalysis () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
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 TGCHitAnalysis.h.
◆ StoreGateSvc_t
◆ TGCHitAnalysis()
TGCHitAnalysis::TGCHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TGCHitAnalysis()
virtual TGCHitAnalysis::~TGCHitAnalysis |
( |
| ) |
|
|
inlinevirtual |
◆ 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 TGCHitAnalysis::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 180 of file TGCHitAnalysis.cxx.
201 if (
evtStore()->
retrieve(tgc_container,
"TGC_Hits" ) == StatusCode::SUCCESS) {
234 m_hits_lx->push_back((*i_hit).localPosition().x());
235 m_hits_ly->push_back((*i_hit).localPosition().y());
236 m_hits_lz->push_back((*i_hit).localPosition().z());
237 m_hits_dcx->push_back((*i_hit).localDireCos().x());
238 m_hits_dcy->push_back((*i_hit).localDireCos().y());
239 m_hits_dcz->push_back((*i_hit).localDireCos().z());
249 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 TGCHitAnalysis::initialize |
( |
| ) |
|
|
overridevirtual |
Histograms
now add branches and leaves to the tree
Definition at line 70 of file TGCHitAnalysis.cxx.
77 m_h_hits_x =
new TH1D(
"h_hits_tgc_x",
"hits_x", 100,-5000, 5000);
81 m_h_hits_y =
new TH1D(
"h_hits_tgc_y",
"hits_y", 100,-5000,5000);
85 m_h_hits_z =
new TH1D(
"h_hits_tgc_z",
"hits_z", 100,-12000,12000);
89 m_h_hits_r =
new TH1D(
"h_hits_tgc_r",
"hits_r", 100,2000,10000);
93 m_h_xy =
new TH2D(
"h_tgc_xy",
"xy", 100,-5000.,5000.,100, -5000., 5000.);
97 m_h_rz =
new TH2D(
"h_tgc_rz",
"rz", 100,2000.,10000.,100, -12000., 12000.);
101 m_h_hits_eta =
new TH1D(
"h_hits_tgc_eta",
"hits_eta", 100,-10.0,10.0);
105 m_h_hits_phi =
new TH1D(
"h_hits_tgc_phi",
"hits_phi", 100,-3.2,3.2);
109 m_h_hits_lx =
new TH1D(
"h_hits_tgc_lx",
"hits_lx", 100,-800, 800);
113 m_h_hits_ly =
new TH1D(
"h_hits_tgc_ly",
"hits_ly", 100,-800,800);
117 m_h_hits_lz =
new TH1D(
"h_hits_tgc_lz",
"hits_lz", 100,-800,800);
121 m_h_hits_dcx =
new TH1D(
"h_hits_tgc_dcx",
"hits_dcx", 100,-1, 1);
125 m_h_hits_dcy =
new TH1D(
"h_hits_tgc_dcy",
"hits_dcy", 100,-1,1);
129 m_h_hits_dcz =
new TH1D(
"h_hits_tgc_dcz",
"hits_dcz", 100,-1,1);
133 m_h_hits_time =
new TH1D(
"h_hits_tgc_time",
"hits_time", 100,0, 250);
137 m_h_hits_edep =
new TH1D(
"h_hits_tgc_edep",
"hits_edep", 100,0,0.5);
141 m_h_hits_kine =
new TH1D(
"h_hits_tgc_kine",
"hits_kine", 100,0,1000);
145 m_h_hits_step =
new TH1D(
"h_hits_tgc_step",
"hits_step", 100,0,50);
150 m_tree =
new TTree(
"TGC",
"TGC");
176 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_dcx
TH1* TGCHitAnalysis::m_h_hits_dcx |
|
private |
◆ m_h_hits_dcy
TH1* TGCHitAnalysis::m_h_hits_dcy |
|
private |
◆ m_h_hits_dcz
TH1* TGCHitAnalysis::m_h_hits_dcz |
|
private |
◆ m_h_hits_edep
TH1* TGCHitAnalysis::m_h_hits_edep |
|
private |
◆ m_h_hits_eta
TH1* TGCHitAnalysis::m_h_hits_eta |
|
private |
◆ m_h_hits_kine
TH1* TGCHitAnalysis::m_h_hits_kine |
|
private |
◆ m_h_hits_lx
TH1* TGCHitAnalysis::m_h_hits_lx |
|
private |
◆ m_h_hits_ly
TH1* TGCHitAnalysis::m_h_hits_ly |
|
private |
◆ m_h_hits_lz
TH1* TGCHitAnalysis::m_h_hits_lz |
|
private |
◆ m_h_hits_phi
TH1* TGCHitAnalysis::m_h_hits_phi |
|
private |
◆ m_h_hits_r
TH1* TGCHitAnalysis::m_h_hits_r |
|
private |
◆ m_h_hits_step
TH1* TGCHitAnalysis::m_h_hits_step |
|
private |
◆ m_h_hits_time
TH1* TGCHitAnalysis::m_h_hits_time |
|
private |
◆ m_h_hits_x
TH1* TGCHitAnalysis::m_h_hits_x |
|
private |
◆ m_h_hits_y
TH1* TGCHitAnalysis::m_h_hits_y |
|
private |
◆ m_h_hits_z
TH1* TGCHitAnalysis::m_h_hits_z |
|
private |
◆ m_h_rz
TH2* TGCHitAnalysis::m_h_rz |
|
private |
◆ m_h_xy
TH2* TGCHitAnalysis::m_h_xy |
|
private |
◆ m_hits_dcx
std::vector<float>* TGCHitAnalysis::m_hits_dcx |
|
private |
◆ m_hits_dcy
std::vector<float>* TGCHitAnalysis::m_hits_dcy |
|
private |
◆ m_hits_dcz
std::vector<float>* TGCHitAnalysis::m_hits_dcz |
|
private |
◆ m_hits_edep
std::vector<float>* TGCHitAnalysis::m_hits_edep |
|
private |
◆ m_hits_eta
std::vector<float>* TGCHitAnalysis::m_hits_eta |
|
private |
◆ m_hits_kine
std::vector<float>* TGCHitAnalysis::m_hits_kine |
|
private |
◆ m_hits_lx
std::vector<float>* TGCHitAnalysis::m_hits_lx |
|
private |
◆ m_hits_ly
std::vector<float>* TGCHitAnalysis::m_hits_ly |
|
private |
◆ m_hits_lz
std::vector<float>* TGCHitAnalysis::m_hits_lz |
|
private |
◆ m_hits_phi
std::vector<float>* TGCHitAnalysis::m_hits_phi |
|
private |
◆ m_hits_r
std::vector<float>* TGCHitAnalysis::m_hits_r |
|
private |
◆ m_hits_step
std::vector<float>* TGCHitAnalysis::m_hits_step |
|
private |
◆ m_hits_time
std::vector<float>* TGCHitAnalysis::m_hits_time |
|
private |
◆ m_hits_x
std::vector<float>* TGCHitAnalysis::m_hits_x |
|
private |
◆ m_hits_y
std::vector<float>* TGCHitAnalysis::m_hits_y |
|
private |
◆ m_hits_z
std::vector<float>* TGCHitAnalysis::m_hits_z |
|
private |
◆ m_ntupleFileName
std::string TGCHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string TGCHitAnalysis::m_path |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* TGCHitAnalysis::m_tree |
|
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_hits_y
std::string m_ntupleFileName
ServiceHandle< ITHistSvc > m_thistSvc
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const_iterator begin() const
std::vector< float > * m_hits_kine
CONT::const_iterator const_iterator
virtual void setOwner(IDataHandleHolder *o)=0
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_dcy
std::vector< float > * m_hits_time
std::vector< float > * m_hits_phi
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< float > * m_hits_ly
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::vector< float > * m_hits_dcz
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_hits_dcx
TH1 * m_h_hits_x
Some variables.
std::vector< float > * m_hits_step
std::vector< float > * m_hits_eta
std::vector< float > * m_hits_z
Eigen::Matrix< double, 3, 1 > Vector3D
std::vector< float > * m_hits_r
std::vector< float > * m_hits_x
std::vector< float > * m_hits_lz
DataObjIDColl m_extendedExtraObjects
std::vector< float > * m_hits_lx
#define ATH_MSG_WARNING(x)
const_iterator end() const
std::vector< float > * m_hits_edep
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>