Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
#ifndef DataFormats_TrackerCommon_SiStripSubStructure_h
#define DataFormats_TrackerCommon_SiStripSubStructure_h
// -*- C++ -*-
//
// Package:     SiStripDetId
// Class  :     SiStripSubStructure
//
/**\class SiStripSubStructure SiStripSubStructure.h
 DataFormats/TrackerCommon/interface/SiStripSubStructure.h

 Description: <Assign detector Ids to different substructures of the
 SiStripTracker: TOB, TIB, etc>

 Usage:
    <usage>

*/
//
// Original Author:  dkcira
//         Created:  Wed Jan 25 07:18:21 CET 2006
//

#include <cstdint>
#include <vector>

class TrackerTopology;

namespace SiStripSubStructure {
  void getTIBDetectors(const std::vector<uint32_t> &inputDetRawIds,  // INPUT
                       std::vector<uint32_t> &tibDetRawIds,          // OUTPUT
                       const TrackerTopology *trackerTopology,       // TrackerTopology
                       uint32_t layer = 0,                           // SELECTION: layer = 1..4, 0(ALL)
                       uint32_t bkw_frw = 0,                         // bkw_frw = 1(TIB-), 2(TIB+) 0(ALL)
                       uint32_t int_ext = 0,                         // int_ext = 1 (internal), 2(external), 0(ALL)
                       uint32_t string = 0);                         // string = 1..N, 0(ALL)

  void getTIDDetectors(const std::vector<uint32_t> &inputDetRawIds,  // INPUT
                       std::vector<uint32_t> &tidDetRawIds,          // OUTPUT
                       const TrackerTopology *trackerTopology,       // TrackerTopology
                       uint32_t side = 0,                            // SELECTION: side = 1(back), 2(front), 0(ALL)
                       uint32_t wheel = 0,                           // wheel = 1..3, 0(ALL)
                       uint32_t ring = 0,                            // ring  = 1..3, 0(ALL)
                       uint32_t ster = 0);                           // ster = 1(stereo), else (nonstereo), 0(ALL)

  void getTOBDetectors(const std::vector<uint32_t> &inputDetRawIds,  // INPUT
                       std::vector<uint32_t> &tobDetRawIds,          // OUTPUT
                       const TrackerTopology *trackerTopology,       // TrackerTopology
                       uint32_t layer = 0,                           // SELECTION: layer = 1..6, 0(ALL)
                       uint32_t bkw_frw = 0,                         // bkw_frw = 1(TOB-) 2(TOB+) 0(everything)
                       uint32_t rod = 0);                            // rod = 1..N, 0(ALL)

  void getTECDetectors(const std::vector<uint32_t> &inputDetRawIds,  // INPUT
                       std::vector<uint32_t> &tecDetRawIds,          // OUTPUT
                       const TrackerTopology *trackerTopology,       // TrackerTopology
                       uint32_t side = 0,                            // SELECTION: side = 1(TEC-), 2(TEC+),  0(ALL)
                       uint32_t wheel = 0,                           // wheel = 1..9, 0(ALL)
                       uint32_t petal_bkw_frw = 0,                   // petal_bkw_frw = 1(backward) 2(forward) 0(all)
                       uint32_t petal = 0,                           // petal = 1..8, 0(ALL)
                       uint32_t ring = 0,                            // ring = 1..7, 0(ALL)
                       uint32_t ster = 0);                           // ster = 1(sterero), else(nonstereo), 0(ALL)
};  // namespace SiStripSubStructure
#endif