CMS 3D CMS Logo

Functions
ZoneCreation.h File Reference
#include "L1Trigger/L1TMuonEndCap/interface/PhiMemoryImage.h"
#include "L1Trigger/L1TMuonEndCap/interface/EmulatorClasses.h"

Go to the source code of this file.

Functions

ZonesOutput zonemaker (std::vector< ConvertedHit > ConvHits)
 
std::vector< ZonesOutputZones (std::vector< std::vector< ConvertedHit >> Hits)
 

Function Documentation

ZonesOutput zonemaker ( std::vector< ConvertedHit ConvHits)

Definition at line 14 of file ZoneCreation.h.

References ZonesOutput::convertedhits, convertSQLitetoXML_cfg::output, and ZonesOutput::zone.

Referenced by Zones().

14  {
15 
16  //bool verbose = false;
17  PhiMemoryImage image0;
18  std::vector<PhiMemoryImage> zones (4,image0);
19 
20  for (std::vector<ConvertedHit>::iterator h = ConvHits.begin(); h != ConvHits.end(); h++){
21 
22  int zmask[4] = {1,2,4,8};
23  for(int zone=0;zone<4;zone++){
24  if(h->ZoneWord() & zmask[zone]){
25  zones[zone].SetBit(h->Station(),h->Zhit()+1);
26  }
27  }
28  }
29 
31  output.zone = zones;
32  output.convertedhits = ConvHits;
33 
34  return output;
35 }
Definition: zones.h:12
std::vector< PhiMemoryImage > zone
std::vector< ConvertedHit > convertedhits
std::vector<ZonesOutput> Zones ( std::vector< std::vector< ConvertedHit >>  Hits)

Definition at line 37 of file ZoneCreation.h.

References mps_fire::i, convertSQLitetoXML_cfg::output, tmp, and zonemaker().

Referenced by L1TMuonEndCapTrackProducer::produce().

37  {
38 
40  std::vector<ZonesOutput> output (3,tmp);
41 
42  for(int i=0;i<3;i++)
43  output[i] = zonemaker(Hits[i]);
44 
45  return output;
46 
47 }
ZonesOutput zonemaker(std::vector< ConvertedHit > ConvHits)
Definition: ZoneCreation.h:14
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100