Definition at line 14 of file DumpFWTGeoRecoGeometry.cc.
virtual DumpFWTGeoRecoGeometry::~DumpFWTGeoRecoGeometry |
( |
void |
| ) |
|
|
inlinevirtual |
Implements edm::EDAnalyzer.
Definition at line 33 of file DumpFWTGeoRecoGeometry.cc.
References end, mergeVDriftHistosByStation::file, relativeConstraints::geom, edm::EventSetup::get(), i, m_level, alignCSCRings::s, and diffTreeTool::tree.
39 TGeoManager *
geom =
const_cast<TGeoManager*
>( geoh.product()->manager());
42 s <<
"cmsTGeoRecoGeom" <<
m_level <<
".root";
43 TFile
file(
s.str().c_str(),
"RECREATE" );
45 TTree *
tree =
new TTree(
"idToGeo",
"Raw detector id association with geometry" );
47 TString *v_path(
new TString );
52 tree->SetBranchStyle( 0 );
53 tree->Branch(
"id", &v_id,
"id/i" );
54 tree->Branch(
"path", &v_name,
"path/C" );
55 tree->Branch(
"points", &v_vertex,
"points[24]/F" );
56 tree->Branch(
"topology", &v_params,
"topology[9]/F" );
58 for( std::map<unsigned int, FWTGeoRecoGeometry::Info>::const_iterator it = geoh.product()->idToName.begin(),
59 end = geoh.product()->idToName.end();
63 *v_path = it->second.name.c_str();
64 for(
unsigned int i = 0;
i < 24; ++
i )
65 v_vertex[
i] = it->second.points[
i];
66 for(
unsigned int i = 0;
i < 9; ++
i )
67 v_params[
i] = it->second.topology[
i];
68 assert( it->second.name.size() < 1000 );
69 strncpy( v_name, it->second.name.c_str(), 1000 );
void DumpFWTGeoRecoGeometry::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void DumpFWTGeoRecoGeometry::endJob |
( |
void |
| ) |
|
|
privatevirtual |
int DumpFWTGeoRecoGeometry::m_level |
|
private |