CMS 3D CMS Logo

Public Member Functions

MuonPatternRecoDumper Class Reference

#include <MuonPatternRecoDumper.h>

List of all members.

Public Member Functions

std::string dumpFTS (const FreeTrajectoryState &fts) const
std::string dumpLayer (const DetLayer *layer) const
std::string dumpMuonId (const DetId &id) const
std::string dumpTSOS (const TrajectoryStateOnSurface &tsos) const
 MuonPatternRecoDumper ()
 Constructor.
virtual ~MuonPatternRecoDumper ()
 Destructor.

Detailed Description

A class to print information used for debugging

Date:
2006/09/22 10:59:28
Revision:
1.7
Author:
S. Lacaprara - INFN Legnaro <stefano.lacaprara@pd.infn.it>
R. Bellan - INFN Torino <riccardo.bellan@cern.ch>

Definition at line 20 of file MuonPatternRecoDumper.h.


Constructor & Destructor Documentation

MuonPatternRecoDumper::MuonPatternRecoDumper ( )

Constructor.

Definition at line 21 of file MuonPatternRecoDumper.cc.

                                             {
}
MuonPatternRecoDumper::~MuonPatternRecoDumper ( ) [virtual]

Destructor.

Definition at line 25 of file MuonPatternRecoDumper.cc.

                                              {
}

Member Function Documentation

string MuonPatternRecoDumper::dumpFTS ( const FreeTrajectoryState fts) const
string MuonPatternRecoDumper::dumpLayer ( const DetLayer layer) const

Definition at line 30 of file MuonPatternRecoDumper.cc.

References convertSQLitetoXML_cfg::output, and GeometricSearchDet::surface().

Referenced by L2MuonSeedGenerator::produce(), MuonSimHitProducer::produce(), SETMuonSeedProducer::produce(), StandAloneMuonTrajectoryBuilder::propagateTheSeedTSOS(), StandAloneMuonFilter::refit(), and StandAloneMuonTrajectoryBuilder::trajectories().

                                                                   {
  stringstream output;
  
  const BoundSurface* sur=0;
  const BoundCylinder* bc=0;
  const BoundDisk* bd=0;

  sur = &(layer->surface());
  if ( (bc = dynamic_cast<const BoundCylinder*>(sur)) ) {
    output << "  Cylinder of radius: " << bc->radius() << endl;
  }
  else if ( (bd = dynamic_cast<const BoundDisk*>(sur)) ) {
    output << "  Disk at: " <<  bd->position().z() << endl;
  }
  return output.str();
}
string MuonPatternRecoDumper::dumpMuonId ( const DetId id) const

Definition at line 70 of file MuonPatternRecoDumper.cc.

References MuonSubdetId::CSC, MuonSubdetId::DT, convertSQLitetoXML_cfg::output, and MuonSubdetId::RPC.

Referenced by L2MuonSeedGenerator::associateOfflineSeedToL1(), RPCSeedPattern::createSeed(), CosmicMuonSeedGenerator::createSeed(), MuonSeedOrcaPatternRecognition::dumpLayer(), CSCEfficiency::filter(), MuonSeedOrcaPatternRecognition::filterOverlappingChambers(), MuonSeedOrcaPatternRecognition::filterSegments(), MuonTrackResidualAnalyzer::mapMuSimHitsPerId(), L2MuonSeedGenerator::produce(), StandAloneMuonTrajectoryBuilder::propagateTheSeedTSOS(), and StandAloneMuonTrajectoryBuilder::trajectories().

                                                             {
  stringstream output;
  
  if(id.subdetId() == MuonSubdetId::DT ){
    DTWireId wireId(id.rawId());

    output<<"(DT): "<<wireId<<endl;  
  }
  else if(id.subdetId() == MuonSubdetId::CSC){
    CSCDetId chamberId(id.rawId());
    output<<"(CSC): "<<chamberId<<endl;  
  }
  else if(id.subdetId() == MuonSubdetId::RPC){
    RPCDetId chamberId(id.rawId());
    output<<"(RPC): "<<chamberId<<endl;  
  }
  else output<<"The DetLayer is not a valid Muon DetLayer. ";

  return output.str();
}
string MuonPatternRecoDumper::dumpTSOS ( const TrajectoryStateOnSurface tsos) const