4 #include "KVDetector.h"
5 #include "KVNameValueList.h"
32 fReconstructedNuclei = 0;
35 fReconTraj.SetOwner();
45 if (fReconstructedNuclei && fReconstructedNuclei->TestBit(kNotDeleted)) {
46 fReconstructedNuclei->Clear();
47 delete fReconstructedNuclei;
48 fReconstructedNuclei = 0;
50 fReconstructedNuclei = 0;
51 fTrajectories.Clear();
70 if (fReconstructedNuclei && fReconstructedNuclei->GetSize()) {
71 fReconstructedNuclei->Clear();
85 if (!fReconstructedNuclei) {
87 fReconstructedNuclei->SetCleanup();
89 fReconstructedNuclei->Add(kvd);
103 if (fReconstructedNuclei) {
104 fReconstructedNuclei->Remove(kvd);
105 if (fReconstructedNuclei->GetSize() == 0) {
106 delete fReconstructedNuclei;
107 fReconstructedNuclei = 0;
111 Warning(
"RemoveHit",
"No reconstructed nuclei in this group");
144 TIter next_traj(GetTrajectories());
163 fReconTrajMap.Clear();
164 TIter nxtRT(GetReconTrajectories());
169 unique_trajectories.
Add(
n);
182 TIter nxtDel(&toRemove);
184 fReconTraj.Remove(rnt);
188 return fReconTraj.GetEntries();
200 TIter it(GetDetectors());
201 while ((det = (KVDetector*)it())) det->Print(
"data");
#define R__FOR_EACH(type, proc)
Path taken by particles through multidetector geometry.
KVGeoDetectorNode * GetNextNode() const
static KVGeoDNTrajectory * Factory(const char *plugin, const KVGeoDNTrajectory *, const KVGeoDetectorNode *)
Instantiate & return object of class corresponding to plugin.
void IterateFrom(const KVGeoDetectorNode *node0=nullptr) const
Information on relative positions of detectors & particle trajectories.
Group of detectors which can be treated independently of all others in array.
void Reset(Option_t *opt="")
void AddHit(KVNucleus *kvd)
void RemoveHit(KVNucleus *kvd)
void PrintData() const
list detectors of group with any data they contain
Int_t CalculateReconstructionTrajectories()
Extended TList class which owns its objects by default.
Description of properties and kinematics of atomic nuclei.
KaliVeda extensions to ROOT collection classes.
TObject * FindObject(const char *name) const override
void SetOwner(Bool_t enable=kTRUE) override
Optimised list in which named objects can only be placed once.
Bool_t ObjectAdded() const
void Add(TObject *obj) override
void Add(TObject *obj) override
void Delete(Option_t *option="") override
const char * GetName() const override
const char * GetTitle() const override