![]() |
PandaRoot
|
Recursive clustering. More...
#include <BSEmcRecursiveClustering.h>
Public Member Functions | |
| BSEmcRecursiveClustering () | |
| virtual | ~BSEmcRecursiveClustering () |
| virtual void | SetDetectorName (const std::string &t_detectorName) |
| Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters) More... | |
| virtual void | SetData (BSEmcClusteringData *t_data) |
| Pass the data container ptrs to the process, and store pointers in class members. More... | |
| virtual void | SetupParameters (const PndParameterRegister *t_paramRegister) |
| Fetch all parameters from the PndParameterRegister. More... | |
| virtual void | Process () |
| The actual data transformation (digitizing, clustering, etc.) should be defined here. More... | |
| std::vector< BSEmcCluster * > | Clustering (const std::vector< const BSEmcDigi *> &t_digis) |
| void | SetClusteringParName (const std::string &t_parName) |
| void | SetClusterPropertiesParName (const std::string &t_parName) |
| void | SetPositionParName (const std::string &t_parName) |
| void | SetNeighbouringRelationParName (const std::string &t_parName) |
Public Member Functions inherited from PndProcess< BSEmcClusteringData > | |
| PndProcess () | |
| PndProcess (const std::string &t_processname) | |
| virtual | ~PndProcess () |
| const std::vector< std::string > & | GetListOfRequiredParameters () const |
| Get the List Of Required Parameters. More... | |
| virtual void | PreProcess () |
| PreProcess() is called before the actual Process() call in each event. More... | |
| virtual void | PostProcess () |
| Immediately after calling Process() PostProcess() is called for cleanup of internal process data, or if not needed, to end the time and memory increase measurement started by PreProcess() More... | |
| virtual void | TearDown () |
| Last actions at the end of the run. More... | |
Protected Member Functions | |
| void | FillGeoItems (const std::vector< const BSEmcDigi *> &t_digis) |
| std::vector< std::vector< BSEmcGeoItem * > > | SpatialClustering (const std::vector< const BSEmcDigi *> &t_digis) |
| std::vector< BSEmcCluster * > | ConvertToCluster (const std::vector< std::vector< BSEmcGeoItem *>> &t_clusterstubs, const std::vector< const BSEmcDigi *> &t_digis) const |
| void | Reset () |
| ClassDef (BSEmcRecursiveClustering, 1) | |
Protected Attributes | |
| std::string | fClusteringParName {""} |
| std::string | fClusterPropertiesParName {""} |
| std::string | fPositionParName {""} |
| std::string | fNeighbouringRelationParName {""} |
| std::string | fDigiBranchName {""} |
| Double_t | fClusterActiveTime {-1} |
| Double_t | fDigiEnergyThreshold {-1} |
| PndContainerI< BSEmcDigi > * | fDigiArray {nullptr} |
| PndOutputContainerI< BSEmcCluster > * | fClusterArray {nullptr} |
| BSEmcGeoNeighbouringRelationPar * | fNeighbouringRelationPar {nullptr} |
| std::unique_ptr< BSEmcPositionAlgo > | fPositionProcess {new BSEmcPositionAlgo} |
| std::unique_ptr< BSEmcEnergyCalculationAlgo > | fEnergyProcess {new BSEmcEnergyCalculationAlgo} |
| std::map< Int_t, std::unique_ptr< BSEmcGeoItem > > | fIDToCrystal {} |
| std::set< BSEmcGeoItem * > | fChangedCrystals {} |
Protected Attributes inherited from PndProcess< BSEmcClusteringData > | |
| std::vector< std::string > | fParameterList |
| Parameter names required by this PndProcess. Needs to be populated in derived class. More... | |
| std::string | fDetectorName |
| Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch right parameters. More... | |
| std::string | fProcessName |
| Name of current PndProcess (for debugging) More... | |
| TStopwatch | fTimer |
| Timer to monitor Process() time. More... | |
| Double_t | fTotalTime |
| Time taken by this Process' Process() More... | |
| ProcInfo_t | fProcInfo |
| Helper to access cpu process Memory Info. More... | |
| Long_t | fLastMemSize |
Recursive clustering.
Very simplistic spatial clustering using a seed crystal and recursively adding all neighbouring fired crystals
Definition at line 46 of file BSEmcRecursiveClustering.h.
| BSEmcRecursiveClustering::BSEmcRecursiveClustering | ( | ) |
|
virtual |
|
protected |
| std::vector<BSEmcCluster *> BSEmcRecursiveClustering::Clustering | ( | const std::vector< const BSEmcDigi *> & | t_digis | ) |
|
protected |
|
protected |
|
virtual |
The actual data transformation (digitizing, clustering, etc.) should be defined here.
Implements PndProcess< BSEmcClusteringData >.
|
protected |
|
inline |
Definition at line 57 of file BSEmcRecursiveClustering.h.
References fClusteringParName.
|
inline |
Definition at line 58 of file BSEmcRecursiveClustering.h.
References fClusterPropertiesParName.
|
virtual |
Pass the data container ptrs to the process, and store pointers in class members.
| t_data |
Implements PndProcess< BSEmcClusteringData >.
|
virtual |
Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters)
| t_detectorname |
Reimplemented from PndProcess< BSEmcClusteringData >.
|
inline |
Definition at line 60 of file BSEmcRecursiveClustering.h.
References fNeighbouringRelationParName.
|
inline |
Definition at line 59 of file BSEmcRecursiveClustering.h.
References fPositionParName.
|
virtual |
Fetch all parameters from the PndParameterRegister.
| t_parameter |
Implements PndProcess< BSEmcClusteringData >.
|
protected |
|
protected |
Definition at line 78 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 68 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 72 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 63 of file BSEmcRecursiveClustering.h.
Referenced by SetClusteringParName().
|
protected |
Definition at line 64 of file BSEmcRecursiveClustering.h.
Referenced by SetClusterPropertiesParName().
|
protected |
Definition at line 71 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 67 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 69 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 76 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 77 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 74 of file BSEmcRecursiveClustering.h.
|
protected |
Definition at line 66 of file BSEmcRecursiveClustering.h.
Referenced by SetNeighbouringRelationParName().
|
protected |
Definition at line 65 of file BSEmcRecursiveClustering.h.
Referenced by SetPositionParName().
|
protected |
Definition at line 75 of file BSEmcRecursiveClustering.h.