Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre-Alain Loizeau
cbmroot
Commits
5345958c
Commit
5345958c
authored
Nov 02, 2021
by
Alberica Toia
Committed by
Volker Friese
Nov 02, 2021
Browse files
Bug fix in SetTimeCuts in STS recconstruction
parent
ec88aff0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
13 deletions
+59
-13
reco/detectors/sts/CbmRecoSts.cxx
reco/detectors/sts/CbmRecoSts.cxx
+6
-0
reco/detectors/sts/CbmStsRecoModule.cxx
reco/detectors/sts/CbmStsRecoModule.cxx
+9
-9
reco/detectors/sts/CbmStsRecoModule.h
reco/detectors/sts/CbmStsRecoModule.h
+44
-4
No files found.
reco/detectors/sts/CbmRecoSts.cxx
View file @
5345958c
...
...
@@ -121,6 +121,12 @@ UInt_t CbmRecoSts::CreateModules()
// --- Create reco module
CbmStsRecoModule
*
recoModule
=
new
CbmStsRecoModule
(
setupModule
,
modPar
,
sensPar
,
lorentzF
,
lorentzB
);
assert
(
recoModule
);
recoModule
->
SetTimeCutDigisAbs
(
fTimeCutDigisAbs
);
recoModule
->
SetTimeCutDigisSig
(
fTimeCutDigisSig
);
recoModule
->
SetTimeCutClustersAbs
(
fTimeCutClustersAbs
);
recoModule
->
SetTimeCutClustersSig
(
fTimeCutClustersSig
);
auto
result
=
fModules
.
insert
({
moduleAddress
,
recoModule
});
assert
(
result
.
second
);
fModuleIndex
.
push_back
(
recoModule
);
...
...
reco/detectors/sts/CbmStsRecoModule.cxx
View file @
5345958c
...
...
@@ -88,10 +88,10 @@ void CbmStsRecoModule::Reconstruct()
});
// --- Perform cluster finding
fClusterFinder
->
Exec
(
fDigisF
,
fClustersF
,
fSetupModule
->
GetAddress
(),
fNofStripsF
,
0
,
fTimeCutDigiSig
,
fTimeCutDigiAbs
,
fConnectEdgeFront
,
fParModule
);
fClusterFinder
->
Exec
(
fDigisB
,
fClustersB
,
fSetupModule
->
GetAddress
(),
fNofStripsB
,
fNofStripsF
,
fTimeCutDigiSig
,
fTimeCutDigiAbs
,
fConnectEdgeBack
,
fParModule
);
fClusterFinder
->
Exec
(
fDigisF
,
fClustersF
,
fSetupModule
->
GetAddress
(),
fNofStripsF
,
0
,
fTimeCutDigi
s
Sig
,
fTimeCutDigi
s
Abs
,
fConnectEdgeFront
,
fParModule
);
fClusterFinder
->
Exec
(
fDigisB
,
fClustersB
,
fSetupModule
->
GetAddress
(),
fNofStripsB
,
fNofStripsF
,
fTimeCutDigi
s
Sig
,
fTimeCutDigi
s
Abs
,
fConnectEdgeBack
,
fParModule
);
// --- Perform cluster analysis
for
(
auto
&
cluster
:
fClustersF
)
...
...
@@ -109,12 +109,12 @@ void CbmStsRecoModule::Reconstruct()
// --- Perform hit finding
if
(
fHitFinder
)
fHitFinder
->
Exec
(
fClustersF
,
fClustersB
,
fHits
,
fSetupModule
->
GetAddress
(),
fTimeCutClusterSig
,
fTimeCutClusterAbs
,
fDyActive
,
fNofStripsF
,
fStripPitchF
,
fStereoFront
,
fStereoBack
,
fLorentzShiftF
,
fLorentzShiftB
,
fMatrix
);
fHitFinder
->
Exec
(
fClustersF
,
fClustersB
,
fHits
,
fSetupModule
->
GetAddress
(),
fTimeCutCluster
s
Sig
,
fTimeCutClustersAbs
,
fDyActive
,
fNofStripsF
,
fStripPitchF
,
fStereoFront
,
fStereoBack
,
fLorentzShiftF
,
fLorentzShiftB
,
fMatrix
);
else
if
(
fHitFinderOrtho
)
fHitFinderOrtho
->
Exec
(
fClustersF
,
fClustersB
,
fHits
,
fSetupModule
->
GetAddress
(),
fTimeCutClusterSig
,
fTimeCutClusterAbs
,
fNofStripsF
,
fNofStripsB
,
fStripPitchF
,
fStripPitchB
,
fLorentzShiftF
,
fHitFinderOrtho
->
Exec
(
fClustersF
,
fClustersB
,
fHits
,
fSetupModule
->
GetAddress
(),
fTimeCutCluster
s
Sig
,
fTimeCutCluster
s
Abs
,
fNofStripsF
,
fNofStripsB
,
fStripPitchF
,
fStripPitchB
,
fLorentzShiftF
,
fLorentzShiftB
,
fMatrix
);
}
// -------------------------------------------------------------------------
...
...
reco/detectors/sts/CbmStsRecoModule.h
View file @
5345958c
...
...
@@ -117,6 +117,46 @@ public:
/** @brief Info to string **/
std
::
string
ToString
()
const
;
/** @brief Time cut on clusters for hit finding
** @param value Maximal time difference between two clusters in a hit [ns]
**
** Two clusters are considered compatible if their time difference
** is below value.
** Setting this cut parameter to a positive value will override
** the time cut defined by SetTimeCutClustersSig.
**/
void
SetTimeCutClustersAbs
(
Double_t
value
)
{
fTimeCutClustersAbs
=
value
;
}
/** @brief Time cut on clusters for hit finding
** @param value Maximal time difference in units of error
**
** Two clusters are considered compatible if their time difference
** is below value * sqrt(terr1**2 + terr2*+2).
**/
void
SetTimeCutClustersSig
(
Double_t
value
)
{
fTimeCutClustersSig
=
value
;
}
/** @brief Time cut on digis for cluster finding
** @param value Maximal time difference between two digis in a cluster [ns]
**
** Two digis are considered compatible if their time difference
** is below value.
** Setting this cut parameter to a positive value will override
** the time cut defined by SetTimeCutDigisSig.
**/
void
SetTimeCutDigisAbs
(
Double_t
value
)
{
fTimeCutDigisAbs
=
value
;
}
/** @brief Time cut on digis for hit finding
** @param value Maximal time difference in units of error
**
** Two digis are considered compatible if their time difference
** is below value * sqrt2 * sigma(t), where the time error of
** the digis is assumed to be the same.
**/
void
SetTimeCutDigisSig
(
Double_t
value
)
{
fTimeCutDigisSig
=
value
;
}
private:
/** @brief Set and check the needed parameters **/
...
...
@@ -154,10 +194,10 @@ private:
std
::
vector
<
CbmStsHit
>
fHits
{};
//!
// --- Settings
Double_t
fTimeCutDigiSig
=
3.
;
///< Time cut for cluster finding (in sigma)
Double_t
fTimeCutDigiAbs
=
-
1.
;
///< Time cut for cluster finding (in ns)
Double_t
fTimeCutClusterSig
=
4.
;
///< Time cut for hit finding (in ns)
Double_t
fTimeCutClusterAbs
=
-
1.
;
///< Time cut for hit finding (in sigma)
Double_t
fTimeCutDigi
s
Sig
=
3.
;
///< Time cut for cluster finding (in sigma)
Double_t
fTimeCutDigi
s
Abs
=
-
1.
;
///< Time cut for cluster finding (in ns)
Double_t
fTimeCutCluster
s
Sig
=
4.
;
///< Time cut for hit finding (in ns)
Double_t
fTimeCutCluster
s
Abs
=
-
1.
;
///< Time cut for hit finding (in sigma)
Bool_t
fConnectEdgeFront
=
kFALSE
;
///< Round-the edge clustering front side
Bool_t
fConnectEdgeBack
=
kFALSE
;
///< Round-the edge clustering back side
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment