|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONDIGITIZATION_CSC_DIGITIZER_H
6 #define MUONDIGITIZATION_CSC_DIGITIZER_H
15 #include "CLHEP/Random/RandomEngine.h"
17 #include "GaudiKernel/ServiceHandle.h"
18 #include "GaudiKernel/StatusCode.h"
52 void set(
const double bunchTime);
64 std::map<
IdentifierHash, std::pair<double, double> >& data_map, CLHEP::HepRandomEngine* rndmEngine);
67 std::map<
IdentifierHash, std::vector<float> >& data_SampleMapOddPhase, CLHEP::HepRandomEngine* rndmEngine);
69 std::map<
IdentifierHash, std::vector<float> >& data_SampleMap, CLHEP::HepRandomEngine* rndmEngine);
76 double qWire(
const int& nElectrons,
const double& gammaDist)
const;
77 static double qStripR(
const double x) ;
80 static double fparamPhi(
const double x,
const std::array<double, 9>&
p) ;
103 std::array<double, s_maxElectron>
m_sprob{0.};
CSC_Digitizer(const CscHitIdHelper *cscHitHelper, const MuonGM::MuonDetectorManager *muonMgr, ICscCalibTool *pcalib)
void setWindow(const double t1, const double t2)
double m_timeWindowLowerOffset
double getDriftTime(const MuonGM::CscReadoutElement *descriptor, const Amg::Vector3D &pos) const
const CscIdHelper * m_cscIdHelper
std::vector< ALFA_RawDataCollection_p1 > t1
std::map< char, int > m_stationDict
Cache the csc id dictionary.
const CscHitIdHelper * m_cscHitHelper
std::array< double, s_maxElectron > m_sprob
void fillSampleMaps(const IdentifierHash hash, const double driftTime, const double stripCharge, std::vector< IdentifierHash > &hashVec, std::map< IdentifierHash, std::vector< float > > &data_map, bool phase=0)
void fillMaps(const IdentifierHash hash, const double driftTime, const double stripCharge, std::vector< IdentifierHash > &hashVec, std::map< IdentifierHash, std::pair< double, double > > &data_map)
double qWire(const int &nElectrons, const double &gammaDist) const
double qStripPhi(const double x, const Identifier &id) const
void set(const double bunchTime)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode digitize_hit(const CSCSimHit *cscHit, std::vector< IdentifierHash > &hashVec, std::map< IdentifierHash, std::vector< float > > &data_SampleMap, CLHEP::HepRandomEngine *rndmEngine)
IdentifierHash getHashId(const Identifier &input_id, const int stripId, const int measuresPhi) const
void setAmplification(const double amplification)
StatusCode digitize_hit(const CSCSimHit *cscHit, std::vector< IdentifierHash > &hashVec, std::map< IdentifierHash, std::vector< float > > &data_SampleMap, std::map< IdentifierHash, std::vector< float > > &data_SampleMapOddPhase, CLHEP::HepRandomEngine *rndmEngine)
double m_timeWindowUpperOffset
Eigen::Matrix< double, 3, 1 > Vector3D
bool outsideWindow(double time) const
static double fparamPhi(const double x, const std::array< double, 9 > &p)
std::vector< ALFA_RawDataContainer_p1 > t2
void setDriftVelocity(double v0)
StatusCode digitize_hit(const CSCSimHit *cscHit, std::vector< IdentifierHash > &hashVec, std::map< IdentifierHash, std::pair< double, double > > &data_map, CLHEP::HepRandomEngine *rndmEngine)
const MuonGM::MuonDetectorManager * m_muonMgr
def time(flags, cells_name, *args, **kw)
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Identifier to_identifier(const CSCSimHit *cscHit) const
bool m_NInterFromEnergyLoss
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
static constexpr int s_maxElectron
static double qStripR(const double x)
void setElectronEnergy(double e)