#include <MuonPatternRecoDumper.h>
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. |
A class to print information used for debugging
Definition at line 20 of file MuonPatternRecoDumper.h.
MuonPatternRecoDumper::MuonPatternRecoDumper | ( | ) |
MuonPatternRecoDumper::~MuonPatternRecoDumper | ( | ) | [virtual] |
string MuonPatternRecoDumper::dumpFTS | ( | const FreeTrajectoryState & | fts | ) | const |
Definition at line 47 of file MuonPatternRecoDumper.cc.
References GlobalTrajectoryParameters::charge(), PV3DBase< T, PVType, FrameType >::eta(), FreeTrajectoryState::momentum(), convertSQLitetoXML_cfg::output, FreeTrajectoryState::parameters(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), and FreeTrajectoryState::position().
Referenced by PhysicsObjectsMonitor::analyze(), MuonSeedTrack::buildTrackAtPCA(), MuonTrackLoader::buildTrackAtPCA(), MuonTrackLoader::buildTrackUpdatedAtPCA(), CSCEfficiency::filter(), and L2MuonSeedGenerator::produce().
string MuonPatternRecoDumper::dumpLayer | ( | const DetLayer * | layer | ) | const |
Definition at line 30 of file MuonPatternRecoDumper.cc.
References convertSQLitetoXML_cfg::output, GloballyPositioned< T >::position(), Cylinder::radius(), and GeometricSearchDet::surface().
Referenced by L2MuonSeedGenerator::produce(), MuonSimHitProducer::produce(), SETMuonSeedProducer::produce(), StandAloneMuonTrajectoryBuilder::propagateTheSeedTSOS(), StandAloneMuonFilter::refit(), CosmicMuonTrajectoryBuilder::trajectories(), 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 RPCSeedPattern::createSeed(), CosmicMuonSeedGenerator::createSeed(), MuonSeedFromRecHits::createSeed(), MuonSeedOrcaPatternRecognition::dumpLayer(), CSCEfficiency::filter(), MuonSeedOrcaPatternRecognition::filterOverlappingChambers(), MuonSeedOrcaPatternRecognition::filterSegments(), MuonTrackResidualAnalyzer::mapMuSimHitsPerId(), L2MuonSeedGenerator::produce(), StandAloneMuonTrajectoryBuilder::propagateTheSeedTSOS(), and CosmicMuonTrajectoryBuilder::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 |
Definition at line 60 of file MuonPatternRecoDumper.cc.
References TrajectoryStateOnSurface::freeTrajectoryState(), TrajectoryStateOnSurface::globalDirection(), and convertSQLitetoXML_cfg::output.
Referenced by RPCSeedPattern::createSeed(), MuonSeedFromRecHits::createSeed(), MuonTrackAnalyzer::fillPlots(), L2MuonSeedGenerator::produce(), StandAloneMuonTrajectoryBuilder::propagateTheSeedTSOS(), StandAloneMuonTrajectoryBuilder::trajectories(), StandAloneMuonFilter::update(), and MuonTrajectoryUpdator::update().
{ stringstream output; output<<tsos<<endl; output<<"dir: "<<tsos.globalDirection()<<endl; output<<dumpFTS(*tsos.freeTrajectoryState()); return output.str(); }