1#ifndef READCOSMICRAYDATAALG
2#define READCOSMICRAYDATAALG
4#include "CgemGeomSvc.h"
5#include "RealizationSvc/RealizationSvc.h"
6#include "RealizationSvc/IRealizationSvc.h"
12#include "Identifier/Identifier.h"
14class IDataProviderSvc;
16#define MAXNOFHITS 2400
30 void ReadCgemDigits();
31 void SaveCgemDigits();
33 void ReadCgemClusters();
34 void SaveCgemClusters();
36 int TranslateDigitLayerID(
int Input_LayerID);
37 int TranslateDigitSheetID(
int Input_SheetID);
38 int TranslateDigitStripType(
int Input_StripType);
39 int TranslateDigitStripID(
int Input_StripID,
int StripType);
40 int TranslateDigitXStripID(
int Input_StripID);
41 int TranslateDigitVStripID(
int Input_StripID);
43 int TranslateClusterLayerID(
int Input_LayerID);
44 int TranslateClusterSheetID(
int Input_SheetID);
45 int TranslateClusterFlag(
int Input_Flag);
46 double TranslateRecPhi(
double Input_RecPhi);
47 double TranslateRecV(
double Input_RecV);
48 double TranslateRecZ(
double Input_RecZ);
50 bool ConvertHitToDigi(
int ihit,
unsigned int &charge_channel,
unsigned int &time_channel);
63 bool finish_read_digi;
65 bool finish_read_cluster;
75 int Shift_DigitLayerID ;
76 int Shift_DigitSheetID ;
77 int Shift_DigitXStripID ;
78 int Shift_DigitVStripID ;
79 int Shift_ClusterLayerID ;
80 int Shift_ClusterSheetID ;
91 string CosmicRayDataSetID;
129 int m_ClusterHitIndex[70][30];
130 int m_ClusternHit[70];
131 int m_ClusterLayerID[70];
132 int m_ClusterSheetID[70];
134 int m_ClusterFlagB[70];
135 int m_ClusterFlagE[70];
136 double m_EnergyDeposit[70];
137 double m_Cluster_x[70];
138 double m_Cluster_z[70];
139 double m_Cluster_x_cc[70];
140 double m_Cluster_x_tpc[70];
141 double m_Cluster_z_cc[70];
142 double m_Cluster_z_tpc[70];
148 IDataProviderSvc* m_evtSvc;
ReadCosmicRayData(const std::string &name, ISvcLocator *pSvcLocator)