You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o2::framework::Configurable<bool> requireMcLabel{"requireMcLabel", false, "Reject particles without an associated MC particle instead of writing a -1 label"}; // dummy configuration for now
766
+
};
767
+
768
+
/// Copies MC information from one femto derived file into another.
769
+
/// The ancestry is already resolved upstream (FMcMothers / FMcPartMoths /
770
+
/// FMcMotherLabels), so this only remaps indices: each source row is copied on
771
+
/// first use and cached for the rest of the dataframe.
772
+
classMcBuilderDerivedToDerived
773
+
{
774
+
public:
775
+
McBuilderDerivedToDerived() = default;
776
+
~McBuilderDerivedToDerived() = default;
777
+
778
+
template <typename T>
779
+
voidinit(T& config)
780
+
{
781
+
LOG(info) << "Initialize derived-to-derived monte carlo builder...";
782
+
mRequireMcLabel = config.requireMcLabel.value;
783
+
LOG(info) << "Initialization done...";
784
+
}
785
+
786
+
/// Write one FColLabels row. Call exactly once per produced collision,
787
+
/// directly after collisionBuilder.processCollision().
Copy file name to clipboardExpand all lines: PWGCF/Femto/Core/trackBuilder.h
+36-1Lines changed: 36 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ struct ConfTrackSelection : public o2::framework::ConfigurableGroup {
134
134
std::string prefix = Prefix; // Unique prefix based on the template argument
135
135
// configuration parameters
136
136
o2::framework::Configurable<int> pdgCodeAbs{"pdgCodeAbs", 2212, "Absolute value of PDG code. Set sign of charge to -1 for antiparticle."};
137
-
o2::framework::Configurable<int> chargeAbs{"chargeAbs", 1, "Absolute value of charge (e.g. 1 for most tracks, 2 for He3). Set sign of charge to -1 for antiparticle"};
137
+
o2::framework::Configurable<int> chargeAbs{"chargeAbs", 1, "Absolute value of charge (e.g. 1 for most tracks, 2 for He3)"};
138
138
o2::framework::Configurable<int> chargeSign{"chargeSign", 1, "Track charge sign: +1 for positive, -1 for negative, 0 for both"};
0 commit comments