8 #include "CLHEP/Vector/LorentzVector.h" 25 edm::LogInfo (
"RecoProducerFP420") <<
"RecoProducerFP420 parameters: \n" 26 <<
" Verbosity: " << verbosity <<
"\n" 27 <<
" length: " <<
length <<
"\n";
29 std::cout <<
" RecoProducerFP420: constructor " << std::endl;
30 std::cout <<
" BeamLineLength: " << length << std::endl;
44 m_beamline1->fill( b1.fullPath(), 1,
"IP5" );
48 msg +=
" caught in RecoProducerFP420... \nERROR: Could not locate SimTransport/HectorData data files.";
52 m_beamline1->offsetElements( 120, -0.097 );
55 m_beamline1->calcMatrix();
58 edm::LogInfo (
"RecoProducerFP420") <<
"==============================\n";
64 std::vector<RecoFP420>
RecoProducerFP420::reconstruct(
int direction,
double x1_420,
double y1_420,
double x2_420,
double y2_420,
double z1_420,
double z2_420){
67 std::vector<RecoFP420>
rhits;
69 rhits.reserve(restracks);
75 if ( direction == 1 ) {
79 std::cout <<
" RecoProducerFP420: input coord. in um " << std::endl;
80 std::cout <<
" x1_420: " << x1_420 <<
" y1_420: " << y1_420 << std::endl;
81 std::cout <<
" x2_420: " << x2_420 <<
" y2_420: " << y2_420 << std::endl;
83 m_rp420_f->setPositions( x1_420, y1_420, x2_420 ,y2_420 );
94 else if ( direction == 2 ) {
97 m_rp420_b->setPositions( x1_420, y1_420, x2_420 ,y2_420 );
112 std::cout <<
" RecoProducerFP420: rhits.push_back " << std::endl;
119 std::cout <<
" direction: " << direction << std::endl;
virtual char const * what() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< RecoFP420 > rhits
std::string beam1filename
RecoProducerFP420(const edm::ParameterSet &conf)
H_RecRPObject * m_rp420_f
std::string beam2filename
std::vector< RecoFP420 > reconstruct(int, double, double, double, double, double, double)
H_RecRPObject * m_rp420_b
virtual ~RecoProducerFP420()