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 
7 #ifndef ADD_ZoneCreation
8 #define ADD_ZoneCreation
9 
10 
13 
14 ZonesOutput zonemaker(std::vector<ConvertedHit> ConvHits){
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 }
36 
37 std::vector<ZonesOutput> Zones(std::vector<std::vector<ConvertedHit>> Hits){
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 }
48 
49 #endif
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:14
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:37