CalHelpers Namespace Reference

Classes

class  MCDigit
class  MCDigitMap

Functions

Int_t GetPlane (const CandDigitHandle &)
Int_t GetBestStrip (const CandDigitHandle &)
Int_t GetBestEnd (const CandDigitHandle &)
float ComputeSine (float p1, float s1, float p2, float s2, float scale_p=5.8, float scale_s=4.1)
NavKey KeyFromPlane (const CandDigitHandle *cdh)
NavKey KeyFromStrip (const CandDigitHandle *cdh)
NavKey KeyFromEnd (const CandDigitHandle *cdh)
NavKey KeyFromTime (const CandDigitHandle *cdh)
NavKey KeyFromCrate (const CandDigitHandle *cdh)
NavKey KeyFromVarc (const CandDigitHandle *cdh)
NavKey KeyFromDigitTime (const CandDigitHandle *cdh)

Function Documentation

float CalHelpers::ComputeSine ( float  p1,
float  s1,
float  p2,
float  s2,
float  scale_p = 5.8,
float  scale_s = 4.1 
) [inline]

Definition at line 129 of file Helpers.h.

00131 {
00132      float s= (s2-s1)*scale_s;
00133      float p= (p2-p1)*scale_p;
00134      return s/sqrt(s*s + p*p);
00135 }

Int_t CalHelpers::GetBestEnd ( const CandDigitHandle cdh  )  [inline]

Definition at line 124 of file Helpers.h.

References PlexSEIdAltL::GetBestSEId(), PlexStripEndId::GetEnd(), and CandDigitHandle::GetPlexSEIdAltL().

Referenced by KeyFromEnd().

00125 {
00126      return cdh.GetPlexSEIdAltL().GetBestSEId().GetEnd();
00127 }

Int_t CalHelpers::GetBestStrip ( const CandDigitHandle cdh  )  [inline]

Definition at line 119 of file Helpers.h.

References PlexSEIdAltL::GetBestSEId(), CandDigitHandle::GetPlexSEIdAltL(), and PlexStripEndId::GetStrip().

Referenced by KeyFromStrip().

00120 {
00121      return cdh.GetPlexSEIdAltL().GetBestSEId().GetStrip();
00122 }

Int_t CalHelpers::GetPlane ( const CandDigitHandle cdh  )  [inline]

Definition at line 114 of file Helpers.h.

References PlexSEIdAltL::GetPlane(), and CandDigitHandle::GetPlexSEIdAltL().

Referenced by KeyFromPlane().

00115 {
00116      return cdh.GetPlexSEIdAltL().GetPlane();
00117 }

NavKey CalHelpers::KeyFromCrate ( const CandDigitHandle cdh  ) 

Definition at line 39 of file Helpers.cxx.

References CandDigitHandle::GetChannelId(), and RawChannelId::GetCrate().

00040 {
00041      return cdh->GetChannelId().GetCrate();
00042 }

NavKey CalHelpers::KeyFromDigitTime ( const CandDigitHandle cdh  ) 

Definition at line 33 of file Helpers.cxx.

References CandDigitHandle::GetTime().

00034 {
00035      return cdh->GetTime();
00036 }

NavKey CalHelpers::KeyFromEnd ( const CandDigitHandle cdh  ) 

Definition at line 23 of file Helpers.cxx.

References GetBestEnd().

Referenced by UberDST::Ana(), UberModule::Reco(), and UberModuleLite::Reco().

00024 {
00025      return GetBestEnd(*cdh);
00026 }

NavKey CalHelpers::KeyFromPlane ( const CandDigitHandle cdh  ) 

Definition at line 13 of file Helpers.cxx.

References GetPlane().

Referenced by UberDST::Ana(), UberModule::Reco(), and UberModuleLite::Reco().

00014 {
00015      return GetPlane(*cdh);
00016 }

NavKey CalHelpers::KeyFromStrip ( const CandDigitHandle cdh  ) 

Definition at line 18 of file Helpers.cxx.

References GetBestStrip().

Referenced by UberDST::Ana(), UberModule::Reco(), and UberModuleLite::Reco().

00019 {
00020      return GetBestStrip(*cdh);
00021 }

NavKey CalHelpers::KeyFromTime ( const CandDigitHandle cdh  ) 

Definition at line 28 of file Helpers.cxx.

References PlexSEIdAltL::GetBestItem(), CandDigitHandle::GetPlexSEIdAltL(), and PlexSEIdAltLItem::GetTime().

00029 {
00030      return cdh->GetPlexSEIdAltL().GetBestItem().GetTime();
00031 }

NavKey CalHelpers::KeyFromVarc ( const CandDigitHandle cdh  ) 

Definition at line 44 of file Helpers.cxx.

References CandDigitHandle::GetChannelId(), and RawChannelId::GetVarcId().

00045 {
00046      return cdh->GetChannelId().GetVarcId();
00047 }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1