CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, h, 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 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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 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 }
int i
Definition: DBlmapReader.cc:9
ZonesOutput zonemaker(std::vector< ConvertedHit > ConvHits)
Definition: ZoneCreation.h:14
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100