Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
cluster Class Reference

#include <DAQQuickClustering_module.h>

Classes

class  BlurredClustering
 
class  BlurredClusteringAlg
 
struct  cluster_merge_info
 
class  cluster_params
 
class  ClusterAna
 
class  ClusterAndHitMerger
 Class merging clusters: recomputes start and end position and hit list. More...
 
class  ClusterCheater
 
class  ClusterCrawler
 
class  ClusterCrawlerAlg
 
class  ClusterCreator
 Class managing the creation of a new recob::Cluster object. More...
 
class  ClusterMatchAlg
 
class  ClusterMatchTQ
 
class  ClusterMergeAlg
 
class  ClusterMergeHelper
 
class  ClusterMerger
 Class merging clusters: recomputes start and end position and hit list. More...
 
class  ClusterParamsAlg
 
class  ClusterParamsAlgBase
 Algorithm collection class computing cluster parameters. More...
 
class  ClusterParamsImportWrapper
 Wrapper for ClusterParamsAlgBase objects to accept diverse input. More...
 
class  ClusterPCA
 
class  ClusterTrackAna
 
class  CRUException
 
class  DBcluster
 
class  DBCluster3D
 
class  DBclusterAna
 
class  DBScan3DAlg
 
class  DBScanAlg
 
class  EndPointAlg
 Algorithm to find 2D end points. More...
 
class  EndPointModule
 module to find 2D end points More...
 
struct  eveLoc
 
struct  HitLoc
 
class  HoughBaseAlg
 
class  HoughLineFinder
 
class  HoughLineFinderAna
 
class  HoughTransform
 
class  HoughTransformCounters
 CountersMap with access optimized for Hough Transform algorithm. More...
 
class  LazyClusterParamsAlg
 Algorithm class inheriting cluster parameters. More...
 
class  LineCluster
 Produces clusters by ClusterCrawler algorithm. More...
 
class  LineMerger
 
class  MergeClusterAlg
 
class  OverriddenClusterParamsAlg
 Algorithm collection class computing cluster parameters. More...
 
class  SmallClusterFilter
 
class  SmallClusterFinder
 
class  SmallClusterFinderAlg
 
class  StandardClusterParamsAlg
 Algorithm collection class computing cluster parameters. More...
 
class  TrajCluster
 Produces clusters by the TrajCluster algorithm. More...
 

Public Member Functions

 cluster (int cEvent, std::vector< recoHit > cHitVector)
 
 cluster ()
 
int getEvent () const
 
int getStartChan () const
 
int getEndChan () const
 
int getNChan () const
 
int getChanWidth () const
 
int getNHits () const
 
int getType () const
 
int getTriggerFlag () const
 
float getHitSADC () const
 
float getFirstTimeHit () const
 
float getLastTimeHit () const
 
float getTimeWidth () const
 
double getMC_EnergyNu () const
 
double getMC_EnergyLep () const
 
double getMC_MarlTime () const
 
std::vector< recoHitgetHits () const
 
void setHitSADC (float cHitSADC)
 
void setTriggerFlag (int cTriggerFlag)
 
void setMC_EnergyNu (double cMC_EnergyNu)
 
void setMC_EnergyLep (double cMC_EnergyLep)
 
void setMC_MarlTime (double cMC_Marltime)
 
void printCluster () const
 
 cluster (int cEvent, std::vector< recoHit > cHitVector)
 
 cluster ()
 
int getEvent ()
 
int getStartChan ()
 
int getEndChan ()
 
int getNChan ()
 
int getChanWidth ()
 
int getNHits ()
 
int getType ()
 
int getTriggerFlag ()
 
float getHitSADC ()
 
float getFirstTimeHit ()
 
float getLastTimeHit ()
 
float getTimeWidth ()
 
double getMC_EnergyNu ()
 
double getMC_EnergyLep ()
 
double getMC_MarlTime ()
 
void printCluster ()
 
void setHitSADC (float cHitSADC)
 
void setTriggerFlag (int cTriggerFlag)
 
void setMC_EnergyNu (double cMC_EnergyNu)
 
void setMC_EnergyLep (double cMC_EnergyLep)
 
void setMC_MarlTime (double cMC_Marltime)
 
std::vector< recoHitgetHits ()
 

Public Attributes

const unsigned int kNO_CLUSTER = UINT_MAX
 
const unsigned int kNOISE_CLUSTER = UINT_MAX - 1
 

Private Attributes

int fEvent = 0
 
int fStartChan = 0
 
int fEndChan = 0
 
int fNChan = 0
 
int fChanWidth = 0
 
int fNHits = 0
 
int fType = 0
 
int fTriggerFlag = 0
 
float fHitSADC = 0
 
float fFirstHitTime = 0
 
float fLastHitTime = 0
 
float fTimeWidth = 0
 
double fMC_EnergyNu = 0
 
double fMC_EnergyLep = 0
 
double fMC_MarlTime = 0
 
std::vector< recoHitfHitVector
 

Detailed Description

Definition at line 96 of file DAQQuickClustering_module.h.

Constructor & Destructor Documentation

cluster::cluster ( int  cEvent,
std::vector< recoHit cHitVector 
)

Definition at line 41 of file DAQQuickClustering_module.cc.

42 {
43 
44  int type(0);
45  std::set<int> channels;
46  fHitVector.clear();
47  fStartChan = 50000;
48  fEndChan = 0;
49  fFirstHitTime = 50000;
50  fLastHitTime = 0;
51  fEvent = cEvent;
52  fHitVector = cHitVector;
53  fNHits = fHitVector.size();
54  for(int i = 0; i < fNHits; i++)
55  {
56  fHitSADC += fHitVector.at(i).getHitSADC();
57  int chan = fHitVector.at(i).getHitChan();
58  float time = fHitVector.at(i).getHitTime();
59 
60  channels.insert(chan);
61 
62  if(chan < fStartChan)
63  fStartChan = chan;
64 
65  if(chan > fEndChan)
66  fEndChan = chan;
67 
68  if(time < fFirstHitTime)
69  fFirstHitTime = time;
70 
71  if(time > fLastHitTime)
72  fLastHitTime = time;
73 
74  if(fHitVector.at(i).getGenType()==1)
75  type++;
76  }
77 
78  fNChan = channels.size();
79 
80  //CALL THE CLUSTER MARLEY IF THERE ARE MORE THAN TWO MARLEY HITS IN IT.
81  if(type>=2)
82  fType = 1;
83  else
84  fType = 0;
85 
88 
89  //ORDER IN THE HIT VECTOR BY TIME.
90  std::sort(fHitVector.begin(), fHitVector.end(),
91  [](const recoHit& lhs, const recoHit& rhs){return lhs.getHitTime() < rhs.getHitTime();});
92 
93 }
float getHitTime() const
static QCString type
Definition: declinfo.cpp:672
std::vector< recoHit > fHitVector
cluster::cluster ( )
cluster::cluster ( int  cEvent,
std::vector< recoHit cHitVector 
)
cluster::cluster ( )

Member Function Documentation

int cluster::getChanWidth ( )
int cluster::getChanWidth ( ) const
inline

Definition at line 106 of file DAQQuickClustering_module.h.

106 { return fChanWidth ; };
int cluster::getEndChan ( )
int cluster::getEndChan ( ) const
inline

Definition at line 104 of file DAQQuickClustering_module.h.

104 { return fEndChan ; };
int cluster::getEvent ( )
int cluster::getEvent ( ) const
inline

Definition at line 102 of file DAQQuickClustering_module.h.

102 { return fEvent ; };
float cluster::getFirstTimeHit ( )
float cluster::getFirstTimeHit ( ) const
inline

Definition at line 111 of file DAQQuickClustering_module.h.

111 { return fFirstHitTime; };
std::vector<recoHit> cluster::getHits ( )
std::vector<recoHit> cluster::getHits ( ) const
inline

Definition at line 118 of file DAQQuickClustering_module.h.

118 { return fHitVector; };
std::vector< recoHit > fHitVector
float cluster::getHitSADC ( )
float cluster::getHitSADC ( ) const
inline

Definition at line 110 of file DAQQuickClustering_module.h.

110 { return fHitSADC ; };
float cluster::getLastTimeHit ( )
float cluster::getLastTimeHit ( ) const
inline

Definition at line 112 of file DAQQuickClustering_module.h.

112 { return fLastHitTime ; };
double cluster::getMC_EnergyLep ( )
double cluster::getMC_EnergyLep ( ) const
inline

Definition at line 115 of file DAQQuickClustering_module.h.

115 { return fMC_EnergyLep; };
double cluster::getMC_EnergyNu ( )
double cluster::getMC_EnergyNu ( ) const
inline

Definition at line 114 of file DAQQuickClustering_module.h.

114 { return fMC_EnergyNu ; };
double cluster::getMC_MarlTime ( )
double cluster::getMC_MarlTime ( ) const
inline

Definition at line 116 of file DAQQuickClustering_module.h.

116 { return fMC_MarlTime ; };
int cluster::getNChan ( )
int cluster::getNChan ( ) const
inline

Definition at line 105 of file DAQQuickClustering_module.h.

105 { return fNChan ; };
int cluster::getNHits ( )
int cluster::getNHits ( ) const
inline

Definition at line 107 of file DAQQuickClustering_module.h.

107 { return fNHits ; };
int cluster::getStartChan ( )
int cluster::getStartChan ( ) const
inline

Definition at line 103 of file DAQQuickClustering_module.h.

103 { return fStartChan ; };
float cluster::getTimeWidth ( )
float cluster::getTimeWidth ( ) const
inline

Definition at line 113 of file DAQQuickClustering_module.h.

113 { return fTimeWidth ; };
int cluster::getTriggerFlag ( )
int cluster::getTriggerFlag ( ) const
inline

Definition at line 109 of file DAQQuickClustering_module.h.

109 { return fTriggerFlag ; };
int cluster::getType ( )
int cluster::getType ( ) const
inline

Definition at line 108 of file DAQQuickClustering_module.h.

108 { return fType ; };
void cluster::printCluster ( )
void cluster::printCluster ( ) const
inline

Definition at line 126 of file DAQQuickClustering_module.h.

127  {
128  std::cout << "*********************" << std::endl;
129  std::cout << "Event " << fEvent << std::endl;
130  std::cout << "StartChan " << fStartChan << std::endl;
131  std::cout << "EndChan " << fEndChan << std::endl;
132  std::cout << "NChan " << fNChan << std::endl;
133  std::cout << "ChanWidth " << fChanWidth << std::endl;
134  std::cout << "NHits " << fNHits << std::endl;
135  std::cout << "Type " << fType << std::endl;
136  std::cout << "TriggerFlag " << fTriggerFlag << std::endl;
137  std::cout << "HitSADC " << fHitSADC << std::endl;
138  std::cout << "FirstHitTime " << fFirstHitTime << std::endl;
139  std::cout << "LastHitTime " << fLastHitTime << std::endl;
140  std::cout << "TimeWidth " << fTimeWidth << std::endl;
141  std::cout << "MC_EnergyNu " << fMC_EnergyNu << std::endl;
142  std::cout << "MC_EnergyLep " << fMC_EnergyLep << std::endl;
143  std::cout << "MC_MarlTime " << fMC_MarlTime << std::endl;
144  for(int i = 0; i < fNHits; i++)
145  fHitVector.at(i).Print();
146  std::cout << "*********************" << std::endl;
147 
148  };
std::vector< recoHit > fHitVector
QTextStream & endl(QTextStream &s)
void cluster::setHitSADC ( float  cHitSADC)
void cluster::setHitSADC ( float  cHitSADC)
inline

Definition at line 120 of file DAQQuickClustering_module.h.

120 { fHitSADC = cHitSADC ; };
void cluster::setMC_EnergyLep ( double  cMC_EnergyLep)
void cluster::setMC_EnergyLep ( double  cMC_EnergyLep)
inline

Definition at line 123 of file DAQQuickClustering_module.h.

123 { fMC_EnergyLep = cMC_EnergyLep; };
void cluster::setMC_EnergyNu ( double  cMC_EnergyNu)
void cluster::setMC_EnergyNu ( double  cMC_EnergyNu)
inline

Definition at line 122 of file DAQQuickClustering_module.h.

122 { fMC_EnergyNu = cMC_EnergyNu ; };
void cluster::setMC_MarlTime ( double  cMC_Marltime)
void cluster::setMC_MarlTime ( double  cMC_Marltime)
inline

Definition at line 124 of file DAQQuickClustering_module.h.

124 { fMC_MarlTime = cMC_Marltime ; };
void cluster::setTriggerFlag ( int  cTriggerFlag)
void cluster::setTriggerFlag ( int  cTriggerFlag)
inline

Definition at line 121 of file DAQQuickClustering_module.h.

121 { fTriggerFlag = cTriggerFlag ; };

Member Data Documentation

int cluster::fChanWidth = 0
private

Definition at line 156 of file DAQQuickClustering_module.h.

int cluster::fEndChan = 0
private

Definition at line 154 of file DAQQuickClustering_module.h.

int cluster::fEvent = 0
private

Definition at line 152 of file DAQQuickClustering_module.h.

float cluster::fFirstHitTime = 0
private

Definition at line 161 of file DAQQuickClustering_module.h.

float cluster::fHitSADC = 0
private

Definition at line 160 of file DAQQuickClustering_module.h.

std::vector< recoHit > cluster::fHitVector
private

Definition at line 167 of file DAQQuickClustering_module.h.

float cluster::fLastHitTime = 0
private

Definition at line 162 of file DAQQuickClustering_module.h.

double cluster::fMC_EnergyLep = 0
private

Definition at line 165 of file DAQQuickClustering_module.h.

double cluster::fMC_EnergyNu = 0
private

Definition at line 164 of file DAQQuickClustering_module.h.

double cluster::fMC_MarlTime = 0
private

Definition at line 166 of file DAQQuickClustering_module.h.

int cluster::fNChan = 0
private

Definition at line 155 of file DAQQuickClustering_module.h.

int cluster::fNHits = 0
private

Definition at line 157 of file DAQQuickClustering_module.h.

int cluster::fStartChan = 0
private

Definition at line 153 of file DAQQuickClustering_module.h.

float cluster::fTimeWidth = 0
private

Definition at line 163 of file DAQQuickClustering_module.h.

int cluster::fTriggerFlag = 0
private

Definition at line 159 of file DAQQuickClustering_module.h.

int cluster::fType = 0
private

Definition at line 158 of file DAQQuickClustering_module.h.

const unsigned int cluster::kNO_CLUSTER = UINT_MAX

Definition at line 254 of file DBScanAlg.cxx.

const unsigned int cluster::kNOISE_CLUSTER = UINT_MAX - 1

Definition at line 255 of file DBScanAlg.cxx.


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