All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
icarus::AnalysisTreeDataStruct::TrackDataStruct Class Reference

Public Types

template<typename T >
using TrackData_t = std::vector< T >
 
template<typename T >
using PlaneData_t = std::vector< BoxedArray< T[kNplanes]>>
 
template<typename T >
using HitData_t = std::vector< BoxedArray< T[kNplanes][kMaxTrackHits]>>
 
template<typename T >
using HitCoordData_t = std::vector< BoxedArray< T[kNplanes][kMaxTrackHits][3]>>
 

Public Member Functions

 TrackDataStruct ()
 Creates an empty tracker data structure. More...
 
 TrackDataStruct (size_t maxTracks)
 Creates a tracker data structure allowing up to maxTracks tracks. More...
 
void Clear ()
 
void SetMaxTracks (size_t maxTracks)
 
void Resize (size_t nTracks)
 
void SetAddresses (TTree *pTree, std::string tracker, bool isCosmics)
 
size_t GetMaxTracks () const
 
size_t GetMaxPlanesPerTrack (int=0) const
 
size_t GetMaxHitsPerTrack (int=0, int=0) const
 

Public Attributes

size_t MaxTracks
 maximum number of storable tracks More...
 
Short_t ntracks
 
PlaneData_t< Float_t > trkke
 
PlaneData_t< Float_t > trkrange
 
PlaneData_t< Int_t > trkidtruth_recoutils_totaltrueenergy
 
PlaneData_t< Int_t > trkidtruth_recoutils_totalrecocharge
 
PlaneData_t< Int_t > trkidtruth_recoutils_totalrecohits
 
PlaneData_t< Int_t > trkidtruth
 
PlaneData_t< Short_t > trkorigin
 
PlaneData_t< Int_t > trkpdgtruth
 
PlaneData_t< Float_t > trkefftruth
 
PlaneData_t< Float_t > trksimIDEenergytruth
 
PlaneData_t< Float_t > trksimIDExtruth
 
PlaneData_t< Float_t > trksimIDEytruth
 
PlaneData_t< Float_t > trksimIDEztruth
 
PlaneData_t< Float_t > trkpurtruth
 
PlaneData_t< Float_t > trkpitchc
 
PlaneData_t< Short_t > ntrkhits
 
HitData_t< Float_t > trkdedx
 
HitData_t< Float_t > trkxp
 
HitData_t< Float_t > trkyp
 
HitData_t< Float_t > trkzp
 
HitData_t< Float_t > trkdqdx
 
HitData_t< Float_t > trkresrg
 
HitCoordData_t< Float_t > trkxyz
 
TrackData_t< Short_t > trkId
 
TrackData_t< Short_t > trkncosmictags_tagger
 
TrackData_t< Float_t > trkcosmicscore_tagger
 
TrackData_t< Short_t > trkcosmictype_tagger
 
TrackData_t< Short_t > trkncosmictags_flashmatch
 
TrackData_t< Float_t > trkcosmicscore_flashmatch
 
TrackData_t< Short_t > trkcosmictype_flashmatch
 
TrackData_t< Float_t > trkstartx
 
TrackData_t< Float_t > trkstarty
 
TrackData_t< Float_t > trkstartz
 
TrackData_t< Float_t > trkstartd
 
TrackData_t< Float_t > trkendx
 
TrackData_t< Float_t > trkendy
 
TrackData_t< Float_t > trkendz
 
TrackData_t< Float_t > trkendd
 
TrackData_t< Float_t > trktheta
 
TrackData_t< Float_t > trkphi
 
TrackData_t< Float_t > trkstartdcosx
 
TrackData_t< Float_t > trkstartdcosy
 
TrackData_t< Float_t > trkstartdcosz
 
TrackData_t< Float_t > trkenddcosx
 
TrackData_t< Float_t > trkenddcosy
 
TrackData_t< Float_t > trkenddcosz
 
TrackData_t< Float_t > trkthetaxz
 
TrackData_t< Float_t > trkthetayz
 
TrackData_t< Float_t > trklen
 
TrackData_t< Short_t > trksvtxid
 
TrackData_t< Short_t > trkevtxid
 
PlaneData_t< Int_t > trkpidpdg
 
PlaneData_t< Float_t > trkpidchi
 
PlaneData_t< Float_t > trkpidchipr
 
PlaneData_t< Float_t > trkpidchika
 
PlaneData_t< Float_t > trkpidchipi
 
PlaneData_t< Float_t > trkpidchimu
 
PlaneData_t< Float_t > trkpidpida
 
TrackData_t< Short_t > trkpidbestplane
 

Detailed Description

Tracker algorithm result

Can connect to a tree, clear its fields and resize its data.

Definition at line 210 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

Member Typedef Documentation

template<typename T >
using icarus::AnalysisTreeDataStruct::TrackDataStruct::TrackData_t = std::vector<T>

Constructor & Destructor Documentation

icarus::AnalysisTreeDataStruct::TrackDataStruct::TrackDataStruct ( )
inline
icarus::AnalysisTreeDataStruct::TrackDataStruct::TrackDataStruct ( size_t  maxTracks)
inline

Creates a tracker data structure allowing up to maxTracks tracks.

Definition at line 301 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

Member Function Documentation

void icarus::AnalysisTreeDataStruct::TrackDataStruct::Clear ( )

Definition at line 894 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

894  {
895  Resize(MaxTracks);
896  ntracks = 0;
897 
898  FillWith(trkId , -9999 );
899  FillWith(trkncosmictags_tagger, -9999 );
900  FillWith(trkcosmicscore_tagger, -99999.);
901  FillWith(trkcosmictype_tagger, -9999 );
902  FillWith(trkncosmictags_flashmatch, -9999 );
903  FillWith(trkcosmicscore_flashmatch, -99999.);
904  FillWith(trkcosmictype_flashmatch, -9999 );
905  FillWith(trkstartx , -99999.);
906  FillWith(trkstarty , -99999.);
907  FillWith(trkstartz , -99999.);
908  FillWith(trkstartd , -99999.);
909  FillWith(trkendx , -99999.);
910  FillWith(trkendy , -99999.);
911  FillWith(trkendz , -99999.);
912  FillWith(trkendd , -99999.);
913  FillWith(trktheta , -99999.);
914  FillWith(trkphi , -99999.);
915  FillWith(trkstartdcosx, -99999.);
916  FillWith(trkstartdcosy, -99999.);
917  FillWith(trkstartdcosz, -99999.);
918  FillWith(trkenddcosx , -99999.);
919  FillWith(trkenddcosy , -99999.);
920  FillWith(trkenddcosz , -99999.);
921  FillWith(trkthetaxz , -99999.);
922  FillWith(trkthetayz , -99999.);
923  //FillWith(trkmom , -99999.);
924  //FillWith(trkmomrange , -99999.);
925  //FillWith(trkmommschi2 , -99999.);
926  //FillWith(trkmommsllhd , -99999.);
927  FillWith(trklen , -99999.);
928  FillWith(trksvtxid , -1);
929  FillWith(trkevtxid , -1);
930  FillWith(trkpidbestplane, -1);
931 
932  for (size_t iTrk = 0; iTrk < MaxTracks; ++iTrk){
933 
934  // the following are BoxedArray's;
935  // their iterators traverse all the array dimensions
936  FillWith(trkke[iTrk] , -99999.);
937  FillWith(trkrange[iTrk] , -99999.);
938  FillWith(trkidtruth_recoutils_totaltrueenergy[iTrk] , -99999 );
939  FillWith(trkidtruth_recoutils_totalrecocharge[iTrk] , -99999 );
940  FillWith(trkidtruth_recoutils_totalrecohits[iTrk] , -99999 );
941  FillWith(trkidtruth[iTrk] , -99999 );
942  FillWith(trkorigin[iTrk] , -1 );
943  FillWith(trkpdgtruth[iTrk], -99999 );
944  FillWith(trkefftruth[iTrk], -99999.);
945  FillWith(trksimIDEenergytruth[iTrk], -99999.);
946  FillWith(trksimIDExtruth[iTrk], -99999.);
947  FillWith(trksimIDEytruth[iTrk], -99999.);
948  FillWith(trksimIDEztruth[iTrk], -99999.);
949  FillWith(trkpurtruth[iTrk], -99999.);
950  FillWith(trkpitchc[iTrk] , -99999.);
951  FillWith(ntrkhits[iTrk] , -9999 );
952 
953  FillWith(trkdedx[iTrk], 0.);
954  FillWith(trkxp[iTrk], 0.);
955  FillWith(trkyp[iTrk], 0.);
956  FillWith(trkzp[iTrk], 0.);
957  FillWith(trkdqdx[iTrk], 0.);
958  FillWith(trkresrg[iTrk], 0.);
959 
960  FillWith(trkxyz[iTrk], 0.);
961 
962  FillWith(trkpidpdg[iTrk] , -1);
963  FillWith(trkpidchi[iTrk] , -99999.);
964  FillWith(trkpidchipr[iTrk] , -99999.);
965  FillWith(trkpidchika[iTrk] , -99999.);
966  FillWith(trkpidchipi[iTrk] , -99999.);
967  FillWith(trkpidchimu[iTrk] , -99999.);
968  FillWith(trkpidpida[iTrk] , -99999.);
969  } // for track
970 
971 } // icarus::AnalysisTreeDataStruct::TrackDataStruct::Clear()
size_t icarus::AnalysisTreeDataStruct::TrackDataStruct::GetMaxHitsPerTrack ( int  = 0,
int  = 0 
) const
inline

Definition at line 311 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

312  { return (size_t) kMaxTrackHits; }
size_t icarus::AnalysisTreeDataStruct::TrackDataStruct::GetMaxPlanesPerTrack ( int  = 0) const
inline

Definition at line 309 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

310  { return (size_t) kNplanes; }
size_t icarus::AnalysisTreeDataStruct::TrackDataStruct::GetMaxTracks ( ) const
inline
void icarus::AnalysisTreeDataStruct::TrackDataStruct::Resize ( size_t  nTracks)

Definition at line 821 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

822 {
823  MaxTracks = nTracks;
824 
825  trkId.resize(MaxTracks);
832  trkstartx.resize(MaxTracks);
833  trkstarty.resize(MaxTracks);
834  trkstartz.resize(MaxTracks);
835  trkstartd.resize(MaxTracks);
836  trkendx.resize(MaxTracks);
837  trkendy.resize(MaxTracks);
838  trkendz.resize(MaxTracks);
839  trkendd.resize(MaxTracks);
840  trktheta.resize(MaxTracks);
841  trkphi.resize(MaxTracks);
842  trkstartdcosx.resize(MaxTracks);
843  trkstartdcosy.resize(MaxTracks);
844  trkstartdcosz.resize(MaxTracks);
845  trkenddcosx.resize(MaxTracks);
846  trkenddcosy.resize(MaxTracks);
847  trkenddcosz.resize(MaxTracks);
848  trkthetaxz.resize(MaxTracks);
849  trkthetayz.resize(MaxTracks);
850  //trkmom.resize(MaxTracks);
851  //trkmomrange.resize(MaxTracks);
852  //trkmommschi2.resize(MaxTracks);
853  //trkmommsllhd.resize(MaxTracks);
854  trklen.resize(MaxTracks);
855  trksvtxid.resize(MaxTracks);
856  trkevtxid.resize(MaxTracks);
857  // PID variables
858  trkpidpdg.resize(MaxTracks);
859  trkpidchi.resize(MaxTracks);
860  trkpidchipr.resize(MaxTracks);
861  trkpidchika.resize(MaxTracks);
862  trkpidchipi.resize(MaxTracks);
863  trkpidchimu.resize(MaxTracks);
864  trkpidpida.resize(MaxTracks);
865  trkpidbestplane.resize(MaxTracks);
866 
867  trkke.resize(MaxTracks);
868  trkrange.resize(MaxTracks);
872  trkidtruth.resize(MaxTracks);
873  trkorigin.resize(MaxTracks);
874  trkpdgtruth.resize(MaxTracks);
875  trkefftruth.resize(MaxTracks);
877  trksimIDExtruth.resize(MaxTracks);
878  trksimIDEytruth.resize(MaxTracks);
879  trksimIDEztruth.resize(MaxTracks);
880  trkpurtruth.resize(MaxTracks);
881  trkpitchc.resize(MaxTracks);
882  ntrkhits.resize(MaxTracks);
883 
884  trkdedx.resize(MaxTracks);
885  trkxp.resize(MaxTracks);
886  trkyp.resize(MaxTracks);
887  trkzp.resize(MaxTracks);
888  trkdqdx.resize(MaxTracks);
889  trkresrg.resize(MaxTracks);
890  trkxyz.resize(MaxTracks);
891 
892 } // icarus::AnalysisTreeDataStruct::TrackDataStruct::Resize()
void icarus::AnalysisTreeDataStruct::TrackDataStruct::SetAddresses ( TTree *  pTree,
std::string  tracker,
bool  isCosmics 
)

Definition at line 974 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

976  {
977  if (MaxTracks == 0) return; // no tracks, no tree!
978 
980 
981  AutoResettingStringSteam sstr;
982  sstr() << kMaxTrackHits;
983  std::string MaxTrackHitsIndexStr("[" + sstr.str() + "]");
984 
985  std::string TrackLabel = tracker;
986  std::string BranchName;
987 
988  BranchName = "ntracks_" + TrackLabel;
989  CreateBranch(BranchName, &ntracks, BranchName + "/S");
990  std::string NTracksIndexStr = "[" + BranchName + "]";
991 
992  BranchName = "trkId_" + TrackLabel;
993  CreateBranch(BranchName, trkId, BranchName + NTracksIndexStr + "/S");
994 
995  BranchName = "trkncosmictags_tagger_" + TrackLabel;
996  CreateBranch(BranchName, trkncosmictags_tagger, BranchName + NTracksIndexStr + "/S");
997 
998  BranchName = "trkcosmicscore_tagger_" + TrackLabel;
999  CreateBranch(BranchName, trkcosmicscore_tagger, BranchName + NTracksIndexStr + "/F");
1000 
1001  BranchName = "trkcosmictype_tagger_" + TrackLabel;
1002  CreateBranch(BranchName, trkcosmictype_tagger, BranchName + NTracksIndexStr + "/S");
1003 
1004  BranchName = "trkncosmictags_flashmatch_" + TrackLabel;
1005  CreateBranch(BranchName, trkncosmictags_flashmatch, BranchName + NTracksIndexStr + "/S");
1006 
1007  BranchName = "trkcosmicscore_flashmatch_" + TrackLabel;
1008  CreateBranch(BranchName, trkcosmicscore_flashmatch, BranchName + NTracksIndexStr + "/F");
1009 
1010  BranchName = "trkcosmictype_flashmatch_" + TrackLabel;
1011  CreateBranch(BranchName, trkcosmictype_flashmatch, BranchName + NTracksIndexStr + "/S");
1012 
1013  BranchName = "trkke_" + TrackLabel;
1014  CreateBranch(BranchName, trkke, BranchName + NTracksIndexStr + "[3]/F");
1015 
1016  BranchName = "trkrange_" + TrackLabel;
1017  CreateBranch(BranchName, trkrange, BranchName + NTracksIndexStr + "[3]/F");
1018 
1019  BranchName = "trkidtruth_recoutils_totaltrueenergy_" + TrackLabel;
1020  CreateBranch(BranchName, trkidtruth_recoutils_totaltrueenergy, BranchName + NTracksIndexStr + "[3]/I");
1021 
1022  BranchName = "trkidtruth_recoutils_totalrecocharge_" + TrackLabel;
1023  CreateBranch(BranchName, trkidtruth_recoutils_totalrecocharge, BranchName + NTracksIndexStr + "[3]/I");
1024 
1025  BranchName = "trkidtruth_recoutils_totalrecohits_" + TrackLabel;
1026  CreateBranch(BranchName, trkidtruth_recoutils_totalrecohits, BranchName + NTracksIndexStr + "[3]/I");
1027 
1028  BranchName = "trkidtruth_" + TrackLabel;
1029  CreateBranch(BranchName, trkidtruth, BranchName + NTracksIndexStr + "[3]/I");
1030 
1031  BranchName = "trkorigin_" + TrackLabel;
1032  CreateBranch(BranchName, trkorigin, BranchName + NTracksIndexStr + "[3]/S");
1033 
1034  BranchName = "trkpdgtruth_" + TrackLabel;
1035  CreateBranch(BranchName, trkpdgtruth, BranchName + NTracksIndexStr + "[3]/I");
1036 
1037  BranchName = "trkefftruth_" + TrackLabel;
1038  CreateBranch(BranchName, trkefftruth, BranchName + NTracksIndexStr + "[3]/F");
1039 
1040  BranchName = "trksimIDEenergytruth_" + TrackLabel;
1041  CreateBranch(BranchName, trksimIDEenergytruth, BranchName + NTracksIndexStr + "[3]/F");
1042 
1043  BranchName = "trksimIDExtruth_" + TrackLabel;
1044  CreateBranch(BranchName, trksimIDExtruth, BranchName + NTracksIndexStr + "[3]/F");
1045 
1046  BranchName = "trksimIDEytruth_" + TrackLabel;
1047  CreateBranch(BranchName, trksimIDEytruth, BranchName + NTracksIndexStr + "[3]/F");
1048 
1049  BranchName = "trksimIDEztruth_" + TrackLabel;
1050  CreateBranch(BranchName, trksimIDEztruth, BranchName + NTracksIndexStr + "[3]/F");
1051 
1052  BranchName = "trkpurtruth_" + TrackLabel;
1053  CreateBranch(BranchName, trkpurtruth, BranchName + NTracksIndexStr + "[3]/F");
1054 
1055  BranchName = "trkpitchc_" + TrackLabel;
1056  CreateBranch(BranchName, trkpitchc, BranchName + NTracksIndexStr + "[3]/F");
1057 
1058  BranchName = "ntrkhits_" + TrackLabel;
1059  CreateBranch(BranchName, ntrkhits, BranchName + NTracksIndexStr + "[3]/S");
1060 
1061  if (!isCosmics){
1062  BranchName = "trkdedx_" + TrackLabel;
1063  CreateBranch(BranchName, trkdedx, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1064 
1065  BranchName = "trkxp_" + TrackLabel;
1066  CreateBranch(BranchName, trkxp, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1067 
1068  BranchName = "trkyp_" + TrackLabel;
1069  CreateBranch(BranchName, trkyp, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1070 
1071  BranchName = "trkzp_" + TrackLabel;
1072  CreateBranch(BranchName, trkzp, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1073 
1074  BranchName = "trkdqdx_" + TrackLabel;
1075  CreateBranch(BranchName, trkdqdx, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1076 
1077  BranchName = "trkresrg_" + TrackLabel;
1078  CreateBranch(BranchName, trkresrg, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1079 
1080  BranchName = "trkxyz_" + TrackLabel;
1081  CreateBranch(BranchName, trkxyz, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1082  }
1083 
1084  BranchName = "trkstartx_" + TrackLabel;
1085  CreateBranch(BranchName, trkstartx, BranchName + NTracksIndexStr + "/F");
1086 
1087  BranchName = "trkstarty_" + TrackLabel;
1088  CreateBranch(BranchName, trkstarty, BranchName + NTracksIndexStr + "/F");
1089 
1090  BranchName = "trkstartz_" + TrackLabel;
1091  CreateBranch(BranchName, trkstartz, BranchName + NTracksIndexStr + "/F");
1092 
1093  BranchName = "trkstartd_" + TrackLabel;
1094  CreateBranch(BranchName, trkstartd, BranchName + NTracksIndexStr + "/F");
1095 
1096  BranchName = "trkendx_" + TrackLabel;
1097  CreateBranch(BranchName, trkendx, BranchName + NTracksIndexStr + "/F");
1098 
1099  BranchName = "trkendy_" + TrackLabel;
1100  CreateBranch(BranchName, trkendy, BranchName + NTracksIndexStr + "/F");
1101 
1102  BranchName = "trkendz_" + TrackLabel;
1103  CreateBranch(BranchName, trkendz, BranchName + NTracksIndexStr + "/F");
1104 
1105  BranchName = "trkendd_" + TrackLabel;
1106  CreateBranch(BranchName, trkendd, BranchName + NTracksIndexStr + "/F");
1107 
1108  BranchName = "trktheta_" + TrackLabel;
1109  CreateBranch(BranchName, trktheta, BranchName + NTracksIndexStr + "/F");
1110 
1111  BranchName = "trkphi_" + TrackLabel;
1112  CreateBranch(BranchName, trkphi, BranchName + NTracksIndexStr + "/F");
1113 
1114  BranchName = "trkstartdcosx_" + TrackLabel;
1115  CreateBranch(BranchName, trkstartdcosx, BranchName + NTracksIndexStr + "/F");
1116 
1117  BranchName = "trkstartdcosy_" + TrackLabel;
1118  CreateBranch(BranchName, trkstartdcosy, BranchName + NTracksIndexStr + "/F");
1119 
1120  BranchName = "trkstartdcosz_" + TrackLabel;
1121  CreateBranch(BranchName, trkstartdcosz, BranchName + NTracksIndexStr + "/F");
1122 
1123  BranchName = "trkenddcosx_" + TrackLabel;
1124  CreateBranch(BranchName, trkenddcosx, BranchName + NTracksIndexStr + "/F");
1125 
1126  BranchName = "trkenddcosy_" + TrackLabel;
1127  CreateBranch(BranchName, trkenddcosy, BranchName + NTracksIndexStr + "/F");
1128 
1129  BranchName = "trkenddcosz_" + TrackLabel;
1130  CreateBranch(BranchName, trkenddcosz, BranchName + NTracksIndexStr + "/F");
1131 
1132  BranchName = "trkthetaxz_" + TrackLabel;
1133  CreateBranch(BranchName, trkthetaxz, BranchName + NTracksIndexStr + "/F");
1134 
1135  BranchName = "trkthetayz_" + TrackLabel;
1136  CreateBranch(BranchName, trkthetayz, BranchName + NTracksIndexStr + "/F");
1137 
1138  //BranchName = "trkmom_" + TrackLabel;
1139  //CreateBranch(BranchName, trkmom, BranchName + NTracksIndexStr + "/F");
1140 
1141  //BranchName = "trkmomrange_" + TrackLabel;
1142  //CreateBranch(BranchName, trkmomrange, BranchName + NTracksIndexStr + "/F");
1143 
1144  //BranchName = "trkmommschi2_" + TrackLabel;
1145  //CreateBranch(BranchName, trkmommschi2, BranchName + NTracksIndexStr + "/F");
1146 
1147  //BranchName = "trkmommsllhd_" + TrackLabel;
1148  //CreateBranch(BranchName, trkmommsllhd, BranchName + NTracksIndexStr + "/F");
1149 
1150  BranchName = "trklen_" + TrackLabel;
1151  CreateBranch(BranchName, trklen, BranchName + NTracksIndexStr + "/F");
1152 
1153  BranchName = "trksvtxid_" + TrackLabel;
1154  CreateBranch(BranchName, trksvtxid, BranchName + NTracksIndexStr + "/S");
1155 
1156  BranchName = "trkevtxid_" + TrackLabel;
1157  CreateBranch(BranchName, trkevtxid, BranchName + NTracksIndexStr + "/S");
1158 
1159  BranchName = "trkpidpdg_" + TrackLabel;
1160  CreateBranch(BranchName, trkpidpdg, BranchName + NTracksIndexStr + "[3]/I");
1161 
1162  BranchName = "trkpidchi_" + TrackLabel;
1163  CreateBranch(BranchName, trkpidchi, BranchName + NTracksIndexStr + "[3]/F");
1164 
1165  BranchName = "trkpidchipr_" + TrackLabel;
1166  CreateBranch(BranchName, trkpidchipr, BranchName + NTracksIndexStr + "[3]/F");
1167 
1168  BranchName = "trkpidchika_" + TrackLabel;
1169  CreateBranch(BranchName, trkpidchika, BranchName + NTracksIndexStr + "[3]/F");
1170 
1171  BranchName = "trkpidchipi_" + TrackLabel;
1172  CreateBranch(BranchName, trkpidchipi, BranchName + NTracksIndexStr + "[3]/F");
1173 
1174  BranchName = "trkpidchimu_" + TrackLabel;
1175  CreateBranch(BranchName, trkpidchimu, BranchName + NTracksIndexStr + "[3]/F");
1176 
1177  BranchName = "trkpidpida_" + TrackLabel;
1178  CreateBranch(BranchName, trkpidpida, BranchName + NTracksIndexStr + "[3]/F");
1179 
1180  BranchName = "trkpidbestplane_" + TrackLabel;
1181  CreateBranch(BranchName, trkpidbestplane, BranchName + NTracksIndexStr + "/S");
1182 
1183 } // icarus::AnalysisTreeDataStruct::TrackDataStruct::SetAddresses()
isCosmics(false)
Little helper functor class to create or reset branches in a tree.
void icarus::AnalysisTreeDataStruct::TrackDataStruct::SetMaxTracks ( size_t  maxTracks)
inline

Member Data Documentation

size_t icarus::AnalysisTreeDataStruct::TrackDataStruct::MaxTracks

maximum number of storable tracks

Definition at line 229 of file icaruscode/icaruscode/Analysis/AnalysisTree_module.cc.

Short_t icarus::AnalysisTreeDataStruct::TrackDataStruct::ntracks
PlaneData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::ntrkhits
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkcosmicscore_flashmatch
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkcosmicscore_tagger
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkcosmictype_flashmatch
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkcosmictype_tagger
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkdedx
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkdqdx
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkefftruth
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkendd
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosx
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosy
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosz
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkendx
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkendy
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkendz
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkevtxid
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkId
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkidtruth
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkidtruth_recoutils_totalrecocharge
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkidtruth_recoutils_totalrecohits
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkidtruth_recoutils_totaltrueenergy
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkke
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trklen
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkncosmictags_flashmatch
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkncosmictags_tagger
PlaneData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkorigin
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpdgtruth
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkphi
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidbestplane
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidchi
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidchika
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidchimu
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidchipi
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidchipr
PlaneData_t<Int_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidpdg
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpidpida
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpitchc
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkpurtruth
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkrange
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkresrg
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trksimIDEenergytruth
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trksimIDExtruth
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trksimIDEytruth
PlaneData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trksimIDEztruth
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartd
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosx
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosy
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosz
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartx
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstarty
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkstartz
TrackData_t<Short_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trksvtxid
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trktheta
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkthetaxz
TrackData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkthetayz
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkxp
HitCoordData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkxyz
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkyp
HitData_t<Float_t> icarus::AnalysisTreeDataStruct::TrackDataStruct::trkzp

The documentation for this class was generated from the following file: