|
ATLAS Offline Software
|
Go to the documentation of this file.
22 declareInterface<Trk::IPRD_TruthTrajectoryManipulator>(
this);
29 msg(MSG::ERROR) <<
"Could not get AtlasID helper !" <<
endmsg;
30 return StatusCode::FAILURE;
32 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
43 srand(
static_cast< unsigned int >( time(
nullptr ) ) );
45 const double prob_pix = pdg_id == 2212 ? 4. : 0;
46 const double prob_sct = 4.375;
50 while( prdIter != prdIterE ){
52 if( prob_pix > 0 ?
rand()%100 <= prob_pix : false ){
53 prdIter = prdvec.
prds.erase(prdIter);
54 prdIterE = prdvec.
prds.end();
59 if(
rand()%100 <= prob_sct ){
60 prdIter = prdvec.
prds.erase(prdIter);
61 prdIterE = prdvec.
prds.end();
JetConstituentVector::iterator iterator
bool is_pixel(Identifier id) const
virtual bool manipulateTruthTrajectory(Trk::PRD_TruthTrajectory &) const
Interface method from IPRD_TruthTrajectoryManipulator.
bool is_sct(Identifier id) const
HepMC::ConstGenParticlePtr genParticle
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
::StatusCode StatusCode
StatusCode definition for legacy code.
PRD_TruthTrajectoryManipulatorID(const std::string &t, const std::string &n, const IInterface *p)
std::vector< const Trk::PrepRawData * > prds
public members
const AtlasDetectorID * m_atlasId
ID pixel helper.