In AliMUONClusterInfo:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 17:34:25 +0000 (17:34 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 17:34:25 +0000 (17:34 +0000)
Adding a constructor for Root IO not allocating memory and so fixing coding rule RC20
(Philippe P.)

MUON/AliMUONClusterInfo.cxx
MUON/AliMUONClusterInfo.h

index 08f075915f443f6afbf9fc9dd256b06e0330b03f..82ef6311d9c37b4ea90aae3ab58cbf0f542ea609 100644 (file)
@@ -64,6 +64,37 @@ AliMUONClusterInfo::AliMUONClusterInfo()
   /// default constructor
 }
 
+//_____________________________________________________________________________
+AliMUONClusterInfo::AliMUONClusterInfo(TRootIOCtor* /*rio*/)
+: TObject(),
+fRunId(0),
+fEventId(0),
+fZ(0.),
+fClusterId(0),
+fClusterX(0.),
+fClusterY(0.),
+fClusterXErr(0.),
+fClusterYErr(0.),
+fClusterChi2(0.),
+fClusterCharge(0.),
+fTrackId(0),
+fTrackX(0.),
+fTrackY(0.),
+fTrackThetaX(0.),
+fTrackThetaY(0.),
+fTrackP(0.),
+fTrackXErr(0.),
+fTrackYErr(0.),
+fTrackChi2(0.),
+fTrackCharge(0),
+fTrackNHits(0),
+fTrackChamberHitMap(0),
+fNPads(0),
+fPads(0x0)
+{
+  /// I/O constructor
+}
+
 //_____________________________________________________________________________
 AliMUONClusterInfo::AliMUONClusterInfo (const AliMUONClusterInfo& clusterInfo)
 : TObject(clusterInfo),
index 556982e0bfb25cc607c94d854ce207c865bcea8b..d98afe77e36c7b2c2e6523508b8a5570e4dc6e1b 100644 (file)
@@ -19,6 +19,7 @@
 class AliMUONClusterInfo : public TObject {
 public:
   AliMUONClusterInfo(); // Constructor
+  AliMUONClusterInfo(TRootIOCtor* /*rio*/); // IO constructor
   virtual ~AliMUONClusterInfo(); //< Destructor
   AliMUONClusterInfo(const AliMUONClusterInfo& cluster);
   AliMUONClusterInfo& operator=(const AliMUONClusterInfo& cluster);