6 std::string stageName) {
8 if(tjList.empty())
return;
12 CTP_t inCTP = slc.
tjs[tjList[0][0] - 1].CTP;
13 for(
unsigned short it1 = 0; it1 < slc.
tjs.size(); ++it1) {
15 if(tj1.
CTP != inCTP)
continue;
21 bool inShower =
false;
23 for (
size_t l1 = 0; l1 < tjList.size(); ++l1) {
25 for (
size_t l2 = 0; l2 < tjList[l1].size(); ++l2) {
27 if (trajID == tjList[l1][l2]) {
38 for (
int i = 0; i < 8; i++) {
52 if(ss.
ID == 0)
return;
56 for(
unsigned short it1 = 0; it1 < slc.
tjs.size(); ++it1) {
67 bool isShowerTj =
false;
68 for (
size_t i = 0; i <
stv.
TjID.size(); ++i) {
80 if (isShowerTj)
continue;
83 for (
size_t i = 0; i < ss.
TjIDs.size(); ++i) {
84 if (trajID == ss.
TjIDs[i]) {
114 for (
int i = 0; i < 8; i++) {
167 for(
unsigned short cotIndex = 0; cotIndex < slc.
cots.size(); ++cotIndex) {
168 auto&
ss = slc.
cots[cotIndex];
169 if (
ss.CTP != inCTP)
continue;
170 if(
ss.ID == 0)
continue;
178 for(
unsigned short cotIndex = 0; cotIndex < slc.
cots.size(); ++cotIndex) {
179 auto&
ss = slc.
cots[cotIndex];
180 if(
ss.ID == 0)
continue;
187 bool existingStage =
false;
188 for (
unsigned short i = 0; i < stv.
StageName.size(); ++i) {
190 existingStage =
true;
195 if (!existingStage) {
std::vector< int > EnvStage
void SaveTjInfoStuff(TCSlice &slc, Trajectory &tj, int stageNum, std::string stageName)
std::vector< int > IsShowerParent
std::vector< Trajectory > tjs
vector of all trajectories in each plane
std::vector< float > EndWir
std::vector< float > EndAng
std::vector< ShowerStruct > cots
std::vector< float > BeginTim
std::vector< Point2_t > Envelope
std::vector< float > BeginAng
The data type to uniquely identify a Plane.
void ClearShowerTree(ShowerTreeVars &stv)
void SaveAllCots(TCSlice &slc, const CTP_t &inCTP, std::string someText)
std::vector< float > EndTim
std::vector< int > ShowerID
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::vector< std::string > StageName
float unitsPerTick
scale factor from Tick to WSE equivalent units
std::vector< short > BeginVtx
CTP_t CTP
Cryostat, TPC, Plane code.
std::vector< TrajPoint > Pts
Trajectory points.
std::vector< short > EndVtx
void SaveTjInfo(TCSlice &slc, std::vector< std::vector< int >> &tjList, std::string stageName)
std::array< unsigned short, 2 > EndPt
First and last point in the trajectory that has charge.
std::vector< float > Envelope
PlaneID_t Plane
Index of the plane within its TPC.
std::vector< float > BeginChg
int ID
ID that is local to one slice.
std::array< unsigned short, 2 > VtxID
ID of 2D vertex.
std::bitset< 16 > modes
number of points to find AveChg
std::vector< int > EnvPlane
std::vector< short > MCSMom
std::vector< int > StageNum
std::bitset< 128 > AlgMod
Bit set if algorithm AlgBit_t modifed the trajectory.
std::vector< float > BeginWir
geo::PlaneID DecodeCTP(CTP_t CTP)
std::vector< float > EndChg
int GetStageNum(ShowerTreeVars &stv, std::string stageName)
std::vector< int > EnvShowerID
std::vector< int > IsShowerTj
std::vector< short > PlaneNum