test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
PrimitiveConverter.cc File Reference
#include <cassert>
#include <iostream>
#include <fstream>
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "L1Trigger/L1TMuonEndCap/interface/PrimitiveConverter.h"
#include "L1Trigger/CSCCommonTrigger/interface/CSCPatternLUT.h"
#include "L1Trigger/CSCTrackFinder/test/src/RefTrack.h"
#include "L1Trigger/L1TMuonEndCap/interface/EmulatorClasses.h"

Go to the source code of this file.

Functions

bool neighbor (int endcap, int sector, int SectIndex, int id, int sub, int station)
 
template<typename T >
static void read_buf (const char *name, T *buf, unsigned size)
 

Variables

int ph_offsets_neighbor [5][10][3]
 

Function Documentation

bool neighbor ( int  endcap,
int  sector,
int  SectIndex,
int  id,
int  sub,
int  station 
)

Definition at line 33 of file PrimitiveConverter.cc.

Referenced by PrimitiveConverter::convert(), HcalTopology::down(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HcalTopology::north(), l1t::Stage1Layer2TauAlgorithmImpPP::processEvent(), l1t::Stage1Layer2TauAlgorithmImpHW::processEvent(), PixelForwardLayer::searchNeighbors(), PixelForwardLayerPhase1::searchNeighbors(), TIBRing::searchNeighbors(), ConvertedHit::SetNeighbor(), l1t::slidingWindowJetFinder(), HcalTopology::south(), l1t::TwelveByTwelveFinder(), l1t::TwoByTwoFinder(), and HcalTopology::up().

33  {
34 
35  bool neighbor = false;
36 
37  int CompIndex = (endcap - 1)*6 + sector - 1;
38  bool AdSector = false;
39  if((SectIndex == 0 && CompIndex == 5) ||
40  (SectIndex == 1 && CompIndex == 0) ||
41  (SectIndex == 2 && CompIndex == 1) ||
42  (SectIndex == 3 && CompIndex == 2) ||
43  (SectIndex == 4 && CompIndex == 3) ||
44  (SectIndex == 5 && CompIndex == 4) ||
45  (SectIndex == 6 && CompIndex == 11) ||
46  (SectIndex == 7 && CompIndex == 6) ||
47  (SectIndex == 8 && CompIndex == 7) ||
48  (SectIndex == 9 && CompIndex == 8) ||
49  (SectIndex == 10 && CompIndex == 9) ||
50  (SectIndex == 11 && CompIndex == 10) ){AdSector = true;}
51 
52  if(AdSector && sub == 2 && station == 1 && (id == 3 || id == 6 || id == 9) )
53  neighbor = true;
54 
55  if(AdSector && station > 1 && (id == 3 || id == 9) )
56  neighbor = true;
57 
58  return neighbor;
59 
60 }
bool neighbor(int endcap, int sector, int SectIndex, int id, int sub, int station)
template<typename T >
static void read_buf ( const char *  name,
T buf,
unsigned  size 
)
static

Definition at line 63 of file PrimitiveConverter.cc.

References contentValuesFiles::fullPath, i, input, and findQualityFiles::size.

Referenced by PrimitiveConverter::PrimitiveConverter().

63  {
64  ifstream input(edm::FileInPath(name).fullPath().c_str());
65  for (unsigned i=0; i<size; i++){
66  input >> buf[i];
67  }
68 }
int i
Definition: DBlmapReader.cc:9
static std::string const input
Definition: EdmProvDump.cc:44
tuple size
Write out results.

Variable Documentation

int ph_offsets_neighbor[5][10][3]
Initial value:
= {{{39,39,-99} ,{57,57,-99} ,{76,76,-99} ,{39,-99,-99} ,{58,-99,-99} ,{76,-99,-99} ,{41,-99,-99} ,{60,-99,-99} ,{79,-99,-99} ,{21,21,23} },
{{95,95,-99} ,{114,114,-99} ,{132,132,-99} ,{95,-99,-99} ,{114,-99,-99} ,{133,-99,-99} ,{98,-99,-99} ,{116,-99,-99} ,{135,-99,-99} ,{21,21,23} },
{{38,38,-99} ,{76,76,-99} ,{113,113,-99} ,{39,39,-99} ,{58,58,-99} ,{76,76,-99} ,{95,95,-99} ,{114,114,-99} ,{132,132,-99} ,{1,21,21} },
{{38,-99,-99} ,{76,-99,-99} ,{113,-99,-99} ,{39,39,39} ,{58,58,58} ,{76,76,76} ,{95,95,95} ,{114,114,114} ,{132,132,132} ,{1,21,21} },
{{38,-99,-99} ,{76,-99,-99} ,{113,-99,-99} ,{38,38,-99} ,{57,57,-99} ,{76,76,-99} ,{95,95,-99} ,{113,113,-99} ,{132,132,-99} ,{1,20,20} }}

Definition at line 24 of file PrimitiveConverter.cc.

Referenced by PrimitiveConverter::convert().