CalHelpers::MCDigitMap Class Reference

#include <Helpers.h>

List of all members.

Public Member Functions

 MCDigitMap ()
 ~MCDigitMap ()
void MakeMCDigitMap ()
std::map< const PlexStripEndId,
MCDigit > * 
GetMCDigitMap ()

Private Attributes

std::map< const PlexStripEndId,
MCDigit
fMCDigitMap

Detailed Description

Definition at line 77 of file Helpers.h.


Constructor & Destructor Documentation

CalHelpers::MCDigitMap::MCDigitMap (  ) 

Definition at line 132 of file Helpers.cxx.

00132                                 :
00133    fMCDigitMap()
00134 {}

CalHelpers::MCDigitMap::~MCDigitMap (  ) 

Definition at line 136 of file Helpers.cxx.

00136 {}


Member Function Documentation

std::map< const PlexStripEndId, MCDigit > * CalHelpers::MCDigitMap::GetMCDigitMap (  )  [inline]

Definition at line 108 of file Helpers.h.

References fMCDigitMap.

00109 {return &fMCDigitMap;}

void CalHelpers::MCDigitMap::MakeMCDigitMap (  ) 

Definition at line 138 of file Helpers.cxx.

References fMCDigitMap, PlexStripEndId::GetEnd(), RerootExodus::GetFLSDigitList(), REROOT_FLSDigit::ICell(), REROOT_FLSDigit::IExtr(), REROOT_FLSDigit::IPln(), and RerootExodus::PECAB2SEId().

00139 {
00140 
00141   static const TClonesArray *mdcl = RerootExodus::GetFLSDigitList();
00142 
00143   for(int i=0;i<mdcl->GetEntries();i++){
00144     const REROOT_FLSDigit *dig = dynamic_cast<const REROOT_FLSDigit *>(mdcl->At(i));
00145     if(dig == 0){
00146       continue;
00147     }
00148     PlexStripEndId psea = RerootExodus::PECAB2SEId(dig->IPln(), 
00149                                                   dig->IExtr(), dig->ICell(), 0);
00150     // for debugging
00151     cout<<"Gave iab = 0"<<endl;
00152     cout<<"Got back stripend: "<<psea.GetEnd()<<endl;
00153 
00154     MCDigit mcdig1(psea, *dig);
00155     fMCDigitMap[psea]=mcdig1;
00156     PlexStripEndId pseb = RerootExodus::PECAB2SEId(dig->IPln(), 
00157                                                   dig->IExtr(), dig->ICell(), 1);
00158     // for debugging
00159     cout<<"Gave iab = 1"<<endl;
00160     cout<<"Got back stripend: "<<pseb.GetEnd()<<endl;
00161 
00162     MCDigit mcdig2(pseb, *dig);
00163     fMCDigitMap[pseb]=mcdig2;
00164 
00165   }
00166 }


Member Data Documentation

Definition at line 86 of file Helpers.h.

Referenced by GetMCDigitMap(), and MakeMCDigitMap().


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

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1