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;
70 int Shift_DigitLayerID ;
71 int Shift_DigitSheetID ;
72 int Shift_DigitXStripID ;
73 int Shift_DigitVStripID ;
74 int Shift_ClusterLayerID ;
75 int Shift_ClusterSheetID ;
86 string CosmicRayDataSetID;
124 int m_ClusterHitIndex[70][30];
125 int m_ClusternHit[70];
126 int m_ClusterLayerID[70];
127 int m_ClusterSheetID[70];
129 int m_ClusterFlagB[70];
130 int m_ClusterFlagE[70];
131 double m_EnergyDeposit[70];
132 double m_Cluster_x[70];
133 double m_Cluster_z[70];
134 double m_Cluster_x_cc[70];
135 double m_Cluster_x_tpc[70];
136 double m_Cluster_z_cc[70];
137 double m_Cluster_z_tpc[70];
143 IDataProviderSvc* m_evtSvc;
ReadCosmicRayData(const std::string &name, ISvcLocator *pSvcLocator)