CTPPSDiamondLocalTrackFitter::CTPPSDiamondLocalTrackFitter |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 44 of file CTPPSDiamondLocalTrackFitter.cc.
49 produces<edm::DetSetVector<CTPPSDiamondLocalTrack> >();
T getParameter(std::string const &) const
CTPPSDiamondTrackRecognition trk_algo_45_
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > recHitsToken_
CTPPSDiamondTrackRecognition trk_algo_56_
CTPPSDiamondLocalTrackFitter::~CTPPSDiamondLocalTrackFitter |
( |
| ) |
|
|
override |
Definition at line 100 of file CTPPSDiamondLocalTrackFitter.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
104 ->setComment(
"input rechits collection to retrieve" );
105 desc.
add<
int>(
"verbosity", 0 )
106 ->setComment(
"general verbosity of this module" );
109 trackingAlgoParams.
add<
double>(
"threshold", 1.5 )
110 ->setComment(
"minimal number of rechits to be observed before launching the track recognition algorithm" );
111 trackingAlgoParams.
add<
double>(
"thresholdFromMaximum", 0.5 );
112 trackingAlgoParams.
add<
double>(
"resolution", 0.01 )
113 ->setComment(
"spatial resolution on the horizontal coordinate (in mm)" );
114 trackingAlgoParams.
add<
double>(
"sigma", 0.1 );
115 trackingAlgoParams.
add<
double>(
"startFromX", -0.5 )
116 ->setComment(
"starting horizontal coordinate of rechits for the track recognition" );
117 trackingAlgoParams.
add<
double>(
"stopAtX", 19.5 )
118 ->setComment(
"ending horizontal coordinate of rechits for the track recognition" );
120 trackingAlgoParams.
add<
std::string>(
"pixelEfficiencyFunction",
"(TMath::Erf((x-[0]+0.5*[1])/([2]/4)+2)+1)*TMath::Erfc((x-[0]-0.5*[1])/([2]/4)-2)/4" )
121 ->setComment(
"efficiency function for single pixel\n" 122 "can be defined as:\n" 123 " * Precise: (TMath::Erf((x-[0]+0.5*[1])/([2]/4)+2)+1)*TMath::Erfc((x-[0]-0.5*[1])/([2]/4)-2)/4\n" 124 " * Fast: (x>[0]-0.5*[1])*(x<[0]+0.5*[1])+((x-[0]+0.5*[1]+[2])/[2])*(x>[0]-0.5*[1]-[2])*(x<[0]-0.5*[1])+(2-(x-[0]-0.5*[1]+[2])/[2])*(x>[0]+0.5*[1])*(x<[0]+0.5*[1]+[2])\n" 125 " * Legacy: (1/(1+exp(-(x-[0]+0.5*[1])/[2])))*(1/(1+exp((x-[0]-0.5*[1])/[2])))\n" 127 " [0]: centre of pad\n" 128 " [1]: width of pad\n" 129 " [2]: sigma: distance between efficiency ~100 -> 0 outside width" );
131 trackingAlgoParams.
add<
double>(
"yPosition", 0.0 )
132 ->setComment(
"vertical offset of the outcoming track centre" );
133 trackingAlgoParams.
add<
double>(
"yWidth", 0.0 )
134 ->setComment(
"vertical track width" );
137 ->setComment(
"list of parameters associated to the track recognition algorithm" );
139 descr.
add(
"ctppsDiamondLocalTracks", desc );
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition at line 56 of file CTPPSDiamondLocalTrackFitter.cc.
References CTPPSDiamondTrackRecognition::addHit(), CTPPSDiamondTrackRecognition::clear(), edm::Event::getByToken(), eostools::move(), CTPPSDiamondTrackRecognition::produceTracks(), edm::Event::put(), recHitsToken_, CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING, trk_algo_45_, and trk_algo_56_.
65 pOut->find_or_insert( id_45 );
72 for (
const auto& vec : *recHits ) {
74 for (
const auto&
hit : vec ) {
78 switch ( detid.arm() ) {
82 edm::LogWarning(
"CTPPSDiamondLocalTrackFitter") <<
"Invalid arm for rechit: " << detid.arm();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void clear()
Reset the list of hits.
CTPPSDiamondTrackRecognition trk_algo_45_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > recHitsToken_
CTPPSDiamondTrackRecognition trk_algo_56_
void addHit(const CTPPSDiamondRecHit &recHit)
Feed a new hit to the tracks recognition algorithm.
static constexpr int TIMESLICE_WITHOUT_LEADING
int produceTracks(edm::DetSet< CTPPSDiamondLocalTrack > &tracks)
Produce a collection of tracks for the current station, given its hits collection.
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...