CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZoneCreation.h
Go to the documentation of this file.
1 
9 
10 ZonesOutput zonemaker(std::vector<ConvertedHit> ConvHits){
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 }
32 
33 std::vector<ZonesOutput> Zones(std::vector<std::vector<ConvertedHit>> Hits){
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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
ZonesOutput zonemaker(std::vector< ConvertedHit > ConvHits)
Definition: ZoneCreation.h:10
Definition: zones.h:12
std::vector< PhiMemoryImage > zone
std::vector< ConvertedHit > convertedhits
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::vector< ZonesOutput > Zones(std::vector< std::vector< ConvertedHit >> Hits)
Definition: ZoneCreation.h:33