![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <SimHitTreeCreator.h>
|
| SimHitTreeCreator (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters. More...
|
|
virtual | ~SimHitTreeCreator () |
| Destructor. More...
|
|
virtual StatusCode | initialize () override final |
| Athena algorithm's interface method initialize() More...
|
|
virtual StatusCode | execute () override final |
| Athena algorithm's interface method execute() More...
|
|
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 27 of file SimHitTreeCreator.h.
◆ StoreGateSvc_t
◆ SimHitTreeCreator()
ISF::SimHitTreeCreator::SimHitTreeCreator |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters.
Definition at line 18 of file SimHitTreeCreator.cxx.
50 "Name of the output stream" );
◆ ~SimHitTreeCreator()
ISF::SimHitTreeCreator::~SimHitTreeCreator |
( |
| ) |
|
|
virtual |
◆ addHepMcParticleLinkInfoToTree()
void ISF::SimHitTreeCreator::addHepMcParticleLinkInfoToTree |
( |
HepMcParticleLink & |
HMPL | ) |
|
|
private |
◆ createSimHitsTree()
StatusCode ISF::SimHitTreeCreator::createSimHitsTree |
( |
| ) |
|
|
private |
Create the simhits tree - validation mode only.
Definition at line 103 of file SimHitTreeCreator.cxx.
125 return StatusCode::SUCCESS;
◆ 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);
◆ 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.
◆ 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.
◆ 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 ISF::SimHitTreeCreator::execute |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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();
◆ fillSimHitsTree()
StatusCode ISF::SimHitTreeCreator::fillSimHitsTree |
( |
| ) |
|
|
private |
Fill the simhits tree - validation mode only.
Fill the simhit TTree - validation mode only.
Definition at line 129 of file SimHitTreeCreator.cxx.
134 if (mdtHits.isValid() && mdtHits->size()) {
136 while ( ih!=mdtHits->end()) {
138 m_id = (*ih).MDTid();
139 m_mother = (*ih).particleEncoding();
140 m_time = (*ih).globalTime();
148 while (ih!=mdtHits->end() &&
m_id==(*ih).MDTid() &&
m_barcode==(*ih).truthBarcode() ) {
158 if (rpcHits.isValid() && rpcHits->size()) {
160 while (ih!=rpcHits->end()) {
162 m_id = (*ih).RPCid();
163 m_mother = (*ih).particleEncoding();
164 m_time = (*ih).globalTime();
172 while (ih!=rpcHits->end() &&
m_id==(*ih).RPCid() &&
m_barcode==(*ih).truthBarcode() ) {
182 if (tgcHits.isValid() && tgcHits->size()) {
184 while ( ih!=tgcHits->end()) {
186 m_id = (*ih).TGCid();
187 m_mother = (*ih).particleEncoding();
188 m_time = (*ih).globalTime();
196 while (ih!=tgcHits->end() &&
m_id==(*ih).TGCid() &&
m_barcode==(*ih).truthBarcode() ) {
206 if (cscHits.isValid() && cscHits->size()) {
208 while ( ih!=cscHits->end()) {
210 m_id = (*ih).CSCid();
212 m_time = (*ih).globalTime();
220 while (ih!=cscHits->end() &&
m_id==(*ih).CSCid() &&
m_barcode==(*ih).truthBarcode() ) {
229 for (
int ipileup=0;ipileup<2;ipileup++) {
233 if (pixHits.isValid() && pixHits->size()) {
235 while (ih!=pixHits->end()) {
237 m_id = (*ih).identify();
241 m_time = (*ih).meanTime();
248 while (ih!=pixHits->end() && ((
unsigned int)
m_id)==(*ih).identify() &&
m_barcode==(*ih).truthBarcode() ) {
258 if (sctHits.isValid() && sctHits->size()) {
260 while (ih!=sctHits->end()) {
262 m_id = (*ih).identify();
266 m_time = (*ih).meanTime();
273 while (ih!=sctHits->end() && ((
unsigned int)
m_id)==(*ih).identify() &&
m_barcode==(*ih).truthBarcode() ) {
283 if (trtHits.isValid() && trtHits->size()) {
285 while ( ih!=trtHits->end()) {
287 m_id = (*ih).GetHitID();
288 m_mother = (*ih).GetParticleEncoding();
290 m_time = (*ih).GetGlobalTime();
297 while (ih!=trtHits->end() &&
m_id==(*ih).GetHitID() &&
m_barcode==(*ih).truthBarcode() ) {
306 return StatusCode::SUCCESS;
◆ initialize()
StatusCode ISF::SimHitTreeCreator::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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_barcode
int ISF::SimHitTreeCreator::m_barcode |
|
private |
◆ m_bcmHits
◆ m_blmHits
◆ m_cscHits
◆ m_detStore
◆ m_drift
float ISF::SimHitTreeCreator::m_drift |
|
private |
◆ m_edeposit
float ISF::SimHitTreeCreator::m_edeposit |
|
private |
◆ m_eta
float ISF::SimHitTreeCreator::m_eta |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_id
int ISF::SimHitTreeCreator::m_id |
|
private |
◆ m_mdtHits
◆ m_momentum
float ISF::SimHitTreeCreator::m_momentum |
|
private |
◆ m_mother
int ISF::SimHitTreeCreator::m_mother |
|
private |
◆ m_phi
float ISF::SimHitTreeCreator::m_phi |
|
private |
◆ m_pileup
int ISF::SimHitTreeCreator::m_pileup |
|
private |
◆ m_pixHits
◆ m_pixPileupHits
◆ m_rpcHits
◆ m_sctHits
◆ m_sctPileupHits
◆ m_t_simHits
TTree* ISF::SimHitTreeCreator::m_t_simHits |
|
private |
Validation output TTree (+variables)
ROOT tree containing simulated hit info
Definition at line 53 of file SimHitTreeCreator.h.
◆ m_tgcHits
◆ m_theta
float ISF::SimHitTreeCreator::m_theta |
|
private |
◆ m_thistSvc
◆ m_time
float ISF::SimHitTreeCreator::m_time |
|
private |
◆ m_trtHits
◆ m_trtPileupHits
◆ m_type
int ISF::SimHitTreeCreator::m_type |
|
private |
◆ m_validationStream
std::string ISF::SimHitTreeCreator::m_validationStream |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
SG::ReadHandleKey< SiHitCollection > m_pixHits
ServiceHandle< ITHistSvc > m_thistSvc
the histogram service
SG::ReadHandleKey< SiHitCollection > m_blmHits
SG::ReadHandleKey< SiHitCollection > m_sctPileupHits
SG::ReadHandleKey< SiHitCollection > m_sctHits
SG::ReadHandleKey< RPCSimHitCollection > m_rpcHits
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
void addHepMcParticleLinkInfoToTree(HepMcParticleLink &HMPL)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadHandleKey< SiHitCollection > m_pixPileupHits
CONT::const_iterator const_iterator
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtPileupHits
virtual void setOwner(IDataHandleHolder *o)=0
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtHits
StatusCode createSimHitsTree()
Create the simhits tree - validation mode only.
HepMC::ConstGenParticlePtr cptr() const
Dereference.
SG::ReadHandleKey< CSCSimHitCollection > m_cscHits
a link optimized in size for a GenParticle in a McEventCollection
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.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool isValid() const
Validity check.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string m_validationStream
validation THist stream name
StatusCode fillSimHitsTree()
Fill the simhits tree - validation mode only.
DataObjIDColl m_extendedExtraObjects
SG::ReadHandleKey< MDTSimHitCollection > m_mdtHits
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< SiHitCollection > m_bcmHits
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
SG::ReadHandleKey< TGCSimHitCollection > m_tgcHits
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
TTree * m_t_simHits
Validation output TTree (+variables)