5#ifndef MUONTGC_CABLING_TGCCABLEASDTOPP_H
6#define MUONTGC_CABLING_TGCCABLEASDTOPP_H
20 TGCCableASDToPP(
const std::string& fileName,
const std::string& diffFile);
24 bool orChannel =
false)
const;
27 void initialize(
const std::string& filename,
const std::string& diffFile);
32 bool orChannel =
false)
const;
34 bool orChannel =
false)
const;
37 const int side,
const int sector,
38 const std::vector<std::string>& diffFile,
const std::string& blockname);
41 const int sector,
const int module)
const;
44 const int side,
const int sector,
45 const std::vector<std::string>& diffFile,
const std::string& blockname,
46 std::shared_ptr<TGCDatabaseASDToPP>& database);
56 std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
60 std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
64 std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
static constexpr std::array< int, 9 > s_stripForward
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_ENDCAP_SECTOR >, TGCId::MaxSideType > EndcapSectorDB
std::vector< std::vector< int > > getUpdateInfo(const int side, const int sector, const std::vector< std::string > &diffFile, const std::string &blockname)
void updateDatabase(const std::string &diffFile)
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_INNER_SECTOR >, TGCId::MaxSideType > InnerSectorDB
std::unique_ptr< TGCChannelId > getChannel(const TGCChannelId &channelId, bool orChannel=false) const
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::MaxModuleType >, TGCId::MaxRegionType > CommonDB
Pointers of common databases are recorded in this array.
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_FORWARD_SECTOR >, TGCId::MaxSideType > ForwardSectorDB
virtual ~TGCCableASDToPP()
void updateIndividualDatabase(const int side, const int sector, const std::vector< std::string > &diffFile, const std::string &blockname, std::shared_ptr< TGCDatabaseASDToPP > &database)
std::unique_ptr< TGCChannelId > getChannelOut(const TGCChannelId &asdout, bool orChannel=false) const
std::unique_ptr< TGCChannelId > getChannelIn(const TGCChannelId &ppin, bool orChannel=false) const
TGCDatabaseASDToPP * getDatabase(const int side, const int region, const int sector, const int module) const
TGCCableASDToPP(const std::string &fileName, const std::string &diffFile)
TGCCable(CableType type=NoCableType)
static constexpr int NUM_INNER_SECTOR
static constexpr int NUM_ENDCAP_SECTOR
static constexpr int NUM_FORWARD_SECTOR