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

Detailed Description

Definition at line 59 of file AlgChopListSharp2.cxx.


Constructor & Destructor Documentation

Chop::Chop (  )  [inline]

Definition at line 66 of file AlgChopListSharp2.cxx.

00066 : fDirty(false) {};

Chop::Chop (  )  [inline]

Definition at line 62 of file ChopHelper.cxx.

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(), PlexStripEndId::IsValid(), CalDigitType::kSigCorr, and size.

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(), PlexStripEndId::IsValid(), CalDigitType::kSigCorr, and size.

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

Definition at line 64 of file AlgChopListSharp2.cxx.

Referenced by Add(), and BuildMaps().

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 61 of file AlgChopListSharp2.cxx.

Referenced by BuildMaps().

Definition at line 63 of file AlgChopListSharp2.cxx.

Referenced by BuildMaps().


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

Generated on 21 Jun 2018 for loon by  doxygen 1.6.1