CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
CmsTrackerBuilder< FilteredView > Class Template Reference

#include <CmsTrackerBuilder.h>

Inheritance diagram for CmsTrackerBuilder< FilteredView >:
CmsTrackerLevelBuilder< FilteredView > CmsTrackerAbstractConstruction< FilteredView >

Public Member Functions

 CmsTrackerBuilder ()
 
- Public Member Functions inherited from CmsTrackerLevelBuilder< FilteredView >
template<>
void build (cms::DDFilteredView &fv, GeometricDet *tracker, const std::string &attribute)
 
template<>
void build (DDFilteredView &fv, GeometricDet *tracker, const std::string &attribute)
 
void build (FilteredView &, GeometricDet *, const std::string &) override
 
 ~CmsTrackerLevelBuilder () override
 
- Public Member Functions inherited from CmsTrackerAbstractConstruction< FilteredView >
virtual ~CmsTrackerAbstractConstruction ()=default
 

Private Member Functions

void buildComponent (FilteredView &, GeometricDet *, const std::string &) override
 
void sortNS (FilteredView &, GeometricDet *) override
 

Additional Inherited Members

- Protected Attributes inherited from CmsTrackerLevelBuilder< FilteredView >
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

Detailed Description

template<class FilteredView>
class CmsTrackerBuilder< FilteredView >

Abstract Class to construct a Level in the hierarchy

Definition at line 14 of file CmsTrackerBuilder.h.

Constructor & Destructor Documentation

◆ CmsTrackerBuilder()

template<class FilteredView>
CmsTrackerBuilder< FilteredView >::CmsTrackerBuilder ( )
inline

Definition at line 16 of file CmsTrackerBuilder.h.

16 {}

Member Function Documentation

◆ buildComponent()

template<class FilteredView >
void CmsTrackerBuilder< FilteredView >::buildComponent ( FilteredView &  fv,
GeometricDet g,
const std::string &  s 
)
overrideprivatevirtual

Implements CmsTrackerLevelBuilder< FilteredView >.

Definition at line 14 of file CmsTrackerBuilder.cc.

14  {
15  CmsTrackerSubStrctBuilder<FilteredView> theCmsTrackerSubStrctBuilder;
16  CmsTrackerPixelPhase1EndcapBuilder<FilteredView> theCmsTrackerPixelPhase1EndcapBuilder;
17  CmsTrackerPixelPhase2EndcapBuilder<FilteredView> theCmsTrackerPixelPhase2EndcapBuilder;
18 
19  GeometricDet* subdet = new GeometricDet(&fv,
25  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
26  break;
28  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
29  break;
31  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
32  break;
34  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
35  break;
37  theCmsTrackerPixelPhase1EndcapBuilder.build(fv, subdet, s);
38  break;
40  theCmsTrackerPixelPhase2EndcapBuilder.build(fv, subdet, s);
41  break;
43  theCmsTrackerPixelPhase2EndcapBuilder.build(fv, subdet, s);
44  break;
45  case GeometricDet::TIB:
46  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
47  break;
48  case GeometricDet::TOB:
49  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
50  break;
52  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
53  break;
54  case GeometricDet::TEC:
55  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
56  break;
57  case GeometricDet::TID:
58  theCmsTrackerSubStrctBuilder.build(fv, subdet, s);
59  break;
60  default:
61  edm::LogError("CmsTrackerBuilder") << " ERROR - I was expecting a SubDet, I got a "
63  }
64 
65  g->addComponent(subdet);
66 }

References CmsTrackerLevelBuilder< FilteredView >::build(), g, ExtractStringFromDDD< FilteredView >::getString(), GeometricDet::OTPhase2Barrel, GeometricDet::OTPhase2EndCap, GeometricDet::PixelBarrel, GeometricDet::PixelEndCap, GeometricDet::PixelPhase1Barrel, GeometricDet::PixelPhase1EndCap, GeometricDet::PixelPhase2Barrel, GeometricDet::PixelPhase2EndCap, alignCSCRings::s, GeometricDet::TEC, GeometricDet::TIB, GeometricDet::TID, and GeometricDet::TOB.

◆ sortNS()

template<class FilteredView >
void CmsTrackerBuilder< FilteredView >::sortNS ( FilteredView &  ,
GeometricDet det 
)
overrideprivatevirtual

Reimplemented from CmsTrackerLevelBuilder< FilteredView >.

Definition at line 69 of file CmsTrackerBuilder.cc.

69  {
71  std::stable_sort(comp.begin(), comp.end(), CmsTrackerLevelBuilderHelper::subDetByType);
72 
73  for (uint32_t i = 0; i < comp.size(); i++) {
74  uint32_t temp = comp[i]->type();
76  temp %
77  100); // it relies on the fact that the GeometricDet::GDEnumType enumerators used to identify the subdetectors in the upgrade geometries are equal to the ones of the present detector + n*100
78  }
79 }

References AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::component(), GeometricDet::components(), mps_fire::i, GeometricDet::setGeographicalID(), CmsTrackerLevelBuilderHelper::subDetByType(), and groupFilesInBlocks::temp.

ExtractStringFromDDD::getString
static std::string getString(const std::string &, FilteredView *)
CmsTrackerLevelBuilder
Definition: CmsTrackerLevelBuilder.h:31
mps_fire.i
i
Definition: mps_fire.py:428
GeometricDet::PixelEndCap
Definition: GeometricDet.h:52
GeometricDet::components
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:149
GeometricDet::TID
Definition: GeometricDet.h:54
GeometricDet::PixelBarrel
Definition: GeometricDet.h:51
GeometricDet::OTPhase2Barrel
Definition: GeometricDet.h:72
CmsTrackerPixelPhase1EndcapBuilder
Definition: CmsTrackerPixelPhase1EndcapBuilder.h:12
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
ExtractStringFromDDD
Definition: ExtractStringFromDDD.h:12
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GeometricDet::PixelPhase1EndCap
Definition: GeometricDet.h:69
GeometricDet::setGeographicalID
void setGeographicalID(DetId id)
Definition: GeometricDet.h:97
GeometricDet::PixelPhase2Barrel
Definition: GeometricDet.h:75
CmsTrackerLevelBuilderHelper::subDetByType
static bool subDetByType(const GeometricDet *a, const GeometricDet *b)
Definition: CmsTrackerLevelBuilder.cc:12
GeometricDet
Definition: GeometricDet.h:31
GeometricDet::PixelPhase2EndCap
Definition: GeometricDet.h:76
CmsTrackerLevelBuilder::build
void build(FilteredView &, GeometricDet *, const std::string &) override
GeometricDet::PixelPhase1Barrel
Definition: GeometricDet.h:68
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
GeometricDet::OTPhase2EndCap
Definition: GeometricDet.h:71
GeometricDet::TIB
Definition: GeometricDet.h:53
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
CmsTrackerPixelPhase2EndcapBuilder
Definition: CmsTrackerPixelPhase2EndcapBuilder.h:12
GeometricDet::component
GeometricDet * component(size_t index)
Definition: GeometricDet.h:145
GeometricDet::ConstGeometricDetContainer
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:34
GeometricDet::TOB
Definition: GeometricDet.h:55
CmsTrackerSubStrctBuilder
Definition: CmsTrackerSubStrctBuilder.h:12
GeometricDet::TEC
Definition: GeometricDet.h:56
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4