Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <LucidHitAnalysis.h>
|
| LucidHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LucidHitAnalysis () |
|
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 LucidHitAnalysis.h.
◆ StoreGateSvc_t
◆ LucidHitAnalysis()
LucidHitAnalysis::LucidHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LucidHitAnalysis()
LucidHitAnalysis::~LucidHitAnalysis |
( |
| ) |
|
|
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 LucidHitAnalysis::execute |
( |
| ) |
|
|
virtual |
Definition at line 148 of file LucidHitAnalysis.cxx.
167 double x = i_hit->GetX();
168 double y = i_hit->GetY();
169 double z = i_hit->GetZ();
170 double r = sqrt(
x*
x+
y*
y);
187 m_hit_x->push_back(i_hit->GetX());
188 m_hit_y->push_back(i_hit->GetY());
189 m_hit_z->push_back(i_hit->GetZ());
204 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 LucidHitAnalysis::initialize |
( |
| ) |
|
|
virtual |
Histograms
now add branches and leaves to the tree
Definition at line 58 of file LucidHitAnalysis.cxx.
65 m_h_hit_x =
new TH1D(
"h_hit_x",
"hit_x", 100,-150.,150.);
69 m_h_hit_y =
new TH1D(
"h_hit_y",
"hit_y", 100,-150.,150.);
73 m_h_hit_z =
new TH1D(
"h_hit_z",
"hit_z", 100,-20000.,20000.);
77 m_h_xy =
new TH2D(
"h_xy",
"hit_xy", 100,-150.,150.,100,-150,150);
81 m_h_zr =
new TH2D(
"h_zr",
"hit_zr", 100,-20000.,20000.,100,0,250);
85 m_h_hit_post_x =
new TH1D(
"h_hit_post_x",
"hit_post_x", 100,-150.,150.);
89 m_h_hit_post_y =
new TH1D(
"h_hit_post_y",
"hit_post_y", 100,-150,150.);
93 m_h_hit_post_z =
new TH1D(
"h_hit_post_z",
"hit_post_z", 100,-15000,15000.);
97 m_h_hit_edep =
new TH1D(
"h_hit_edep",
"hit_edep", 100,0.,20.);
101 m_h_hit_pdgid =
new TH1D(
"h_hit_pdgid",
"hit_pdgid", 100,0.,7e6);
105 m_h_hit_pretime =
new TH1D(
"h_hit_pretime",
"hit_pretime", 100,0.,100.);
113 m_h_genvolume =
new TH1D(
"h_genvolume",
"genvolume", 20,0.,5.);
117 m_h_wavelength =
new TH1D(
"m_wavelength",
"wavelength", 150,0.,800.);
122 m_tree =
new TTree(
"Lucid",
"Lucid");
144 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_gen_volume
std::vector<float>* LucidHitAnalysis::m_gen_volume |
|
private |
◆ m_h_genvolume
TH1* LucidHitAnalysis::m_h_genvolume |
|
private |
◆ m_h_hit_edep
TH1* LucidHitAnalysis::m_h_hit_edep |
|
private |
◆ m_h_hit_pdgid
TH1* LucidHitAnalysis::m_h_hit_pdgid |
|
private |
◆ m_h_hit_post_x
TH1* LucidHitAnalysis::m_h_hit_post_x |
|
private |
◆ m_h_hit_post_y
TH1* LucidHitAnalysis::m_h_hit_post_y |
|
private |
◆ m_h_hit_post_z
TH1* LucidHitAnalysis::m_h_hit_post_z |
|
private |
◆ m_h_hit_posttime
TH1* LucidHitAnalysis::m_h_hit_posttime |
|
private |
◆ m_h_hit_pretime
TH1* LucidHitAnalysis::m_h_hit_pretime |
|
private |
◆ m_h_hit_x
TH1* LucidHitAnalysis::m_h_hit_x |
|
private |
◆ m_h_hit_y
TH1* LucidHitAnalysis::m_h_hit_y |
|
private |
◆ m_h_hit_z
TH1* LucidHitAnalysis::m_h_hit_z |
|
private |
◆ m_h_wavelength
TH1* LucidHitAnalysis::m_h_wavelength |
|
private |
◆ m_h_xy
TH2* LucidHitAnalysis::m_h_xy |
|
private |
◆ m_h_zr
TH2* LucidHitAnalysis::m_h_zr |
|
private |
◆ m_hit_edep
std::vector<float>* LucidHitAnalysis::m_hit_edep |
|
private |
◆ m_hit_pdgid
std::vector<float>* LucidHitAnalysis::m_hit_pdgid |
|
private |
◆ m_hit_post_x
std::vector<float>* LucidHitAnalysis::m_hit_post_x |
|
private |
◆ m_hit_post_y
std::vector<float>* LucidHitAnalysis::m_hit_post_y |
|
private |
◆ m_hit_post_z
std::vector<float>* LucidHitAnalysis::m_hit_post_z |
|
private |
◆ m_hit_posttime
std::vector<float>* LucidHitAnalysis::m_hit_posttime |
|
private |
◆ m_hit_pretime
std::vector<float>* LucidHitAnalysis::m_hit_pretime |
|
private |
◆ m_hit_x
std::vector<float>* LucidHitAnalysis::m_hit_x |
|
private |
◆ m_hit_y
std::vector<float>* LucidHitAnalysis::m_hit_y |
|
private |
◆ m_hit_z
std::vector<float>* LucidHitAnalysis::m_hit_z |
|
private |
◆ m_ntupleFileName
std::string LucidHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string LucidHitAnalysis::m_path |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* LucidHitAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_wavelength
std::vector<float>* LucidHitAnalysis::m_wavelength |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< float > * m_hit_y
std::vector< float > * m_hit_posttime
TH1 * m_h_hit_x
Some histograms.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< float > * m_gen_volume
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< float > * m_hit_pretime
CONT::const_iterator const_iterator
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< float > * m_wavelength
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_hit_post_y
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< float > * m_hit_post_z
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_hit_edep
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< float > * m_hit_z
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_hit_post_x
std::vector< float > * m_hit_pdgid
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::vector< float > * m_hit_x
std::string m_ntupleFileName
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>