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 10 of file ZoneCreation.h.

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

Referenced by Zones().

10  {
11 
12  //bool verbose = false;
13  PhiMemoryImage image0;
14  std::vector<PhiMemoryImage> zones (4,image0);
15 
16  for (std::vector<ConvertedHit>::iterator h = ConvHits.begin(); h != ConvHits.end(); h++){
17 
18  int zmask[4] = {1,2,4,8};
19  for(int zone=0;zone<4;zone++){
20  if(h->ZoneWord() & zmask[zone]){
21  zones[zone].SetBit(h->Station(),h->Zhit()+1);
22  }
23  }
24  }
25 
27  output.zone = zones;
28  output.convertedhits = ConvHits;
29 
30  return output;
31 }
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 33 of file ZoneCreation.h.

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

Referenced by L1TMuonEndCapTrackProducer::produce().

33  {
34 
36  std::vector<ZonesOutput> output (3,tmp);
37 
38  for(int i=0;i<3;i++)
39  output[i] = zonemaker(Hits[i]);
40 
41  return output;
42 
43 }
int i
Definition: DBlmapReader.cc:9
ZonesOutput zonemaker(std::vector< ConvertedHit > ConvHits)
Definition: ZoneCreation.h:10
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100