|
ATLAS Offline Software
|
#include <AFPHitAnalysis.h>
|
| AFPHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~AFPHitAnalysis () |
|
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 22 of file AFPHitAnalysis.h.
◆ StoreGateSvc_t
◆ AFPHitAnalysis()
AFPHitAnalysis::AFPHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~AFPHitAnalysis()
AFPHitAnalysis::~AFPHitAnalysis |
( |
| ) |
|
|
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 AFPHitAnalysis::execute |
( |
| ) |
|
|
virtual |
Definition at line 142 of file AFPHitAnalysis.cxx.
167 for ( hi=(*iter).begin(); hi != (*iter).end(); ++hi ) {
170 m_h_pdgID->Fill(ghit.m_nParticleEncoding);
172 m_h_kine->Fill(ghit.m_fKineticEnergy);
173 m_h_edep->Fill(ghit.m_fEnergyDeposit);
174 m_h_stepX->Fill(ghit.m_fPostStepX-ghit.m_fPreStepX);
175 m_h_stepY->Fill(ghit.m_fPostStepY-ghit.m_fPreStepY);
176 m_h_stepX->Fill(ghit.m_fPostStepZ-ghit.m_fPreStepZ);
183 m_hitID->push_back(ghit.m_nHitID);
184 m_pdgID->push_back(ghit.m_nParticleEncoding);
186 m_kine->push_back(ghit.m_fKineticEnergy);
187 m_edep->push_back(ghit.m_fEnergyDeposit);
188 m_stepX->push_back(ghit.m_fPostStepX-ghit.m_fPreStepX);
189 m_stepY->push_back(ghit.m_fPostStepY-ghit.m_fPreStepY);
190 m_stepX->push_back(ghit.m_fPostStepZ-ghit.m_fPreStepZ);
191 m_time->push_back(ghit.m_fGlobalTime);
193 m_detID->push_back(ghit.m_nDetectorID);
200 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 AFPHitAnalysis::initialize |
( |
| ) |
|
|
virtual |
now define the histograms
now add branches and leaves to the tree
Definition at line 58 of file AFPHitAnalysis.cxx.
65 m_h_hitID =
new TH1D(
"h_hitID",
"hitID",100, 0., 100.);
69 m_h_pdgID =
new TH1D(
"h_pdgID",
"pdgID", 200, -100,100);
73 m_h_trackID =
new TH1D(
"h_trackID",
"trackID", 100, 0,100);
77 m_h_kine =
new TH1D(
"h_kine",
"kine", 100, 0,1000);
81 m_h_edep =
new TH1D(
"h_edep",
"edep", 100, 0,1000);
85 m_h_stepX =
new TH1D(
"h_stepX",
"stepX", 100, 0,1000);
89 m_h_stepY =
new TH1D(
"h_stepY",
"stepY", 100, 0,1000);
93 m_h_stepZ =
new TH1D(
"h_stepZ",
"stepZ", 100, 0,1000);
97 m_h_stationID =
new TH1D(
"h_stationID",
"stationID", 50, 0,50);
101 m_h_detID =
new TH1D(
"h_detID",
"detID", 50, 0,50);
105 m_h_pixelRow =
new TH1D(
"h_pixelRow",
"pixelRow", 20, 0,20);
109 m_h_pixelCol =
new TH1D(
"h_pixelCol",
"pixelCol", 20, 0,20);
114 m_tree =
new TTree(
"AFP",
"AFP");
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_detID
std::vector<int>* AFPHitAnalysis::m_detID |
|
private |
◆ m_detStore
◆ m_edep
std::vector<float>* AFPHitAnalysis::m_edep |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_h_detID
TH1* AFPHitAnalysis::m_h_detID |
|
private |
◆ m_h_edep
TH1* AFPHitAnalysis::m_h_edep |
|
private |
◆ m_h_hitID
TH1* AFPHitAnalysis::m_h_hitID |
|
private |
◆ m_h_kine
TH1* AFPHitAnalysis::m_h_kine |
|
private |
◆ m_h_pdgID
TH1* AFPHitAnalysis::m_h_pdgID |
|
private |
◆ m_h_pixelCol
TH1* AFPHitAnalysis::m_h_pixelCol |
|
private |
◆ m_h_pixelRow
TH1* AFPHitAnalysis::m_h_pixelRow |
|
private |
◆ m_h_stationID
TH1* AFPHitAnalysis::m_h_stationID |
|
private |
◆ m_h_stepX
TH1* AFPHitAnalysis::m_h_stepX |
|
private |
◆ m_h_stepY
TH1* AFPHitAnalysis::m_h_stepY |
|
private |
◆ m_h_stepZ
TH1* AFPHitAnalysis::m_h_stepZ |
|
private |
◆ m_h_time
TH1* AFPHitAnalysis::m_h_time |
|
private |
◆ m_h_trackID
TH1* AFPHitAnalysis::m_h_trackID |
|
private |
◆ m_hitID
std::vector<float>* AFPHitAnalysis::m_hitID |
|
private |
◆ m_kine
std::vector<float>* AFPHitAnalysis::m_kine |
|
private |
◆ m_ntupleFileName
std::string AFPHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string AFPHitAnalysis::m_path |
|
private |
◆ m_pdgID
std::vector<float>* AFPHitAnalysis::m_pdgID |
|
private |
◆ m_pixelCol
std::vector<int>* AFPHitAnalysis::m_pixelCol |
|
private |
◆ m_pixelRow
std::vector<int>* AFPHitAnalysis::m_pixelRow |
|
private |
◆ m_stationID
std::vector<int>* AFPHitAnalysis::m_stationID |
|
private |
◆ m_stepX
std::vector<float>* AFPHitAnalysis::m_stepX |
|
private |
◆ m_stepY
std::vector<float>* AFPHitAnalysis::m_stepY |
|
private |
◆ m_stepZ
std::vector<float>* AFPHitAnalysis::m_stepZ |
|
private |
◆ m_thistSvc
◆ m_time
std::vector<float>* AFPHitAnalysis::m_time |
|
private |
◆ m_trackID
std::vector<float>* AFPHitAnalysis::m_trackID |
|
private |
◆ m_tree
TTree* AFPHitAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
AtlasHitsVector< AFP_SIDSimHit >::const_iterator AFP_SIDSimHitConstIter
std::vector< float > * m_stepY
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
std::vector< float > * m_edep
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< int > * m_stationID
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::vector< float > * m_pdgID
std::string m_ntupleFileName
std::vector< float > * m_trackID
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< float > * m_stepZ
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_stepX
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_kine
std::vector< int > * m_pixelRow
std::vector< float > * m_time
TH1 * m_h_hitID
Some histograms.
std::vector< float > * m_hitID
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
std::vector< int > * m_pixelCol
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< int > * m_detID
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>