CMS 3D CMS Logo

SimHitSelectorFromDB Class Reference

#include <SimTracker/Common/interface/SimHitSelectorFromDB.h>

List of all members.

Public Member Functions

std::vector< std::pair
< PSimHit, int > > 
getSimHit (std::auto_ptr< MixCollection< PSimHit > > &, std::map< uint32_t, std::vector< int > > &)
 SimHitSelectorFromDB ()
 ~SimHitSelectorFromDB ()

Private Attributes

std::vector< std::pair
< PSimHit, int > > 
theNewSimHitList


Detailed Description

Definition at line 11 of file SimHitSelectorFromDB.h.


Constructor & Destructor Documentation

SimHitSelectorFromDB::SimHitSelectorFromDB (  ) 

Definition at line 3 of file SimHitSelectorFromDB.cc.

00003 :theNewSimHitList(0){}

SimHitSelectorFromDB::~SimHitSelectorFromDB (  )  [inline]

Definition at line 15 of file SimHitSelectorFromDB.h.

00015 {};


Member Function Documentation

std::vector< std::pair< PSimHit, int > > SimHitSelectorFromDB::getSimHit ( std::auto_ptr< MixCollection< PSimHit > > &  simhit,
std::map< uint32_t, std::vector< int > > &  detId 
)

Definition at line 6 of file SimHitSelectorFromDB.cc.

References counter(), detId, it, and theNewSimHitList.

Referenced by SiStripDigitizer::produce().

00007                                                                                               {
00008   theNewSimHitList.clear();
00009   int counter =0;
00010   for(MixCollection<PSimHit>::iterator it = simhit->begin(); it!= simhit->end();it++){
00011     counter++;
00012     if(detId.size()!=0){
00013       uint32_t tkid = (*it).detUnitId();
00014       if (detId.find(tkid) != detId.end()){
00015         //      theNewSimHitList.push_back((*it));
00016         //      std::cout << "Hit in the MAP " << counter << std::endl;
00017         theNewSimHitList.push_back(std::make_pair((*it), counter));
00018       }
00019     }else{
00020       //      theNewSimHitList.push_back((*it));
00021       //      std::cout << "Hit NOT in the MAP " << counter << std::endl;
00022       theNewSimHitList.push_back(std::make_pair((*it),counter));
00023     }
00024   }
00025   return theNewSimHitList;
00026 }


Member Data Documentation

std::vector<std::pair<PSimHit, int > > SimHitSelectorFromDB::theNewSimHitList [private]

Definition at line 21 of file SimHitSelectorFromDB.h.

Referenced by getSimHit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:33 2009 for CMSSW by  doxygen 1.5.4