|
| DumpFWRecoGeometry (const edm::ParameterSet &config) |
|
virtual | ~DumpFWRecoGeometry (void) |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 14 of file DumpFWRecoGeometry.cc.
virtual DumpFWRecoGeometry::~DumpFWRecoGeometry |
( |
void |
| ) |
|
|
inlinevirtual |
Implements edm::EDAnalyzer.
Definition at line 35 of file DumpFWRecoGeometry.cc.
References end, mergeVDriftHistosByStation::file, edm::EventSetup::get(), i, m_info, m_level, alignCSCRings::s, diffTreeTool::tree, and BeamSplash_cfg::version.
43 s <<
"cmsRecoGeom" <<
m_level <<
".root";
44 TFile
file(
s.str().c_str(),
"RECREATE" );
46 TTree *
tree =
new TTree(
"idToGeo",
"raw detector id association with geometry");
52 Float_t v_translation[3];
55 tree->SetBranchStyle( 0 );
56 tree->Branch(
"id", &v_id,
"id/i" );
57 tree->Branch(
"points", &v_vertex,
"points[24]/F" );
58 tree->Branch(
"topology", &v_params,
"topology[9]/F" );
59 tree->Branch(
"shape", &v_shape,
"shape[5]/F" );
60 tree->Branch(
"translation", &v_translation,
"translation[3]/F" );
61 tree->Branch(
"matrix", &v_matrix,
"matrix[9]/F" );
64 end = geoh.product()->idToName.end();
68 for(
unsigned int i = 0;
i < 24; ++
i )
69 v_vertex[
i] = it->points[
i];
70 for(
unsigned int i = 0;
i < 9; ++
i )
71 v_params[
i] = it->topology[
i];
72 for(
unsigned int i = 0;
i < 5; ++
i )
73 v_shape[
i] = it->shape[
i];
74 for(
unsigned int i = 0;
i < 3; ++
i )
75 v_translation[
i] = it->translation[
i];
76 for(
unsigned int i = 0;
i < 9; ++
i )
77 v_matrix[
i] = it->matrix[
i];
82 TNamed*
version =
new TNamed(
"CMSSW_VERSION", gSystem->Getenv(
"CMSSW_VERSION" ));
85 file.WriteTObject(
new TNamed(
"TAG",
m_info.c_str()));
std::vector< FWRecoGeom::Info >::const_iterator InfoMapItr
void DumpFWRecoGeometry::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
void DumpFWRecoGeometry::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
std::string DumpFWRecoGeometry::m_info |
|
private |
int DumpFWRecoGeometry::m_level |
|
private |