45 std::cout<<
"GeometricDetLoader::beginJob"<<std::endl;
49 std::cout<<
"PoolDBOutputService unavailable"<<std::endl;
60 std::vector<const GeometricDet*> tc = tracker->
components();
61 std::cout <<
"Tracker has " << tc.size() <<
" components." << std::endl;
62 std::vector<const GeometricDet*>::const_iterator git = tc.begin();
63 std::vector<const GeometricDet*>::const_iterator egit = tc.end();
67 for (; git!= egit; ++git) {
69 std::vector<const GeometricDet*> inone = (*git)->components();
72 if ( inone.size() == 0 ) ++count;
73 std::vector<const GeometricDet*>::const_iterator git2 = inone.begin();
74 std::vector<const GeometricDet*>::const_iterator egit2 = inone.end();
76 for (; git2 != egit2; ++git2) {
78 std::vector<const GeometricDet*> intwo= (*git2)->components();
80 if ( intwo.size() == 0 ) ++count;
81 std::vector<const GeometricDet*>::const_iterator git3 = intwo.begin();
82 std::vector<const GeometricDet*>::const_iterator egit3 = intwo.end();
84 for (; git3 != egit3; ++git3) {
86 std::vector<const GeometricDet*> inthree= (*git3)->components();
88 if ( inthree.size() == 0 ) ++count;
89 std::vector<const GeometricDet*>::const_iterator git4 = inthree.begin();
90 std::vector<const GeometricDet*>::const_iterator egit4 = inthree.end();
92 for (; git4 != egit4; ++git4) {
94 std::vector<const GeometricDet*> infour= (*git4)->components();
96 if ( infour.size() == 0 ) ++count;
97 std::vector<const GeometricDet*>::const_iterator git5 = infour.begin();
98 std::vector<const GeometricDet*>::const_iterator egit5 = infour.end();
100 for (; git5 != egit5; ++git5) {
102 std::vector<const GeometricDet*> infive= (*git5)->components();
104 if ( infive.size() == 0 ) ++count;
105 std::vector<const GeometricDet*>::const_iterator git6 = infive.begin();
106 std::vector<const GeometricDet*>::const_iterator egit6 = infive.end();
108 for (; git6 != egit6; ++git6) {
110 std::vector<const GeometricDet*> insix= (*git6)->components();
112 if ( insix.size() == 0 ) ++count;
124 std::vector<const GeometricDet*> modules = tracker->
deepComponents();
125 std::cout <<
" No. of Tracker components \"deepComponents\" = " << modules.size() << std::endl;
126 std::cout <<
" Counted # of lowest \"leaves\" = " << count << std::endl;
131 ,
"PGeometricDetRcd");
133 std::cout <<
"PGeometricDetRcd Tag is already present." << std::endl;
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void putOne(const GeometricDet *gd, PGeometricDet *pgd, int lev)
cond::Time_t endOfTime() const
ConstGeometricDetContainer deepComponents() const
GeometricDetContainer & components()