Public Member Functions | Private Attributes

WCSimTrueLightCluster Class Reference

#include "WCSimTrueLightCluster.hh"

List of all members.

Public Member Functions

 WCSimTrueLightCluster ()
 ~WCSimTrueLightCluster ()
void Reset ()
void SortCluster ()
void AddDigit (WCSimTrueLight *digit)
WCSimTrueLightGetDigit (Int_t n)
WCSimRecoClusterConvert2RecoCluster ()
Int_t GetNDigits ()

Private Attributes

std::vector< WCSimTrueLight * > fTrueLightList

Detailed Description

Definition at line 8 of file WCSimTrueLightCluster.hh.


Constructor & Destructor Documentation

WCSimTrueLightCluster::WCSimTrueLightCluster (  ) 
WCSimTrueLightCluster::~WCSimTrueLightCluster (  ) 

Member Function Documentation

void WCSimTrueLightCluster::AddDigit ( WCSimTrueLight digit  ) 

Definition at line 33 of file WCSimTrueLightCluster.cc.

References fTrueLightList.

{
  fTrueLightList.push_back(digit);
}

WCSimRecoCluster * WCSimTrueLightCluster::Convert2RecoCluster (  ) 

Definition at line 48 of file WCSimTrueLightCluster.cc.

References WCSimRecoCluster::AddDigit(), and fTrueLightList.

Referenced by SandBoxFlatPhotoTube::GetSmeared().

{
  WCSimRecoCluster* _rcluster = new WCSimRecoCluster();

  for(int i=0; i<((int)fTrueLightList.size()); i++){

    WCSimRecoDigit* digiti =(fTrueLightList.at(i))->Convert2Reco();
    _rcluster->AddDigit(digiti);
  }

  return _rcluster;
}

WCSimTrueLight * WCSimTrueLightCluster::GetDigit ( Int_t  n  ) 

Definition at line 38 of file WCSimTrueLightCluster.cc.

References fTrueLightList.

{
  return (WCSimTrueLight*)(fTrueLightList.at(n));
}

Int_t WCSimTrueLightCluster::GetNDigits (  ) 

Definition at line 43 of file WCSimTrueLightCluster.cc.

References fTrueLightList.

{
  return fTrueLightList.size();
}

void WCSimTrueLightCluster::Reset (  ) 

Definition at line 18 of file WCSimTrueLightCluster.cc.

References fTrueLightList.

{
  fTrueLightList.clear();
}

void WCSimTrueLightCluster::SortCluster (  ) 

Definition at line 28 of file WCSimTrueLightCluster.cc.

References fTrueLightList.

{
  sort(fTrueLightList.begin(), fTrueLightList.end(), CompareTimes);
}


Member Data Documentation


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