Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-12 02:58:07

0001 #include "DataFormats/ForwardDetId/interface/BTLDetId.h"
0002 
0003 BTLDetId BTLDetId::geographicalId(CrysLayout lay) const {
0004   // reorganize the modules to count from 0 to 54
0005   //    (0 to 42 in the case of BarZflat geometry)
0006   // remove module type
0007   // remove crystal index
0008 
0009   if (lay == CrysLayout::barphiflat) {
0010     return BTLDetId(mtdSide(), mtdRR(), module() + kModulePerTypeBarPhiFlat * (modType() - 1), 0, 1);
0011   }
0012 
0013   return 0;
0014 }
0015 
0016 #include <iomanip>
0017 
0018 std::ostream& operator<<(std::ostream& os, const BTLDetId& id) {
0019   os << (MTDDetId&)id;
0020   os << " BTL " << std::endl
0021      << " Side        : " << id.mtdSide() << std::endl
0022      << " Rod         : " << id.mtdRR() << std::endl
0023      << " Module      : " << id.module() << std::endl
0024      << " Crystal type: " << id.modType() << std::endl
0025      << " Crystal     : " << id.crystal() << std::endl;
0026   return os;
0027 }