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 
10 
11 
12 ZonesOutput zonemaker(std::vector<ConvertedHit> ConvHits){
13 
14  //bool verbose = false;
15  PhiMemoryImage image0;
16  std::vector<PhiMemoryImage> zones (4,image0);
17 
18 
19  for(std::vector<ConvertedHit>::iterator h = ConvHits.begin();h != ConvHits.end();h++){
20 
21  for(int zone = 0;zone<4;zone++){
22 
23  for(std::vector<int>::iterator in_this_zone = h->ZoneContribution().begin();in_this_zone != h->ZoneContribution().end();in_this_zone++){
24 
25  if(zone == *in_this_zone)
26  zones[zone].SetBit(h->Station(),(h->Zhit()+1));
27  }
28  }
29 
30  //if(verbose) std::cout<<"\n\nst: "<<h->Station()<<" - wire: "<<h->Wire()<<" - strip: "<<h->Strip()<<" - zzhit = "<<h->Zhit()<<" ";
31 
32  }
33 
35  output.zone = zones;
36  output.convertedhits = ConvHits;
37 
38  return output;
39 }
40 
41 
42 std::vector<ZonesOutput> Zones(std::vector<std::vector<ConvertedHit>> Hits){
43 
44 
46  std::vector<ZonesOutput> output (3,tmp);
47 
48  for(int i=0;i<3;i++)
49  output[i] = zonemaker(Hits[i]);
50 
51 
52  return output;
53 
54 }
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:12
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:42