CGEM BOSS 6.6.5.i
BESIII Offline Software System
|
#include <ReadCosmicRayData.h>
Public Member Functions | |
ReadCosmicRayData (const std::string &name, ISvcLocator *pSvcLocator) | |
~ReadCosmicRayData () | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Definition at line 21 of file ReadCosmicRayData.h.
ReadCosmicRayData::ReadCosmicRayData | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator ) |
Definition at line 60 of file ReadCosmicRayData.cxx.
ReadCosmicRayData::~ReadCosmicRayData | ( | ) |
Definition at line 88 of file ReadCosmicRayData.cxx.
StatusCode ReadCosmicRayData::execute | ( | ) |
Definition at line 670 of file ReadCosmicRayData.cxx.
StatusCode ReadCosmicRayData::finalize | ( | ) |
const int nlayer = 3; // CHECK hardcoded const int nsheet[nlayer] = {1, 2, 2}; // CHECK hardcoded const int nview = 2; // CHECK hardcoded int nstrip[nlayer][nview] = {{856, 1173}, {630, 1077}, {832, 1395}}; // CHECK hardcoded
int layer=1; int sheet=0; int type=0; for(int strip=0; strip<nstrip[layer][type]; strip++) { cout << strip << " " << mapper->GetGEMROC(strip, type, layer, sheet) << " "
<< mapper->GetFEB(strip, type, layer, sheet) << " " << mapper->GetTIGER(strip, type, layer, sheet) << endl; }
Definition at line 734 of file ReadCosmicRayData.cxx.
StatusCode ReadCosmicRayData::initialize | ( | ) |
if(ReadCluster) {
Get Cgem cluster tree TString TTreeCluster(TreeCluster); Tcluster = (TTree*)f->Get(TTreeCluster);
Tcluster->SetBranchAddress("Event", &m_Event_C); Tcluster->SetBranchAddress("GemCluster1d_nCluster", &m_nGemCluster); Tcluster->SetBranchAddress("GemCluster1d_nHit", m_ClusternHit); Tcluster->SetBranchAddress("GemCluster1d_HitIndex", m_ClusterHitIndex); Tcluster->SetBranchAddress("GemCluster1d_plane", m_ClusterLayerID); Tcluster->SetBranchAddress("GemCluster1d_view", m_Flag); Tcluster->SetBranchAddress("GemCluster1d_q", m_EnergyDeposit); Tcluster->SetBranchAddress("GemCluster1d_x", m_Cluster_x); Tcluster->SetBranchAddress("GemCluster1d_z", m_Cluster_z); Tcluster->SetBranchAddress("GemCluster1d_x_cc", m_Cluster_x_cc); Tcluster->SetBranchAddress("GemCluster1d_x_tpc", m_Cluster_x_tpc); Tcluster->SetBranchAddress("GemCluster1d_z_cc", m_Cluster_z_cc); Tcluster->SetBranchAddress("GemCluster1d_z_tpc", m_Cluster_z_tpc); Tcluster->SetBranchAddress("ClusterSheetID", m_ClusterSheetID); Tcluster->SetBranchAddress("ClusterFlagB", m_ClusterFlagB); Tcluster->SetBranchAddress("ClusterFlagE", m_ClusterFlagE); Tcluster->SetBranchAddress("RecV", m_RecV); Tcluster->SetBranchAddress("RecZ", m_RecZ);
No_Entries_C = Tcluster->GetEntries(); Ind_Entry_C = 0; }
Definition at line 91 of file ReadCosmicRayData.cxx.