Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Chop Class Reference

Inheritance diagram for Chop:

DigitVector DigitVector List of all members.

Public Member Functions

 Chop ()
void Add (CandDigitHandle &cdh)
void BuildMaps ()
 Chop ()
void Add (CandDigitHandle &cdh)
void BuildMaps ()

Public Attributes

std::map< PlexStripEndId,
float > 
fStripEnergy
std::map< int, float > fPlaneEnergy
float fTotalEnergy
bool fDirty
std::map< PlexStripEndId,
float > 
fStripEnergy
std::map< int, float > fPlaneEnergy

Constructor & Destructor Documentation

Chop::Chop  )  [inline]
 

Definition at line 66 of file AlgChopListSharp2.cxx.

References fDirty.

00066 : fDirty(false) {};

Chop::Chop  )  [inline]
 

Definition at line 62 of file ChopHelper.cxx.

References fDirty.

00062 : fDirty(false) {};


Member Function Documentation

void Chop::Add CandDigitHandle cdh  )  [inline]
 

Definition at line 64 of file ChopHelper.cxx.

References fDirty.

00064                                  { 
00065     fDirty = true;
00066     push_back(cdh);
00067   }

void Chop::Add CandDigitHandle cdh  )  [inline]
 

Definition at line 68 of file AlgChopListSharp2.cxx.

References fDirty.

00068                                  { 
00069     fDirty = true;
00070     push_back(cdh);
00071   }

void Chop::BuildMaps  )  [inline]
 

Definition at line 69 of file ChopHelper.cxx.

References fDirty, fPlaneEnergy, fStripEnergy, fTotalEnergy, PlexPlaneId::GetPlane(), and PlexStripEndId::IsValid().

00069                    {
00070     if(fDirty) {
00071       fStripEnergy.clear();
00072       fPlaneEnergy.clear();
00073       fTotalEnergy = 0;
00074       for(UInt_t i=0;i<size();i++) {
00075         float sigcor = (*this)[i].GetCharge(CalDigitType::kSigCorr);
00076         PlexStripEndId seid = (*this)[i].GetPlexSEIdAltL().GetBestSEId();
00077         if(seid.IsValid()) {
00078           fStripEnergy[seid] += sigcor;
00079           fPlaneEnergy[seid.GetPlane()] += sigcor;
00080           fTotalEnergy += sigcor;
00081         }
00082       }
00083     }
00084     fDirty = false;
00085   }

void Chop::BuildMaps  )  [inline]
 

Definition at line 73 of file AlgChopListSharp2.cxx.

References fDirty, fPlaneEnergy, fStripEnergy, fTotalEnergy, PlexPlaneId::GetPlane(), and PlexStripEndId::IsValid().

00073                    {
00074     if(fDirty) {
00075       fStripEnergy.clear();
00076       fPlaneEnergy.clear();
00077       fTotalEnergy = 0;
00078       for(UInt_t i=0;i<size();i++) {
00079         float sigcor = (*this)[i].GetCharge(CalDigitType::kSigCorr);
00080         PlexStripEndId seid = (*this)[i].GetPlexSEIdAltL().GetBestSEId();
00081         if(seid.IsValid()) {
00082           fStripEnergy[seid] += sigcor;
00083           fPlaneEnergy[seid.GetPlane()] += sigcor;
00084           fTotalEnergy += sigcor;
00085         }
00086       }
00087     }
00088     fDirty = false;
00089   }


Member Data Documentation

bool Chop::fDirty
 

Definition at line 60 of file ChopHelper.cxx.

Referenced by Add(), BuildMaps(), and Chop().

std::map<int, float> Chop::fPlaneEnergy
 

Definition at line 58 of file ChopHelper.cxx.

std::map<int, float> Chop::fPlaneEnergy
 

Definition at line 62 of file AlgChopListSharp2.cxx.

Referenced by BuildMaps().

std::map<PlexStripEndId,float> Chop::fStripEnergy
 

Definition at line 57 of file ChopHelper.cxx.

std::map<PlexStripEndId,float> Chop::fStripEnergy
 

Definition at line 61 of file AlgChopListSharp2.cxx.

Referenced by BuildMaps().

float Chop::fTotalEnergy
 

Definition at line 59 of file ChopHelper.cxx.

Referenced by BuildMaps().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:59 2010 for loon by  doxygen 1.3.9.1