AlgStripSRList.cxx File Reference

#include <cassert>
#include <cmath>
#include <iostream>
#include "TROOT.h"
#include "Algorithm/AlgFactory.h"
#include "Algorithm/AlgHandle.h"
#include "Algorithm/AlgConfig.h"
#include "CandDigit/CandDigitHandle.h"
#include "CandDigit/CandDigitListHandle.h"
#include "Candidate/CandContext.h"
#include "CandStripSR/StripSRListModule.h"
#include "CandStripSR/AlgStripSRList.h"
#include "RecoBase/CandStrip.h"
#include "RecoBase/CandStripHandle.h"
#include "RecoBase/CandStripList.h"
#include "RecoBase/CandStripListHandle.h"
#include "Conventions/Munits.h"
#include "MessageService/MsgService.h"
#include "MinosObjectMap/MomNavigator.h"
#include "Navigation/NavKey.h"
#include "Navigation/NavSet.h"
#include "RawData/RawDigit.h"
#include "RawData/RawHeader.h"
#include "RawData/RawRecord.h"
#include "RawData/RawChannelId.h"
#include "RawData/RawDigitDataBlock.h"
#include "RawData/RawDaqSnarlHeader.h"
#include "RawData/RawDaqHeaderBlock.h"
#include "Validity/VldContext.h"
#include "DataUtil/GetRawBlock.h"

Go to the source code of this file.

Functions

static NavKey StripSRKeyFromPSEId (const CandDigitHandle *)
static NavKey StripSRKeyFromTime (const CandDigitHandle *)
static NavKey StripSRKeyFromTube (const CandDigitHandle *)
 CVSID ("$Id: AlgStripSRList.cxx,v 1.40 2013/06/06 14:43:58 lwhite86 Exp $")

Function Documentation

CVSID ( "$Id: AlgStripSRList.  cxx,
v 1.40 2013/06/06 14:43:58 lwhite86 Exp $"   
)
NavKey StripSRKeyFromPSEId ( const CandDigitHandle cdh  )  [static]

Definition at line 545 of file AlgStripSRList.cxx.

Referenced by AlgStripSRList::RunAlgFar(), AlgStripSRList::RunAlgMixed(), and AlgStripSRList::RunAlgNear().

00546 {
00547 //
00548 //  Purpose:  Generate a sort key based on the encoded strip end ID of
00549 //            a CandDigit.
00550 //
00551 //  Arguments:
00552 //    cdh        in    Handle to CandDigit to be sorted.
00553 //
00554 //  Return:   Encoded strip end ID.
00555 //
00556 
00557    return const_cast<CandDigitHandle *>(cdh)->GetPlexSEIdAltL()
00558                                       .GetBestSEId().GetEncoded();
00559 }

NavKey StripSRKeyFromTime ( const CandDigitHandle cdh  )  [static]

Definition at line 562 of file AlgStripSRList.cxx.

References AlgHandle::GetAlgConfig(), AlgFactory::GetAlgHandle(), AlgFactory::GetInstance(), Registry::GetInt(), CandDigitHandle::GetTime(), and Munits::ns.

Referenced by AlgStripSRList::RunAlgMixed(), and AlgStripSRList::RunAlgNear().

00563 {
00564 //
00565 //  Purpose:  Generate a sort key based on the encoded strip end ID and
00566 //            time of a CandDigit.
00567 //
00568 //  Arguments:
00569 //    cdh        in    Handle to CandDigit to be sorted.
00570 //
00571 //  Return:   Encoded strip end ID.
00572 //
00573 
00574 // Get Singleton instance of AlgFactory.
00575   AlgFactory &af = AlgFactory::GetInstance();
00576   AlgHandle adf = af.GetAlgHandle("AlgStripSRList","default");
00577   AlgConfig &ac = adf.GetAlgConfig(); 
00578 
00579   CalTimeType::CalTimeType_t caltimetype = (CalTimeType::CalTimeType_t)(ac.GetInt("CalTimeType"));
00580  
00581    Double_t time = cdh->GetTime(caltimetype);
00582    Int_t itime = static_cast<Int_t>((time/(1.*Munits::ns))+.5);
00583 
00584    Int_t navkey = itime;
00585    return navkey;
00586 }

NavKey StripSRKeyFromTube ( const CandDigitHandle cdh  )  [static]

Definition at line 588 of file AlgStripSRList.cxx.

References PlexSEIdAltL::GetBestItem(), PlexSEIdAltLItem::GetPixelSpotId(), CandDigitHandle::GetPlexSEIdAltL(), and PlexPixelSpotId::GetUniquePmtEncodedValue().

Referenced by AlgStripSRList::MakeXtalkMap().

00589 {
00590 //
00591 //  Purpose:  Generate a sort key based on the unique PMT id
00592 //           
00593 //
00594 //  Arguments:
00595 //    cdh        in    Handle to CandDigit to be sorted.
00596 //
00597 //  Return:   PMT id
00598 //
00599  
00600   Int_t navkey=cdh->GetPlexSEIdAltL().GetBestItem().GetPixelSpotId().GetUniquePmtEncodedValue();
00601    return navkey;
00602 }


Generated on 24 Jul 2018 for loon by  doxygen 1.6.1