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

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

NavKey StripSRKeyFromPSEId (const CandDigitHandle *)
NavKey StripSRKeyFromTime (const CandDigitHandle *)
NavKey StripSRKeyFromTube (const CandDigitHandle *)
 CVSID ("$Id: AlgStripSRList.cxx,v 1.37 2010/01/06 18:27:37 rhatcher Exp $")


Function Documentation

CVSID "$Id: AlgStripSRList cxx,
v 1.37 2010/01/06 18:27:37 rhatcher Exp $" 
 

NavKey StripSRKeyFromPSEId const CandDigitHandle  )  [static]
 

Definition at line 584 of file AlgStripSRList.cxx.

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

00585 {
00586 //
00587 //  Purpose:  Generate a sort key based on the encoded strip end ID of
00588 //            a CandDigit.
00589 //
00590 //  Arguments:
00591 //    cdh        in    Handle to CandDigit to be sorted.
00592 //
00593 //  Return:   Encoded strip end ID.
00594 //
00595 
00596    return const_cast<CandDigitHandle *>(cdh)->GetPlexSEIdAltL()
00597                                       .GetBestSEId().GetEncoded();
00598 }

NavKey StripSRKeyFromTime const CandDigitHandle  )  [static]
 

Definition at line 601 of file AlgStripSRList.cxx.

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

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

00602 {
00603 //
00604 //  Purpose:  Generate a sort key based on the encoded strip end ID and
00605 //            time of a CandDigit.
00606 //
00607 //  Arguments:
00608 //    cdh        in    Handle to CandDigit to be sorted.
00609 //
00610 //  Return:   Encoded strip end ID.
00611 //
00612 
00613 // Get Singleton instance of AlgFactory.
00614   AlgFactory &af = AlgFactory::GetInstance();
00615   AlgHandle adf = af.GetAlgHandle("AlgStripSRList","default");
00616   AlgConfig &ac = adf.GetAlgConfig(); 
00617 
00618   CalTimeType::CalTimeType_t caltimetype = (CalTimeType::CalTimeType_t)(ac.GetInt("CalTimeType"));
00619  
00620    Double_t time = cdh->GetTime(caltimetype);
00621    Int_t itime = static_cast<Int_t>((time/(1.*Munits::ns))+.5);
00622 
00623    Int_t navkey = itime;
00624    return navkey;
00625 }

NavKey StripSRKeyFromTube const CandDigitHandle  )  [static]
 

Definition at line 627 of file AlgStripSRList.cxx.

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

Referenced by AlgStripSRList::MakeXtalkMap().

00628 {
00629 //
00630 //  Purpose:  Generate a sort key based on the unique PMT id
00631 //           
00632 //
00633 //  Arguments:
00634 //    cdh        in    Handle to CandDigit to be sorted.
00635 //
00636 //  Return:   PMT id
00637 //
00638  
00639   Int_t navkey=cdh->GetPlexSEIdAltL().GetBestItem().GetPixelSpotId().GetUniquePmtEncodedValue();
00640    return navkey;
00641 }


Generated on Mon Feb 15 11:07:52 2010 for loon by  doxygen 1.3.9.1