ParticleObjectHolder Class Reference

#include <ParticleObjectHolder.h>

Inheritance diagram for ParticleObjectHolder:
RecRecordImp< RecCandHeader > RecRecord

List of all members.

Public Member Functions

 ParticleObjectHolder ()
 ParticleObjectHolder (const RecCandHeader &header)
virtual ~ParticleObjectHolder ()
void AddParticle (Particle *p)
void AddParticle3D (Particle3D p)
virtual void Clear (Option_t *option="")
MRCCInfoGetMRCCInfo ()

Public Attributes

TObjArray * particles
TObjArray * particletruth
TObjArray * particlematch
MCTrue mctrue
ParticleEvent event
ChainHelper chu
ChainHelper chv
Managed::ClusterManager clusterer
Managed::ClusterSaver cluster_saver
EventQuality eventquality
std::vector< Particle3Dparticles3d
std::map< double, std::map
< double, std::pair< double,
int > > > 
cluster_map
StripHolder strips
PrimaryShowerFinder psf
MRCCInfomrcc

Private Member Functions

void Init ()

Detailed Description

Definition at line 34 of file ParticleObjectHolder.h.


Constructor & Destructor Documentation

ParticleObjectHolder::ParticleObjectHolder (  ) 

Definition at line 8 of file ParticleObjectHolder.cxx.

00008                                           : 
00009   RecRecordImp<RecCandHeader>()
00010 {
00011 
00012 this->Init();
00013 
00014 
00015 }

ParticleObjectHolder::ParticleObjectHolder ( const RecCandHeader header  ) 

Definition at line 18 of file ParticleObjectHolder.cxx.

References Init().

00018                                                                    : 
00019   RecRecordImp<RecCandHeader>(hdr),  particles(0)
00020 {
00021 this->Init();
00022 
00023 }

ParticleObjectHolder::~ParticleObjectHolder (  )  [virtual]

Definition at line 49 of file ParticleObjectHolder.cxx.

References cluster_map, mrcc, particlematch, particles, particles3d, and particletruth.

00050 {
00051         particles->Delete();
00052         delete particles;
00053         
00054         particletruth->Delete();
00055         delete particletruth;
00056         
00057         particlematch->Delete();
00058         delete particlematch;
00059         
00060 //      particles3d1->Delete();
00061 //      delete particles3d1;
00062         
00063                         
00064         particles3d.clear();
00065         cluster_map.clear();    
00066         if(mrcc)delete mrcc;mrcc=0;
00067 }


Member Function Documentation

void ParticleObjectHolder::AddParticle ( Particle p  ) 

Definition at line 96 of file ParticleObjectHolder.cxx.

00096                                                       {
00097 //      particles->AddLast(&p);
00098 
00099 
00100 }

void ParticleObjectHolder::AddParticle3D ( Particle3D  p  ) 

Definition at line 80 of file ParticleObjectHolder.cxx.

References particles3d.

Referenced by Finder::Process(), and Finder::Weave().

00081 {
00082 
00083 //      Particle3D *n = (Particle3D*)particles3d1->New(particles3d1->GetEntries());
00084 
00085 
00086 //      Particle3D *n = new Particle3D(p);
00087 //      particles3d1->Add(n);
00088                 
00089         //(*n) = p;
00090         
00091         particles3d.push_back(p);
00092 
00093 }

void ParticleObjectHolder::Clear ( Option_t *  option = ""  )  [virtual]

Definition at line 69 of file ParticleObjectHolder.cxx.

References mrcc, particlematch, particles, and particletruth.

00069                                                        {
00070 
00071 if(particles){particles->Clear("C");}
00072 if(particletruth){particletruth->Clear("C");}
00073 if(particlematch){particlematch->Clear("C");}
00074 //if(particles3d1){particles3d1->Clear("C");}
00075 if(mrcc)delete mrcc;mrcc=0;
00076 }

MRCCInfo * ParticleObjectHolder::GetMRCCInfo (  ) 

Definition at line 25 of file ParticleObjectHolder.cxx.

References mrcc.

Referenced by Finder::Process().

00026 {
00027         if(!mrcc)mrcc=new MRCCInfo();
00028         return mrcc;
00029 }

void ParticleObjectHolder::Init ( void   )  [private]

Definition at line 32 of file ParticleObjectHolder.cxx.

References mrcc, particlematch, particles, particletruth, and RecRecordImp< RecCandHeader >::SetClearable().

Referenced by ParticleObjectHolder().

00033 {
00034         SetClearable(true);
00035 
00036         particles = new TObjArray(0);
00037         particles->SetOwner(1);
00038         particletruth = new TObjArray( 0);
00039         particletruth->SetOwner(1);
00040         particlematch = new TObjArray(0);
00041         particlematch->SetOwner(1);
00042 //      particles3d1 = new TObjArray(0);
00043 //      particles3d1->SetOwner(1);
00044         mrcc=0;
00045 }


Member Data Documentation

std::map<double, std::map<double, std::pair<double, int> > > ParticleObjectHolder::cluster_map

Definition at line 75 of file ParticleObjectHolder.h.

Referenced by Finder::Process(), and ~ParticleObjectHolder().

Definition at line 70 of file ParticleObjectHolder.h.

Referenced by EventAna::ana(), and Finder::Process().

Definition at line 55 of file ParticleObjectHolder.h.

Referenced by Clear(), Init(), ParticleReport::Reco(), and ~ParticleObjectHolder().

Definition at line 82 of file ParticleObjectHolder.h.

Referenced by HoughView::DrawHough(), and Finder::Process().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1