test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMTrivialModel.cc
Go to the documentation of this file.
2 
6 
8 
9 #include <cmath>
10 #include <utility>
11 #include <map>
12 
13 
15  : GEMDigiModel(config)
16 {
17 }
18 
19 void
21  const edm::PSimHitContainer& simHits, CLHEP::HepRandomEngine* engine)
22 {
24  detectorHitMap_.clear();
26 
27  const Topology& topology(roll->specs()->topology());
28 
29  for (const auto & hit: simHits)
30  {
31  if (std::abs(hit.particleType()) != 13) continue;
32  auto entry = hit.entryPoint();
33  // please keep hit time always 0 for this model
34  std::pair<int, int> digi(topology.channel(entry) + 1, 0);
36  strips_.insert(digi);
37  }
38 }
39 
40 
41 std::vector<std::pair<int,int> >
42 GEMTrivialModel::simulateClustering(const GEMEtaPartition* roll, const PSimHit* simHit, const int bx, CLHEP::HepRandomEngine* engine)
43 {
44  return std::vector<std::pair<int,int> >();
45 }
46 
std::vector< std::pair< int, int > > simulateClustering(const GEMEtaPartition *, const PSimHit *, const int, CLHEP::HepRandomEngine *engine)
CaloTopology const * topology(0)
GEMDetId id() const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
const Topology & topology() const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const GEMEtaPartitionSpecs * specs() const
tuple simHits
Definition: trackerHits.py:16
std::set< std::pair< int, int > > strips_
Definition: GEMDigiModel.h:62
list entry
Definition: mps_splice.py:62
void clear()
Definition: DetSet.h:69
void simulateSignal(const GEMEtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *engine)
DetectorHitMap detectorHitMap_
Definition: GEMDigiModel.h:74
std::vector< PSimHit > PSimHitContainer
StripDigiSimLinks stripDigiSimLinks_
Definition: GEMDigiModel.h:75
GEMTrivialModel(const edm::ParameterSet &)
edm::DetSet< StripDigiSimLink > StripDigiSimLinks
Definition: GEMDigiModel.h:35